Documentation ¶
Index ¶
- Variables
- func GetMysqlDbHandle() *gorm.DB
- func InitGlobalOrm() error
- type CollectionList
- type EconomicsRecordList
- type EntertainmentRecordList
- type FansList
- type FollowList
- type GenerationRecord
- type HistoryList
- type MilitaryRecordList
- type OsObjectInfoList
- type PersonageRecordList
- type SportRecordList
- type ThemeCatalog
- type TopicList
- type UserInfo
- type UserView
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DbHandle = &gorm.DB{} MysqlLock = sync.RWMutex{} )
Functions ¶
func GetMysqlDbHandle ¶
func InitGlobalOrm ¶
func InitGlobalOrm() error
Types ¶
type CollectionList ¶
type CollectionList struct { gorm.Model PhoneNumber string `gorm:"column:phone_number;type:varchar(16)"` Name string `gorm:"column:name;type:varchar(128)"` Theme string `gorm:"column:theme;type:varchar(128)"` ThemeUuid string `gorm:"column:theme_uuid;type:varchar(128)"` }
收藏列表
func (*CollectionList) TableName ¶
func (*CollectionList) TableName() string
type EconomicsRecordList ¶
type EconomicsRecordList struct { gorm.Model Uuid string `json:"colume:uuid;type:varchar(128)"` Theme string `json:"colume:Theme;type:varchar(128)"` Keyword string `json:"colume:keyword;type:varchar(128)"` }
经济记录
func (*EconomicsRecordList) TableName ¶
func (*EconomicsRecordList) TableName() string
type EntertainmentRecordList ¶
type EntertainmentRecordList struct { gorm.Model Uuid string `json:"colume:uuid;type:varchar(128)"` Theme string `json:"colume:Theme;type:varchar(128)"` Keyword string `json:"colume:keyword;type:varchar(128)"` }
娱乐记录
func (*EntertainmentRecordList) TableName ¶
func (*EntertainmentRecordList) TableName() string
type FansList ¶
type FansList struct { gorm.Model PhoneNumber string `gorm:"column:phone_number;type:varchar(16)"` Name string `gorm:"column:name;type:varchar(128)"` FansNames string `gorm:"column:fans_name;type:varchar(128)"` FansUuid string `gorm:"column:fans_uuid;type:varchar(128)"` }
粉丝列表
type FollowList ¶
type FollowList struct { gorm.Model PhoneNumber string `gorm:"column:phone_number;type:varchar(16)"` Name string `gorm:"column:name;type:varchar(128)"` StarName string `gorm:"column:star_name;type:varchar(128)"` StarUuid string `gorm:"column:star_uuid;type:varchar(128)"` }
关注列表
func (*FollowList) TableName ¶
func (*FollowList) TableName() string
type GenerationRecord ¶
type GenerationRecord struct { gorm.Model Uuid string `json:"colume:uuid;type:varchar(128)"` Theme string `json:"colume:theme;type:varchar(128)"` Keyword string `json:"colume:keyword;type:varchar(128)"` }
通用记录列表数据结构
type HistoryList ¶
type HistoryList struct { gorm.Model PhoneNumber string `gorm:"column:phone_number;type:varchar(16)"` Name string `gorm:"column:name;type:varchar(128)"` Theme string `gorm:"column:theme;type:varchar(128)"` ThemeUuid string `gorm:"column:theme_uuid;type:varchar(128)"` }
浏览记录列表
func (*HistoryList) TableName ¶
func (*HistoryList) TableName() string
type MilitaryRecordList ¶
type MilitaryRecordList struct { gorm.Model Uuid string `json:"colume:uuid;type:varchar(128)"` Theme string `json:"colume:Theme;type:varchar(128)"` Keyword string `json:"colume:keyword;type:varchar(128)"` }
军事记录
func (*MilitaryRecordList) TableName ¶
func (*MilitaryRecordList) TableName() string
type OsObjectInfoList ¶
type OsObjectInfoList struct { gorm.Model Catalog string `json:"colume:catalog;type:varchar(32)"` ObjectKey string `json:"colume:object_key;type:varchar(128)"` }
上传文件(普通文件、图片、语音、长视频,短视频)的对象存储元数据(objectKey)记录表
func (*OsObjectInfoList) TableName ¶
func (*OsObjectInfoList) TableName() string
type PersonageRecordList ¶
type PersonageRecordList struct { gorm.Model Uuid string `json:"colume:uuid;type:varchar(128)"` Theme string `json:"colume:theme;type:varchar(128)"` Keyword string `json:"colume:keyword;type:varchar(128)"` }
人物记录
func (*PersonageRecordList) TableName ¶
func (*PersonageRecordList) TableName() string
type SportRecordList ¶
type SportRecordList struct { gorm.Model Uuid string `json:"colume:uuid;type:varchar(128)"` Theme string `json:"colume:Theme;type:varchar(128)"` Keyword string `json:"colume:keyword;type:varchar(128)"` }
体育记录
func (*SportRecordList) TableName ¶
func (*SportRecordList) TableName() string
type TopicList ¶
type TopicList struct { gorm.Model PhoneNumber string `gorm:"column:phone_number;type:varchar(16)"` Name string `gorm:"column:name;type:varchar(128)"` GroupName string `gorm:"column:group_name;type:varchar(128)"` GroupUuid string `gorm:"column:group_uuid;type:varchar(128)"` }
话题列表
type UserInfo ¶
type UserInfo struct { gorm.Model Uuid string `gorm:"column:uuid;type:varchar(128)"` Name string `gorm:"column:name;type:varchar(128)"` Password string `gorm:"column:password;type:varchar(128)"` PhoneNumber string `gorm:"column:phone_number;type:varchar(16)"` VerificationCode string `gorm:"column:verification_code;type:varchar(8)"` Email string `gorm:"column:email;type:varchar(128)"` Token string `gorm:"column:token;type:varchar(256)"` RefreshToken string `gorm:"column:refresh_token;type:varchar(256)"` Secret string `gorm:"column:secret;type:varchar(8)"` HeadImage string `gorm:"column:head_image;type:varchar(256)"` }
用户信息
type UserView ¶
type UserView struct { gorm.Model PhoneNumber string `gorm:"column:phone_number;type:varchar(16)"` Name string `gorm:"column:name;type:varchar(128)"` CollectionNumber string `gorm:"column:collection_number;type:int"` HistoryNumber string `gorm:"column:history_number;type:int"` FansNumber string `gorm:"column:fans_number;type:int"` FollowNumber string `gorm:"column:follow_number;type:int"` TopicNumber string `gorm:"column:topic_number;type:int"` }
用户视图,收藏、浏览记录、粉丝、关注、话题数据
Click to show internal directories.
Click to hide internal directories.