店铺添加给默认角色
This commit is contained in:
@@ -30,7 +30,7 @@ public class UserController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户信息获取
|
* 用户信息修改
|
||||||
* @return 用户信息
|
* @return 用户信息
|
||||||
*/
|
*/
|
||||||
// @GetMapping
|
// @GetMapping
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user