Commit f2bf989b authored by haoyanbin's avatar haoyanbin

User

parent a0d7aa3c
......@@ -20,7 +20,7 @@ func registerOrgUserRouter(v1 *gin.RouterGroup, authMiddleware *jwt.GinJWTMiddle
r.GET("", api.GetPage)
r.GET("/:id", api.Get)
r.POST("", api.Insert)
r.PUT("/:id", api.Update)
r.PUT("/:userId", api.Update)
r.DELETE("", api.Delete)
}
......
......@@ -55,7 +55,7 @@ func (s *OrgUserInsertReq) GetId() interface{} {
}
type OrgUserUpdateReq struct {
UserId int `json:"-" comment:""` //
UserId int `uri:"userId" comment:""` //
RoleId string `json:"roleId" comment:"角色id"`
NickName string `json:"nickName" comment:"姓名"`
NickNameEn string `json:"nickNameEn" comment:"姓名"`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment