init: UserBaseService (backend + deploy + scripts)
ci-userbase-service / build-and-push (push) Successful in 40s
ci-userbase-service / build-and-push (push) Successful in 40s
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
package com.yunhai.userbase.model.sysgroup;
|
||||
|
||||
import com.yunhai.userbase.common.validation.ValidationGroups;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
import javax.validation.constraints.NotBlank;
|
||||
|
||||
/**
|
||||
* @author chenx
|
||||
* @date 2026/7/20 16:00
|
||||
* @description 系统组新增/编辑请求
|
||||
*/
|
||||
@Data
|
||||
public class SysGroupRequest {
|
||||
// ID 通过路径参数传递,body 无需携带,故不在校验组内强制
|
||||
private Integer id;
|
||||
|
||||
@NotBlank(groups = {ValidationGroups.Create.class, ValidationGroups.Update.class}, message = "组名称不能为空")
|
||||
private String name;
|
||||
|
||||
// 新增时必填;编辑不通过此字段移动节点(移动请走 Move 接口),故编辑时可选
|
||||
@NotNull(groups = ValidationGroups.Create.class, message = "上级组ID不能为空")
|
||||
private Integer parentId;
|
||||
|
||||
// 新增时必填;编辑时可选(仅当需要变更类型时传入)
|
||||
@NotNull(groups = ValidationGroups.Create.class, message = "组类型不能为空")
|
||||
private Integer type;
|
||||
|
||||
private Integer sort;
|
||||
}
|
||||
Reference in New Issue
Block a user