v1

package
v0.0.0-...-a5cb702 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_collect_match_proto protoreflect.FileDescriptor
View Source
var File_collect_v2_proto protoreflect.FileDescriptor
View Source
var File_device_server_proto protoreflect.FileDescriptor

Functions

func RegisterDeviceServer

func RegisterDeviceServer(s *grpc.Server, srv DeviceServer)

Types

type CollectCidUpdateRequest

type CollectCidUpdateRequest struct {
	CId  string `protobuf:"bytes,1,opt,name=CId,proto3" json:"CId,omitempty"`   //设备标识Id
	Uuid string `protobuf:"bytes,2,opt,name=Uuid,proto3" json:"Uuid,omitempty"` // 登录后的标识id
	// contains filtered or unexported fields
}

func (*CollectCidUpdateRequest) Descriptor deprecated

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

Deprecated: Use CollectCidUpdateRequest.ProtoReflect.Descriptor instead.

func (*CollectCidUpdateRequest) GetCId

func (x *CollectCidUpdateRequest) GetCId() string

func (*CollectCidUpdateRequest) GetUuid

func (x *CollectCidUpdateRequest) GetUuid() string

func (*CollectCidUpdateRequest) ProtoMessage

func (*CollectCidUpdateRequest) ProtoMessage()

func (*CollectCidUpdateRequest) ProtoReflect

func (x *CollectCidUpdateRequest) ProtoReflect() protoreflect.Message

func (*CollectCidUpdateRequest) Reset

func (x *CollectCidUpdateRequest) Reset()

func (*CollectCidUpdateRequest) String

func (x *CollectCidUpdateRequest) String() string

type CollectItem

type CollectItem struct {
	Type string  `protobuf:"bytes,1,opt,name=Type,proto3" json:"Type,omitempty"`       // 数据类型 fb_match;bb_match;fb_tournament;bb_tournament;fb_team;bb_team;fb_player;bb_player;expert;plans
	Ids  []int64 `protobuf:"varint,2,rep,packed,name=Ids,proto3" json:"Ids,omitempty"` //  收藏的id 正数为收藏 负数为取消
	// contains filtered or unexported fields
}

func (*CollectItem) Descriptor deprecated

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

Deprecated: Use CollectItem.ProtoReflect.Descriptor instead.

func (*CollectItem) GetIds

func (x *CollectItem) GetIds() []int64

func (*CollectItem) GetType

func (x *CollectItem) GetType() string

func (*CollectItem) ProtoMessage

func (*CollectItem) ProtoMessage()

func (*CollectItem) ProtoReflect

func (x *CollectItem) ProtoReflect() protoreflect.Message

func (*CollectItem) Reset

func (x *CollectItem) Reset()

func (*CollectItem) String

func (x *CollectItem) String() string

type CollectList

type CollectList struct {
	Ids []int64 `protobuf:"varint,1,rep,packed,name=Ids,proto3" json:"Ids,omitempty"` //数据列表
	// contains filtered or unexported fields
}

func (*CollectList) Descriptor deprecated

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

Deprecated: Use CollectList.ProtoReflect.Descriptor instead.

func (*CollectList) GetIds

func (x *CollectList) GetIds() []int64

func (*CollectList) ProtoMessage

func (*CollectList) ProtoMessage()

func (*CollectList) ProtoReflect

func (x *CollectList) ProtoReflect() protoreflect.Message

func (*CollectList) Reset

func (x *CollectList) Reset()

func (*CollectList) String

func (x *CollectList) String() string

type CollectListItem

