Versions in this module Expand all Collapse all v0 v0.7.0 Jun 19, 2020 Changes in this version type Query + Num *int + Total *int v0.6.1 Jun 5, 2020 Changes in this version type Query + func (q *Query) Validate() error v0.6.0 Jun 4, 2020 Changes in this version type AddressPure + Note *string v0.5.4 May 31, 2020 Changes in this version + type MessageStatus struct + Unread int64 v0.5.3 May 30, 2020 Changes in this version type AddressPure + StreetCode string v0.5.2 May 28, 2020 v0.5.1 May 28, 2020 v0.5.0 May 28, 2020 v0.4.1 May 27, 2020 v0.4.0 May 26, 2020 Changes in this version + type Config struct + CreatedAt string + Fields interface{} + UpdatedAt string + type Name struct + Description string + Field string v0.3.0 May 18, 2020 Changes in this version + type MenuTreeItem struct + Children []*MenuTreeItem type Response + Meta *Meta + func (r Response) Decode(dest interface{}) (err error) v0.2.1 May 13, 2020 v0.2.0 May 12, 2020 Changes in this version + const StatusFail + const StatusSuccess + var DefaultLimit = 10 + var DefaultPage = 0 + var DefaultSort = "-created_at" + var MaxLimit = 100 + var OrderAsc Order = "ASC" + var OrderDesc Order = "DESC" + type Address struct + CreatedAt string + UpdatedAt string + type AddressPure struct + Address string + AreaCode string + CityCode string + Id string + IsDefault bool + Name string + Phone string + ProvinceCode string + type AdminProfile struct + CreatedAt string + UpdatedAt string + type AdminProfilePure struct + Accession []string + Id string + IsSuper bool + Name string + Status model.AdminStatus + Username string + type AdminProfileWithToken struct + Token string + type Area struct + Area map[string]string + City map[string]string + Province map[string]string + type Banner struct + CreatedAt string + UpdatedAt string + type BannerPure struct + Description *string + FallbackUrl *string + Href string + Id string + Identifier *string + Image string + Platform model.BannerPlatform + Priority *string + type FileResponse struct + DownloadPath string + Filename string + Hash string + Origin string + RawPath string + Size int64 + type Help struct + CreatedAt string + UpdatedAt string + type HelpPure struct + Content string + Id string + ParentId *string + Status model.HelpStatus + Tags []string + Title string + Type model.HelpType + type Invite struct + CreatedAt string + UpdatedAt string + type InvitePure struct + Id string + Invitee string + Inviter string + RewardSettled bool + Status int32 + type List struct + Meta *Meta + type LogLogin struct + CreatedAt string + UpdatedAt string + User ProfilePublic + type LogLoginPure struct + Client string + Command int + Id string + LastIp string + Type int + Uid string + type Menu struct + Children []Menu + CreatedAt string + UpdatedAt string + type MenuPure struct + Accession []string + Icon string + Id string + Name string + ParentId string + Sort int + Url string + type Message struct + CreatedAt string + ReadAt *string + UpdatedAt string + type MessageAdmin struct + CreatedAt string + ReadAt *string + UpdatedAt string + type MessagePure struct + Content string + Id string + Note *string + Read bool + Title string + type MessagePureAdmin struct + Content string + Id string + Note *string + Read bool + Title string + Uid string + type Meta struct + Limit int + Num int + Page int + Platform *string + Sort string + Total int64 + type News struct + CreatedAt string + UpdatedAt string + type NewsPure struct + Author string + Content string + Id string + Status model.NewsStatus + Tags []string + Title string + Type model.NewsType + type Notification struct + CreatedAt string + UpdatedAt string + type NotificationAdmin struct + CreatedAt string + UpdatedAt string + type NotificationPure struct + Content string + Id string + Note *string + Read bool + ReadAt string + Title string + type NotificationPureAdmin struct + Author string + Content string + Id string + Note *string + Title string + type Order string + type Profile struct + CreatedAt string + PayPassword bool + UpdatedAt string + Wechat *WechatBindingInfo + type ProfilePublic struct + Avatar string + Id string + Nickname *string + Username string + type ProfilePure struct + Avatar string + Email *string + Gender int + Id string + InviteCode string + Level int32 + Nickname *string + Phone *string + Role []string + Status int32 + Username string + UsernameRenameRemaining int + type ProfileWithToken struct + Token string + type Query struct + Limit int + Page int + Platform *string + Sort string + func NewQuery() *Query + func (q *Query) FormatSort() (fields []Sort) + func (q *Query) Normalize() *Query + func (q *Query) Order(db *gorm.DB) *gorm.DB + type Report struct + CreatedAt string + UpdatedAt string + type ReportPure struct + Content string + Id string + Locked bool + Screenshots []string + Status model.ReportStatus + Title string + Type model.ReportType + Uid string + type Response struct + Data interface{} + Message string + Status int + type Role struct + CreatedAt string + UpdatedAt string + type RolePure struct + Accession []string + BuildIn bool + Description string + Name string + Note *string + type Sort struct + Field string + Order Order + type TransferLog struct + CreatedAt string + UpdatedAt string + type TransferLogPure struct + Amount string + Currency string + From string + Id string + Note *string + Status model.TransferStatus + To string + type Wallet struct + CreatedAt string + UpdatedAt string + type WalletPure struct + Balance string + Currency string + Frozen string + Id string + type WechatBindingInfo struct + AvatarUrl string + City string + Country string + Gender int + Language string + Nickname string + Province string