v1

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

Documentation

Index

Constants

View Source
const AppID = "resource.service"

AppID .

Variables

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

Functions

func RegisterResourceServer

func RegisterResourceServer(s *grpc.Server, srv ResourceServer)

Types

type RelateRequest

type RelateRequest struct {
	// pgc seasonID
	Id                   int64    `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	MobiApp              string   `protobuf:"bytes,2,opt,name=mobi_app,json=mobiApp,proto3" json:"mobi_app,omitempty"`
	Device               string   `protobuf:"bytes,3,opt,name=device,proto3" json:"device,omitempty"`
	Build                int32    `protobuf:"varint,4,opt,name=build,proto3" json:"build,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

相关推荐请求参数

func (*RelateRequest) Descriptor

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

func (*RelateRequest) GetBuild

func (m *RelateRequest) GetBuild() int32

func (*RelateRequest) GetDevice

func (m *RelateRequest) GetDevice() string

func (*RelateRequest) GetId

func (m *RelateRequest) GetId() int64

func (*RelateRequest) GetMobiApp

func (m *RelateRequest) GetMobiApp() string

func (*RelateRequest) Marshal

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

func (*RelateRequest) MarshalTo

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

func (*RelateRequest) ProtoMessage

func (*RelateRequest) ProtoMessage()

func (*RelateRequest) Reset

func (m *RelateRequest) Reset()

func (*RelateRequest) Size

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

func (*RelateRequest) String

func (m *RelateRequest) String() string

func (*RelateRequest) Unmarshal

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

func (*RelateRequest) XXX_DiscardUnknown

func (m *RelateRequest) XXX_DiscardUnknown()

func (*RelateRequest) XXX_Marshal

func (m *RelateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RelateRequest) XXX_Merge

func (dst *RelateRequest) XXX_Merge(src proto.Message)

func (*RelateRequest) XXX_Size

func (m *RelateRequest) XXX_Size() int

func (*RelateRequest) XXX_Unmarshal

func (m *RelateRequest) XXX_Unmarshal(b []byte) error

type ResourceClient

type ResourceClient interface {
	// 相关推荐列表
	// -400:RequestErr -404:NothingFound
	Relate(ctx context.Context, in *RelateRequest, opts ...grpc.CallOption) (*SpecialReply, error)
}

ResourceClient is the client API for Resource service.

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

func NewClient

func NewClient(cfg *warden.ClientConfig, opts ...grpc.DialOption) (ResourceClient, error)

NewClient new grpc client

func NewResourceClient

func NewResourceClient(cc *grpc.ClientConn) ResourceClient

type ResourceServer

type ResourceServer interface {
	// 相关推荐列表
	// -400:RequestErr -404:NothingFound
	Relate(context.Context, *RelateRequest) (*SpecialReply, error)
}

ResourceServer is the server API for Resource service.

type SpecialReply

type SpecialReply struct {
	// 主键id
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// 特殊卡片标题
	Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	// 特殊卡片描述
	Desc string `protobuf:"bytes,3,opt,name=desc,proto3" json:"desc,omitempty"`
	// 特殊卡片单列封面
	Cover string `protobuf:"bytes,4,opt,name=cover,proto3" json:"cover,omitempty"`
	// 特殊卡片双列封面
	Scover string `protobuf:"bytes,5,opt,name=scover,proto3" json:"scover,omitempty"`
	// 跳转类型 URL:0 游戏小卡:1 稿件:2 番剧:3 直播:4 专栏:6 每日精选:7 歌单:8 歌曲:9 相簿:10 小视频:11
	ReType int32 `protobuf:"varint,6,opt,name=re_type,json=reType,proto3" json:"re_type,omitempty"`
	// 跳转参数
	ReValue string `protobuf:"bytes,7,opt,name=re_value,json=reValue,proto3" json:"re_value,omitempty"`
	// 角标文字
	Corner string `protobuf:"bytes,8,opt,name=corner,proto3" json:"corner,omitempty"`
	// 卡片类型 1特殊小卡 2特殊大卡 3置顶卡片
	Card int32 `protobuf:"varint,9,opt,name=card,proto3" json:"card,omitempty"`
	// 特殊大卡参数 如果是1020*300则封面比例为34 如果是1020*378则封面比例为27
	Siz string `protobuf:"bytes,10,opt,name=siz,proto3" json:"siz,omitempty"`
	// 位置
	Position             int32    `protobuf:"varint,11,opt,name=position,proto3" json:"position,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SpecialReply) Descriptor

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

func (*SpecialReply) GetCard

func (m *SpecialReply) GetCard() int32

func (*SpecialReply) GetCorner

func (m *SpecialReply) GetCorner() string

func (*SpecialReply) GetCover

func (m *SpecialReply) GetCover() string

func (*SpecialReply) GetDesc

func (m *SpecialReply) GetDesc() string

func (*SpecialReply) GetId

func (m *SpecialReply) GetId() int64

func (*SpecialReply) GetPosition

func (m *SpecialReply) GetPosition() int32

func (*SpecialReply) GetReType

func (m *SpecialReply) GetReType() int32

func (*SpecialReply) GetReValue

func (m *SpecialReply) GetReValue() string

func (*SpecialReply) GetScover

func (m *SpecialReply) GetScover() string

func (*SpecialReply) GetSiz

func (m *SpecialReply) GetSiz() string

func (*SpecialReply) GetTitle

func (m *SpecialReply) GetTitle() string

func (*SpecialReply) Marshal

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

func (*SpecialReply) MarshalTo

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

func (*SpecialReply) ProtoMessage

func (*SpecialReply) ProtoMessage()

func (*SpecialReply) Reset

func (m *SpecialReply) Reset()

func (*SpecialReply) Size

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

func (*SpecialReply) String

func (m *SpecialReply) String() string

func (*SpecialReply) Unmarshal

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

func (*SpecialReply) XXX_DiscardUnknown

func (m *SpecialReply) XXX_DiscardUnknown()

func (*SpecialReply) XXX_Marshal

func (m *SpecialReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SpecialReply) XXX_Merge

func (dst *SpecialReply) XXX_Merge(src proto.Message)

func (*SpecialReply) XXX_Size

func (m *SpecialReply) XXX_Size() int

func (*SpecialReply) XXX_Unmarshal

func (m *SpecialReply) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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