|
|
@ -12,36 +12,48 @@ export const login = (data) => { |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
// @Summary 用户注册
|
|
|
|
// @Summary 获取验证码
|
|
|
|
// @Produce application/json
|
|
|
|
// @Param data body {username:"string",password:"string"}
|
|
|
|
// @Router /base/resige [post]
|
|
|
|
export const regist = (data) => { |
|
|
|
// @Router /base/captcha [post]
|
|
|
|
export const captcha = (data) => { |
|
|
|
return service({ |
|
|
|
url: "/base/regist", |
|
|
|
url: "/base/captcha", |
|
|
|
method: 'post', |
|
|
|
data: data |
|
|
|
}) |
|
|
|
} |
|
|
|
// @Summary 修改密码
|
|
|
|
|
|
|
|
// @Summary 用户注册
|
|
|
|
// @Produce application/json
|
|
|
|
// @Param data body {username:"string",password:"string",newPassword:"string"}
|
|
|
|
// @Router /user/changePassword [post]
|
|
|
|
// @Param data body {username:"string",password:"string"}
|
|
|
|
// @Router /base/resige [post]
|
|
|
|
export const regist = (data) => { |
|
|
|
return service({ |
|
|
|
url: "/base/regist", |
|
|
|
method: 'post', |
|
|
|
data: data |
|
|
|
}) |
|
|
|
} |
|
|
|
// @Summary 修改密码
|
|
|
|
// @Produce application/json
|
|
|
|
// @Param data body {username:"string",password:"string",newPassword:"string"}
|
|
|
|
// @Router /user/changePassword [post]
|
|
|
|
export const changePassword = (data) => { |
|
|
|
return service({ |
|
|
|
url: "/user/changePassword", |
|
|
|
method: 'post', |
|
|
|
data: data |
|
|
|
}) |
|
|
|
} |
|
|
|
// @Tags User
|
|
|
|
// @Summary 分页获取用户列表
|
|
|
|
// @Security ApiKeyAuth
|
|
|
|
// @accept application/json
|
|
|
|
// @Produce application/json
|
|
|
|
// @Param data body modelInterface.PageInfo true "分页获取用户列表"
|
|
|
|
// @Success 200 {string} json "{"success":true,"data":{},"msg":"获取成功"}"
|
|
|
|
// @Router /user/getUserList [post]
|
|
|
|
return service({ |
|
|
|
url: "/user/changePassword", |
|
|
|
method: 'post', |
|
|
|
data: data |
|
|
|
}) |
|
|
|
} |
|
|
|
// @Tags User
|
|
|
|
// @Summary 分页获取用户列表
|
|
|
|
// @Security ApiKeyAuth
|
|
|
|
// @accept application/json
|
|
|
|
// @Produce application/json
|
|
|
|
// @Param data body modelInterface.PageInfo true "分页获取用户列表"
|
|
|
|
// @Success 200 {string} json "{"success":true,"data":{},"msg":"获取成功"}"
|
|
|
|
// @Router /user/getUserList [post]
|
|
|
|
export const getUserList = (data) => { |
|
|
|
return service({ |
|
|
|
url: "/user/getUserList", |
|
|
|