1. 修复 api 没有设置 requestbody 导致无法正常解析请求参数的bug
This commit is contained in:
@@ -46,9 +46,9 @@ public interface BusinessDictionaryTypeApi {
|
||||
@Operation(summary = "获得业务字典类型")
|
||||
CommonResult<BusinessDictionaryTypeRespDTO> getBusinessDictionaryType(@RequestParam("id") Long id);
|
||||
|
||||
@GetMapping(PREFIX + "/page")
|
||||
@PostMapping(PREFIX + "/page")
|
||||
@Operation(summary = "获得业务字典类型分页")
|
||||
CommonResult<PageResult<BusinessDictionaryTypeRespDTO>> getBusinessDictionaryTypePage(@Valid BusinessDictionaryTypePageReqDTO pageReqDTO);
|
||||
CommonResult<PageResult<BusinessDictionaryTypeRespDTO>> getBusinessDictionaryTypePage(@Valid @RequestBody BusinessDictionaryTypePageReqDTO pageReqDTO);
|
||||
|
||||
@GetMapping(PREFIX + "/business-dictionary-data/list-by-dictionary-type-id")
|
||||
@Operation(summary = "获得业务字典数据列表")
|
||||
|
||||
@@ -45,7 +45,7 @@ public interface DepartmentMaterialApi {
|
||||
@Operation(summary = "获得组织架构物料")
|
||||
CommonResult<DepartmentMaterialRespDTO> getDepartmentMaterial(@RequestParam("id") Long id);
|
||||
|
||||
@GetMapping(PREFIX + "/page")
|
||||
@PostMapping(PREFIX + "/page")
|
||||
@Operation(summary = "获得组织架构物料分页")
|
||||
CommonResult<PageResult<DepartmentMaterialRespDTO>> getDepartmentMaterialPage(@Valid DepartmentMaterialPageReqDTO pageReqDTO);
|
||||
CommonResult<PageResult<DepartmentMaterialRespDTO>> getDepartmentMaterialPage(@Valid @RequestBody DepartmentMaterialPageReqDTO pageReqDTO);
|
||||
}
|
||||
|
||||
@@ -46,9 +46,9 @@ public interface MaterialClassesApi {
|
||||
@Operation(summary = "获得物料分类")
|
||||
CommonResult<MaterialClassesRespDTO> getMaterialClasses(@RequestParam("id") Long id);
|
||||
|
||||
@GetMapping(PREFIX + "/page")
|
||||
@PostMapping(PREFIX + "/page")
|
||||
@Operation(summary = "获得物料分类分页")
|
||||
CommonResult<PageResult<MaterialClassesRespDTO>> getMaterialClassesPage(@Valid MaterialClassesPageReqDTO pageReqDTO);
|
||||
CommonResult<PageResult<MaterialClassesRespDTO>> getMaterialClassesPage(@Valid @RequestBody MaterialClassesPageReqDTO pageReqDTO);
|
||||
|
||||
@GetMapping(PREFIX + "/tree")
|
||||
@Operation(summary = "获得物料分类树")
|
||||
|
||||
@@ -45,7 +45,7 @@ public interface MaterialHasClassesApi {
|
||||
@Operation(summary = "获得物料持有分类")
|
||||
CommonResult<MaterialHasClassesRespDTO> getMaterialHasClasses(@RequestParam("id") Long id);
|
||||
|
||||
@GetMapping(PREFIX + "/page")
|
||||
@PostMapping(PREFIX + "/page")
|
||||
@Operation(summary = "获得物料持有分类分页")
|
||||
CommonResult<PageResult<MaterialHasClassesRespDTO>> getMaterialHasClassesPage(@Valid MaterialHasClassesPageReqDTO pageReqDTO);
|
||||
CommonResult<PageResult<MaterialHasClassesRespDTO>> getMaterialHasClassesPage(@Valid @RequestBody MaterialHasClassesPageReqDTO pageReqDTO);
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@ public interface MaterialHasPropertiesApi {
|
||||
@Operation(summary = "获得物料持有属性")
|
||||
CommonResult<MaterialHasPropertiesRespDTO> getMaterialHasProperties(@RequestParam("id") Long id);
|
||||
|
||||
@GetMapping(PREFIX + "/page")
|
||||
@PostMapping(PREFIX + "/page")
|
||||
@Operation(summary = "获得物料持有属性分页")
|
||||
CommonResult<PageResult<MaterialHasPropertiesRespDTO>> getMaterialHasPropertiesPage(@Valid MaterialHasPropertiesPageReqDTO pageReqDTO);
|
||||
CommonResult<PageResult<MaterialHasPropertiesRespDTO>> getMaterialHasPropertiesPage(@Valid @RequestBody MaterialHasPropertiesPageReqDTO pageReqDTO);
|
||||
}
|
||||
|
||||
@@ -55,9 +55,9 @@ public interface MaterialInfomationApi {
|
||||
|
||||
@PostMapping(PREFIX + "/page")
|
||||
@Operation(summary = "获得物料信息分页")
|
||||
CommonResult<PageResult<MaterialInfomationRespDTO>> getMaterialInfomationPage(@Valid MaterialInfomationPageReqDTO pageReqDTO);
|
||||
CommonResult<PageResult<MaterialInfomationRespDTO>> getMaterialInfomationPage(@Valid @RequestBody MaterialInfomationPageReqDTO pageReqDTO);
|
||||
|
||||
@PostMapping(PREFIX + "/simple-page")
|
||||
@Operation(summary = "获得物料信息精简分页")
|
||||
CommonResult<PageResult<MaterialInfomationSimpleRespDTO>> getMaterialInfomationSimplePage(@Valid MaterialInfomationSimplePageReqDTO pageReqDTO);
|
||||
CommonResult<PageResult<MaterialInfomationSimpleRespDTO>> getMaterialInfomationSimplePage(@Valid @RequestBody MaterialInfomationSimplePageReqDTO pageReqDTO);
|
||||
}
|
||||
@@ -47,11 +47,11 @@ public interface MaterialPropertiesApi {
|
||||
@Operation(summary = "获得物料属性")
|
||||
CommonResult<MaterialPropertiesRespDTO> getMaterialProperties(@RequestParam("id") Long id);
|
||||
|
||||
@GetMapping(PREFIX + "/page")
|
||||
@PostMapping(PREFIX + "/page")
|
||||
@Operation(summary = "获得物料属性分页")
|
||||
CommonResult<PageResult<MaterialPropertiesRespDTO>> getMaterialPropertiesPage(@Valid MaterialPropertiesPageReqDTO pageReqDTO);
|
||||
CommonResult<PageResult<MaterialPropertiesRespDTO>> getMaterialPropertiesPage(@Valid @RequestBody MaterialPropertiesPageReqDTO pageReqDTO);
|
||||
|
||||
@GetMapping(PREFIX + "/simple-page")
|
||||
@PostMapping(PREFIX + "/simple-page")
|
||||
@Operation(summary = "获得物料属性精简分页")
|
||||
CommonResult<PageResult<MaterialPropertiesSimpleRespDTO>> getMaterialPropertiesSimplePage(@Valid MaterialPropertiesSimplePageReqDTO pageReqDTO);
|
||||
CommonResult<PageResult<MaterialPropertiesSimpleRespDTO>> getMaterialPropertiesSimplePage(@Valid @RequestBody MaterialPropertiesSimplePageReqDTO pageReqDTO);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user