api

package
v0.0.0-...-94be13e Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangePasswordRequest

type ChangePasswordRequest struct {
	Username        string `json:"username"`
	Password        string `json:"password"`
	NewPassword     string `json:"newPassword"`
	ConfirmPassword string `json:"confirmPassword"`
}

type DeleteUserRequest

type DeleteUserRequest struct {
	UserId int `json:"user_id"`
}

type TokenRequest

type TokenRequest struct {
	RefreshToken string `json:"refreshToken"`
}

type UpdateProfileRequest

type UpdateProfileRequest struct {
	UserId       int    `json:"user_id"`
	RealName     string `json:"real_name"`
	Desc         string `json:"desc"`
	Mobile       string `json:"mobile"`
	FeiShuUserId string `json:"fei_shu_user_id"`
	AccountType  int    `json:"account_type"`
	HomePath     string `json:"home_path"`
	Enable       int    `json:"enable"`
}

type UserHandler

type UserHandler struct {
	// contains filtered or unexported fields
}

func NewUserHandler

func NewUserHandler(service service.UserService, l *zap.Logger, ijwt ijwt.Handler) *UserHandler

func (*UserHandler) ChangePassword

func (u *UserHandler) ChangePassword(ctx *gin.Context)

func (*UserHandler) DeleteUser

func (u *UserHandler) DeleteUser(ctx *gin.Context)

func (*UserHandler) GetPermCode

func (u *UserHandler) GetPermCode(ctx *gin.Context)

func (*UserHandler) GetUserList

func (u *UserHandler) GetUserList(ctx *gin.Context)

func (*UserHandler) Login

func (u *UserHandler) Login(ctx *gin.Context)

func (*UserHandler) Logout

func (u *UserHandler) Logout(ctx *gin.Context)

func (*UserHandler) Profile

func (u *UserHandler) Profile(ctx *gin.Context)

func (*UserHandler) RefreshToken

func (u *UserHandler) RefreshToken(ctx *gin.Context)

func (*UserHandler) RegisterRoutes

func (u *UserHandler) RegisterRoutes(server *gin.Engine)

func (*UserHandler) SignUp

func (u *UserHandler) SignUp(ctx *gin.Context)

func (*UserHandler) UpdateProfile

func (u *UserHandler) UpdateProfile(ctx *gin.Context)

func (*UserHandler) WriteOff

func (u *UserHandler) WriteOff(ctx *gin.Context)

type WriteOffRequest

type WriteOffRequest struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

Jump to

Keyboard shortcuts

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