Documentation
¶
Overview ¶
Package model is a generated protocol buffer package.
It is generated from these files:
app/service/main/card/model/model.proto
It has these top-level messages:
UserEquip
Index ¶
- Constants
- Variables
- type AllGroupResp
- type ArgEquip
- type ArgMids
- type Card
- type CardGroup
- type GroupInfo
- type UserCard
- type UserEquip
- func (*UserEquip) Descriptor() ([]byte, []int)
- func (m *UserEquip) Marshal() (dAtA []byte, err error)
- func (m *UserEquip) MarshalTo(dAtA []byte) (int, error)
- func (*UserEquip) ProtoMessage()
- func (m *UserEquip) Reset()
- func (m *UserEquip) Size() (n int)
- func (m *UserEquip) String() string
- func (m *UserEquip) Unmarshal(dAtA []byte) error
Constants ¶
View Source
const ( CardTypeNone int32 = iota CardTypeVip CardTypeFree )
card type
View Source
const ( CardNotHot int32 = iota CardIsHot )
card is hot
Variables ¶
View Source
var ( ErrInvalidLengthModel = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowModel = fmt.Errorf("proto: integer overflow") )
View Source
var CardTypeNameMap = map[int32]string{ CardTypeNone: "", CardTypeVip: "大会员", CardTypeFree: "免费", }
CardTypeNameMap card name map.
Functions ¶
This section is empty.
Types ¶
type AllGroupResp ¶
type AllGroupResp struct { List []*GroupInfo `json:"list"` UserCard *UserCard `json:"user_card,omitempty"` }
AllGroupResp all group resp.
type ArgMids ¶
type ArgMids struct {
Mids []int64 `form:"mids,split" validate:"min=1,max=50"`
}
ArgMids card mids arg.
type Card ¶
type Card struct { ID int64 `json:"id"` Name string `json:"name"` State int32 `json:"state"` Deleted int32 `json:"deleted"` IsHot int32 `json:"is_hot"` CardURL string `json:"card_url"` BigCradURL string `json:"big_card_url"` CardType int32 `json:"card_type"` CardTypeName string `json:"card_type_name"` OrderNum int64 `json:"order_num"` GroupID int64 `json:"group_id"` Operator string `json:"operator"` Ctime time.Time `json:"ctime"` Mtime time.Time `json:"mtime"` }
Card info.
type CardGroup ¶
type CardGroup struct { ID int64 `json:"id"` Name string `json:"name"` State int8 `json:"state"` Deleted int8 `json:"deleted"` Operator string `json:"operator"` OrderNum int64 `json:"order_num"` Ctime time.Time `json:"ctime"` Mtime time.Time `json:"mtime"` }
CardGroup card group info.
type GroupInfo ¶
type GroupInfo struct { GroupID int64 `json:"group_id"` GroupName string `json:"group_name"` Cards []*Card `json:"cards"` OrderNum int64 `json:"-"` }
GroupInfo group info
type UserCard ¶
type UserCard struct { Mid int64 `json:"mid"` ID int64 `json:"id"` CardURL string `json:"card_url"` BigCradURL string `json:"big_card_url"` CardType int32 `json:"card_type"` Name string `json:"name"` ExpireTime int64 `json:"expire_time"` CardTypeName string `json:"card_type_name"` }
UserCard user card info.
type UserEquip ¶
type UserEquip struct { Mid int64 `protobuf:"varint,1,opt,name=Mid,proto3" json:"mid"` CardID int64 `protobuf:"varint,2,opt,name=CardID,proto3" json:"card_id"` ExpireTime int64 `protobuf:"varint,3,opt,name=ExpireTime,proto3" json:"expire_time"` }
func (*UserEquip) Descriptor ¶
func (*UserEquip) ProtoMessage ¶
func (*UserEquip) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.