用户租户id设置默认值
This commit is contained in:
@@ -2,13 +2,15 @@ package com.sdm.common.entity.req.system;
|
||||
|
||||
import com.sdm.common.entity.BaseReq;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
|
||||
@Schema(description = "用户列表查询请求参数")
|
||||
@Data
|
||||
public class UserListReq extends BaseReq {
|
||||
@Schema(description = "租户ID")
|
||||
private Long tenantId;
|
||||
@NotNull(message = "租户ID不能为空")
|
||||
private Long tenantId = 1979091834410176514L;
|
||||
|
||||
@Schema(description = "用户ID")
|
||||
private Long userId;
|
||||
|
||||
@@ -1,16 +1,20 @@
|
||||
package com.sdm.common.entity.req.system;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
|
||||
import java.lang.annotation.Native;
|
||||
|
||||
@Schema(description = "用户详情查询请求参数")
|
||||
@Data
|
||||
public class UserQueryReq {
|
||||
@Schema(description = "用户ID")
|
||||
@NotNull(message = "用户ID不能为空")
|
||||
private Long userId;
|
||||
|
||||
@Schema(description = "用户名")
|
||||
private String userName;
|
||||
|
||||
private Long tenantId;
|
||||
private Long tenantId = 1979091834410176514L;
|
||||
}
|
||||
Reference in New Issue
Block a user