types

package
v0.0.0-...-c55c97e Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddPolicyReq

type AddPolicyReq struct {
	Rules [][]string `json:"rules"`
}

type AddRoleReq

type AddRoleReq struct {
	RoleName string `json:"roleName"`
	ParentId int64  `json:"parentId"`
}

type AddRoleResp

type AddRoleResp struct {
	Role *Role `json:"role"`
}

type BaseClaims

type BaseClaims struct {
	ID          int64
	Username    string
	AuthorityId int64
}

type ChangePasswordReq

type ChangePasswordReq struct {
	OldPassword string `json:"oldPassword"`
	NewPassword string `json:"newPassword"`
}

type ChangePasswordResp

type ChangePasswordResp struct {
}

type CustomClaims

type CustomClaims struct {
	BaseClaims
	BufferTime int64
	jwt.RegisteredClaims
}

type DeleteUserReq

type DeleteUserReq struct {
	UserId int64 `json:"userId"`
}

type DeleteUserResp

type DeleteUserResp struct {
}

type LoginReq

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

type LoginResp

type LoginResp struct {
	Token string `json:"token"`
}

type QuerySelfInfoReq

type QuerySelfInfoReq struct {
	ID uint64 `json:"id,optional"`
}

type QuerySelfInfoResp

type QuerySelfInfoResp struct {
	User QueryUserDetailResp `json:"user"`
}

type QueryUserDetailReq

type QueryUserDetailReq struct {
	Id int64 `path:"id"`
}

type QueryUserDetailResp

type QueryUserDetailResp struct {
	Id        int64  `json:"id"`
	CreatedAt int64  `json:"createdAt"`
	UpdatedAt int64  `json:"updatedAt"`
	DeletedAt int64  `json:"deletedAt"`
	Username  string `json:"username"`
	Email     string `json:"email"`
	Phone     string `json:"phone"`
	Avatar    string `json:"avatar"`
	Role      int64  `json:"role"`
	Status    int32  `json:"status"`
	Nickname  string `json:"nickname"`
	Gender    int32  `json:"gender"`
	Major     string `json:"major"`
	Grade     string `json:"grade"`
	College   string `json:"college"`
	Realname  string `json:"realname"`
	Class     string `json:"class"`
}

type QueryUserListReq

type QueryUserListReq struct {
	Page     int32  `json:"page"`
	PageSize int32  `json:"pageSize"`
	Username string `json:"username,optional"`
	Email    string `json:"email,optional"`
	Phone    string `json:"phone,optional"`
	Nickname string `json:"nickname,optional"`
	Role     int64  `json:"role,optional"`
	Status   int32  `json:"status,optional"`
	Major    string `json:"major,optional"`
	Grade    string `json:"grade,optional"`
	College  string `json:"college,optional"`
	Realname string `json:"realname,optional"`
	Class    string `json:"class,optional"`
	Gender   int32  `json:"gender,optional"`
	OrderBy  string `json:"orderBy,optional"`
}

type QueryUserListResp

type QueryUserListResp struct {
	Total    int64                  `json:"total"`
	List     []*QueryUserDetailResp `json:"list"`
	Page     int32                  `json:"page"`
	PageSize int32                  `json:"pageSize"`
}

type RegisterReq

type RegisterReq struct {
	Username string `json:"username"`
	Password string `json:"password"`
	Email    string `json:"email,optional"`
	Phone    string `json:"phone,optional"`
	Nickname string `json:"nickname,optional"`
	Role     int64  `json:"role"`
	Gender   int32  `json:"gender"`
	Major    string `json:"major"`
	Grade    string `json:"grade"`
	College  string `json:"college"`
	Realname string `json:"realname"`
	Class    string `json:"class"`
}

type RegisterResp

type RegisterResp struct {
	User *QueryUserDetailResp `json:"user"`
}

type ResetPasswordReq

type ResetPasswordReq struct {
	UserId int64 `json:"userId"`
}

type ResetPasswordResp

type ResetPasswordResp struct {
}

type Role

type Role struct {
	RoleName  string `json:"roleName"`
	ParentId  int64  `json:"parentId"`
	CreatedAt int64  `json:"createdAt"`
	UpdatedAt int64  `json:"updatedAt"`
	ID        int64  `json:"id"`
}

type RoleTree

type RoleTree struct {
	Role     *Role       `json:"role"`
	Children []*RoleTree `json:"children"`
}

type RoleTreeReq

type RoleTreeReq struct {
	RoleName string `json:"roleName"`
	Page     int32  `json:"page"`
	PageSize int32  `json:"pageSize"`
}

type RoleTreeResp

type RoleTreeResp struct {
	Roles    []*RoleTree `json:"roles"`
	Total    int64       `json:"total"`
	Page     int32       `json:"page"`
	PageSize int32       `json:"pageSize"`
}

type SetSelfInfoReq

type SetSelfInfoReq struct {
	ID       uint64 `json:"id,optional"`
	Username string `json:"username"`
	Email    string `json:"email"`
	Phone    string `json:"phone"`
	Avatar   string `json:"avatar"`
	Role     int64  `json:"role"`
	Status   int32  `json:"status"`
	Nickname string `json:"nickname"`
	Gender   int32  `json:"gender"`
	Major    string `json:"major"`
	Grade    string `json:"grade"`
	College  string `json:"college"`
	Realname string `json:"realname"`
	Class    string `json:"class"`
}

type SetSelfInfoResp

type SetSelfInfoResp struct {
}

type SetUserInfoReq

type SetUserInfoReq struct {
	ID       int64  `json:"id"`
	Username string `json:"username"`
	Email    string `json:"email"`
	Phone    string `json:"phone"`
	Avatar   string `json:"avatar"`
	Role     int64  `json:"role"`
	Status   int32  `json:"status"`
	Nickname string `json:"nickname"`
	Gender   int32  `json:"gender"`
	Major    string `json:"major"`
	Grade    string `json:"grade"`
	College  string `json:"college"`
	Realname string `json:"realname"`
	Class    string `json:"class"`
}

type SetUserInfoResp

type SetUserInfoResp struct {
}

type SetUserRoleReq

type SetUserRoleReq struct {
	UserId  int64   `json:"userId"`
	RoleIds []int64 `json:"roleIds"`
}

type SetUserRoleResp

type SetUserRoleResp struct {
}

Jump to

Keyboard shortcuts

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