user

package
v0.0.0-...-3a3bdc2 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func User

func User(ctx context.Context, c *app.RequestContext)

User .

@Summary 获取用户信息 @Description 根据用户请求获取对应的用户信息 @Tags 用户相关接口 @Accept json @Produce json @Param UHashID query string true "用户ID" @Success 200 {object} user.UserResponse "成功获取用户信息" @Failure 400 {object} common.BaseResponse "Invalid request" @Failure 500 {object} common.BaseResponse "Internal server error"

@router	/blog_server/user [GET]

func UserLogin

func UserLogin(ctx context.Context, c *app.RequestContext)

UserLogin 登录接口

@Summary		用户登录
@Description	用户通过提供用户名和密码登录账户
@Tags			用户相关接口
@Accept			json
@Produce		json
@Param			user	body		user.UserActionRequest	true	"用户登录请求参数"
@Success		200		{object}	user.UserActionResponse	"成功返回用户ID及状态信息"

@Failure 400 {object} common.BaseResponse "Invalid request" @Failure 500 {object} common.BaseResponse "Internal server error"

@router	/blog_server/user/login [POST]

func UserProfileModify

func UserProfileModify(ctx context.Context, c *app.RequestContext)

UserProfileModify .

@Summary		用户修改资料
@Description	用户通过上传新的头像,背景图片,或者更改用户签名来进行修改资料
@Tags			用户相关接口
@Accept			json
@Produce		json
@Param			user	body		user.UserActionProfileModifyRequest	true	"用户修改资料请求参数"
@Success		200		{object}	user.UserActionResponse	"成功返回用户ID及状态信息"

@Failure 400 {object} common.BaseResponse "Invalid request" @Failure 500 {object} common.BaseResponse "Internal server error"

@router	/blog_server/user/profile_modify [POST]

func UserPwdModify

func UserPwdModify(ctx context.Context, c *app.RequestContext)

UserPwdModify 密码修改接口

@Summary		用户修改密码
@Description	用户通过提供用户名,旧密码,新密码进行修改账户密码
@Tags			用户相关接口
@Accept			json
@Produce		json
@Param			user	body		user.UserActionPwdModifyRequest	true	"用户修改密码请求参数"
@Success		200		{object}	user.UserActionResponse	"成功返回用户ID及状态信息"

@Failure 400 {object} common.BaseResponse "Invalid request" @Failure 500 {object} common.BaseResponse "Internal server error"

@router	/blog_server/user/pwd_modify [POST]

func UserRegister

func UserRegister(ctx context.Context, c *app.RequestContext)

UserRegister 注册用户接口

@Summary		用户注册
@Description	用户通过提供用户名和密码注册账户
@Tags			用户相关接口
@Accept			json
@Produce		json
@Param			user	body		user.UserActionRequest	true	"用户注册请求参数"
@Success		200		{object}	user.UserActionResponse	"成功返回用户ID及状态信息"

@Failure 400 {object} common.BaseResponse "Invalid request" @Failure 500 {object} common.BaseResponse "Internal server error"

@Router			/blog_server/user/register [post]

Types

This section is empty.

Jump to

Keyboard shortcuts

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