type CollectListItem struct {
	Type  string          `protobuf:"bytes,1,opt,name=Type,proto3" json:"Type,omitempty"` // 数据类型 fb_match;bb_match;fb_tournament;bb_tournament;fb_team;bb_team;fb_player;bb_player;expert;plans
	IdMap map[int64]int64 ``                                                              //  key 收藏的id  value 新增时间戳
	/* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*CollectListItem) Descriptor deprecated

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

Deprecated: Use CollectListItem.ProtoReflect.Descriptor instead.

func (*CollectListItem) GetIdMap

func (x *CollectListItem) GetIdMap() map[int64]int64

func (*CollectListItem) GetType

func (x *CollectListItem) GetType() string

func (*CollectListItem) ProtoMessage

func (*CollectListItem) ProtoMessage()

func (*CollectListItem) ProtoReflect

func (x *CollectListItem) ProtoReflect() protoreflect.Message

func (*CollectListItem) Reset

func (x *CollectListItem) Reset()

func (*CollectListItem) String

func (x *CollectListItem) String() string

type CollectListRequestParam

type CollectListRequestParam struct {
	CId  string `protobuf:"bytes,1,opt,name=CId,proto3" json:"CId,omitempty"`   //设备标识Id
	Type string `protobuf:"bytes,2,opt,name=Type,proto3" json:"Type,omitempty"` // 筛选项 空值全量返回
	// contains filtered or unexported fields
}

func (*CollectListRequestParam) Descriptor deprecated

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

Deprecated: Use CollectListRequestParam.ProtoReflect.Descriptor instead.

func (*CollectListRequestParam) GetCId

func (x *CollectListRequestParam) GetCId() string

func (*CollectListRequestParam) GetType

func (x *CollectListRequestParam) GetType() string

func (*CollectListRequestParam) ProtoMessage

func (*CollectListRequestParam) ProtoMessage()

func (*CollectListRequestParam) ProtoReflect

func (x *CollectListRequestParam) ProtoReflect() protoreflect.Message

func (*CollectListRequestParam) Reset

func (x *CollectListRequestParam) Reset()

func (*CollectListRequestParam) String

func (x *CollectListRequestParam) String() string

type CollectListResp

type CollectListResp struct {
	Collection []*CollectListItem `protobuf:"bytes,1,rep,name=Collection,proto3" json:"Collection,omitempty"` //
	// contains filtered or unexported fields
}

func (*CollectListResp) Descriptor deprecated

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

Deprecated: Use CollectListResp.ProtoReflect.Descriptor instead.

func (*CollectListResp) GetCollection

func (x *CollectListResp) GetCollection() []*CollectListItem

func (*CollectListResp) ProtoMessage

func (*CollectListResp) ProtoMessage()

func (*CollectListResp) ProtoReflect

func (x *CollectListResp) ProtoReflect() protoreflect.Message

func (*CollectListResp) Reset

func (x *CollectListResp) Reset()

func (*CollectListResp) String

func (x *CollectListResp) String() string

type CollectMatchRequestParam

type CollectMatchRequestParam struct {
	MatchIds    []int64 `protobuf:"varint,1,rep,packed,name=MatchIds,proto3" json:"MatchIds,omitempty"`
	DeviceToken string  `protobuf:"bytes,2,opt,name=DeviceToken,proto3" json:"DeviceToken,omitempty"`
	ActionType  int64   `protobuf:"varint,3,opt,name=ActionType,proto3" json:"ActionType,omitempty"` // 1-收藏 2-取消收藏
	Language    string  `protobuf:"bytes,4,opt,name=Language,proto3" json:"Language,omitempty"`      // 语言
	// contains filtered or unexported fields
}

func (*CollectMatchRequestParam) Descriptor deprecated

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

Deprecated: Use CollectMatchRequestParam.ProtoReflect.Descriptor instead.

func (*CollectMatchRequestParam) GetActionType

func (x *CollectMatchRequestParam) GetActionType() int64

func (*CollectMatchRequestParam) GetDeviceToken

func (x *CollectMatchRequestParam) GetDeviceToken() string

func (*CollectMatchRequestParam) GetLanguage

func (x *CollectMatchRequestParam) GetLanguage() string

func (*CollectMatchRequestParam) GetMatchIds

func (x *CollectMatchRequestParam) GetMatchIds() []int64

func (*CollectMatchRequestParam) ProtoMessage

func (*CollectMatchRequestParam) ProtoMessage()

func (*CollectMatchRequestParam) ProtoReflect

func (x *CollectMatchRequestParam) ProtoReflect() protoreflect.Message

func (*CollectMatchRequestParam) Reset

func (x *CollectMatchRequestParam) Reset()

func (*CollectMatchRequestParam) String

func (x *CollectMatchRequestParam) String() string

type CollectRequestParam

type CollectRequestParam struct {
	CId        string         `protobuf:"bytes,1,opt,name=CId,proto3" json:"CId,omitempty"` //设备标识Id
	Collection []*CollectItem `protobuf:"bytes,2,rep,name=Collection,proto3" json:"Collection,omitempty"`
	// contains filtered or unexported fields
}

func (*CollectRequestParam) Descriptor deprecated

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

Deprecated: Use CollectRequestParam.ProtoReflect.Descriptor instead.

func (*CollectRequestParam) GetCId

func (x *CollectRequestParam) GetCId() string

func (*CollectRequestParam) GetCollection

func (x *CollectRequestParam) GetCollection() []*CollectItem

func (*CollectRequestParam) ProtoMessage

func (*CollectRequestParam) ProtoMessage()

func (*CollectRequestParam) ProtoReflect

func (x *CollectRequestParam) ProtoReflect() protoreflect.Message

func (*CollectRequestParam) Reset

func (x *CollectRequestParam) Reset()

func (*CollectRequestParam) String

func (x *CollectRequestParam) String() string

type DeviceClient

type DeviceClient interface {
	// 收藏比赛 (取消也在)
	CollectMatch(ctx context.Context, in *CollectMatchRequestParam, opts ...grpc.CallOption) (*Empty, error)
	// 收藏比赛事件推送
	PushMsgMatch(ctx context.Context, in *PushMsgMatchRequestParam, opts ...grpc.CallOption) (*Empty, error)
	// 收藏、取消收藏操作
	CollectHandle(ctx context.Context, in *CollectRequestParam, opts ...grpc.CallOption) (*Empty, error)
	GetCollectList(ctx context.Context, in *CollectListRequestParam, opts ...grpc.CallOption) (*CollectListResp, error)
	UpdatePushSetting(ctx context.Context, in *PushSettingRequestParam, opts ...grpc.CallOption) (*Empty, error)
	// 登录后收藏表cid更新
	CollectCidUpdate(ctx context.Context, in *CollectCidUpdateRequest, opts ...grpc.CallOption) (*Empty, error)
}

DeviceClient is the client API for Device service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewDeviceClient

func NewDeviceClient(cc grpc.ClientConnInterface) DeviceClient

type DeviceServer

type DeviceServer interface {
	// 收藏比赛 (取消也在)
	CollectMatch(context.Context, *CollectMatchRequestParam) (*Empty, error)
	// 收藏比赛事件推送
	PushMsgMatch(context.Context, *PushMsgMatchRequestParam) (*Empty, error)
	// 收藏、取消收藏操作
	CollectHandle(context.Context, *CollectRequestParam) (*Empty, error)
	GetCollectList(context.Context, *CollectListRequestParam) (*CollectListResp, error)
	UpdatePushSetting(context.Context, *PushSettingRequestParam) (*Empty, error)
	// 登录后收藏表cid更新
	CollectCidUpdate(context.Context, *CollectCidUpdateRequest) (*Empty, error)
}

DeviceServer is the server API for Device service.

type Empty

type Empty struct {
	// contains filtered or unexported fields
}

func (*Empty) Descriptor deprecated

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

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

func (x *Empty) ProtoReflect() protoreflect.Message

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type PushMsgMatchRequestParam

type PushMsgMatchRequestParam struct {
	MatchId   int64  `protobuf:"varint,1,opt,name=MatchId,proto3" json:"MatchId,omitempty"`     // 比赛自增id
	SportType int64  `protobuf:"varint,2,opt,name=SportType,proto3" json:"SportType,omitempty"` // 比赛类型 1-足球 2-篮球
	Title     string `protobuf:"bytes,3,opt,name=Title,proto3" json:"Title,omitempty"`          // 标题
	Content   string `protobuf:"bytes,4,opt,name=Content,proto3" json:"Content,omitempty"`      // 内容
	// contains filtered or unexported fields
}

func (*PushMsgMatchRequestParam) Descriptor deprecated

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

Deprecated: Use PushMsgMatchRequestParam.ProtoReflect.Descriptor instead.

func (*PushMsgMatchRequestParam) GetContent

func (x *PushMsgMatchRequestParam) GetContent() string

func (*PushMsgMatchRequestParam) GetMatchId

func (x *PushMsgMatchRequestParam) GetMatchId() int64

func (*PushMsgMatchRequestParam) GetSportType

func (x *PushMsgMatchRequestParam) GetSportType() int64

func (*PushMsgMatchRequestParam) GetTitle

func (x *PushMsgMatchRequestParam) GetTitle() string

func (*PushMsgMatchRequestParam) ProtoMessage

func (*PushMsgMatchRequestParam) ProtoMessage()

func (*PushMsgMatchRequestParam) ProtoReflect

func (x *PushMsgMatchRequestParam) ProtoReflect() protoreflect.Message

func (*PushMsgMatchRequestParam) Reset

func (x *PushMsgMatchRequestParam) Reset()

func (*PushMsgMatchRequestParam) String

func (x *PushMsgMatchRequestParam) String() string

type PushSettingRequestParam

type PushSettingRequestParam struct {
	Id      int64             `protobuf:"varint,1,opt,name=Id,proto3" json:"Id,omitempty"` //用户id
	UpField map[string]string ``                                                           //注册用户要更新的字段
	/* 155-byte string literal not displayed */
	Tourist map[string]string `` //游客要更新的字段
	/* 155-byte string literal not displayed */
	IsLogin int64  `protobuf:"varint,4,opt,name=IsLogin,proto3" json:"IsLogin,omitempty"` //是否游客  0:否,1:是
	Device  string `protobuf:"bytes,5,opt,name=Device,proto3" json:"Device,omitempty"`    //设备
	Token   string `protobuf:"bytes,6,opt,name=Token,proto3" json:"Token,omitempty"`      //游客token
	// contains filtered or unexported fields
}

