v1

package
v0.3.7-alpha2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2022 License: Apache-2.0 Imports: 22 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteUser

func DeleteUser(c *gin.Context)

*

  • @description:
  • @param {path} id string "user id"
  • @method:DELETE
  • @router:/user/delete/:id

func DeleteUserAll

func DeleteUserAll(c *gin.Context)

func DeleteUserCustomConf

func DeleteUserCustomConf(c *gin.Context)

*

  • @description: delete user custom config
  • @param {path} key string
  • @method:delete
  • @router:/user/custom/:key

func DeleteUserImage

func DeleteUserImage(c *gin.Context)

func GetUserAllUsername

func GetUserAllUsername(c *gin.Context)

*

  • @description: get all Usernames
  • @method:GET
  • @router:/user/all/name

func GetUserCustomConf

func GetUserCustomConf(c *gin.Context)

*

  • @description:get custom file by user
  • @param {path} name string "file name"
  • @method: GET
  • @router: /user/custom/:key

func GetUserImage

func GetUserImage(c *gin.Context)

*

  • @description: get current user's image
  • @method:GET
  • @router:/user/image/:id

func GetUserInfo

func GetUserInfo(c *gin.Context)

@Summary get user info @Produce application/json @Accept application/json @Tags user @Success 200 {string} string "ok" @Router /user/info/:id [get]

func GetUserInfoByUsername

func GetUserInfoByUsername(c *gin.Context)

*

  • @description:
  • @param {*gin.Context} c
  • @param {string} Username
  • @return {*}
  • @method:
  • @router:

func GetUserStatus

func GetUserStatus(c *gin.Context)

@Summary 检查是否进入引导状态 @Produce application/json @Accept application/json @Tags sys @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /sys/init/check [get]

func PostUserCustomConf

func PostUserCustomConf(c *gin.Context)

*

  • @description:create or update custom conf by user
  • @param {path} name string "file name"
  • @method:POST
  • @router:/user/custom/:key

func PostUserLogin

func PostUserLogin(c *gin.Context)

@Summary login @Produce application/json @Accept application/json @Tags user @Param user_name query string true "User name" @Param pwd query string true "password" @Success 200 {string} string "ok" @Router /user/login [post]

func PostUserRefreshToken

func PostUserRefreshToken(c *gin.Context)

*

  • @description:
  • @param {*gin.Context} c
  • @param {string} refresh_token
  • @return {*}
  • @method:
  • @router:

func PostUserRegister

func PostUserRegister(c *gin.Context)

@Summary register user @Router /user/register/ [post]

func PostUserUploadImage

func PostUserUploadImage(c *gin.Context)

* * @description: * @param {*gin.Context} c * @param {file} file * @param {string} key * @param {string} type:avatar,background * @return {*} * @method: * @router:

func PutUserAvatar

func PutUserAvatar(c *gin.Context)

@Summary edit user head @Produce application/json @Accept multipart/form-data @Tags user @Param file formData file true "用户头像" @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /user/avatar [put]

func PutUserDesc

func PutUserDesc(c *gin.Context)

@Summary edit user description @Produce application/json @Accept multipart/form-data @Tags user @Param description formData string false "Description" @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /user/desc [put]

func PutUserImage

func PutUserImage(c *gin.Context)

*

  • @description:update user image
  • @method:POST
  • @router:/user/current/image/:key

func PutUserInfo

func PutUserInfo(c *gin.Context)

@Summary edit user name @Produce application/json @Accept application/json @Tags user @Param old_name query string true "Old user name" @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /user/name/:id [put]

func PutUserNick

func PutUserNick(c *gin.Context)

@Summary edit user nick @Produce application/json @Accept application/json @Tags user @Param nick_name query string false "nick name" @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /user/nick [put]

func PutUserPassword

func PutUserPassword(c *gin.Context)

@Summary edit user password @Produce application/json @Accept application/json @Tags user @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /user/password/:id [put]

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL