图库需求
This commit is contained in:
@@ -28,6 +28,9 @@ import java.util.List;
|
||||
public class ProdGroupController {
|
||||
private final ProdGroupService prodGroupService;
|
||||
|
||||
/**
|
||||
* 分页
|
||||
*/
|
||||
@GetMapping("page")
|
||||
@OperationLog("商品分组-分页")
|
||||
//@SaAdminCheckPermission("prodGroup:page")
|
||||
@@ -36,6 +39,9 @@ public class ProdGroupController {
|
||||
return CzgResult.success(data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 列表
|
||||
*/
|
||||
@GetMapping("list")
|
||||
@OperationLog("商品分组-列表")
|
||||
//@SaAdminCheckPermission("prodGroup:list")
|
||||
@@ -44,6 +50,11 @@ public class ProdGroupController {
|
||||
return CzgResult.success(data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 详情
|
||||
*
|
||||
* @param id 分组id
|
||||
*/
|
||||
@GetMapping("{id}")
|
||||
@OperationLog("商品分组-详情")
|
||||
//@SaAdminCheckPermission("prodGroup:info")
|
||||
@@ -53,6 +64,9 @@ public class ProdGroupController {
|
||||
return CzgResult.success(data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*/
|
||||
@PostMapping
|
||||
@OperationLog("商品分组-新增")
|
||||
//@SaAdminCheckPermission("prodGroup:add")
|
||||
@@ -61,6 +75,9 @@ public class ProdGroupController {
|
||||
return CzgResult.success();
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*/
|
||||
@PutMapping
|
||||
@OperationLog("商品分组-修改")
|
||||
//@SaAdminCheckPermission("prodGroup:update")
|
||||
@@ -69,6 +86,9 @@ public class ProdGroupController {
|
||||
return CzgResult.success();
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
@DeleteMapping("{id}")
|
||||
@OperationLog("商品分组-删除")
|
||||
//@SaAdminCheckPermission("prodGroup:delete")
|
||||
@@ -79,6 +99,9 @@ public class ProdGroupController {
|
||||
return CzgResult.success();
|
||||
}
|
||||
|
||||
/**
|
||||
* 禁用
|
||||
*/
|
||||
@PostMapping("disable/{id}")
|
||||
@OperationLog("商品分组-禁用")
|
||||
//@SaAdminCheckPermission("prodGroup:able")
|
||||
@@ -89,6 +112,9 @@ public class ProdGroupController {
|
||||
return CzgResult.success();
|
||||
}
|
||||
|
||||
/**
|
||||
* 启用
|
||||
*/
|
||||
@PostMapping("enable/{id}")
|
||||
@OperationLog("商品分组-启用")
|
||||
//@SaAdminCheckPermission("prodGroup:able")
|
||||
|
||||
Reference in New Issue
Block a user