feat: swagger接口文档更新1.0.8
This commit is contained in:
@@ -44,6 +44,15 @@ type SysProfileController struct {
|
||||
// 个人信息
|
||||
//
|
||||
// GET /
|
||||
//
|
||||
// @Tags system/user/profile
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Success 200 {object} object "Response Results"
|
||||
// @Security ApiKeyAuth
|
||||
// @Summary Personal Information
|
||||
// @Description Personal Information
|
||||
// @Router /system/user/profile [get]
|
||||
func (s *SysProfileController) Info(c *gin.Context) {
|
||||
language := ctx.AcceptLanguage(c)
|
||||
loginUser, err := ctx.LoginUser(c)
|
||||
@@ -86,6 +95,16 @@ func (s *SysProfileController) Info(c *gin.Context) {
|
||||
// 个人信息修改
|
||||
//
|
||||
// PUT /
|
||||
//
|
||||
// @Tags system/user/profile
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Param data body object true "Request Param"
|
||||
// @Success 200 {object} object "Response Results"
|
||||
// @Security ApiKeyAuth
|
||||
// @Summary Personal Information Modification
|
||||
// @Description Personal Information Modification
|
||||
// @Router /system/user/profile [put]
|
||||
func (s *SysProfileController) UpdateProfile(c *gin.Context) {
|
||||
language := ctx.AcceptLanguage(c)
|
||||
var body struct {
|
||||
@@ -183,6 +202,16 @@ func (s *SysProfileController) UpdateProfile(c *gin.Context) {
|
||||
// 个人重置密码
|
||||
//
|
||||
// PUT /updatePwd
|
||||
//
|
||||
// @Tags system/user/profile
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Param data body object true "Request Param"
|
||||
// @Success 200 {object} object "Response Results"
|
||||
// @Security ApiKeyAuth
|
||||
// @Summary Personal Reset Password
|
||||
// @Description Personal Reset Password
|
||||
// @Router /system/user/profile/updatePwd [put]
|
||||
func (s *SysProfileController) UpdatePwd(c *gin.Context) {
|
||||
language := ctx.AcceptLanguage(c)
|
||||
var body struct {
|
||||
@@ -249,6 +278,16 @@ func (s *SysProfileController) UpdatePwd(c *gin.Context) {
|
||||
// 个人头像上传
|
||||
//
|
||||
// POST /avatar
|
||||
//
|
||||
// @Tags system/user/profile
|
||||
// @Accept multipart/form-data
|
||||
// @Produce json
|
||||
// @Param file formData file true "The file to upload."
|
||||
// @Success 200 {object} object "Response Results"
|
||||
// @Security ApiKeyAuth
|
||||
// @Summary Personal avatar upload
|
||||
// @Description Personal avatar upload
|
||||
// @Router /system/user/profile/avatar [post]
|
||||
func (s *SysProfileController) Avatar(c *gin.Context) {
|
||||
language := ctx.AcceptLanguage(c)
|
||||
formFile, err := c.FormFile("file")
|
||||
|
||||
Reference in New Issue
Block a user