店铺添加给默认角色

This commit is contained in:
张松
2025-02-13 10:53:36 +08:00
parent 3b28e63d67
commit 77ea92605a
2 changed files with 4 additions and 3 deletions

View File

@@ -30,7 +30,7 @@ public class UserController {
}
/**
* 用户信息获取
* 用户信息修改
* @return 用户信息
*/
// @GetMapping

View File

@@ -32,8 +32,9 @@ public class ShopInfoAddDTO {
private String lng;
@NotNull(message = "状态不为空")
private String detail;
@NotNull(message = "角色id不为空")
private Long roleId;
// @NotNull(message = "角色id不为空")
// todo 默认为管理员角色,后期调整
private Long roleId = 1L;
private String address;
private String phone;
}