comment

package
v0.0.0-...-48d44df Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CommentActionType_name = map[int32]string{
		0: "_",
		1: "PUBLISH",
		2: "DELETE",
	}
	CommentActionType_value = map[string]int32{
		"_":       0,
		"PUBLISH": 1,
		"DELETE":  2,
	}
)

Enum value maps for CommentActionType.

View Source
var File_comment_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CommentActionReq

type CommentActionReq struct {
	Token   *string `protobuf:"bytes,1,req,name=token" json:"token,required" form:"token,required" query:"token,required"` // 用户鉴权token
	VideoId *int64  ``                                                                                                     // 视频id
	/* 126-byte string literal not displayed */
	ActionType *CommentActionType `` // 1-发布评论,2-删除评论
	/* 172-byte string literal not displayed */
	CommentText *string `` // 用户填写的评论内容,在action_type=1的时候使用
	/* 128-byte string literal not displayed */
	CommentId *int64 `protobuf:"varint,5,opt,name=comment_id,json=commentId" json:"comment_id,omitempty" form:"comment_id" query:"comment_id"` // 要删除的评论id,在action_type=2的时候使用
	// contains filtered or unexported fields
}

func (*CommentActionReq) Descriptor deprecated

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

Deprecated: Use CommentActionReq.ProtoReflect.Descriptor instead.

func (*CommentActionReq) GetActionType

func (x *CommentActionReq) GetActionType() CommentActionType

func (*CommentActionReq) GetCommentId

func (x *CommentActionReq) GetCommentId() int64

func (*CommentActionReq) GetCommentText

func (x *CommentActionReq) GetCommentText() string

func (*CommentActionReq) GetToken

func (x *CommentActionReq) GetToken() string

func (*CommentActionReq) GetVideoId

func (x *CommentActionReq) GetVideoId() int64

func (*CommentActionReq) ProtoMessage

func (*CommentActionReq) ProtoMessage()

func (*CommentActionReq) ProtoReflect

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

func (*CommentActionReq) Reset

func (x *CommentActionReq) Reset()

func (*CommentActionReq) String

func (x *CommentActionReq) String() string

type CommentActionResp

type CommentActionResp struct {
	StatusCode *int32 `` // 状态码,0-成功,其他值-失败
	/* 141-byte string literal not displayed */
	StatusMsg *string         `protobuf:"bytes,2,opt,name=status_msg,json=statusMsg" json:"status_msg,omitempty" form:"status_msg" query:"status_msg"` // 返回状态描述
	Comment   *common.Comment `protobuf:"bytes,3,opt,name=comment" json:"comment,omitempty" form:"comment" query:"comment"`                            // 评论成功返回评论内容,不需要重新拉取整个列表
	// contains filtered or unexported fields
}

func (*CommentActionResp) Descriptor deprecated

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

Deprecated: Use CommentActionResp.ProtoReflect.Descriptor instead.

func (*CommentActionResp) GetComment

func (x *CommentActionResp) GetComment() *common.Comment

func (*CommentActionResp) GetStatusCode

func (x *CommentActionResp) GetStatusCode() int32

func (*CommentActionResp) GetStatusMsg

func (x *CommentActionResp) GetStatusMsg() string

func (*CommentActionResp) ProtoMessage

func (*CommentActionResp) ProtoMessage()

func (*CommentActionResp) ProtoReflect

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

func (*CommentActionResp) Reset

func (x *CommentActionResp) Reset()

func (*CommentActionResp) String

func (x *CommentActionResp) String() string

type CommentActionType

type CommentActionType int32
const (
	CommentActionType__       CommentActionType = 0
	CommentActionType_PUBLISH CommentActionType = 1
	CommentActionType_DELETE  CommentActionType = 2
)

func (CommentActionType) Descriptor

func (CommentActionType) Enum

func (CommentActionType) EnumDescriptor deprecated

func (CommentActionType) EnumDescriptor() ([]byte, []int)

Deprecated: Use CommentActionType.Descriptor instead.

func (CommentActionType) Number

func (CommentActionType) String

func (x CommentActionType) String() string

func (CommentActionType) Type

func (*CommentActionType) UnmarshalJSON deprecated

func (x *CommentActionType) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type CommentListReq

type CommentListReq struct {
	Token   *string `protobuf:"bytes,1,req,name=token" json:"token,required" form:"token,required" query:"token,required"` // 用户鉴权token
	VideoId *int64  ``                                                                                                     // 视频id
	/* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*CommentListReq) Descriptor deprecated

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

Deprecated: Use CommentListReq.ProtoReflect.Descriptor instead.

func (*CommentListReq) GetToken

func (x *CommentListReq) GetToken() string

func (*CommentListReq) GetVideoId

func (x *CommentListReq) GetVideoId() int64

func (*CommentListReq) ProtoMessage

func (*CommentListReq) ProtoMessage()

func (*CommentListReq) ProtoReflect

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

func (*CommentListReq) Reset

func (x *CommentListReq) Reset()

func (*CommentListReq) String

func (x *CommentListReq) String() string

type CommentListResp

type CommentListResp struct {
	StatusCode *int32 `` // 状态码,0-成功,其他值-失败
	/* 141-byte string literal not displayed */
	StatusMsg   *string           `protobuf:"bytes,2,opt,name=status_msg,json=statusMsg" json:"status_msg,omitempty" form:"status_msg" query:"status_msg"` // 返回状态描述
	CommentList []*common.Comment `protobuf:"bytes,3,rep,name=comment_list,json=commentList" json:"comment_list" form:"comment_list" query:"comment_list"` // 评论列表
	// contains filtered or unexported fields
}

func (*CommentListResp) Descriptor deprecated

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

Deprecated: Use CommentListResp.ProtoReflect.Descriptor instead.

func (*CommentListResp) GetCommentList

func (x *CommentListResp) GetCommentList() []*common.Comment

func (*CommentListResp) GetStatusCode

func (x *CommentListResp) GetStatusCode() int32

func (*CommentListResp) GetStatusMsg

func (x *CommentListResp) GetStatusMsg() string

func (*CommentListResp) ProtoMessage

func (*CommentListResp) ProtoMessage()

func (*CommentListResp) ProtoReflect

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

func (*CommentListResp) Reset

func (x *CommentListResp) Reset()

func (*CommentListResp) String

func (x *CommentListResp) String() string

Jump to

Keyboard shortcuts

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