publish

package
v1.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_publish_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type DouyinPublishActionRequest

type DouyinPublishActionRequest struct {
	Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // 用户鉴权token
	Data  []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`   // 视频数据
	Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` // 视频标题
	// contains filtered or unexported fields
}

func (*DouyinPublishActionRequest) Descriptor deprecated

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

Deprecated: Use DouyinPublishActionRequest.ProtoReflect.Descriptor instead.

func (*DouyinPublishActionRequest) GetData

func (x *DouyinPublishActionRequest) GetData() []byte

func (*DouyinPublishActionRequest) GetTitle

func (x *DouyinPublishActionRequest) GetTitle() string

func (*DouyinPublishActionRequest) GetToken

func (x *DouyinPublishActionRequest) GetToken() string

func (*DouyinPublishActionRequest) ProtoMessage

func (*DouyinPublishActionRequest) ProtoMessage()

func (*DouyinPublishActionRequest) ProtoReflect

func (*DouyinPublishActionRequest) Reset

func (x *DouyinPublishActionRequest) Reset()

func (*DouyinPublishActionRequest) String

func (x *DouyinPublishActionRequest) String() string

type DouyinPublishActionResponse

type DouyinPublishActionResponse struct {
	StatusCode int32   `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"`   // 状态码,0-成功,其他值-失败
	StatusMsg  *string `protobuf:"bytes,2,opt,name=status_msg,json=statusMsg,proto3,oneof" json:"status_msg,omitempty"` // 返回状态描述
	// contains filtered or unexported fields
}

func (*DouyinPublishActionResponse) Descriptor deprecated

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

Deprecated: Use DouyinPublishActionResponse.ProtoReflect.Descriptor instead.

func (*DouyinPublishActionResponse) GetStatusCode

func (x *DouyinPublishActionResponse) GetStatusCode() int32

func (*DouyinPublishActionResponse) GetStatusMsg

func (x *DouyinPublishActionResponse) GetStatusMsg() string

func (*DouyinPublishActionResponse) ProtoMessage

func (*DouyinPublishActionResponse) ProtoMessage()

func (*DouyinPublishActionResponse) ProtoReflect

func (*DouyinPublishActionResponse) Reset

func (x *DouyinPublishActionResponse) Reset()

func (*DouyinPublishActionResponse) String

func (x *DouyinPublishActionResponse) String() string

type DouyinPublishListRequest

type DouyinPublishListRequest struct {
	UserId int64  `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户id
	Token  string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`                  // 用户鉴权token
	// contains filtered or unexported fields
}

func (*DouyinPublishListRequest) Descriptor deprecated

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

Deprecated: Use DouyinPublishListRequest.ProtoReflect.Descriptor instead.

func (*DouyinPublishListRequest) GetToken

func (x *DouyinPublishListRequest) GetToken() string

func (*DouyinPublishListRequest) GetUserId

func (x *DouyinPublishListRequest) GetUserId() int64

func (*DouyinPublishListRequest) ProtoMessage

func (*DouyinPublishListRequest) ProtoMessage()

func (*DouyinPublishListRequest) ProtoReflect

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

func (*DouyinPublishListRequest) Reset

func (x *DouyinPublishListRequest) Reset()

func (*DouyinPublishListRequest) String

func (x *DouyinPublishListRequest) String() string

type DouyinPublishListResponse

type DouyinPublishListResponse struct {
	StatusCode int32         `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"`   // 状态码,0-成功,其他值-失败
	StatusMsg  *string       `protobuf:"bytes,2,opt,name=status_msg,json=statusMsg,proto3,oneof" json:"status_msg,omitempty"` // 返回状态描述
	VideoList  []*feed.Video `protobuf:"bytes,3,rep,name=video_list,json=videoList,proto3" json:"video_list,omitempty"`       // 用户发布的视频列表
	// contains filtered or unexported fields
}

func (*DouyinPublishListResponse) Descriptor deprecated

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

Deprecated: Use DouyinPublishListResponse.ProtoReflect.Descriptor instead.

func (*DouyinPublishListResponse) GetStatusCode

func (x *DouyinPublishListResponse) GetStatusCode() int32

func (*DouyinPublishListResponse) GetStatusMsg

func (x *DouyinPublishListResponse) GetStatusMsg() string

func (*DouyinPublishListResponse) GetVideoList

func (x *DouyinPublishListResponse) GetVideoList() []*feed.Video

func (*DouyinPublishListResponse) ProtoMessage

func (*DouyinPublishListResponse) ProtoMessage()

func (*DouyinPublishListResponse) ProtoReflect

func (*DouyinPublishListResponse) Reset

func (x *DouyinPublishListResponse) Reset()

func (*DouyinPublishListResponse) String

func (x *DouyinPublishListResponse) String() string

type PublishSrv

type PublishSrv interface {
	PublishAction(ctx context.Context, req *DouyinPublishActionRequest) (res *DouyinPublishActionResponse, err error)
	PublishList(ctx context.Context, req *DouyinPublishListRequest) (res *DouyinPublishListResponse, err error)
}

Directories

Path Synopsis
Code generated by Kitex v0.3.2.
Code generated by Kitex v0.3.2.

Jump to

Keyboard shortcuts

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