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