小程序页面 - 注释修改
This commit is contained in:
parent
a4f89151f4
commit
3f38571c5c
|
|
@ -24,8 +24,6 @@ public class MiniAppPagesController {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增小程序页面
|
* 新增小程序页面
|
||||||
* @param pagesDTO 小程序页面
|
|
||||||
* @return 结果
|
|
||||||
*/
|
*/
|
||||||
@PostMapping
|
@PostMapping
|
||||||
public CzgResult<Long> insertMiniAppPage(@RequestBody @Validated({InsertGroup.class}) MiniAppPagesDTO pagesDTO) {
|
public CzgResult<Long> insertMiniAppPage(@RequestBody @Validated({InsertGroup.class}) MiniAppPagesDTO pagesDTO) {
|
||||||
|
|
@ -34,8 +32,6 @@ public class MiniAppPagesController {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改小程序页面
|
* 修改小程序页面
|
||||||
* @param pagesDTO 小程序页面
|
|
||||||
* @return 结果
|
|
||||||
*/
|
*/
|
||||||
@PutMapping
|
@PutMapping
|
||||||
public CzgResult<Boolean> updateMiniAppPage(@RequestBody @Validated({UpdateGroup.class}) MiniAppPagesDTO pagesDTO) {
|
public CzgResult<Boolean> updateMiniAppPage(@RequestBody @Validated({UpdateGroup.class}) MiniAppPagesDTO pagesDTO) {
|
||||||
|
|
@ -45,7 +41,6 @@ public class MiniAppPagesController {
|
||||||
/**
|
/**
|
||||||
* 删除小程序页面
|
* 删除小程序页面
|
||||||
* @param id 小程序页面主键
|
* @param id 小程序页面主键
|
||||||
* @return 结果
|
|
||||||
*/
|
*/
|
||||||
@DeleteMapping("{id}")
|
@DeleteMapping("{id}")
|
||||||
public CzgResult<Boolean> deleteMiniAppPage(@PathVariable Long id) {
|
public CzgResult<Boolean> deleteMiniAppPage(@PathVariable Long id) {
|
||||||
|
|
@ -57,7 +52,6 @@ public class MiniAppPagesController {
|
||||||
* @param name 小程序页面名称
|
* @param name 小程序页面名称
|
||||||
* @param path 小程序页面路径
|
* @param path 小程序页面路径
|
||||||
* @param status 小程序页面状态 -1 查全部 1 启用 0 禁用
|
* @param status 小程序页面状态 -1 查全部 1 启用 0 禁用
|
||||||
* @return 结果
|
|
||||||
*/
|
*/
|
||||||
@GetMapping("page")
|
@GetMapping("page")
|
||||||
public CzgResult<Page<MiniAppPagesDTO>> getMiniAppPage(String name, String path, Integer status) {
|
public CzgResult<Page<MiniAppPagesDTO>> getMiniAppPage(String name, String path, Integer status) {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
package com.czg.system.dto;
|
package com.czg.system.dto;
|
||||||
|
|
||||||
import com.czg.validator.group.Group;
|
import com.czg.validator.group.InsertGroup;
|
||||||
import com.czg.validator.group.UpdateGroup;
|
import com.czg.validator.group.UpdateGroup;
|
||||||
import jakarta.validation.constraints.NotBlank;
|
import jakarta.validation.constraints.NotBlank;
|
||||||
import jakarta.validation.constraints.NotNull;
|
import jakarta.validation.constraints.NotNull;
|
||||||
|
|
@ -26,13 +26,13 @@ public class MiniAppPagesDTO {
|
||||||
/**
|
/**
|
||||||
* 页面名称
|
* 页面名称
|
||||||
*/
|
*/
|
||||||
@NotBlank(message = "页面路径不能为空", groups = {Group.class})
|
@NotBlank(message = "页面路径不能为空", groups = {InsertGroup.class, UpdateGroup.class})
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 页面路径
|
* 页面路径
|
||||||
*/
|
*/
|
||||||
@NotBlank(message = "页面路径不能为空", groups = {Group.class})
|
@NotBlank(message = "页面路径不能为空", groups = {InsertGroup.class, UpdateGroup.class})
|
||||||
private String path;
|
private String path;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue