comment

package
v1.0.50 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Attrs_name = map[int32]string{
		0: "UnknownAttrs",
		1: "None",
		2: "Pinned",
		3: "Highlighted",
		4: "PinnedAndHighlighted",
	}
	Attrs_value = map[string]int32{
		"UnknownAttrs":         0,
		"None":                 1,
		"Pinned":               2,
		"Highlighted":          3,
		"PinnedAndHighlighted": 4,
	}
)

Enum value maps for Attrs.

View Source
var (
	State_name = map[int32]string{
		0: "UnknownState",
		1: "Normal",
		2: "Hidden",
	}
	State_value = map[string]int32{
		"UnknownState": 0,
		"Normal":       1,
		"Hidden":       2,
	}
)

Enum value maps for State.

View Source
var File_platform_comment_common_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Attrs added in v1.0.45

type Attrs int32
const (
	Attrs_UnknownAttrs         Attrs = 0
	Attrs_None                 Attrs = 1 // 无
	Attrs_Pinned               Attrs = 2 // 置顶
	Attrs_Highlighted          Attrs = 3 // 精华
	Attrs_PinnedAndHighlighted Attrs = 4 // 置顶+精华
)

func (Attrs) Descriptor added in v1.0.45

func (Attrs) Descriptor() protoreflect.EnumDescriptor

func (Attrs) Enum added in v1.0.45

func (x Attrs) Enum() *Attrs

func (Attrs) EnumDescriptor deprecated added in v1.0.45

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

Deprecated: Use Attrs.Descriptor instead.

func (Attrs) Number added in v1.0.45

func (x Attrs) Number() protoreflect.EnumNumber

func (Attrs) String added in v1.0.45

func (x Attrs) String() string

func (Attrs) Type added in v1.0.45

func (Attrs) Type() protoreflect.EnumType

type Comment

type Comment struct {
	Id         string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id" form:"id" query:"id"`
	SubjectId  string   `protobuf:"bytes,2,opt,name=subjectId,proto3" json:"subjectId" form:"subjectId" query:"subjectId"`
	RootId     string   `protobuf:"bytes,3,opt,name=rootId,proto3" json:"rootId" form:"rootId" query:"rootId"`
	FatherId   string   `protobuf:"bytes,4,opt,name=fatherId,proto3" json:"fatherId" form:"fatherId" query:"fatherId"`
	Count      *int64   `protobuf:"varint,5,opt,name=count,proto3,oneof" json:"count" form:"count" query:"count"`       // 回复数
	State      int64    `protobuf:"varint,6,opt,name=state,proto3" json:"state" form:"state" query:"state"`             // 1: 正常, 2: 删除
	Attrs      int64    `protobuf:"varint,7,opt,name=attrs,proto3" json:"attrs" form:"attrs" query:"attrs"`             // 1: 无, 2: 置顶, 3: 精华, 4: 置顶+精华
	Tags       []string `protobuf:"bytes,8,rep,name=tags,proto3" json:"tags" form:"tags" query:"tags"`                  // 标签:作者点赞,作者回复等
	UserId     string   `protobuf:"bytes,9,opt,name=userId,proto3" json:"userId" form:"userId" query:"userId"`          // 评论者
	AtUserId   string   `protobuf:"bytes,10,opt,name=atUserId,proto3" json:"atUserId" form:"atUserId" query:"atUserId"` // @谁
	Content    string   `protobuf:"bytes,11,opt,name=content,proto3" json:"content" form:"content" query:"content"`     // 内容
	Meta       string   `protobuf:"bytes,12,opt,name=meta,proto3" json:"meta" form:"meta" query:"meta"`                 // 皮肤,字体等
	CreateTime int64    `protobuf:"varint,13,opt,name=createTime,proto3" json:"createTime" form:"createTime" query:"createTime"`
	// contains filtered or unexported fields
}

func (*Comment) Descriptor deprecated

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

Deprecated: Use Comment.ProtoReflect.Descriptor instead.

func (*Comment) GetAtUserId

func (x *Comment) GetAtUserId() string

func (*Comment) GetAttrs

func (x *Comment) GetAttrs() int64

func (*Comment) GetContent

func (x *Comment) GetContent() string

func (*Comment) GetCount

func (x *Comment) GetCount() int64

func (*Comment) GetCreateTime

func (x *Comment) GetCreateTime() int64

func (*Comment) GetFatherId

func (x *Comment) GetFatherId() string

func (*Comment) GetId

func (x *Comment) GetId() string

func (*Comment) GetMeta

func (x *Comment) GetMeta() string

func (*Comment) GetRootId