func (*PushSettingRequestParam) Descriptor deprecated

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

Deprecated: Use PushSettingRequestParam.ProtoReflect.Descriptor instead.

func (*PushSettingRequestParam) GetDevice

func (x *PushSettingRequestParam) GetDevice() string

func (*PushSettingRequestParam) GetId

func (x *PushSettingRequestParam) GetId() int64

func (*PushSettingRequestParam) GetIsLogin

func (x *PushSettingRequestParam) GetIsLogin() int64

func (*PushSettingRequestParam) GetToken

func (x *PushSettingRequestParam) GetToken() string

func (*PushSettingRequestParam) GetTourist

func (x *PushSettingRequestParam) GetTourist() map[string]string

func (*PushSettingRequestParam) GetUpField

func (x *PushSettingRequestParam) GetUpField() map[string]string

func (*PushSettingRequestParam) ProtoMessage

func (*PushSettingRequestParam) ProtoMessage()

func (*PushSettingRequestParam) ProtoReflect

func (x *PushSettingRequestParam) ProtoReflect() protoreflect.Message

func (*PushSettingRequestParam) Reset

func (x *PushSettingRequestParam) Reset()

func (*PushSettingRequestParam) String

func (x *PushSettingRequestParam) String() string

type UnimplementedDeviceServer

type UnimplementedDeviceServer struct {
}

UnimplementedDeviceServer can be embedded to have forward compatible implementations.

func (*UnimplementedDeviceServer) CollectCidUpdate

func (*UnimplementedDeviceServer) CollectHandle

func (*UnimplementedDeviceServer) CollectMatch

func (*UnimplementedDeviceServer) GetCollectList

func (*UnimplementedDeviceServer) PushMsgMatch

func (*UnimplementedDeviceServer) UpdatePushSetting

Jump to

Keyboard shortcuts

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