bws

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 bws is a generated protocol buffer package.

It is generated from these files:

bws.proto

It has these top-level messages:

Users
Point
Points
Achievement
Achievements

Index

Constants

View Source
const (
	GameResWin  = 1
	GameResFail = 2
)

GameRes .

Variables

View Source
var (
	ErrInvalidLengthBws = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowBws   = fmt.Errorf("proto: integer overflow")
)

Functions

This section is empty.

Types

type Achievement

type Achievement struct {
	ID            int64                       `protobuf:"varint,1,opt,name=ID,proto3" json:"id"`
	Name          string                      `protobuf:"bytes,2,opt,name=Name,proto3" json:"name"`
	Icon          string                      `protobuf:"bytes,3,opt,name=Icon,proto3" json:"icon"`
	Dic           string                      `protobuf:"bytes,4,opt,name=Dic,proto3" json:"dic"`
	LockType      int64                       `protobuf:"varint,5,opt,name=LockType,proto3" json:"lockType"`
	Unlock        int64                       `protobuf:"varint,6,opt,name=Unlock,proto3" json:"unlock"`
	Bid           int64                       `protobuf:"varint,7,opt,name=Bid,proto3" json:"bid"`
	IconBig       string                      `protobuf:"bytes,8,opt,name=IconBig,proto3" json:"icon_big"`
	IconActive    string                      `protobuf:"bytes,9,opt,name=IconActive,proto3" json:"icon_active"`
	IconActiveBig string                      `protobuf:"bytes,10,opt,name=IconActiveBig,proto3" json:"icon_active_big"`
	Award         int64                       `protobuf:"varint,11,opt,name=Award,proto3" json:"award"`
	UserCount     int64                       `protobuf:"varint,12,opt,name=UserCount,proto3" json:"user_count"`
	Ctime         go_common_library_time.Time `protobuf:"varint,13,opt,name=Ctime,proto3,casttype=go-common/library/time.Time" json:"ctime"`
	Mtime         go_common_library_time.Time `protobuf:"varint,14,opt,name=Mtime,proto3,casttype=go-common/library/time.Time" json:"mtime"`
	Image         string                      `protobuf:"bytes,15,opt,name=Image,proto3" json:"image"`
	SuitID        int64                       `protobuf:"varint,16,opt,name=SuitID,proto3" json:"suit_id"`
}

func (*Achievement) Descriptor

func (*Achievement) Descriptor() ([]byte, []int)

func (*Achievement) Marshal

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

func (*Achievement) MarshalTo

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

func (*Achievement) ProtoMessage

func (*Achievement) ProtoMessage()

func (*Achievement) Reset

func (m *Achievement) Reset()

func (*Achievement) Size

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

func (*Achievement) String

func (m *Achievement) String() string

func (*Achievement) Unmarshal

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

type Achievements

type Achievements struct {
	Achievements []*Achievement `protobuf:"bytes,1,rep,name=achievements" json:"achievements,omitempty"`
}

func (*Achievements) Descriptor

func (*Achievements) Descriptor() ([]byte, []int)

func (*Achievements) Marshal

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

func (*Achievements) MarshalTo

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

func (*Achievements) ProtoMessage

func (*Achievements) ProtoMessage()

func (*Achievements) Reset

func (m *Achievements) Reset()

func (*Achievements) Size

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

func (*Achievements) String

func (m *Achievements) String() string

func (*Achievements) Unmarshal

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

type AdminInfo

type AdminInfo struct {
	IsAdmin bool        `json:"is_admin"`
	Point   interface{} `json:"point"`
}

AdminInfo .

type CountAchieves

type CountAchieves struct {
	Aid   int64 `json:"aid"`
	Count int64 `json:"count"`
}

CountAchieves count achieve

type LotteryUser

type LotteryUser struct {
	Mid  int64  `json:"mid"`
	Name string `json:"name"`
	Face string `json:"face"`
}

LotteryUser .

type ParamAward

type ParamAward struct {
	Bid int64  `form:"bid" validate:"required"`
	Aid int64  `form:"aid" validate:"required"`
	Key string `form:"key"`
	Mid int64  `form:"mid"`
}

ParamAward point or achievements id param

type ParamBinding

type ParamBinding struct {
	Bid int64  `form:"bid" validate:"required"`
	Key string `form:"key" validate:"required"`
}

ParamBinding binding param

type ParamID

type ParamID struct {
	Bid int64  `form:"bid" validate:"required"`
	ID  int64  `form:"id"`
	Day string `form:"day"`
}

ParamID point or achievements id param

type ParamPoints

type ParamPoints struct {
	Bid int64 `form:"bid" validate:"required"`
	Tp  int64 `form:"tp"`
}

ParamPoints points param

type ParamUnlock

type ParamUnlock struct {
	Bid        int64  `form:"bid" validate:"required"`
	Pid        int64  `form:"pid" validate:"required"`
	Key        string `form:"key"`
	Mid        int64  `form:"mid"`
	GameResult int    `form:"game_result"`
}

ParamUnlock .

type Point

type Point struct {
	ID           int64                       `protobuf:"varint,1,opt,name=ID,proto3" json:"id"`
	Name         string                      `protobuf:"bytes,2,opt,name=Name,proto3" json:"name"`
	Icon         string                      `protobuf:"bytes,3,opt,name=Icon,proto3" json:"icon"`
	Fid          int64                       `protobuf:"varint,4,opt,name=Fid,proto3" json:"fid"`
	Image        string                      `protobuf:"bytes,5,opt,name=Image,proto3" json:"image"`
	Unlocked     int64                       `protobuf:"varint,6,opt,name=Unlocked,proto3" json:"unlocked"`
	LockType     int64                       `protobuf:"varint,7,opt,name=LockType,proto3" json:"lockType"`
	Dic          string                      `protobuf:"bytes,8,opt,name=Dic,proto3" json:"dic"`
	Rule         string                      `protobuf:"bytes,9,opt,name=Rule,proto3" json:"rule"`
	Bid          int64                       `protobuf:"varint,10,opt,name=Bid,proto3" json:"bid"`
	LoseUnlocked int64                       `protobuf:"varint,11,opt,name=LoseUnlocked,proto3" json:"lose_unlocked"`
	OtherIp      string                      `protobuf:"bytes,12,opt,name=OtherIp,proto3" json:"other_ip"`
	Ower         int64                       `protobuf:"varint,13,opt,name=Ower,proto3" json:"ower"`
	Ctime        go_common_library_time.Time `protobuf:"varint,14,opt,name=Ctime,proto3,casttype=go-common/library/time.Time" json:"ctime"`
	Mtime        go_common_library_time.Time `protobuf:"varint,15,opt,name=Mtime,proto3,casttype=go-common/library/time.Time" json:"mtime"`
}

func (*Point) Descriptor

func (*Point) Descriptor() ([]byte, []int)

func (*Point) Marshal

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

func (*Point) MarshalTo

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

func (*Point) ProtoMessage

func (*Point) ProtoMessage()

func (*Point) Reset

func (m *Point) Reset()

func (*Point) Size

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

func (*Point) String

func (m *Point) String() string

func (*Point) Unmarshal

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

type Points

type Points struct {
	Points []*Point `protobuf:"bytes,1,rep,name=points" json:"points,omitempty"`
}

func (*Points) Descriptor

func (*Points) Descriptor() ([]byte, []int)

func (*Points) Marshal

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

func (*Points) MarshalTo

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

func (*Points) ProtoMessage

func (*Points) ProtoMessage()

func (*Points) Reset

func (m *Points) Reset()

func (*Points) Size

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

func (*Points) String

func (m *Points) String() string

func (*Points) Unmarshal

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

type User

type User struct {
	User         *UserInfo                     `json:"user"`
	Achievements []*UserAchieveDetail          `json:"achievements"`
	Items        map[string][]*UserPointDetail `json:"items"`
}

User .

type UserAchieve

type UserAchieve struct {
	ID    int64     `json:"id"`
	Aid   int64     `json:"aid"`
	Award int64     `json:"award"`
	Ctime time.Time `json:"ctime"`
}

UserAchieve .

type UserAchieveDetail

type UserAchieveDetail struct {
	*UserAchieve
	Name          string `json:"name"`
	Icon          string `json:"icon"`
	Dic           string `json:"dic"`
	LockType      int64  `json:"lockType"`
	Unlock        int64  `json:"unlock"`
	Bid           int64  `json:"bid"`
	IconBig       string `json:"icon_big"`
	IconActive    string `json:"icon_active"`
	IconActiveBig string `json:"icon_active_big"`
	SuitID        int64  `json:"suit_id"`
}

UserAchieveDetail .

type UserInfo

type UserInfo struct {
	Mid  int64  `json:"mid"`
	Name string `json:"name"`
	Key  string `json:"key"`
	Face string `json:"face"`
	Hp   int64  `json:"hp"`
}

UserInfo .

type UserPoint

type UserPoint struct {
	ID     int64     `json:"id"`
	Pid    int64     `json:"pid"`
	Points int64     `json:"points"`
	Ctime  time.Time `json:"ctime"`
}

UserPoint .

type UserPointDetail

type UserPointDetail struct {
	*UserPoint
	Name         string `json:"name"`
	Icon         string `json:"icon"`
	Fid          int64  `json:"fid"`
	Image        string `json:"image"`
	Unlocked     int64  `json:"unlocked"`
	LoseUnlocked int64  `json:"lose_unlocked"`
	LockType     int64  `json:"lockType"`
	Dic          string `json:"dic"`
	Rule         string `json:"rule"`
	Bid          int64  `json:"bid"`
}

UserPointDetail .

type Users

type Users struct {
	ID    int64                       `protobuf:"varint,1,opt,name=ID,proto3" json:"id"`
	Mid   int64                       `protobuf:"varint,2,opt,name=Mid,proto3" json:"mid"`
	Key   string                      `protobuf:"bytes,3,opt,name=Key,proto3" json:"key"`
	Ctime go_common_library_time.Time `protobuf:"varint,4,opt,name=Ctime,proto3,casttype=go-common/library/time.Time" json:"ctime"`
	Mtime go_common_library_time.Time `protobuf:"varint,5,opt,name=Mtime,proto3,casttype=go-common/library/time.Time" json:"mtime"`
	Bid   int64                       `protobuf:"varint,6,opt,name=Bid,proto3" json:"bid"`
}

func (*Users) Descriptor

func (*Users) Descriptor() ([]byte, []int)

func (*Users) Marshal

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

func (*Users) MarshalTo

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

func (*Users) ProtoMessage

func (*Users) ProtoMessage()

func (*Users) Reset

func (m *Users) Reset()

func (*Users) Size

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

func (*Users) String

func (m *Users) String() string

func (*Users) Unmarshal

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

Jump to

Keyboard shortcuts

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