topfans/backend/pkg/proto/moderation/moderation.pb.go
2026-06-22 17:19:48 +08:00

1576 lines
52 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
// protoc v7.34.0
// source: moderation.proto
package moderation
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
unsafe "unsafe"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type SubmitReportRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
ReporterId int64 `protobuf:"varint,1,opt,name=reporter_id,json=reporterId,proto3" json:"reporter_id,omitempty"`
TargetType string `protobuf:"bytes,2,opt,name=target_type,json=targetType,proto3" json:"target_type,omitempty"` // asset | user_profile
TargetId int64 `protobuf:"varint,3,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty"`
CategoryCode string `protobuf:"bytes,4,opt,name=category_code,json=categoryCode,proto3" json:"category_code,omitempty"` // 举报分类 code
Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` // <= 500
IsAnonymous bool `protobuf:"varint,6,opt,name=is_anonymous,json=isAnonymous,proto3" json:"is_anonymous,omitempty"`
EvidenceKeys []string `protobuf:"bytes,7,rep,name=evidence_keys,json=evidenceKeys,proto3" json:"evidence_keys,omitempty"` // OSS keys, <= 5
ClientIp string `protobuf:"bytes,8,opt,name=client_ip,json=clientIp,proto3" json:"client_ip,omitempty"`
DeviceFp string `protobuf:"bytes,9,opt,name=device_fp,json=deviceFp,proto3" json:"device_fp,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SubmitReportRequest) Reset() {
*x = SubmitReportRequest{}
mi := &file_moderation_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SubmitReportRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SubmitReportRequest) ProtoMessage() {}
func (x *SubmitReportRequest) ProtoReflect() protoreflect.Message {
mi := &file_moderation_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SubmitReportRequest.ProtoReflect.Descriptor instead.
func (*SubmitReportRequest) Descriptor() ([]byte, []int) {
return file_moderation_proto_rawDescGZIP(), []int{0}
}
func (x *SubmitReportRequest) GetReporterId() int64 {
if x != nil {
return x.ReporterId
}
return 0
}
func (x *SubmitReportRequest) GetTargetType() string {
if x != nil {
return x.TargetType
}
return ""
}
func (x *SubmitReportRequest) GetTargetId() int64 {
if x != nil {
return x.TargetId
}
return 0
}
func (x *SubmitReportRequest) GetCategoryCode() string {
if x != nil {
return x.CategoryCode
}
return ""
}
func (x *SubmitReportRequest) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (x *SubmitReportRequest) GetIsAnonymous() bool {
if x != nil {
return x.IsAnonymous
}
return false
}
func (x *SubmitReportRequest) GetEvidenceKeys() []string {
if x != nil {
return x.EvidenceKeys
}
return nil
}
func (x *SubmitReportRequest) GetClientIp() string {
if x != nil {
return x.ClientIp
}
return ""
}
func (x *SubmitReportRequest) GetDeviceFp() string {
if x != nil {
return x.DeviceFp
}
return ""
}
type SubmitReportResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
ReportId int64 `protobuf:"varint,1,opt,name=report_id,json=reportId,proto3" json:"report_id,omitempty"`
Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` // pending | auto_hidden
AutoHidden bool `protobuf:"varint,3,opt,name=auto_hidden,json=autoHidden,proto3" json:"auto_hidden,omitempty"`
TargetHidden bool `protobuf:"varint,4,opt,name=target_hidden,json=targetHidden,proto3" json:"target_hidden,omitempty"` // 本次 auto-hide 是否执行了 UPDATE
ClaimedBy int64 `protobuf:"varint,5,opt,name=claimed_by,json=claimedBy,proto3" json:"claimed_by,omitempty"`
ClaimedAt int64 `protobuf:"varint,6,opt,name=claimed_at,json=claimedAt,proto3" json:"claimed_at,omitempty"`
CreatedAt int64 `protobuf:"varint,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SubmitReportResponse) Reset() {
*x = SubmitReportResponse{}
mi := &file_moderation_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SubmitReportResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SubmitReportResponse) ProtoMessage() {}
func (x *SubmitReportResponse) ProtoReflect() protoreflect.Message {
mi := &file_moderation_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SubmitReportResponse.ProtoReflect.Descriptor instead.
func (*SubmitReportResponse) Descriptor() ([]byte, []int) {
return file_moderation_proto_rawDescGZIP(), []int{1}
}
func (x *SubmitReportResponse) GetReportId() int64 {
if x != nil {
return x.ReportId
}
return 0
}
func (x *SubmitReportResponse) GetStatus() string {
if x != nil {
return x.Status
}
return ""
}
func (x *SubmitReportResponse) GetAutoHidden() bool {
if x != nil {
return x.AutoHidden
}
return false
}
func (x *SubmitReportResponse) GetTargetHidden() bool {
if x != nil {
return x.TargetHidden
}
return false
}
func (x *SubmitReportResponse) GetClaimedBy() int64 {
if x != nil {
return x.ClaimedBy
}
return 0
}
func (x *SubmitReportResponse) GetClaimedAt() int64 {
if x != nil {
return x.ClaimedAt
}
return 0
}
func (x *SubmitReportResponse) GetCreatedAt() int64 {
if x != nil {
return x.CreatedAt
}
return 0
}
type ListMyReportsRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
ReporterId int64 `protobuf:"varint,1,opt,name=reporter_id,json=reporterId,proto3" json:"reporter_id,omitempty"`
Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` // 可选过滤
Page int32 `protobuf:"varint,3,opt,name=page,proto3" json:"page,omitempty"`
PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ListMyReportsRequest) Reset() {
*x = ListMyReportsRequest{}
mi := &file_moderation_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ListMyReportsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListMyReportsRequest) ProtoMessage() {}
func (x *ListMyReportsRequest) ProtoReflect() protoreflect.Message {
mi := &file_moderation_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListMyReportsRequest.ProtoReflect.Descriptor instead.
func (*ListMyReportsRequest) Descriptor() ([]byte, []int) {
return file_moderation_proto_rawDescGZIP(), []int{2}
}
func (x *ListMyReportsRequest) GetReporterId() int64 {
if x != nil {
return x.ReporterId
}
return 0
}
func (x *ListMyReportsRequest) GetStatus() string {
if x != nil {
return x.Status
}
return ""
}
func (x *ListMyReportsRequest) GetPage() int32 {
if x != nil {
return x.Page
}
return 0
}
func (x *ListMyReportsRequest) GetPageSize() int32 {
if x != nil {
return x.PageSize
}
return 0
}
type ReportSummary struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
TargetType string `protobuf:"bytes,2,opt,name=target_type,json=targetType,proto3" json:"target_type,omitempty"`
TargetId int64 `protobuf:"varint,3,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty"`
CategoryCode string `protobuf:"bytes,4,opt,name=category_code,json=categoryCode,proto3" json:"category_code,omitempty"`
Status string `protobuf:"bytes,5,opt,name=status,proto3" json:"status,omitempty"`
CreatedAt int64 `protobuf:"varint,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
ResolvedAt int64 `protobuf:"varint,7,opt,name=resolved_at,json=resolvedAt,proto3" json:"resolved_at,omitempty"`
ResolvedAction string `protobuf:"bytes,8,opt,name=resolved_action,json=resolvedAction,proto3" json:"resolved_action,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ReportSummary) Reset() {
*x = ReportSummary{}
mi := &file_moderation_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ReportSummary) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ReportSummary) ProtoMessage() {}
func (x *ReportSummary) ProtoReflect() protoreflect.Message {
mi := &file_moderation_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ReportSummary.ProtoReflect.Descriptor instead.
func (*ReportSummary) Descriptor() ([]byte, []int) {
return file_moderation_proto_rawDescGZIP(), []int{3}
}
func (x *ReportSummary) GetId() int64 {
if x != nil {
return x.Id
}
return 0
}
func (x *ReportSummary) GetTargetType() string {
if x != nil {
return x.TargetType
}
return ""
}
func (x *ReportSummary) GetTargetId() int64 {
if x != nil {
return x.TargetId
}
return 0
}
func (x *ReportSummary) GetCategoryCode() string {
if x != nil {
return x.CategoryCode
}
return ""
}
func (x *ReportSummary) GetStatus() string {
if x != nil {
return x.Status
}
return ""
}
func (x *ReportSummary) GetCreatedAt() int64 {
if x != nil {
return x.CreatedAt
}
return 0
}
func (x *ReportSummary) GetResolvedAt() int64 {
if x != nil {
return x.ResolvedAt
}
return 0
}
func (x *ReportSummary) GetResolvedAction() string {
if x != nil {
return x.ResolvedAction
}
return ""
}
type ListMyReportsResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Reports []*ReportSummary `protobuf:"bytes,1,rep,name=reports,proto3" json:"reports,omitempty"`
Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ListMyReportsResponse) Reset() {
*x = ListMyReportsResponse{}
mi := &file_moderation_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ListMyReportsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListMyReportsResponse) ProtoMessage() {}
func (x *ListMyReportsResponse) ProtoReflect() protoreflect.Message {
mi := &file_moderation_proto_msgTypes[4]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListMyReportsResponse.ProtoReflect.Descriptor instead.
func (*ListMyReportsResponse) Descriptor() ([]byte, []int) {
return file_moderation_proto_rawDescGZIP(), []int{4}
}
func (x *ListMyReportsResponse) GetReports() []*ReportSummary {
if x != nil {
return x.Reports
}
return nil
}
func (x *ListMyReportsResponse) GetTotal() int32 {
if x != nil {
return x.Total
}
return 0
}
type GetReportRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
ReporterId int64 `protobuf:"varint,1,opt,name=reporter_id,json=reporterId,proto3" json:"reporter_id,omitempty"`
Id int64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetReportRequest) Reset() {
*x = GetReportRequest{}
mi := &file_moderation_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetReportRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetReportRequest) ProtoMessage() {}
func (x *GetReportRequest) ProtoReflect() protoreflect.Message {
mi := &file_moderation_proto_msgTypes[5]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetReportRequest.ProtoReflect.Descriptor instead.
func (*GetReportRequest) Descriptor() ([]byte, []int) {
return file_moderation_proto_rawDescGZIP(), []int{5}
}
func (x *GetReportRequest) GetReporterId() int64 {
if x != nil {
return x.ReporterId
}
return 0
}
func (x *GetReportRequest) GetId() int64 {
if x != nil {
return x.Id
}
return 0
}
type GetReportResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Report *ReportSummary `protobuf:"bytes,1,opt,name=report,proto3" json:"report,omitempty"`
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
Evidence []*EvidenceSummary `protobuf:"bytes,3,rep,name=evidence,proto3" json:"evidence,omitempty"`
TargetSnapshotJson string `protobuf:"bytes,4,opt,name=target_snapshot_json,json=targetSnapshotJson,proto3" json:"target_snapshot_json,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetReportResponse) Reset() {
*x = GetReportResponse{}
mi := &file_moderation_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetReportResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetReportResponse) ProtoMessage() {}
func (x *GetReportResponse) ProtoReflect() protoreflect.Message {
mi := &file_moderation_proto_msgTypes[6]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetReportResponse.ProtoReflect.Descriptor instead.
func (*GetReportResponse) Descriptor() ([]byte, []int) {
return file_moderation_proto_rawDescGZIP(), []int{6}
}
func (x *GetReportResponse) GetReport() *ReportSummary {
if x != nil {
return x.Report
}
return nil
}
func (x *GetReportResponse) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (x *GetReportResponse) GetEvidence() []*EvidenceSummary {
if x != nil {
return x.Evidence
}
return nil
}
func (x *GetReportResponse) GetTargetSnapshotJson() string {
if x != nil {
return x.TargetSnapshotJson
}
return ""
}
type EvidenceSummary struct {
state protoimpl.MessageState `protogen:"open.v1"`
OssKey string `protobuf:"bytes,1,opt,name=oss_key,json=ossKey,proto3" json:"oss_key,omitempty"`
OssUrl string `protobuf:"bytes,2,opt,name=oss_url,json=ossUrl,proto3" json:"oss_url,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *EvidenceSummary) Reset() {
*x = EvidenceSummary{}
mi := &file_moderation_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *EvidenceSummary) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*EvidenceSummary) ProtoMessage() {}
func (x *EvidenceSummary) ProtoReflect() protoreflect.Message {
mi := &file_moderation_proto_msgTypes[7]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use EvidenceSummary.ProtoReflect.Descriptor instead.
func (*EvidenceSummary) Descriptor() ([]byte, []int) {
return file_moderation_proto_rawDescGZIP(), []int{7}
}
func (x *EvidenceSummary) GetOssKey() string {
if x != nil {
return x.OssKey
}
return ""
}
func (x *EvidenceSummary) GetOssUrl() string {
if x != nil {
return x.OssUrl
}
return ""
}
type SubmitFeedbackRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
StarId int64 `protobuf:"varint,2,opt,name=star_id,json=starId,proto3" json:"star_id,omitempty"`
CategoryCode string `protobuf:"bytes,3,opt,name=category_code,json=categoryCode,proto3" json:"category_code,omitempty"`
Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"` // <= 100
Content string `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"`
Contact string `protobuf:"bytes,6,opt,name=contact,proto3" json:"contact,omitempty"` // <= 320
IsAnonymous bool `protobuf:"varint,7,opt,name=is_anonymous,json=isAnonymous,proto3" json:"is_anonymous,omitempty"`
EvidenceKeys []string `protobuf:"bytes,8,rep,name=evidence_keys,json=evidenceKeys,proto3" json:"evidence_keys,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SubmitFeedbackRequest) Reset() {
*x = SubmitFeedbackRequest{}
mi := &file_moderation_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SubmitFeedbackRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SubmitFeedbackRequest) ProtoMessage() {}
func (x *SubmitFeedbackRequest) ProtoReflect() protoreflect.Message {
mi := &file_moderation_proto_msgTypes[8]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SubmitFeedbackRequest.ProtoReflect.Descriptor instead.
func (*SubmitFeedbackRequest) Descriptor() ([]byte, []int) {
return file_moderation_proto_rawDescGZIP(), []int{8}
}
func (x *SubmitFeedbackRequest) GetUserId() int64 {
if x != nil {
return x.UserId
}
return 0
}
func (x *SubmitFeedbackRequest) GetStarId() int64 {
if x != nil {
return x.StarId
}
return 0
}
func (x *SubmitFeedbackRequest) GetCategoryCode() string {
if x != nil {
return x.CategoryCode
}
return ""
}
func (x *SubmitFeedbackRequest) GetTitle() string {
if x != nil {
return x.Title
}
return ""
}
func (x *SubmitFeedbackRequest) GetContent() string {
if x != nil {
return x.Content
}
return ""
}
func (x *SubmitFeedbackRequest) GetContact() string {
if x != nil {
return x.Contact
}
return ""
}
func (x *SubmitFeedbackRequest) GetIsAnonymous() bool {
if x != nil {
return x.IsAnonymous
}
return false
}
func (x *SubmitFeedbackRequest) GetEvidenceKeys() []string {
if x != nil {
return x.EvidenceKeys
}
return nil
}
type SubmitFeedbackResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
FeedbackId int64 `protobuf:"varint,1,opt,name=feedback_id,json=feedbackId,proto3" json:"feedback_id,omitempty"`
Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
ClaimedBy int64 `protobuf:"varint,3,opt,name=claimed_by,json=claimedBy,proto3" json:"claimed_by,omitempty"`
ClaimedAt int64 `protobuf:"varint,4,opt,name=claimed_at,json=claimedAt,proto3" json:"claimed_at,omitempty"`
CreatedAt int64 `protobuf:"varint,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SubmitFeedbackResponse) Reset() {
*x = SubmitFeedbackResponse{}
mi := &file_moderation_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SubmitFeedbackResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SubmitFeedbackResponse) ProtoMessage() {}
func (x *SubmitFeedbackResponse) ProtoReflect() protoreflect.Message {
mi := &file_moderation_proto_msgTypes[9]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SubmitFeedbackResponse.ProtoReflect.Descriptor instead.
func (*SubmitFeedbackResponse) Descriptor() ([]byte, []int) {
return file_moderation_proto_rawDescGZIP(), []int{9}
}
func (x *SubmitFeedbackResponse) GetFeedbackId() int64 {
if x != nil {
return x.FeedbackId
}
return 0
}
func (x *SubmitFeedbackResponse) GetStatus() string {
if x != nil {
return x.Status
}
return ""
}
func (x *SubmitFeedbackResponse) GetClaimedBy() int64 {
if x != nil {
return x.ClaimedBy
}
return 0
}
func (x *SubmitFeedbackResponse) GetClaimedAt() int64 {
if x != nil {
return x.ClaimedAt
}
return 0
}
func (x *SubmitFeedbackResponse) GetCreatedAt() int64 {
if x != nil {
return x.CreatedAt
}
return 0
}
type ListMyFeedbacksRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
Page int32 `protobuf:"varint,3,opt,name=page,proto3" json:"page,omitempty"`
PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ListMyFeedbacksRequest) Reset() {
*x = ListMyFeedbacksRequest{}
mi := &file_moderation_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ListMyFeedbacksRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListMyFeedbacksRequest) ProtoMessage() {}
func (x *ListMyFeedbacksRequest) ProtoReflect() protoreflect.Message {
mi := &file_moderation_proto_msgTypes[10]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListMyFeedbacksRequest.ProtoReflect.Descriptor instead.
func (*ListMyFeedbacksRequest) Descriptor() ([]byte, []int) {
return file_moderation_proto_rawDescGZIP(), []int{10}
}
func (x *ListMyFeedbacksRequest) GetUserId() int64 {
if x != nil {
return x.UserId
}
return 0
}
func (x *ListMyFeedbacksRequest) GetStatus() string {
if x != nil {
return x.Status
}
return ""
}
func (x *ListMyFeedbacksRequest) GetPage() int32 {
if x != nil {
return x.Page
}
return 0
}
func (x *ListMyFeedbacksRequest) GetPageSize() int32 {
if x != nil {
return x.PageSize
}
return 0
}
type FeedbackSummary struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
CategoryCode string `protobuf:"bytes,2,opt,name=category_code,json=categoryCode,proto3" json:"category_code,omitempty"`
Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
Status string `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"`
CreatedAt int64 `protobuf:"varint,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
RepliedAt int64 `protobuf:"varint,6,opt,name=replied_at,json=repliedAt,proto3" json:"replied_at,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *FeedbackSummary) Reset() {
*x = FeedbackSummary{}
mi := &file_moderation_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *FeedbackSummary) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FeedbackSummary) ProtoMessage() {}
func (x *FeedbackSummary) ProtoReflect() protoreflect.Message {
mi := &file_moderation_proto_msgTypes[11]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FeedbackSummary.ProtoReflect.Descriptor instead.
func (*FeedbackSummary) Descriptor() ([]byte, []int) {
return file_moderation_proto_rawDescGZIP(), []int{11}
}
func (x *FeedbackSummary) GetId() int64 {
if x != nil {
return x.Id
}
return 0
}
func (x *FeedbackSummary) GetCategoryCode() string {
if x != nil {
return x.CategoryCode
}
return ""
}
func (x *FeedbackSummary) GetTitle() string {
if x != nil {
return x.Title
}
return ""
}
func (x *FeedbackSummary) GetStatus() string {
if x != nil {
return x.Status
}
return ""
}
func (x *FeedbackSummary) GetCreatedAt() int64 {
if x != nil {
return x.CreatedAt
}
return 0
}
func (x *FeedbackSummary) GetRepliedAt() int64 {
if x != nil {
return x.RepliedAt
}
return 0
}
type ListMyFeedbacksResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Feedbacks []*FeedbackSummary `protobuf:"bytes,1,rep,name=feedbacks,proto3" json:"feedbacks,omitempty"`
Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ListMyFeedbacksResponse) Reset() {
*x = ListMyFeedbacksResponse{}
mi := &file_moderation_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ListMyFeedbacksResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListMyFeedbacksResponse) ProtoMessage() {}
func (x *ListMyFeedbacksResponse) ProtoReflect() protoreflect.Message {
mi := &file_moderation_proto_msgTypes[12]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListMyFeedbacksResponse.ProtoReflect.Descriptor instead.
func (*ListMyFeedbacksResponse) Descriptor() ([]byte, []int) {
return file_moderation_proto_rawDescGZIP(), []int{12}
}
func (x *ListMyFeedbacksResponse) GetFeedbacks() []*FeedbackSummary {
if x != nil {
return x.Feedbacks
}
return nil
}
func (x *ListMyFeedbacksResponse) GetTotal() int32 {
if x != nil {
return x.Total
}
return 0
}
type GetFeedbackRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
Id int64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetFeedbackRequest) Reset() {
*x = GetFeedbackRequest{}
mi := &file_moderation_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetFeedbackRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetFeedbackRequest) ProtoMessage() {}
func (x *GetFeedbackRequest) ProtoReflect() protoreflect.Message {
mi := &file_moderation_proto_msgTypes[13]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetFeedbackRequest.ProtoReflect.Descriptor instead.
func (*GetFeedbackRequest) Descriptor() ([]byte, []int) {
return file_moderation_proto_rawDescGZIP(), []int{13}
}
func (x *GetFeedbackRequest) GetUserId() int64 {
if x != nil {
return x.UserId
}
return 0
}
func (x *GetFeedbackRequest) GetId() int64 {
if x != nil {
return x.Id
}
return 0
}
type GetFeedbackResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Feedback *FeedbackSummary `protobuf:"bytes,1,opt,name=feedback,proto3" json:"feedback,omitempty"`
Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
ReplyContent string `protobuf:"bytes,3,opt,name=reply_content,json=replyContent,proto3" json:"reply_content,omitempty"`
Evidence []*EvidenceSummary `protobuf:"bytes,4,rep,name=evidence,proto3" json:"evidence,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetFeedbackResponse) Reset() {
*x = GetFeedbackResponse{}
mi := &file_moderation_proto_msgTypes[14]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetFeedbackResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetFeedbackResponse) ProtoMessage() {}
func (x *GetFeedbackResponse) ProtoReflect() protoreflect.Message {
mi := &file_moderation_proto_msgTypes[14]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetFeedbackResponse.ProtoReflect.Descriptor instead.
func (*GetFeedbackResponse) Descriptor() ([]byte, []int) {
return file_moderation_proto_rawDescGZIP(), []int{14}
}
func (x *GetFeedbackResponse) GetFeedback() *FeedbackSummary {
if x != nil {
return x.Feedback
}
return nil
}
func (x *GetFeedbackResponse) GetContent() string {
if x != nil {
return x.Content
}
return ""
}
func (x *GetFeedbackResponse) GetReplyContent() string {
if x != nil {
return x.ReplyContent
}
return ""
}
func (x *GetFeedbackResponse) GetEvidence() []*EvidenceSummary {
if x != nil {
return x.Evidence
}
return nil
}
type GetReportCategoriesRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetReportCategoriesRequest) Reset() {
*x = GetReportCategoriesRequest{}
mi := &file_moderation_proto_msgTypes[15]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetReportCategoriesRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetReportCategoriesRequest) ProtoMessage() {}
func (x *GetReportCategoriesRequest) ProtoReflect() protoreflect.Message {
mi := &file_moderation_proto_msgTypes[15]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetReportCategoriesRequest.ProtoReflect.Descriptor instead.
func (*GetReportCategoriesRequest) Descriptor() ([]byte, []int) {
return file_moderation_proto_rawDescGZIP(), []int{15}
}
type GetFeedbackCategoriesRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetFeedbackCategoriesRequest) Reset() {
*x = GetFeedbackCategoriesRequest{}
mi := &file_moderation_proto_msgTypes[16]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetFeedbackCategoriesRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetFeedbackCategoriesRequest) ProtoMessage() {}
func (x *GetFeedbackCategoriesRequest) ProtoReflect() protoreflect.Message {
mi := &file_moderation_proto_msgTypes[16]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetFeedbackCategoriesRequest.ProtoReflect.Descriptor instead.
func (*GetFeedbackCategoriesRequest) Descriptor() ([]byte, []int) {
return file_moderation_proto_rawDescGZIP(), []int{16}
}
type CategoryItem struct {
state protoimpl.MessageState `protogen:"open.v1"`
Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
Severity int32 `protobuf:"varint,4,opt,name=severity,proto3" json:"severity,omitempty"`
SortOrder int32 `protobuf:"varint,5,opt,name=sort_order,json=sortOrder,proto3" json:"sort_order,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *CategoryItem) Reset() {
*x = CategoryItem{}
mi := &file_moderation_proto_msgTypes[17]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *CategoryItem) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CategoryItem) ProtoMessage() {}
func (x *CategoryItem) ProtoReflect() protoreflect.Message {
mi := &file_moderation_proto_msgTypes[17]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CategoryItem.ProtoReflect.Descriptor instead.
func (*CategoryItem) Descriptor() ([]byte, []int) {
return file_moderation_proto_rawDescGZIP(), []int{17}
}
func (x *CategoryItem) GetCode() string {
if x != nil {
return x.Code
}
return ""
}
func (x *CategoryItem) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *CategoryItem) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (x *CategoryItem) GetSeverity() int32 {
if x != nil {
return x.Severity
}
return 0
}
func (x *CategoryItem) GetSortOrder() int32 {
if x != nil {
return x.SortOrder
}
return 0
}
type GetReportCategoriesResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Categories []*CategoryItem `protobuf:"bytes,1,rep,name=categories,proto3" json:"categories,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetReportCategoriesResponse) Reset() {
*x = GetReportCategoriesResponse{}
mi := &file_moderation_proto_msgTypes[18]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetReportCategoriesResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetReportCategoriesResponse) ProtoMessage() {}
func (x *GetReportCategoriesResponse) ProtoReflect() protoreflect.Message {
mi := &file_moderation_proto_msgTypes[18]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetReportCategoriesResponse.ProtoReflect.Descriptor instead.
func (*GetReportCategoriesResponse) Descriptor() ([]byte, []int) {
return file_moderation_proto_rawDescGZIP(), []int{18}
}
func (x *GetReportCategoriesResponse) GetCategories() []*CategoryItem {
if x != nil {
return x.Categories
}
return nil
}
type GetFeedbackCategoriesResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Categories []*CategoryItem `protobuf:"bytes,1,rep,name=categories,proto3" json:"categories,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetFeedbackCategoriesResponse) Reset() {
*x = GetFeedbackCategoriesResponse{}
mi := &file_moderation_proto_msgTypes[19]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetFeedbackCategoriesResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetFeedbackCategoriesResponse) ProtoMessage() {}
func (x *GetFeedbackCategoriesResponse) ProtoReflect() protoreflect.Message {
mi := &file_moderation_proto_msgTypes[19]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetFeedbackCategoriesResponse.ProtoReflect.Descriptor instead.
func (*GetFeedbackCategoriesResponse) Descriptor() ([]byte, []int) {
return file_moderation_proto_rawDescGZIP(), []int{19}
}
func (x *GetFeedbackCategoriesResponse) GetCategories() []*CategoryItem {
if x != nil {
return x.Categories
}
return nil
}
var File_moderation_proto protoreflect.FileDescriptor
const file_moderation_proto_rawDesc = "" +
"\n" +
"\x10moderation.proto\x12/github.com.topfans.backend.pkg.proto.moderation\"\xbd\x02\n" +
"\x13SubmitReportRequest\x12\x1f\n" +
"\vreporter_id\x18\x01 \x01(\x03R\n" +
"reporterId\x12\x1f\n" +
"\vtarget_type\x18\x02 \x01(\tR\n" +
"targetType\x12\x1b\n" +
"\ttarget_id\x18\x03 \x01(\x03R\btargetId\x12#\n" +
"\rcategory_code\x18\x04 \x01(\tR\fcategoryCode\x12 \n" +
"\vdescription\x18\x05 \x01(\tR\vdescription\x12!\n" +
"\fis_anonymous\x18\x06 \x01(\bR\visAnonymous\x12#\n" +
"\revidence_keys\x18\a \x03(\tR\fevidenceKeys\x12\x1b\n" +
"\tclient_ip\x18\b \x01(\tR\bclientIp\x12\x1b\n" +
"\tdevice_fp\x18\t \x01(\tR\bdeviceFp\"\xee\x01\n" +
"\x14SubmitReportResponse\x12\x1b\n" +
"\treport_id\x18\x01 \x01(\x03R\breportId\x12\x16\n" +
"\x06status\x18\x02 \x01(\tR\x06status\x12\x1f\n" +
"\vauto_hidden\x18\x03 \x01(\bR\n" +
"autoHidden\x12#\n" +
"\rtarget_hidden\x18\x04 \x01(\bR\ftargetHidden\x12\x1d\n" +
"\n" +
"claimed_by\x18\x05 \x01(\x03R\tclaimedBy\x12\x1d\n" +
"\n" +
"claimed_at\x18\x06 \x01(\x03R\tclaimedAt\x12\x1d\n" +
"\n" +
"created_at\x18\a \x01(\x03R\tcreatedAt\"\x80\x01\n" +
"\x14ListMyReportsRequest\x12\x1f\n" +
"\vreporter_id\x18\x01 \x01(\x03R\n" +
"reporterId\x12\x16\n" +
"\x06status\x18\x02 \x01(\tR\x06status\x12\x12\n" +
"\x04page\x18\x03 \x01(\x05R\x04page\x12\x1b\n" +
"\tpage_size\x18\x04 \x01(\x05R\bpageSize\"\x83\x02\n" +
"\rReportSummary\x12\x0e\n" +
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x1f\n" +
"\vtarget_type\x18\x02 \x01(\tR\n" +
"targetType\x12\x1b\n" +
"\ttarget_id\x18\x03 \x01(\x03R\btargetId\x12#\n" +
"\rcategory_code\x18\x04 \x01(\tR\fcategoryCode\x12\x16\n" +
"\x06status\x18\x05 \x01(\tR\x06status\x12\x1d\n" +
"\n" +
"created_at\x18\x06 \x01(\x03R\tcreatedAt\x12\x1f\n" +
"\vresolved_at\x18\a \x01(\x03R\n" +
"resolvedAt\x12'\n" +
"\x0fresolved_action\x18\b \x01(\tR\x0eresolvedAction\"\x87\x01\n" +
"\x15ListMyReportsResponse\x12X\n" +
"\areports\x18\x01 \x03(\v2>.github.com.topfans.backend.pkg.proto.moderation.ReportSummaryR\areports\x12\x14\n" +
"\x05total\x18\x02 \x01(\x05R\x05total\"C\n" +
"\x10GetReportRequest\x12\x1f\n" +
"\vreporter_id\x18\x01 \x01(\x03R\n" +
"reporterId\x12\x0e\n" +
"\x02id\x18\x02 \x01(\x03R\x02id\"\x9d\x02\n" +
"\x11GetReportResponse\x12V\n" +
"\x06report\x18\x01 \x01(\v2>.github.com.topfans.backend.pkg.proto.moderation.ReportSummaryR\x06report\x12 \n" +
"\vdescription\x18\x02 \x01(\tR\vdescription\x12\\\n" +
"\bevidence\x18\x03 \x03(\v2@.github.com.topfans.backend.pkg.proto.moderation.EvidenceSummaryR\bevidence\x120\n" +
"\x14target_snapshot_json\x18\x04 \x01(\tR\x12targetSnapshotJson\"C\n" +
"\x0fEvidenceSummary\x12\x17\n" +
"\aoss_key\x18\x01 \x01(\tR\x06ossKey\x12\x17\n" +
"\aoss_url\x18\x02 \x01(\tR\x06ossUrl\"\x80\x02\n" +
"\x15SubmitFeedbackRequest\x12\x17\n" +
"\auser_id\x18\x01 \x01(\x03R\x06userId\x12\x17\n" +
"\astar_id\x18\x02 \x01(\x03R\x06starId\x12#\n" +
"\rcategory_code\x18\x03 \x01(\tR\fcategoryCode\x12\x14\n" +
"\x05title\x18\x04 \x01(\tR\x05title\x12\x18\n" +
"\acontent\x18\x05 \x01(\tR\acontent\x12\x18\n" +
"\acontact\x18\x06 \x01(\tR\acontact\x12!\n" +
"\fis_anonymous\x18\a \x01(\bR\visAnonymous\x12#\n" +
"\revidence_keys\x18\b \x03(\tR\fevidenceKeys\"\xae\x01\n" +
"\x16SubmitFeedbackResponse\x12\x1f\n" +
"\vfeedback_id\x18\x01 \x01(\x03R\n" +
"feedbackId\x12\x16\n" +
"\x06status\x18\x02 \x01(\tR\x06status\x12\x1d\n" +
"\n" +
"claimed_by\x18\x03 \x01(\x03R\tclaimedBy\x12\x1d\n" +
"\n" +
"claimed_at\x18\x04 \x01(\x03R\tclaimedAt\x12\x1d\n" +
"\n" +
"created_at\x18\x05 \x01(\x03R\tcreatedAt\"z\n" +
"\x16ListMyFeedbacksRequest\x12\x17\n" +
"\auser_id\x18\x01 \x01(\x03R\x06userId\x12\x16\n" +
"\x06status\x18\x02 \x01(\tR\x06status\x12\x12\n" +
"\x04page\x18\x03 \x01(\x05R\x04page\x12\x1b\n" +
"\tpage_size\x18\x04 \x01(\x05R\bpageSize\"\xb2\x01\n" +
"\x0fFeedbackSummary\x12\x0e\n" +
"\x02id\x18\x01 \x01(\x03R\x02id\x12#\n" +
"\rcategory_code\x18\x02 \x01(\tR\fcategoryCode\x12\x14\n" +
"\x05title\x18\x03 \x01(\tR\x05title\x12\x16\n" +
"\x06status\x18\x04 \x01(\tR\x06status\x12\x1d\n" +
"\n" +
"created_at\x18\x05 \x01(\x03R\tcreatedAt\x12\x1d\n" +
"\n" +
"replied_at\x18\x06 \x01(\x03R\trepliedAt\"\x8f\x01\n" +
"\x17ListMyFeedbacksResponse\x12^\n" +
"\tfeedbacks\x18\x01 \x03(\v2@.github.com.topfans.backend.pkg.proto.moderation.FeedbackSummaryR\tfeedbacks\x12\x14\n" +
"\x05total\x18\x02 \x01(\x05R\x05total\"=\n" +
"\x12GetFeedbackRequest\x12\x17\n" +
"\auser_id\x18\x01 \x01(\x03R\x06userId\x12\x0e\n" +
"\x02id\x18\x02 \x01(\x03R\x02id\"\x90\x02\n" +
"\x13GetFeedbackResponse\x12\\\n" +
"\bfeedback\x18\x01 \x01(\v2@.github.com.topfans.backend.pkg.proto.moderation.FeedbackSummaryR\bfeedback\x12\x18\n" +
"\acontent\x18\x02 \x01(\tR\acontent\x12#\n" +
"\rreply_content\x18\x03 \x01(\tR\freplyContent\x12\\\n" +
"\bevidence\x18\x04 \x03(\v2@.github.com.topfans.backend.pkg.proto.moderation.EvidenceSummaryR\bevidence\"\x1c\n" +
"\x1aGetReportCategoriesRequest\"\x1e\n" +
"\x1cGetFeedbackCategoriesRequest\"\x93\x01\n" +
"\fCategoryItem\x12\x12\n" +
"\x04code\x18\x01 \x01(\tR\x04code\x12\x12\n" +
"\x04name\x18\x02 \x01(\tR\x04name\x12 \n" +
"\vdescription\x18\x03 \x01(\tR\vdescription\x12\x1a\n" +
"\bseverity\x18\x04 \x01(\x05R\bseverity\x12\x1d\n" +
"\n" +
"sort_order\x18\x05 \x01(\x05R\tsortOrder\"|\n" +
"\x1bGetReportCategoriesResponse\x12]\n" +
"\n" +
"categories\x18\x01 \x03(\v2=.github.com.topfans.backend.pkg.proto.moderation.CategoryItemR\n" +
"categories\"~\n" +
"\x1dGetFeedbackCategoriesResponse\x12]\n" +
"\n" +
"categories\x18\x01 \x03(\v2=.github.com.topfans.backend.pkg.proto.moderation.CategoryItemR\n" +
"categories2\xb9\n" +
"\n" +
"\x11ModerationService\x12\xb0\x01\n" +
"\x13GetReportCategories\x12K.github.com.topfans.backend.pkg.proto.moderation.GetReportCategoriesRequest\x1aL.github.com.topfans.backend.pkg.proto.moderation.GetReportCategoriesResponse\x12\xb6\x01\n" +
"\x15GetFeedbackCategories\x12M.github.com.topfans.backend.pkg.proto.moderation.GetFeedbackCategoriesRequest\x1aN.github.com.topfans.backend.pkg.proto.moderation.GetFeedbackCategoriesResponse\x12\x9b\x01\n" +
"\fSubmitReport\x12D.github.com.topfans.backend.pkg.proto.moderation.SubmitReportRequest\x1aE.github.com.topfans.backend.pkg.proto.moderation.SubmitReportResponse\x12\x9e\x01\n" +
"\rListMyReports\x12E.github.com.topfans.backend.pkg.proto.moderation.ListMyReportsRequest\x1aF.github.com.topfans.backend.pkg.proto.moderation.ListMyReportsResponse\x12\x92\x01\n" +
"\tGetReport\x12A.github.com.topfans.backend.pkg.proto.moderation.GetReportRequest\x1aB.github.com.topfans.backend.pkg.proto.moderation.GetReportResponse\x12\xa1\x01\n" +
"\x0eSubmitFeedback\x12F.github.com.topfans.backend.pkg.proto.moderation.SubmitFeedbackRequest\x1aG.github.com.topfans.backend.pkg.proto.moderation.SubmitFeedbackResponse\x12\xa4\x01\n" +
"\x0fListMyFeedbacks\x12G.github.com.topfans.backend.pkg.proto.moderation.ListMyFeedbacksRequest\x1aH.github.com.topfans.backend.pkg.proto.moderation.ListMyFeedbacksResponse\x12\x98\x01\n" +
"\vGetFeedback\x12C.github.com.topfans.backend.pkg.proto.moderation.GetFeedbackRequest\x1aD.github.com.topfans.backend.pkg.proto.moderation.GetFeedbackResponseB<Z:github.com/topfans/backend/pkg/proto/moderation;moderationb\x06proto3"
var (
file_moderation_proto_rawDescOnce sync.Once
file_moderation_proto_rawDescData []byte
)
func file_moderation_proto_rawDescGZIP() []byte {
file_moderation_proto_rawDescOnce.Do(func() {
file_moderation_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_moderation_proto_rawDesc), len(file_moderation_proto_rawDesc)))
})
return file_moderation_proto_rawDescData
}
var file_moderation_proto_msgTypes = make([]protoimpl.MessageInfo, 20)
var file_moderation_proto_goTypes = []any{
(*SubmitReportRequest)(nil), // 0: github.com.topfans.backend.pkg.proto.moderation.SubmitReportRequest
(*SubmitReportResponse)(nil), // 1: github.com.topfans.backend.pkg.proto.moderation.SubmitReportResponse
(*ListMyReportsRequest)(nil), // 2: github.com.topfans.backend.pkg.proto.moderation.ListMyReportsRequest
(*ReportSummary)(nil), // 3: github.com.topfans.backend.pkg.proto.moderation.ReportSummary
(*ListMyReportsResponse)(nil), // 4: github.com.topfans.backend.pkg.proto.moderation.ListMyReportsResponse
(*GetReportRequest)(nil), // 5: github.com.topfans.backend.pkg.proto.moderation.GetReportRequest
(*GetReportResponse)(nil), // 6: github.com.topfans.backend.pkg.proto.moderation.GetReportResponse
(*EvidenceSummary)(nil), // 7: github.com.topfans.backend.pkg.proto.moderation.EvidenceSummary
(*SubmitFeedbackRequest)(nil), // 8: github.com.topfans.backend.pkg.proto.moderation.SubmitFeedbackRequest
(*SubmitFeedbackResponse)(nil), // 9: github.com.topfans.backend.pkg.proto.moderation.SubmitFeedbackResponse
(*ListMyFeedbacksRequest)(nil), // 10: github.com.topfans.backend.pkg.proto.moderation.ListMyFeedbacksRequest
(*FeedbackSummary)(nil), // 11: github.com.topfans.backend.pkg.proto.moderation.FeedbackSummary
(*ListMyFeedbacksResponse)(nil), // 12: github.com.topfans.backend.pkg.proto.moderation.ListMyFeedbacksResponse
(*GetFeedbackRequest)(nil), // 13: github.com.topfans.backend.pkg.proto.moderation.GetFeedbackRequest
(*GetFeedbackResponse)(nil), // 14: github.com.topfans.backend.pkg.proto.moderation.GetFeedbackResponse
(*GetReportCategoriesRequest)(nil), // 15: github.com.topfans.backend.pkg.proto.moderation.GetReportCategoriesRequest
(*GetFeedbackCategoriesRequest)(nil), // 16: github.com.topfans.backend.pkg.proto.moderation.GetFeedbackCategoriesRequest
(*CategoryItem)(nil), // 17: github.com.topfans.backend.pkg.proto.moderation.CategoryItem
(*GetReportCategoriesResponse)(nil), // 18: github.com.topfans.backend.pkg.proto.moderation.GetReportCategoriesResponse
(*GetFeedbackCategoriesResponse)(nil), // 19: github.com.topfans.backend.pkg.proto.moderation.GetFeedbackCategoriesResponse
}
var file_moderation_proto_depIdxs = []int32{
3, // 0: github.com.topfans.backend.pkg.proto.moderation.ListMyReportsResponse.reports:type_name -> github.com.topfans.backend.pkg.proto.moderation.ReportSummary
3, // 1: github.com.topfans.backend.pkg.proto.moderation.GetReportResponse.report:type_name -> github.com.topfans.backend.pkg.proto.moderation.ReportSummary
7, // 2: github.com.topfans.backend.pkg.proto.moderation.GetReportResponse.evidence:type_name -> github.com.topfans.backend.pkg.proto.moderation.EvidenceSummary
11, // 3: github.com.topfans.backend.pkg.proto.moderation.ListMyFeedbacksResponse.feedbacks:type_name -> github.com.topfans.backend.pkg.proto.moderation.FeedbackSummary
11, // 4: github.com.topfans.backend.pkg.proto.moderation.GetFeedbackResponse.feedback:type_name -> github.com.topfans.backend.pkg.proto.moderation.FeedbackSummary
7, // 5: github.com.topfans.backend.pkg.proto.moderation.GetFeedbackResponse.evidence:type_name -> github.com.topfans.backend.pkg.proto.moderation.EvidenceSummary
17, // 6: github.com.topfans.backend.pkg.proto.moderation.GetReportCategoriesResponse.categories:type_name -> github.com.topfans.backend.pkg.proto.moderation.CategoryItem
17, // 7: github.com.topfans.backend.pkg.proto.moderation.GetFeedbackCategoriesResponse.categories:type_name -> github.com.topfans.backend.pkg.proto.moderation.CategoryItem
15, // 8: github.com.topfans.backend.pkg.proto.moderation.ModerationService.GetReportCategories:input_type -> github.com.topfans.backend.pkg.proto.moderation.GetReportCategoriesRequest
16, // 9: github.com.topfans.backend.pkg.proto.moderation.ModerationService.GetFeedbackCategories:input_type -> github.com.topfans.backend.pkg.proto.moderation.GetFeedbackCategoriesRequest
0, // 10: github.com.topfans.backend.pkg.proto.moderation.ModerationService.SubmitReport:input_type -> github.com.topfans.backend.pkg.proto.moderation.SubmitReportRequest
2, // 11: github.com.topfans.backend.pkg.proto.moderation.ModerationService.ListMyReports:input_type -> github.com.topfans.backend.pkg.proto.moderation.ListMyReportsRequest
5, // 12: github.com.topfans.backend.pkg.proto.moderation.ModerationService.GetReport:input_type -> github.com.topfans.backend.pkg.proto.moderation.GetReportRequest
8, // 13: github.com.topfans.backend.pkg.proto.moderation.ModerationService.SubmitFeedback:input_type -> github.com.topfans.backend.pkg.proto.moderation.SubmitFeedbackRequest
10, // 14: github.com.topfans.backend.pkg.proto.moderation.ModerationService.ListMyFeedbacks:input_type -> github.com.topfans.backend.pkg.proto.moderation.ListMyFeedbacksRequest
13, // 15: github.com.topfans.backend.pkg.proto.moderation.ModerationService.GetFeedback:input_type -> github.com.topfans.backend.pkg.proto.moderation.GetFeedbackRequest
18, // 16: github.com.topfans.backend.pkg.proto.moderation.ModerationService.GetReportCategories:output_type -> github.com.topfans.backend.pkg.proto.moderation.GetReportCategoriesResponse
19, // 17: github.com.topfans.backend.pkg.proto.moderation.ModerationService.GetFeedbackCategories:output_type -> github.com.topfans.backend.pkg.proto.moderation.GetFeedbackCategoriesResponse
1, // 18: github.com.topfans.backend.pkg.proto.moderation.ModerationService.SubmitReport:output_type -> github.com.topfans.backend.pkg.proto.moderation.SubmitReportResponse
4, // 19: github.com.topfans.backend.pkg.proto.moderation.ModerationService.ListMyReports:output_type -> github.com.topfans.backend.pkg.proto.moderation.ListMyReportsResponse
6, // 20: github.com.topfans.backend.pkg.proto.moderation.ModerationService.GetReport:output_type -> github.com.topfans.backend.pkg.proto.moderation.GetReportResponse
9, // 21: github.com.topfans.backend.pkg.proto.moderation.ModerationService.SubmitFeedback:output_type -> github.com.topfans.backend.pkg.proto.moderation.SubmitFeedbackResponse
12, // 22: github.com.topfans.backend.pkg.proto.moderation.ModerationService.ListMyFeedbacks:output_type -> github.com.topfans.backend.pkg.proto.moderation.ListMyFeedbacksResponse
14, // 23: github.com.topfans.backend.pkg.proto.moderation.ModerationService.GetFeedback:output_type -> github.com.topfans.backend.pkg.proto.moderation.GetFeedbackResponse
16, // [16:24] is the sub-list for method output_type
8, // [8:16] is the sub-list for method input_type
8, // [8:8] is the sub-list for extension type_name
8, // [8:8] is the sub-list for extension extendee
0, // [0:8] is the sub-list for field type_name
}
func init() { file_moderation_proto_init() }
func file_moderation_proto_init() {
if File_moderation_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_moderation_proto_rawDesc), len(file_moderation_proto_rawDesc)),
NumEnums: 0,
NumMessages: 20,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_moderation_proto_goTypes,
DependencyIndexes: file_moderation_proto_depIdxs,
MessageInfos: file_moderation_proto_msgTypes,
}.Build()
File_moderation_proto = out.File
file_moderation_proto_goTypes = nil
file_moderation_proto_depIdxs = nil
}