model

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccJavaInfo

type AccJavaInfo struct {
	Mid            int64 `json:"mid"`
	Scores         int32 `json:"scores"`
	JoinTime       int32 `json:"jointime"`
	Silence        int32 `json:"silence"`
	EmailStatus    int32 `json:"email_status"`
	TelStatus      int32 `json:"tel_status"`
	Identification int32 `json:"identification"`
	Moral          int32 `json:"moral"`
	Nameplate      struct {
		Nid        int    `json:"nid"`
		Name       string `json:"name"`
		Image      string `json:"image"`
		ImageSmall string `json:"image_small"`
		Level      string `json:"level"`
		Condition  string `json:"condition"`
	} `json:"nameplate"`
}

AccJavaInfo thin infomartion

type ArgExp

type ArgExp struct {
	Mid      int64
	Exp      float64
	Operater string
	Operate  string
	Reason   string
	RealIP   string
}

ArgExp is.

type ArgMid

type ArgMid struct {
	Mid int64
}

ArgMid is.

type ArgMids

type ArgMids struct {
	Mids []int64
}

ArgMids is.

type ArgMoral

type ArgMoral struct {
	Mid    int64
	Moral  float64
	Oper   string
	Reason string
	Remark string
	RealIP string
}

ArgMoral is.

type ArgNames

type ArgNames struct {
	Names []string
}

ArgNames is.

type ArgRelation

type ArgRelation struct {
	Mid, Owner int64
	RealIP     string
}

ArgRelation is.

type ArgRelations

type ArgRelations struct {
	Mid    int64
	Owners []int64
	RealIP string
}

ArgRelations is.

type ArgRichRelation

type ArgRichRelation struct {
	Owner  int64
	Mids   []int64
	RealIP string
}

ArgRichRelation is.

type Card

type Card = v1.Card

Card is the type alias v1.Card DEPRECATED: using v1.Card

type Info

type Info = v1.Info

Info is the type alias v1.Info DEPRECATED: using v1.Info

type NameplateInfo

type NameplateInfo = v1.NameplateInfo

NameplateInfo is the type alias v1.NameplateInfo DEPRECATED: using v1.NameplateInfo

type OfficialInfo

type OfficialInfo = v1.OfficialInfo

OfficialInfo is the type alias v1.OfficialInfo DEPRECATED: using v1.OfficialInfo

type OldInfo

type OldInfo struct {
	Mid         string           `json:"mid"`
	Name        string           `json:"uname"`
	Sex         string           `json:"sex"`
	Sign        string           `json:"sign"`
	Avatar      string           `json:"avatar"`
	Rank        string           `json:"rank"`
	DisplayRank string           `json:"DisplayRank"`
	LevelInfo   mmodel.LevelInfo `json:"level_info"`
	Official    OldOfficial      `json:"official_verify"`
	Vip         v1.VipInfo       `json:"vip"`
}

OldInfo old info.

func (*OldInfo) Info

func (oi *OldInfo) Info() *v1.Info

Info old info -> info.

type OldOfficial

type OldOfficial struct {
	Type int8   `json:"type"`
	Desc string `json:"desc"`
}

OldOfficial old official.

func CvtOfficial

func CvtOfficial(o v1.OfficialInfo) OldOfficial

CvtOfficial is used to convert to old official.

type Page

type Page struct {
	Num   int `json:"num"`
	Size  int `json:"size"`
	Total int `json:"total"`
}

Page page.

type ParamMid

type ParamMid struct {
	Mid int64 `form:"mid" validate:"gt=0,required"`
}

ParamMid is.

type ParamMids

type ParamMids struct {
	Mids []int64 `form:"mids,split" validate:"gt=0,dive,gt=0"`
}

ParamMids is.

type ParamModify

type ParamModify struct {
	Mid          int64  `form:"mid" validate:"gt=0,required"`
	ModifiedAttr string `form:"modifiedAttr" validate:"gt=0,required"`
}

ParamModify is.

type ParamMsg

type ParamMsg struct {
	// by notify
	Msg string `form:"msg"`
}

ParamMsg is.

type ParamNames

type ParamNames struct {
	Names []string `form:"names,split" validate:"gt=0,dive,gt=0"`
}

ParamNames is.

type PassportDetail

type PassportDetail struct {
	Mid       int64  `json:"mid"`
	Email     string `json:"email"`
	Phone     string `json:"telphone"`
	Spacesta  int8   `json:"spacesta"`
	JoinTime  int64  `json:"join_time"`
	IsTourist bool   `json:"is_tourist"`
}

PassportDetail detail.

type PassportProfile

type PassportProfile struct {
	Mid          int64      `json:"mid"`
	UName        string     `json:"uname"`
	UserID       string     `json:"user_id"`
	Telphone     string     `json:"telphone"`
	NickLock     int        `json:"nick_lock"`
	BindQQ       bool       `json:"bind_qq"`
	BindSina     bool       `json:"bind_sina"`
	SpaceSta     int        `json:"spacesta"`
	LoginTime    xtime.Time `json:"login_time"`
	LoginIP      string     `json:"login_ip"`
	JoinIP       string     `json:"join_ip"`
	JoinTime     xtime.Time `json:"join_time"`
	SafeQuestion int        `json:"safe_question"`
	CountryCode  int64      `json:"country_code"`
}

PassportProfile .

type PendantInfo

type PendantInfo = v1.PendantInfo

PendantInfo is the type alias v1.PendantInfo DEPRECATED: using v1.PendantInfo

type Privacy

type Privacy struct {
	Realname     string `json:"realname"`
	IdentityCard string `json:"identity_card"`
	IdentitySex  string `json:"identity_sex"`
	Tel          string `json:"tel"`
	RegIP        string `json:"reg_ip"`
	RegTS        int64  `json:"reg_ts"`
	HandIMG      string `json:"hand_img"`
}

Privacy .

type Profile

type Profile = v1.Profile

Profile is the type alias v1.Profile DEPRECATED: using v1.Profile

type ProfileStat

type ProfileStat struct {
	*v1.Profile
	LevelExp  mmodel.LevelInfo `json:"level_exp"`
	Coins     float64          `json:"coins"`
	Following int64            `json:"following"`
	Follower  int64            `json:"follower"`
}

ProfileStat profile with stat.

type Relation

type Relation struct {
	Following bool `json:"following"`
}

Relation relation.

type SearchMemberResult

type SearchMemberResult struct {
	Order  string `json:"order"`
	Sort   string `json:"sort"`
	Result []struct {
		Mid int64 `json:"mid"`
	} `json:"result"`
	Page Page `json:"page"`
}

SearchMemberResult is.

func (*SearchMemberResult) Mids

func (r *SearchMemberResult) Mids() []int64

Mids is.

type VipInfo

type VipInfo = v1.VipInfo

VipInfo is the type alias v1.VipInfo DEPRECATED: using v1.VipInfo

Directories

Path Synopsis
Package queue includes a regular queue and a priority queue.
Package queue includes a regular queue and a priority queue.

Jump to

Keyboard shortcuts

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