店铺添加给默认角色

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 用户信息 * @return 用户信息
*/ */
// @GetMapping // @GetMapping

View File

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