func (x *Comment) GetRootId() string

func (*Comment) GetState

func (x *Comment) GetState() int64

func (*Comment) GetSubjectId

func (x *Comment) GetSubjectId() string

func (*Comment) GetTags

func (x *Comment) GetTags() []string

func (*Comment) GetUserId

func (x *Comment) GetUserId() string

func (*Comment) ProtoMessage

func (*Comment) ProtoMessage()

func (*Comment) ProtoReflect

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

func (*Comment) Reset

func (x *Comment) Reset()

func (*Comment) String

func (x *Comment) String() string

type CommentFilterOptions

type CommentFilterOptions struct {
	OnlyUserId    *string `protobuf:"bytes,1,opt,name=onlyUserId,proto3,oneof" json:"onlyUserId" form:"onlyUserId" query:"onlyUserId"`
	OnlyAtUserId  *string `protobuf:"bytes,2,opt,name=onlyAtUserId,proto3,oneof" json:"onlyAtUserId" form:"onlyAtUserId" query:"onlyAtUserId"`
	OnlyCommentId *string `protobuf:"bytes,3,opt,name=onlyCommentId,proto3,oneof" json:"onlyCommentId" form:"onlyCommentId" query:"onlyCommentId"`
	OnlySubjectId *string `protobuf:"bytes,4,opt,name=onlySubjectId,proto3,oneof" json:"onlySubjectId" form:"onlySubjectId" query:"onlySubjectId"`
	OnlyRootId    *string `protobuf:"bytes,5,opt,name=onlyRootId,proto3,oneof" json:"onlyRootId" form:"onlyRootId" query:"onlyRootId"`
	OnlyFatherId  *string `protobuf:"bytes,6,opt,name=onlyFatherId,proto3,oneof" json:"onlyFatherId" form:"onlyFatherId" query:"onlyFatherId"`
	OnlyState     *int64  `protobuf:"varint,7,opt,name=onlyState,proto3,oneof" json:"onlyState" form:"onlyState" query:"onlyState"`
	OnlyAttrs     *int64  `protobuf:"varint,8,opt,name=onlyAttrs,proto3,oneof" json:"onlyAttrs" form:"onlyAttrs" query:"onlyAttrs"`
	// contains filtered or unexported fields
}

func (*CommentFilterOptions) Descriptor deprecated

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

Deprecated: Use CommentFilterOptions.ProtoReflect.Descriptor instead.

func (*CommentFilterOptions) GetOnlyAtUserId

func (x *CommentFilterOptions) GetOnlyAtUserId() string

func (*CommentFilterOptions) GetOnlyAttrs

func (x *CommentFilterOptions) GetOnlyAttrs() int64

func (*CommentFilterOptions) GetOnlyCommentId

func (x *CommentFilterOptions) GetOnlyCommentId() string

func (*CommentFilterOptions) GetOnlyFatherId

func (x *CommentFilterOptions) GetOnlyFatherId() string

func (*CommentFilterOptions) GetOnlyRootId

func (x *CommentFilterOptions) GetOnlyRootId() string

func (*CommentFilterOptions) GetOnlyState

func (x *CommentFilterOptions) GetOnlyState() int64

func (*CommentFilterOptions) GetOnlySubjectId

func (x *CommentFilterOptions) GetOnlySubjectId() string

func (*CommentFilterOptions) GetOnlyUserId

func (x *CommentFilterOptions) GetOnlyUserId() string

func (*CommentFilterOptions) ProtoMessage

func (*CommentFilterOptions) ProtoMessage()

func (*CommentFilterOptions) ProtoReflect

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

func (*CommentFilterOptions) Reset

func (x *CommentFilterOptions) Reset()

func (*CommentFilterOptions) String

func (x *CommentFilterOptions) String() string

type CommentInfo

