|
|
@ -42,7 +42,7 @@ import org.springframework.web.multipart.MultipartFile; |
|
|
|
@AccessRequired |
|
|
|
// Indicates whether login token verification is required. Placing it here means all methods in this class require authentication.
|
|
|
|
@RequestMapping("/building") // HTTP request path mapping
|
|
|
|
@Tag(name = "BuildingController", description = "Building Management Module - APIs for managing buildings") |
|
|
|
@Tag(name = "楼宇接口", description = "Building Management Module - APIs for managing buildings") |
|
|
|
@SuppressWarnings("unchecked") |
|
|
|
public class BuildingController { |
|
|
|
|
|
|
@ -62,7 +62,7 @@ public class BuildingController { |
|
|
|
* @param LanguageType language type (0: Chinese, 1: English, 2: Japanese) |
|
|
|
* @return a SimpleDataResponse indicating the result of the add operation |
|
|
|
*/ |
|
|
|
@Operation(summary = "Add a building") |
|
|
|
@Operation(summary = "添加楼宇") |
|
|
|
@RequestMapping(value = "/add", method = RequestMethod.POST) |
|
|
|
public SimpleDataResponse add( |
|
|
|
@RequestBody @Validated OptBuildingParams optBuildingParams, |
|
|
@ -85,7 +85,7 @@ public class BuildingController { |
|
|
|
* @param LanguageType language type (0: Chinese, 1: English, 2: Japanese) |
|
|
|
* @return a SimpleDataResponse indicating the result of the edit operation |
|
|
|
*/ |
|
|
|
@Operation(summary = "Edit a building") |
|
|
|
@Operation(summary = "编辑楼宇") |
|
|
|
@RequestMapping(value = "/edit", method = RequestMethod.POST) |
|
|
|
public SimpleDataResponse edit( |
|
|
|
@RequestBody @Validated OptBuildingParams optBuildingParams, |
|
|
@ -108,7 +108,7 @@ public class BuildingController { |
|
|
|
* @param LanguageType language type (0: Chinese, 1: English, 2: Japanese) |
|
|
|
* @return a SimpleDataResponse indicating the result of the batch delete operation |
|
|
|
*/ |
|
|
|
@Operation(summary = "Batch delete buildings") |
|
|
|
@Operation(summary = "批量删除楼宇") |
|
|
|
@RequestMapping(value = "/batchDelete", method = RequestMethod.POST) |
|
|
|
public SimpleDataResponse batchDelete( |
|
|
|
@RequestBody @Validated DeleteBuildingParams deleteBuildingParams, |
|
|
@ -123,7 +123,7 @@ public class BuildingController { |
|
|
|
/** |
|
|
|
* Get a page of building list. |
|
|
|
**/ |
|
|
|
@Operation(summary = "Get a page of building list") |
|
|
|
@Operation(summary = "查询楼宇列表") |
|
|
|
@RequestMapping(value = "/getListPage", method = RequestMethod.GET) |
|
|
|
public PageResponse<IPage<BuildingPageVO>> getListPage( |
|
|
|
@Parameter(name = "LoginName", description = "Login name", required = true, schema = @Schema(defaultValue = "admin")) @RequestHeader(required = true) String LoginName, |
|
|
@ -150,7 +150,7 @@ public class BuildingController { |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Operation(summary = "Get buildings bound to the user", description = "获取用户绑定的楼宇") |
|
|
|
@Operation(summary = "获取用户绑定的楼宇", description = "获取用户绑定的楼宇") |
|
|
|
@RequestMapping(value = "/getBoundBuildings", method = RequestMethod.POST) |
|
|
|
public SimpleDataResponse<List<BuildingPageVO>> getBoundBuildings( |
|
|
|
@Parameter(name = "LoginName", description = "Login name", required = true, schema = @Schema(defaultValue = "admin")) @RequestHeader(required = true) String LoginName, |
|
|
|