Documentation ¶
Index ¶
- Variables
- type Comment
- func (*Comment) Descriptor() ([]byte, []int)deprecated
- func (x *Comment) GetAHashId() string
- func (x *Comment) GetCHashId() string
- func (x *Comment) GetChildNum() int64
- func (x *Comment) GetContent() string
- func (x *Comment) GetCreateDate() string
- func (x *Comment) GetFavoriteCount() int64
- func (x *Comment) GetIsFavorite() bool
- func (x *Comment) GetRepliedUHashId() string
- func (x *Comment) GetUser() *common.UserBase
- func (*Comment) ProtoMessage()
- func (x *Comment) ProtoReflect() protoreflect.Message
- func (x *Comment) Reset()
- func (x *Comment) String() string
- type CommentActionRequest
- func (*CommentActionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CommentActionRequest) GetAHashId() string
- func (x *CommentActionRequest) GetContent() string
- func (x *CommentActionRequest) GetDegree() int32
- func (x *CommentActionRequest) GetPHashId() string
- func (*CommentActionRequest) ProtoMessage()
- func (x *CommentActionRequest) ProtoReflect() protoreflect.Message
- func (x *CommentActionRequest) Reset()
- func (x *CommentActionRequest) String() string
- type CommentActionResponse
- func (*CommentActionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CommentActionResponse) GetCHashId() string
- func (x *CommentActionResponse) GetStatusCode() int32
- func (x *CommentActionResponse) GetStatusMsg() string
- func (*CommentActionResponse) ProtoMessage()
- func (x *CommentActionResponse) ProtoReflect() protoreflect.Message
- func (x *CommentActionResponse) Reset()
- func (x *CommentActionResponse) String() string
- type CommentDelActionRequest
- func (*CommentDelActionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CommentDelActionRequest) GetAHashId() string
- func (x *CommentDelActionRequest) GetCHashId() string
- func (*CommentDelActionRequest) ProtoMessage()
- func (x *CommentDelActionRequest) ProtoReflect() protoreflect.Message
- func (x *CommentDelActionRequest) Reset()
- func (x *CommentDelActionRequest) String() string
- type CommentListRequest
- func (*CommentListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CommentListRequest) GetAHashId() string
- func (x *CommentListRequest) GetCHashId() string
- func (x *CommentListRequest) GetType() int32
- func (*CommentListRequest) ProtoMessage()
- func (x *CommentListRequest) ProtoReflect() protoreflect.Message
- func (x *CommentListRequest) Reset()
- func (x *CommentListRequest) String() string
- type CommentListResponse
- func (*CommentListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CommentListResponse) GetCommentList() []*Comment
- func (x *CommentListResponse) GetStatusCode() int32
- func (x *CommentListResponse) GetStatusMsg() string
- func (*CommentListResponse) ProtoMessage()
- func (x *CommentListResponse) ProtoReflect() protoreflect.Message
- func (x *CommentListResponse) Reset()
- func (x *CommentListResponse) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_comment_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Comment ¶
type Comment struct { CHashId string `protobuf:"bytes,1,opt,name=CHashId,proto3" form:"CHashId" json:"CHashId" query:"CHashId"` AHashId string `protobuf:"bytes,2,opt,name=AHashId,proto3" form:"AHashId" json:"AHashId" query:"AHashId"` //文章的id User *common.UserBase `protobuf:"bytes,3,opt,name=User,proto3" form:"User" json:"User" query:"User"` // comment user information Content string `protobuf:"bytes,4,opt,name=Content,proto3" form:"Content" json:"Content" query:"Content"` // comment CreateDate string `protobuf:"bytes,5,opt,name=CreateDate,proto3" form:"CreateDate" json:"CreateDate" query:"CreateDate"` // comment publication date, format mm-dd FavoriteCount int64 `protobuf:"varint,6,opt,name=FavoriteCount,proto3" form:"FavoriteCount" json:"FavoriteCount" query:"FavoriteCount"` //该评论获得的点赞数量 ChildNum int64 `protobuf:"varint,7,opt,name=ChildNum,proto3" form:"ChildNum" json:"ChildNum" query:"ChildNum"` //该评论被回复的数量,当为一级评论时候,显示数量,二级的时候,显示为0 RepliedUHashId string `protobuf:"bytes,8,opt,name=RepliedUHashId,proto3" form:"RepliedUHashId" json:"RepliedUHashId" query:"RepliedUHashId"` //如果该评论为某评论的回复,则该字段为被回复的用户的hashID IsFavorite bool `protobuf:"varint,9,opt,name=IsFavorite,proto3" form:"IsFavorite" json:"IsFavorite" query:"IsFavorite"` // contains filtered or unexported fields }
func (*Comment) Descriptor
deprecated
func (*Comment) GetAHashId ¶
func (*Comment) GetCHashId ¶
func (*Comment) GetChildNum ¶
func (*Comment) GetContent ¶
func (*Comment) GetCreateDate ¶
func (*Comment) GetFavoriteCount ¶
func (*Comment) GetIsFavorite ¶
func (*Comment) GetRepliedUHashId ¶
func (*Comment) ProtoMessage ¶
func (*Comment) ProtoMessage()
func (*Comment) ProtoReflect ¶
func (x *Comment) ProtoReflect() protoreflect.Message
type CommentActionRequest ¶
type CommentActionRequest struct { PHashId string `protobuf:"bytes,1,opt,name=PHashId,proto3" form:"PHashId" json:"pHashId,required" query:"PHashId"` //父亲评论的id AHashId string `protobuf:"bytes,2,opt,name=AHashId,proto3" form:"AHashId" json:"aHashId,required" query:"AHashId"` //文章的id Content string `protobuf:"bytes,3,opt,name=Content,proto3" form:"Content" json:"content,required" query:"Content"` //评论内容 Degree int32 `protobuf:"varint,4,opt,name=Degree,proto3" form:"Degree" json:"degree,required" query:"Degree" vd:"$==1 || $==2"` //评论等级,只能为1或者2 // contains filtered or unexported fields }
func (*CommentActionRequest) Descriptor
deprecated
func (*CommentActionRequest) Descriptor() ([]byte, []int)
Deprecated: Use CommentActionRequest.ProtoReflect.Descriptor instead.
func (*CommentActionRequest) GetAHashId ¶
func (x *CommentActionRequest) GetAHashId() string
func (*CommentActionRequest) GetContent ¶
func (x *CommentActionRequest) GetContent() string
func (*CommentActionRequest) GetDegree ¶
func (x *CommentActionRequest) GetDegree() int32
func (*CommentActionRequest) GetPHashId ¶
func (x *CommentActionRequest) GetPHashId() string
func (*CommentActionRequest) ProtoMessage ¶
func (*CommentActionRequest) ProtoMessage()
func (*CommentActionRequest) ProtoReflect ¶
func (x *CommentActionRequest) ProtoReflect() protoreflect.Message
func (*CommentActionRequest) Reset ¶
func (x *CommentActionRequest) Reset()
func (*CommentActionRequest) String ¶
func (x *CommentActionRequest) String() string
type CommentActionResponse ¶
type CommentActionResponse struct { StatusCode int32 `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3" form:"status_code" json:"status_code" query:"status_code"` // status code, 0-success, other values-failure StatusMsg string `protobuf:"bytes,2,opt,name=status_msg,json=statusMsg,proto3" form:"status_msg" json:"status_msg" query:"status_msg"` // status description CHashId string `protobuf:"bytes,3,opt,name=CHashId,proto3" form:"CHashId" json:"CHashId" query:"CHashId"` // contains filtered or unexported fields }
func (*CommentActionResponse) Descriptor
deprecated
func (*CommentActionResponse) Descriptor() ([]byte, []int)
Deprecated: Use CommentActionResponse.ProtoReflect.Descriptor instead.
func (*CommentActionResponse) GetCHashId ¶
func (x *CommentActionResponse) GetCHashId() string
func (*CommentActionResponse) GetStatusCode ¶
func (x *CommentActionResponse) GetStatusCode() int32
func (*CommentActionResponse) GetStatusMsg ¶
func (x *CommentActionResponse) GetStatusMsg() string
func (*CommentActionResponse) ProtoMessage ¶
func (*CommentActionResponse) ProtoMessage()
func (*CommentActionResponse) ProtoReflect ¶
func (x *CommentActionResponse) ProtoReflect() protoreflect.Message
func (*CommentActionResponse) Reset ¶
func (x *CommentActionResponse) Reset()
func (*CommentActionResponse) String ¶
func (x *CommentActionResponse) String() string
type CommentDelActionRequest ¶
type CommentDelActionRequest struct { CHashId string `protobuf:"bytes,1,opt,name=CHashId,proto3" form:"CHashId" json:"cHashId,required" query:"CHashId"` //评论id AHashId string `protobuf:"bytes,2,opt,name=AHashId,proto3" form:"AHashId" json:"aHashId,required" query:"AHashId"` // contains filtered or unexported fields }
func (*CommentDelActionRequest) Descriptor
deprecated
func (*CommentDelActionRequest) Descriptor() ([]byte, []int)
Deprecated: Use CommentDelActionRequest.ProtoReflect.Descriptor instead.
func (*CommentDelActionRequest) GetAHashId ¶
func (x *CommentDelActionRequest) GetAHashId() string
func (*CommentDelActionRequest) GetCHashId ¶
func (x *CommentDelActionRequest) GetCHashId() string
func (*CommentDelActionRequest) ProtoMessage ¶
func (*CommentDelActionRequest) ProtoMessage()
func (*CommentDelActionRequest) ProtoReflect ¶
func (x *CommentDelActionRequest) ProtoReflect() protoreflect.Message
func (*CommentDelActionRequest) Reset ¶
func (x *CommentDelActionRequest) Reset()
func (*CommentDelActionRequest) String ¶
func (x *CommentDelActionRequest) String() string
type CommentListRequest ¶
type CommentListRequest struct { AHashId string `protobuf:"bytes,1,opt,name=AHashId,proto3" form:"AHashId" json:"aHashId,required" query:"AHashId"` CHashId string `protobuf:"bytes,2,opt,name=CHashId,proto3" form:"CHashId" json:"cHashId,required" query:"CHashId"` Type int32 `protobuf:"varint,3,opt,name=Type,proto3" form:"Type" json:"type,required" query:"Type" vd:"$==1 || $==2"` //1:请求一级评论 2:请求二级评论 // contains filtered or unexported fields }
二级
func (*CommentListRequest) Descriptor
deprecated
func (*CommentListRequest) Descriptor() ([]byte, []int)
Deprecated: Use CommentListRequest.ProtoReflect.Descriptor instead.
func (*CommentListRequest) GetAHashId ¶
func (x *CommentListRequest) GetAHashId() string
func (*CommentListRequest) GetCHashId ¶
func (x *CommentListRequest) GetCHashId() string
func (*CommentListRequest) GetType ¶
func (x *CommentListRequest) GetType() int32
func (*CommentListRequest) ProtoMessage ¶
func (*CommentListRequest) ProtoMessage()
func (*CommentListRequest) ProtoReflect ¶
func (x *CommentListRequest) ProtoReflect() protoreflect.Message
func (*CommentListRequest) Reset ¶
func (x *CommentListRequest) Reset()
func (*CommentListRequest) String ¶
func (x *CommentListRequest) String() string
type CommentListResponse ¶
type CommentListResponse struct { StatusCode int32 `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3" form:"status_code" json:"status_code" query:"status_code"` // 0-success, other values-failure StatusMsg string `protobuf:"bytes,2,opt,name=status_msg,json=statusMsg,proto3" form:"status_msg" json:"status_msg" query:"status_msg"` CommentList []*Comment `protobuf:"bytes,3,rep,name=comment_list,json=commentList,proto3" form:"comment_list" json:"comment_list" query:"comment_list"` // return comment list // contains filtered or unexported fields }
func (*CommentListResponse) Descriptor
deprecated
func (*CommentListResponse) Descriptor() ([]byte, []int)
Deprecated: Use CommentListResponse.ProtoReflect.Descriptor instead.
func (*CommentListResponse) GetCommentList ¶
func (x *CommentListResponse) GetCommentList() []*Comment
func (*CommentListResponse) GetStatusCode ¶
func (x *CommentListResponse) GetStatusCode() int32
func (*CommentListResponse) GetStatusMsg ¶
func (x *CommentListResponse) GetStatusMsg() string
func (*CommentListResponse) ProtoMessage ¶
func (*CommentListResponse) ProtoMessage()
func (*CommentListResponse) ProtoReflect ¶
func (x *CommentListResponse) ProtoReflect() protoreflect.Message
func (*CommentListResponse) Reset ¶
func (x *CommentListResponse) Reset()
func (*CommentListResponse) String ¶
func (x *CommentListResponse) String() string
Click to show internal directories.
Click to hide internal directories.