type CommentInfo struct {
	Id         string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id" form:"id" query:"id"`
	SubjectId  string   `protobuf:"bytes,2,opt,name=subjectId,proto3" json:"subjectId" form:"subjectId" query:"subjectId"`
	RootId     string   `protobuf:"bytes,3,opt,name=rootId,proto3" json:"rootId" form:"rootId" query:"rootId"`
	FatherId   string   `protobuf:"bytes,4,opt,name=fatherId,proto3" json:"fatherId" form:"fatherId" query:"fatherId"`
	Count      int64    `protobuf:"varint,5,opt,name=count,proto3" json:"count" form:"count" query:"count"`             // 回复数
	State      int64    `protobuf:"varint,6,opt,name=state,proto3" json:"state" form:"state" query:"state"`             // 1: 正常, 2: 删除
	Attrs      int64    `protobuf:"varint,7,opt,name=attrs,proto3" json:"attrs" form:"attrs" query:"attrs"`             // 1: 无, 2: 置顶, 3: 精华, 4: 置顶+精华
	Tags       []string `protobuf:"bytes,8,rep,name=tags,proto3" json:"tags" form:"tags" query:"tags"`                  // 标签:作者点赞,作者回复等
	UserId     string   `protobuf:"bytes,9,opt,name=userId,proto3" json:"userId" form:"userId" query:"userId"`          // 评论者
	AtUserId   string   `protobuf:"bytes,10,opt,name=atUserId,proto3" json:"atUserId" form:"atUserId" query:"atUserId"` // @谁
	Content    string   `protobuf:"bytes,11,opt,name=content,proto3" json:"content" form:"content" query:"content"`     // 内容
	Meta       string   `protobuf:"bytes,12,opt,name=meta,proto3" json:"meta" form:"meta" query:"meta"`                 // 皮肤,字体等
	CreateTime int64    `protobuf:"varint,13,opt,name=createTime,proto3" json:"createTime" form:"createTime" query:"createTime"`
	// contains filtered or unexported fields
}

func (*CommentInfo) Descriptor deprecated

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

Deprecated: Use CommentInfo.ProtoReflect.Descriptor instead.

func (*CommentInfo) GetAtUserId

func (x *CommentInfo) GetAtUserId() string

func (*CommentInfo) GetAttrs

func (x *CommentInfo) GetAttrs() int64

func (*CommentInfo) GetContent

func (x *CommentInfo) GetContent() string

func (*CommentInfo) GetCount

func (x *CommentInfo) GetCount() int64

func (*CommentInfo) GetCreateTime

func (x *CommentInfo) GetCreateTime() int64

func (*CommentInfo) GetFatherId

func (x *CommentInfo) GetFatherId() string

func (*CommentInfo) GetId

func (x *CommentInfo) GetId() string

func (*CommentInfo) GetMeta

func (x *CommentInfo) GetMeta() string

func (*CommentInfo) GetRootId

func (x *CommentInfo) GetRootId() string

func (*CommentInfo) GetState

func (x *CommentInfo) GetState() int64

func (*CommentInfo) GetSubjectId

func (x *CommentInfo) GetSubjectId() string

func (*CommentInfo) GetTags

func (x *CommentInfo) GetTags() []string

func (*CommentInfo) GetUserId

func (x *CommentInfo) GetUserId() string

func (*CommentInfo) ProtoMessage

func (*CommentInfo) ProtoMessage()

func (*CommentInfo) ProtoReflect

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

func (*CommentInfo) Reset

func (x *CommentInfo) Reset()

func (*CommentInfo) String

func (x *CommentInfo) String() string

type Content

type Content struct {
	Id         string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" form:"id" query:"id"`
	UserId     string `protobuf:"bytes,2,opt,name=userId,proto3" json:"userId" form:"userId" query:"userId"`         // 评论者
	AtUserId   string `protobuf:"bytes,3,opt,name=atUserId,proto3" json:"atUserId" form:"atUserId" query:"atUserId"` // @谁
	Content    string `protobuf:"bytes,4,opt,name=content,proto3" json:"content" form:"content" query:"content"`     // 内容
	Meta       string `protobuf:"bytes,5,opt,name=meta,proto3" json:"meta" form:"meta" query:"meta"`                 // 皮肤,字体等
	CreateTime int64  `protobuf:"varint,6,opt,name=createTime,proto3" json:"createTime" form:"createTime" query:"createTime"`
	// contains filtered or unexported fields
}

func (*Content) Descriptor deprecated

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

Deprecated: Use Content.ProtoReflect.Descriptor instead.

func (*Content) GetAtUserId

func (x *Content) GetAtUserId() string

func (*Content) GetContent

func (x *Content) GetContent() string

func (*Content) GetCreateTime

func (x *Content) GetCreateTime() int64

func (*Content) GetId

func (x *Content) GetId() string

func (*Content) GetMeta

func (x *Content) GetMeta() string

func (*Content) GetUserId

func (x *Content) GetUserId() string

func (*Content) ProtoMessage

func (*Content) ProtoMessage()

func (*Content) ProtoReflect

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

func (*Content) Reset

func (x *Content) Reset()

func (*Content) String

func (x *Content) String() string

type IndexInfo

