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

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

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 ArgEquip

type ArgEquip struct {
	Mid    int64
	CardID int64 `form:"id" validate:"required,min=1,gte=1"`
}

ArgEquip card equip arg.

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) Descriptor() ([]byte, []int)

func (*UserEquip) Marshal

func (m *UserEquip) Marshal() (dAtA []byte, err error)

func (*UserEquip) MarshalTo

func (m *UserEquip) MarshalTo(dAtA []byte) (int, error)

func (*UserEquip) ProtoMessage

func (*UserEquip) ProtoMessage()

func (*UserEquip) Reset

func (m *UserEquip) Reset()

func (*UserEquip) Size

func (m *UserEquip) Size() (n int)

func (*UserEquip) String

func (m *UserEquip) String() string

func (*UserEquip) Unmarshal

func (m *UserEquip) Unmarshal(dAtA []byte) error

Jump to

Keyboard shortcuts

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