http

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: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(c *conf.Config, s *service.Service)

Init init account service.

Types

type V1Card

type V1Card struct {
	Mid         string  `json:"mid"`
	Name        string  `json:"name"`
	Approve     bool    `json:"approve"`
	Sex         string  `json:"sex"`
	Rank        string  `json:"rank"`
	Face        string  `json:"face"`
	DisplayRank string  `json:"DisplayRank"`
	Regtime     int64   `json:"regtime"`
	Spacesta    int     `json:"spacesta"`
	Birthday    string  `json:"birthday"`
	Place       string  `json:"place"`
	Description string  `json:"description"`
	Article     int     `json:"article"`
	Attentions  []int64 `json:"attentions"`
	Fans        int     `json:"fans"`
	Friend      int     `json:"friend"`
	Attention   int     `json:"attention"`
	Sign        string  `json:"sign"`
	LevelInfo   struct {
		Cur     int         `json:"current_level"`
		Min     int         `json:"current_min"`
		NowExp  int         `json:"current_exp"`
		NextExp interface{} `json:"next_exp"`
	} `json:"level_info"`
	Pendant        v1.PendantInfo    `json:"pendant"`
	Nameplate      v1.NameplateInfo  `json:"nameplate"`
	OfficialVerify model.OldOfficial `json:"official_verify"`
	Vip            struct {
		Type          int    `json:"vipType"`
		DueDate       int64  `json:"vipDueDate"`
		DueRemark     string `json:"dueRemark"`
		AccessStatus  int    `json:"accessStatus"`
		VipStatus     int    `json:"vipStatus"`
		VipStatusWarn string `json:"vipStatusWarn"`
	} `json:"vip"`
}

V1Card card

func (*V1Card) FromProfile

func (i *V1Card) FromProfile(c *model.ProfileStat)

FromProfile from profile.

type V1Info

type V1Info 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   struct {
		Cur     int         `json:"current_level"`
		Min     int         `json:"current_min"`
		NowExp  int         `json:"current_exp"`
		NextExp interface{} `json:"next_exp"`
	} `json:"level_info"`
	Pendant        v1.PendantInfo    `json:"pendant"`
	Nameplate      v1.NameplateInfo  `json:"nameplate"`
	OfficialVerify model.OldOfficial `json:"official_verify"`
	Vip            struct {
		Type          int    `json:"vipType"`
		DueDate       int64  `json:"vipDueDate"`
		DueRemark     string `json:"dueRemark"`
		AccessStatus  int    `json:"accessStatus"`
		VipStatus     int    `json:"vipStatus"`
		VipStatusWarn string `json:"vipStatusWarn"`
	} `json:"vip"`
}

V1Info info.

func (*V1Info) FromCard

func (i *V1Info) FromCard(c *v1.Card)

FromCard from card.

type V1Vip

type V1Vip struct {
	Type          int    `json:"vipType"`
	DueDate       int64  `json:"vipDueDate"`
	DueRemark     string `json:"dueRemark"`
	AccessStatus  int    `json:"accessStatus"`
	VipStatus     int    `json:"vipStatus"`
	VipStatusWarn string `json:"vipStatusWarn"`
}

V1Vip vip

func (*V1Vip) FromVip

func (v *V1Vip) FromVip(vi *v1.VipInfo)

FromVip from vip.

type V2MyInfo

type V2MyInfo struct {
	Mid            int64             `json:"mid"`
	Name           string            `json:"uname"`
	Face           string            `json:"face"`
	Rank           int32             `json:"rank"`
	Scores         int32             `json:"scores"`
	Coins          float64           `json:"coins"`
	Sex            int32             `json:"sex"`
	Sign           string            `json:"sign"`
	JoinTime       int32             `json:"jointime"`
	Spacesta       int32             `json:"spacesta"`
	Active         int32             `json:"active"`
	Silence        int32             `protobuf:"varint,12,opt,name=Silence,proto3" json:"silence"`
	EmailStatus    int32             `protobuf:"varint,13,opt,name=EmailStatus,proto3" json:"email_status"`
	TelStatus      int32             `protobuf:"varint,14,opt,name=TelStatus,proto3" json:"tel_status"`
	Identification int32             `protobuf:"varint,15,opt,name=Identification,proto3" json:"identification"`
	Moral          int32             `protobuf:"varint,16,opt,name=Moral,proto3" json:"moral"`
	Birthday       string            `protobuf:"bytes,17,opt,name=Birthday,proto3" json:"birthday"`
	Telephone      string            `protobuf:"bytes,18,opt,name=Telephone,proto3" json:"telephone"`
	Level          member.LevelInfo  `protobuf:"bytes,19,opt,name=Level" json:"level_info"`
	Pendant        v1.PendantInfo    `protobuf:"bytes,20,opt,name=Pendant" json:"pendant"`
	Nameplate      v1.NameplateInfo  `protobuf:"bytes,21,opt,name=Nameplate" json:"nameplate"`
	Official       model.OldOfficial `json:"official_verify"`
	Vip            struct {
		Type          int32  `protobuf:"varint,1,opt,name=Type,proto3" json:"vipType"`
		DueDate       int64  `protobuf:"varint,2,opt,name=DueDate,proto3" json:"vipDueDate"`
		DueRemark     string `protobuf:"bytes,3,opt,name=DueRemark,proto3" json:"dueRemark"`
		AccessStatus  int32  `protobuf:"varint,4,opt,name=AccessStatus,proto3" json:"accessStatus"`
		VipStatus     int32  `protobuf:"varint,5,opt,name=VipStatus,proto3" json:"vipStatus"`
		VipStatusWarn string `protobuf:"bytes,6,opt,name=VipStatusWarn,proto3" json:"vipStatusWarn"`
	} `json:"vip"`
}

V2MyInfo myinfo.

func (*V2MyInfo) FromProfile

func (i *V2MyInfo) FromProfile(c *model.ProfileStat)

FromProfile from profile.

Jump to

Keyboard shortcuts

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