type IndexInfo struct {
	Id        string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id" form:"id" query:"id"`
	SubjectId string   `protobuf:"bytes,2,opt,name=subjectId,proto3" json:"subjectId" form:"subjectId" query:"subjectId"`
	RootId    string   `protobuf:"bytes,3,opt,name=rootId,proto3" json:"rootId" form:"rootId" query:"rootId"`
	FatherId  string   `protobuf:"bytes,4,opt,name=fatherId,proto3" json:"fatherId" form:"fatherId" query:"fatherId"`
	Count     int64    `protobuf:"varint,5,opt,name=count,proto3" json:"count" form:"count" query:"count"` // 回复数
	State     int64    `protobuf:"varint,6,opt,name=state,proto3" json:"state" form:"state" query:"state"` // 1: 正常, 2: 删除
	Attrs     int64    `protobuf:"varint,7,opt,name=attrs,proto3" json:"attrs" form:"attrs" query:"attrs"` // 1: 无, 2: 置顶, 3: 精华, 4: 置顶+精华
	Tags      []string `protobuf:"bytes,8,rep,name=tags,proto3" json:"tags" form:"tags" query:"tags"`      // 标签:作者点赞,作者回复等
	// contains filtered or unexported fields
}

func (*IndexInfo) Descriptor deprecated

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

Deprecated: Use IndexInfo.ProtoReflect.Descriptor instead.

func (*IndexInfo) GetAttrs

func (x *IndexInfo) GetAttrs() int64

func (*IndexInfo) GetCount

func (x *IndexInfo) GetCount() int64

func (*IndexInfo) GetFatherId

func (x *IndexInfo) GetFatherId() string

func (*IndexInfo) GetId

func (x *IndexInfo) GetId() string

func (*IndexInfo) GetRootId

func (x *IndexInfo) GetRootId() string

func (*IndexInfo) GetState

func (x *IndexInfo) GetState() int64

func (*IndexInfo) GetSubjectId

func (x *IndexInfo) GetSubjectId() string

func (*IndexInfo) GetTags

func (x *IndexInfo) GetTags() []string

func (*IndexInfo) ProtoMessage

func (*IndexInfo) ProtoMessage()

func (*IndexInfo) ProtoReflect

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

func (*IndexInfo) Reset

func (x *IndexInfo) Reset()

func (*IndexInfo) String

func (x *IndexInfo) String() string

type Label

type Label struct {
	LabelId string `protobuf:"bytes,1,opt,name=labelId,proto3" json:"labelId" form:"labelId" query:"labelId"`
	Value   string `protobuf:"bytes,2,opt,name=value,proto3" json:"value" form:"value" query:"value"`
	// contains filtered or unexported fields
}

func (*Label) Descriptor deprecated

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

Deprecated: Use Label.ProtoReflect.Descriptor instead.

func (*Label) GetLabelId

func (x *Label) GetLabelId() string

func (*Label) GetValue

func (x *Label) GetValue() string

func (*Label) ProtoMessage

func (*Label) ProtoMessage()

func (*Label) ProtoReflect

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

func (*Label) Reset

func (x *Label) Reset()

func (*Label) String

func (x *Label) String() string

type State added in v1.0.45

type State int32
const (
	State_UnknownState State = 0
	State_Normal       State = 1 // 正常状态
	State_Hidden       State = 2 // 隐藏状态
)

func (State) Descriptor added in v1.0.45

func (State) Descriptor() protoreflect.EnumDescriptor

func (State) Enum added in v1.0.45

func (x State) Enum() *State

func (State) EnumDescriptor deprecated added in v1.0.45

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

Deprecated: Use State.Descriptor instead.

func (State) Number added in v1.0.45

func (x State) Number() protoreflect.EnumNumber

func (State) String added in v1.0.45

func (x State) String() string

func (State) Type added in v1.0.45

func (State) Type() protoreflect.EnumType

type Subject

type Subject struct {
	Id           string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" form:"id" query:"id"`
	UserId       string `protobuf:"bytes,2,opt,name=userId,proto3" json:"userId" form:"userId" query:"userId"`
	TopCommentId string `protobuf:"bytes,3,opt,name=topCommentId,proto3" json:"topCommentId" form:"topCommentId" query:"topCommentId"`
	RootCount    *int64 `protobuf:"varint,4,opt,name=rootCount,proto3,oneof" json:"rootCount" form:"rootCount" query:"rootCount"`
	AllCount     *int64 `protobuf:"varint,5,opt,name=allCount,proto3,oneof" json:"allCount" form:"allCount" query:"allCount"`
	State        int64  `protobuf:"varint,6,opt,name=state,proto3" json:"state" form:"state" query:"state"` // 1: 正常, 2: 删除
	Attrs        int64  `protobuf:"varint,7,opt,name=attrs,proto3" json:"attrs" form:"attrs" query:"attrs"` // 1: 无, 2: 置顶, 3: 精华, 4: 置顶+精华
	// contains filtered or unexported fields
}

