- ErrorCodes.ServiceScopeRequired("133") 추가
- SpmsException.Forbidden 팩토리 추가
- ServiceCodeMiddleware 3-카테고리 라우팅 (SKIP/REQUIRED/OPTIONAL_FOR_ADMIN)
- Swagger 필터 stats/device-list X-Service-Code optional 표시
- StatsController/DeviceController GetOptionalServiceId() 적용
- IStatsService/IDeviceService/레포지토리 시그니처 long? serviceId 변경
- StatsService/DeviceService null serviceId 전체 서비스 모드 처리
Closes #199
15 lines
679 B
C#
15 lines
679 B
C#
using SPMS.Application.DTOs.Device;
|
|
|
|
namespace SPMS.Application.Interfaces;
|
|
|
|
public interface IDeviceService
|
|
{
|
|
Task<DeviceRegisterResponseDto> RegisterAsync(long serviceId, DeviceRegisterRequestDto request);
|
|
Task<DeviceInfoResponseDto> GetInfoAsync(long serviceId, DeviceInfoRequestDto request);
|
|
Task UpdateAsync(long serviceId, DeviceUpdateRequestDto request);
|
|
Task DeleteAsync(long serviceId, DeviceDeleteRequestDto request);
|
|
Task<DeviceListResponseDto> GetListAsync(long? serviceId, DeviceListRequestDto request);
|
|
Task SetTagsAsync(long serviceId, DeviceTagsRequestDto request);
|
|
Task SetAgreeAsync(long serviceId, DeviceAgreeRequestDto request);
|
|
}
|