feat: 删除平台客服角色,客服查询并入发货订单 Tab
This commit is contained in:
@@ -44,7 +44,6 @@ type createPlatformAdminReq struct {
|
||||
Username string `json:"username" binding:"required"`
|
||||
Password string `json:"password" binding:"required,min=6"`
|
||||
Nickname string `json:"nickname"`
|
||||
Role string `json:"role"`
|
||||
}
|
||||
|
||||
func (h *UserHandler) CreatePlatformAdmin(c *gin.Context) {
|
||||
@@ -53,7 +52,7 @@ func (h *UserHandler) CreatePlatformAdmin(c *gin.Context) {
|
||||
response.BadRequest(c, "参数错误")
|
||||
return
|
||||
}
|
||||
user, err := h.svc.CreatePlatformUser(req.Username, req.Password, req.Nickname, req.Role)
|
||||
user, err := h.svc.CreatePlatformUser(req.Username, req.Password, req.Nickname)
|
||||
if err != nil {
|
||||
response.BadRequest(c, err.Error())
|
||||
return
|
||||
@@ -66,7 +65,6 @@ type updatePlatformAdminReq struct {
|
||||
Nickname string `json:"nickname"`
|
||||
Password string `json:"password" binding:"omitempty,min=6"`
|
||||
Status int `json:"status"`
|
||||
Role string `json:"role"`
|
||||
}
|
||||
|
||||
func (h *UserHandler) UpdatePlatformAdmin(c *gin.Context) {
|
||||
@@ -81,7 +79,6 @@ func (h *UserHandler) UpdatePlatformAdmin(c *gin.Context) {
|
||||
Nickname: req.Nickname,
|
||||
Password: req.Password,
|
||||
Status: req.Status,
|
||||
Role: req.Role,
|
||||
}, middleware.GetUserID(c))
|
||||
if err != nil {
|
||||
response.BadRequest(c, err.Error())
|
||||
|
||||
Reference in New Issue
Block a user