liuxiaolong
2019-10-14 95d4ec168178b0ea03ff2f80b33637b2dae70617
controllers/user.go
@@ -28,7 +28,7 @@
// @Param password query string true "密码"
// @Success 200 {string} json "{"code":200, success:true, msg:"", data:""}"
// @Failure 500 {string} json "{"code":500, success:false, msg:"", data:""}"
// @Router /data/api-v/sys/login [post]
// @Router /data/api-u/sys/login [post]
func (uc UserController) Login(c *gin.Context) {
   userName := c.PostForm("username")
   password := c.PostForm("password")
@@ -120,7 +120,7 @@
// @Param userVo body controllers.UserEditVo true "用户编辑信息"
// @Success 200 {string} json "{"code":200, success:true, msg:"", data:""}"
// @Failure 500 {string} json "{"code":500, success:false, msg:"",data:""}"
// @Router /data/api-v/users/edit [post]
// @Router /data/api-u/users/edit [post]
func (uc UserController) Edit(c *gin.Context) {
   var userEditVo UserEditVo
   err := c.BindJSON(&userEditVo)