@ -11,6 +11,7 @@ import com.techsor.datacenter.business.model.GatewayClients;
import com.techsor.datacenter.business.service.GatewayClientsService ;
import com.techsor.datacenter.business.service.GatewayClientsService ;
import com.techsor.datacenter.business.vo.device.BuildInFunctionVO ;
import com.techsor.datacenter.business.vo.device.BuildInFunctionVO ;
import com.techsor.datacenter.business.vo.device.DeviceVO ;
import com.techsor.datacenter.business.vo.device.DeviceVO ;
import com.techsor.datacenter.business.vo.floor.FloorPageVO ;
import com.techsor.datacenter.business.vo.gateway.GatewayClientsStatisticsCount ;
import com.techsor.datacenter.business.vo.gateway.GatewayClientsStatisticsCount ;
import com.techsor.datacenter.business.vo.gateway.GatewayClientsStatisticsVO ;
import com.techsor.datacenter.business.vo.gateway.GatewayClientsStatisticsVO ;
@ -59,6 +60,20 @@ public class GatewayClientsController {
return pageResponse ;
return pageResponse ;
}
}
@Operation ( summary = "Get Gateway clients " , description = "" )
@PostMapping ( path = "/getAll" )
public SimpleDataResponse < List < GatewayClientsQueryResponse > > getBuildInFunctionList (
@Parameter ( name = "LoginName" , description = "Login name" , required = true , schema = @Schema ( defaultValue = "admin" ) ) @RequestHeader ( required = true ) String LoginName ,
@Parameter ( name = "AccessToken" , description = "Authentication token" , required = true ) @RequestHeader ( required = true ) String AccessToken ,
@Parameter ( name = "UserId" , description = "User ID" , required = true , schema = @Schema ( defaultValue = "1" ) ) @RequestHeader ( required = true ) Long UserId ,
@Parameter ( name = "CompanyId" , description = "User's company ID" , required = false , schema = @Schema ( defaultValue = "1" ) ) @RequestHeader ( required = false ) Long CompanyId ,
@Parameter ( name = "LanguageType" , description = "Language type 0: Chinese 1: English 2: Japanese" , required = true , schema = @Schema ( defaultValue = "2" ) ) @RequestHeader ( required = true ) Integer LanguageType ,
@Parameter ( name = "UTCOffset" , description = "Offset between GMT and local time in minutes, e.g., -480 for GMT+8" ) @RequestHeader ( required = true ) Integer UTCOffset
) {
SimpleDataResponse dataResponse = SimpleDataResponse . success ( gatewayClientsService . getAll ( CompanyId , UserId , LanguageType ) ) ;
return dataResponse ;
}
@Operation ( summary = "add" , description = "" )
@Operation ( summary = "add" , description = "" )
@PostMapping ( path = "/add" )
@PostMapping ( path = "/add" )
public SimpleDataResponse add (
public SimpleDataResponse add (