func (*Subject) Descriptor deprecated

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

Deprecated: Use Subject.ProtoReflect.Descriptor instead.

func (*Subject) GetAllCount

func (x *Subject) GetAllCount() int64

func (*Subject) GetAttrs

func (x *Subject) GetAttrs() int64

func (*Subject) GetId

func (x *Subject) GetId() string

func (*Subject) GetRootCount

func (x *Subject) GetRootCount() int64

func (*Subject) GetState

func (x *Subject) GetState() int64

func (*Subject) GetTopCommentId

func (x *Subject) GetTopCommentId() string

func (*Subject) GetUserId

func (x *Subject) GetUserId() string

func (*Subject) ProtoMessage

func (*Subject) ProtoMessage()

func (*Subject) ProtoReflect

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

func (*Subject) Reset

func (x *Subject) Reset()

func (*Subject) String

func (x *Subject) String() string

type SubjectDetails

type SubjectDetails struct {
	Id           string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" form:"id" query:"id"`
	UserId       string `protobuf:"bytes,2,opt,name=userId,proto3" json:"userId" form:"userId" query:"userId"`
	TopCommentId string `protobuf:"bytes,3,opt,name=TopCommentId,proto3" json:"TopCommentId" form:"TopCommentId" query:"TopCommentId"`
	RootCount    int64  `protobuf:"varint,4,opt,name=rootCount,proto3" json:"rootCount" form:"rootCount" query:"rootCount"`
	AllCount     int64  `protobuf:"varint,5,opt,name=allCount,proto3" json:"allCount" form:"allCount" query:"allCount"`
	State        int64  `protobuf:"varint,6,opt,name=state,proto3" json:"state" form:"state" query:"state"` // 1: 正常, 2: 删除
	Attrs        int64  `protobuf:"varint,7,opt,name=attrs,proto3" json:"attrs" form:"attrs" query:"attrs"` // 1: 无, 2: 置顶, 3: 精华, 4: 置顶+精华
	// contains filtered or unexported fields
}

func (*SubjectDetails) Descriptor deprecated

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

Deprecated: Use SubjectDetails.ProtoReflect.Descriptor instead.

func (*SubjectDetails) GetAllCount

func (x *SubjectDetails) GetAllCount() int64

func (*SubjectDetails) GetAttrs

func (x *SubjectDetails) GetAttrs() int64

func (*SubjectDetails) GetId

func (x *SubjectDetails) GetId() string

func (*SubjectDetails) GetRootCount

func (x *SubjectDetails) GetRootCount() int64

func (*SubjectDetails) GetState

func (x *SubjectDetails) GetState() int64

func (*SubjectDetails) GetTopCommentId

func (x *SubjectDetails) GetTopCommentId() string

func (*SubjectDetails) GetUserId

func (x *SubjectDetails) GetUserId() string

func (*SubjectDetails) ProtoMessage

func (*SubjectDetails) ProtoMessage()

func (*SubjectDetails) ProtoReflect

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

func (*SubjectDetails) Reset

func (x *SubjectDetails) Reset()

func (*SubjectDetails) String

func (x *SubjectDetails) String() string

type SubjectInfo

type SubjectInfo struct {
	Id     string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" form:"id" query:"id"`
	UserId string `protobuf:"bytes,2,opt,name=userId,proto3" json:"userId" form:"userId" query:"userId"`
	Attrs  int64  `protobuf:"varint,3,opt,name=attrs,proto3" json:"attrs" form:"attrs" query:"attrs"` // 1: 无, 2: 置顶, 3: 精华, 4: 置顶+精华
	// contains filtered or unexported fields
}

func (*SubjectInfo) Descriptor deprecated

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

Deprecated: Use SubjectInfo.ProtoReflect.Descriptor instead.

func (*SubjectInfo) GetAttrs

func (x *SubjectInfo) GetAttrs() int64

func (*SubjectInfo) GetId

func (x *SubjectInfo) GetId() string

func (*SubjectInfo) GetUserId

func (x *SubjectInfo) GetUserId() string

func (*SubjectInfo) ProtoMessage

func (*SubjectInfo) ProtoMessage()

func (*SubjectInfo) ProtoReflect

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

func (*SubjectInfo) Reset

func (x *SubjectInfo) Reset()

func (*SubjectInfo) String

func (x *SubjectInfo) String() string

Jump to

Keyboard shortcuts

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