protocol

package
v0.0.1-rc01 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppDataResp

type AppDataResp struct {
	Config map[string][]*syspub.ConfigDTO `json:"config"`
	Dict   map[string][]*syspub.DictDTO   `json:"dict"`
}

type LoginReq

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

type LoginResp

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

type UpdateUserPwdReq

type UpdateUserPwdReq struct {
	ID  int64  `json:"id"`
	Pwd string `json:"pwd"`
}

type UserInfo

type UserInfo struct {
	UID      int64  `json:"uid"`
	Username string `json:"username"`
	Nickname string `json:"nickname"`
	Email    string `json:"email"`
	Avatar   string `json:"avatar"`
	Phone    string `json:"phone"`
}

func BuildUserInfo

func BuildUserInfo(e *entity.SysUser) *UserInfo

type UserInfoResp

type UserInfoResp struct {
	UserInfo *UserInfo `json:"user_info"`
}

Jump to

Keyboard shortcuts

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