|
@@ -8,6 +8,8 @@ import com.pavis.app.saasbacken.http.ResultBody;
|
|
|
import com.pavis.app.saasbacken.service.CheckModuleService;
|
|
|
import com.pavis.app.saasbacken.utils.HttpContextUtils;
|
|
|
import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiImplicitParam;
|
|
|
+import io.swagger.annotations.ApiImplicitParams;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -38,8 +40,8 @@ public class LabelController {
|
|
|
private CheckModuleService checkModuleService;
|
|
|
|
|
|
@PostMapping("/category/mod")
|
|
|
- @PreSaveLog("修改/删除/新增标签类目属性")
|
|
|
- @ApiOperation(value = "修改/删除/新增标签类目属性接口", notes = "修改/删除/新增标签类目属性接口")
|
|
|
+ @PreSaveLog("修改/新增标签类目属性")
|
|
|
+ @ApiOperation(value = "修改/新增标签类目属性接口", notes = "修改/新增标签类目属性接口")
|
|
|
public ResultBody modCategory(@RequestBody List<CategoryField> categoryFields){
|
|
|
HttpServletRequest request = HttpContextUtils.getHttpServletRequest();
|
|
|
String uri = request.getRequestURI();
|
|
@@ -53,7 +55,9 @@ public class LabelController {
|
|
|
|
|
|
@PostMapping("/category/del")
|
|
|
@PreSaveLog("删除标签类目属性")
|
|
|
- @ApiOperation(value = "删除标签类目属性接口", notes = "删除标签类目属性接口")
|
|
|
+ @ApiOperation(value = "删除标签类目属性接口", notes = "删除标签类目属性接口")@ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "ids", value = "获取标签类目属性的唯一标识id", required = false, dataType = "array", paramType = "path")
|
|
|
+ })
|
|
|
public ResultBody delCategory(@RequestBody List<String> ids){
|
|
|
HttpServletRequest request = HttpContextUtils.getHttpServletRequest();
|
|
|
String uri = request.getRequestURI();
|
|
@@ -94,6 +98,4 @@ public class LabelController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
}
|