feat:完善项目

This commit is contained in:
henry
2021-11-02 16:22:07 +08:00
parent 690cd96bed
commit 20d81825e1
81 changed files with 5394 additions and 3700 deletions

View File

@ -6,11 +6,13 @@ import (
)
type Session struct {
UID uint64 `json:"uid"` // 用户ID
Token string `json:"token"` // token
TenantID uint64 `json:"tenant_id"` // 租户ID
Name string `json:"name"` // 名称
SessionKey string `json:"session_key"` // 用户信息
Token string `json:"token"` // token
UID uint64 `json:"uid"` // 用户ID
TenantID uint64 `json:"tenant_id"` // 租户ID
Name string `json:"name"` // 名称
Avatar string `json:"avatar"` // 头像
Mobile string `json:"mobile"` // 联系方式
IsAdmin bool `json:"is_admin"` // 超管
}
func (this *Session) MarshalBinary() ([]byte, error) {