predefined

package
v0.0.0-...-2f69930 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PublishInterveneTypeDynamicAudit  = iota //发布干预动态类型:审核状态
	PublishInterveneTypeDynamicBlock         //发布干预动态类型:屏蔽状态
	PublishInterveneTypeDynamicDelete        //发布干预动态类型:删除状态
	PublishInterveneTypeDynamicNormal        //发布干预动态类型:正常状态

	PublishInterveneTypeArticleAudit  //发布干预文章类型:审核状态
	PublishInterveneTypeArticleBlock  //发布干预文章类型:屏蔽状态
	PublishInterveneTypeArticleDelete //发布干预文章类型:删除状态
	PublishInterveneTypeArticleNormal //发布干预文章类型:正常状态

	PublishInterveneTypeQuestionAudit  //发布干预问题类型:审核状态
	PublishInterveneTypeQuestionBlock  //发布干预问题类型:屏蔽状态
	PublishInterveneTypeQuestionDelete //发布干预问题类型:删除状态
	PublishInterveneTypeQuestionNormal //发布干预问题类型:正常状态

	PublishInterveneTypeAnswerAudit  //发布干预答案类型:审核状态
	PublishInterveneTypeAnswerBlock  //发布干预答案类型:屏蔽状态
	PublishInterveneTypeAnswerDelete //发布干预答案类型:删除状态
	PublishInterveneTypeAnswerNormal //发布干预答案类型:正常状态

	PublishInterveneTypeDiscussAudit  //发布干预评论类型:审核状态
	PublishInterveneTypeDiscussBlock  //发布干预评论类型:屏蔽状态
	PublishInterveneTypeDiscussDelete //发布干预评论类型:删除状态
	PublishInterveneTypeDiscussNormal //发布干预评论类型:正常状态

	PublishInterveneTypeMessageAudit  //发布干预消息类型:审核状态
	PublishInterveneTypeMessageBlock  //发布干预消息类型:屏蔽状态
	PublishInterveneTypeMessageDelete //发布干预消息类型:删除状态
	PublishInterveneTypeMessageNormal //发布干预消息类型:正常状态

	PublishInterveneTypeGroupMessageAudit  //发布干预群组消息类型:审核状态
	PublishInterveneTypeGroupMessageBlock  //发布干预群组消息类型:屏蔽状态
	PublishInterveneTypeGroupMessageDelete //发布干预群组消息类型:删除状态
	PublishInterveneTypeGroupMessageNormal //发布干预群组消息类型:正常状态
)
View Source
const (
	KeywordBanTypeContent = iota
	KeywordBanTypeTitle
	KeywordBanTypeSubject
	KeywordBanTypeMessage
	KeywordBanTypeGroupMessage
)
View Source
const (
	KeywordBanActionDelete  = iota //直接删除
	KeywordBanActionReplace        //直接替换
	KeywordBanActionAudit          //直接进入审核状态
	KeywordBanActionBlock          //直接进入屏蔽状态
	KeywordBanActionForbid         //直接进入禁止状态
	KeywordBanActionClose          //直接进入关闭状态
)
View Source
const (
	PublishStatusTemporary = iota //临时
	PublishStatusAudit            //审核
	PublishStatusBlock            //屏蔽
	PublishStatusForbid           //禁止所有操作
	PublishStatusFinish           //完成
	PublishStatusClose            //关闭。关闭后,不允许任何更新操作
	PublishStatusDelete           //删除
	PublishStatusNormal           //正常
)
View Source
const (
	VisibilityTypeSelf         = iota //自己
	VisibilityTypeHome                //主页
	VisibilityTypeRelationship        //关系人,如:联系人,好友,回答者等
	VisibilityTypeStranger            //陌生人
	VisibilityTypeSubject             //主题
	VisibilityTypeNearly              //附近:依赖坐标点控制
	VisibilityTypeCity                //城市:依赖坐标点控制
	VisibilityTypeProvince            //省:依赖坐标点控制
	VisibilityTypeNation              //国:依赖坐标点控制
	VisibilityTypeAll                 //所有
)
View Source
const (
	CategoryTypeSystemSelf     = iota + 1000 //系统自己类型
	CategoryTypeSystemDynamic                //系统动态类型
	CategoryTypeSystemArticle                //系统文章类型
	CategoryTypeSystemQuestion               //系统问题类型
	CategoryTypeSystemAnswer                 //系统答案类型
	CategoryTypeSharePlatform                //分享平台
)
View Source
const (
	SubjectTypeUserSelf     = iota //用户自己类型
	SubjectTypeUserDynamic         //用户动态类型
	SubjectTypeUserArticle         //用户文章类型
	SubjectTypeUserQuestion        //用户问题类型
	SubjectTypeUserAnswer          //用户答案类型
)
View Source
const (
	SubjectTypeSystemSelf     = iota + 1000 //系统自己类型
	SubjectTypeSystemDynamic                //系统动态类型
	SubjectTypeSystemArticle                //系统文章
	SubjectTypeSystemQuestion               //系统问题
	SubjectTypeSystemAnswer                 //系统答案
)
View Source
const (
	ContentPublishTypeSelf     = iota //内容发布类型:自己。类似于自己的内容或者草稿箱等
	ContentPublishTypeDynamic         //内容发布类型:动态
	ContentPublishTypeArticle         //内容发布类型:文章
	ContentPublishTypeQuestion        //内容发布类型:问题
	ContentPublishTypeAnswer          //内容发布类型:答案
)
View Source
const (
	ContentTypeVideoShort = iota //类型:短视频
	ContentTypeVideoLong         //类型:长视频
	ContentTypeVoiceShort        //类型:短语音
	ContentTypeVoiceLong         //类型:长语音
	ContentTypeImageText         //类型:图文
	ContentTypeImage             //类型:纯图片
	ContentTypeText              //类型:纯文本
)
View Source
const (
	ContentTypeSystemVideoShort = iota + 1000 //系统类型:短视频
	ContentTypeSystemVideoLong                //系统类型:长视频
	ContentTypeSystemVoiceShort               //系统类型:短语音
	ContentTypeSystemVoiceLong                //系统类型:长语音
	ContentTypeSystemImageText                //系统类型:图文
	ContentTypeSystemImage                    //系统类型:纯图片
	ContentTypeSystemText                     //系统类型:纯文本
)
View Source
const (
	ContentAssociateTypeSelf       = iota //关联类型:自己,不需要关联其他
	ContentAssociateTypeDynamic           //关联类型:动态,表示此次关联是以动态形式关联
	ContentAssociateTypeArticle           //关联类型:文章,表示此次关联是以文章形式关联
	ContentAssociateTypeQuestion          //关联类型:问题,表示此次关联是以问题形式关联
	ContentAssociateTypeAnswer            //关联类型:答案,表示此次关联是以答案形式关联
	ContentAssociateTypeCollection        //关联类型:集合,表示此次关联是以集合形式关联
	ContentAssociateTypeForward           //关联类型:转发,表示此次关联是以转发形式关联
)
View Source
const (
	ContentLinkTypeWebview = iota //普通网址
	ContentLinkTypeImage          //图片地址
	ContentLinkTypeVoice          //语音地址
	ContentLinkTypeVideo          //视频地址
)
View Source
const (
	DiscussTypeSelf     = iota //自己
	DiscussTypeDynamic         //动态
	DiscussTypeArticle         //文章
	DiscussTypeQuestion        //问题
	DiscussTypeAnswer          //答案
)
View Source
const (
	FollowTypeSelf     = iota //关注自己,自己的所有信息的变化,比如,被评论等
	FollowTypeDynamic         //关注动态,此动态下的所有信息的变化,比如,被评论等
	FollowTypeArticle         //关注文章,此文章下的所有信息的变化,比如,被评论等
	FollowTypeQuestion        //关注问题,此问题下的所有信息的变化,比如,有发表答案,问题被评论等
	FollowTypeAnswer          //关注答案,此答案下的所有信息的变化,比如,有被评论,设为最佳答案等
)
View Source
const (
	FollowTypeUser    = iota + 100 //关注用户,此用户下的所有信息的变化
	FollowTypeSubject              //关注主题,此主题下的所有信息的变化

)
View Source
const (
	FollowContentTypeSelf     = iota //关注内容类型为自己的内容
	FollowContentTypeDynamic         //关注内容类型为动态的内容
	FollowContentTypeArticle         //关注内容类型为文章的内容
	FollowContentTypeQuestion        //关注内容类型为问题的内容
	FollowContentTypeAnswer          //关注内容类型为答案的内容
)
View Source
const (
	FavoritesTypeSelf         = iota //收藏夹类型:自己
	FavoritesTypeDynamic             //收藏夹类型:动态
	FavoritesTypeArticle             //收藏夹类型:文章
	FavoritesTypeQuestion            //收藏夹类型:问题
	FavoritesTypeAnswer              //收藏夹类型:答案
	FavoritesTypeMessage             //收藏夹类型:消息
	FavoritesTypeGroupMessage        //收藏夹类型:群组消息
)
View Source
const (
	ShareTypeSelf     = iota //分享类型:自己
	ShareTypeDynamic         //分享类型:动态
	ShareTypeArticle         //分享类型:文章
	ShareTypeQuestion        //分享类型:问题
	ShareTypeAnswer          //分享类型:答案
)
View Source
const (
	MessageTypeUser   = iota //消息类型:用户
	MessageTypeSystem        //消息类型:系统
)
View Source
const (
	MessageStatusAudit  = iota //审核
	MessageStatusBlock         //屏蔽
	MessageStatusDelete        //删除
	MessageStatusNormal        //正常
)
View Source
const (
	GroupMessageTypeUser   = iota //消息类型:用户
	GroupMessageTypeSystem        //消息类型:系统
)
View Source
const (
	GroupMessageStatusAudit  = iota //审核
	GroupMessageStatusBlock         //屏蔽
	GroupMessageStatusDelete        //删除
	GroupMessageStatusNormal        //正常
)
View Source
const (
	GroupMessageLinkTypeUserLink = iota //消息类型:用户链接
)
View Source
const (
	MessageLinkTypeUserLink = iota //消息类型:用户链接
)
View Source
const (
	ShareTypeUser = iota + 100 //分享类型:用户
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RequestServeAtUsers

type RequestServeAtUsers struct {
	AtUsers []primitive.ObjectID `form:"at_users"`
}

type RequestServeCategorySystemType

type RequestServeCategorySystemType struct {
	Type int `form:"type" validate:"oneof=1001 1002 1003 1004"`
}

type RequestServeCategoryVisibility

type RequestServeCategoryVisibility struct {
	Visibility int `form:"visibility" validate:"oneof=1 2 3 4 5 6 7 8 9"`
}

type RequestServeContentAssociateType

type RequestServeContentAssociateType struct {
	AssociateType int `form:"associate_type" validate:"oneof=0 1 2 3 4 5 6"`
}

type RequestServeContentCreate

type RequestServeContentCreate struct {
	RequestServeContentType
	RequestServeContentPublishType
	RequestServeContentAssociateType
	AssociateID        primitive.ObjectID `form:"associate_id" validate:"required_unless=AssociateType 0"`
	LimitAssociateType int                `form:"limit_associate_type" validate:"oneof=0 1 2 3 4 5 6"`
	LimitAssociateNum  int                `form:"limit_associate_num"`
	CategoryID         primitive.ObjectID `form:"category_id"`
	SubjectID          primitive.ObjectID `form:"subject_id"`
	RequestServeAtUsers
	Author      string   `form:"author"`
	Title       string   `form:"title" validate:"required"`
	Cover       string   `form:"cover,omitempty"`
	Description string   `form:"description,omitempty"`
	Video       string   `form:"video" validate:"required_if=Type 0,required_if=Type 1"`
	Voice       string   `form:"voice" validate:"required_if=Type 2,required_if=Type 3"`
	Images      []string `form:"images" validate:"required_if=Type 4,required_if=Type 5"`
	Content     string   `form:"content" validate:"required_if=Type 4,required_if=Type 6"`
	ContentLink string   `form:"content_link"`
	RequestServeLongitudeLatitude
	RequestServeUserTags
	RequestServeContentVisibility
	Value                                  int                  `form:"value"`
	HideDetail                             bool                 `form:"hide_detail"`
	OnlyUserIDShowDetail                   []primitive.ObjectID `form:"only_user_id_show_detail"`
	Copy                                   bool                 `form:"copy"`
	LimitUserAtLeastLevel                  int                  `form:"limit_user_at_least_level"`
	OnlyUserIDNotLimitUserLevel            []primitive.ObjectID `form:"only_user_id_not_limit_user_level"`
	LimitUserRole                          []string             `form:"limit_user_role"`
	OnlyUserIDNotLimitUserRole             []primitive.ObjectID `form:"only_user_id_not_limit_user_role"`
	LimitUserTag                           []string             `form:"limit_user_tag"`
	OnlyUserIDNotLimitUserTag              []primitive.ObjectID `form:"only_user_id_not_limit_user_tag"`
	OnlyUserIDDiscuss                      []primitive.ObjectID `form:"only_user_id_discuss"`
	OnlyUserIDCanReplyDiscuss              []primitive.ObjectID `form:"only_publish_user_id_can_reply_discuss"`
	OnlyUserIDCanNotReplyDiscuss           []primitive.ObjectID `form:"only_publish_user_id_can_not_reply_discuss"`
	LimitAllDiscussNum                     int                  `form:"limit_all_discuss_num"`
	LimitPublishUserDiscussNum             int                  `form:"limit_publish_user_discuss_num"`
	LimitNotPublishUserAllUserDiscussNum   int                  `form:"limit_not_publish_user_all_user_discuss_num"`
	LimitNotPublishUserEveryUserDiscussNum int                  `form:"limit_not_publish_user_every_user_discuss_num"`
	HideDiscuss                            bool                 `form:"hide_discuss"`
	OnlyUserIDShowDiscuss                  []primitive.ObjectID `form:"only_user_id_show_discuss"`
	ForbidForward                          bool                 `form:"forbid_forward"`
	ForbidDownload                         bool                 `form:"forbid_download"`
	ForbidDiscuss                          bool                 `form:"forbid_discuss"`
	StartTime                              help.DateTime        `form:"start_time"`
	EndTime                                help.DateTime        `form:"end_time"`
	ExtraData                              string               `form:"extra_data"`
}

type RequestServeContentDelete

type RequestServeContentDelete struct {
	RequestServeIDRequired
}

type RequestServeContentDetail

type RequestServeContentDetail struct {
	RequestServeIDRequired
}

type RequestServeContentList

type RequestServeContentList struct {
	RequestServeID
	RequestServeContentTypes
	PublishType int `form:"publish_type" validate:"required_without=ID,oneof=1 2 3 4"`
	RequestServeContentVisibility
	RequestServeTags
	RequestServePublishUserIDs
	RequestServeExcludePublishUserIDs
	EmptyCategoryID bool               `form:"empty_category_id,omitempty"`
	CategoryID      primitive.ObjectID `form:"category_id,omitempty"`
	EmptySubjectID  bool               `form:"empty_subject_id,omitempty"`
	SubjectID       primitive.ObjectID `form:"subject_id,omitempty"`
	AssociateType   int                `form:"associate_type,omitempty"`
	AssociateID     primitive.ObjectID `form:"associate_id,omitempty"`
	RequestServeLongitudeLatitude
	RequestServeDistance
	LimitUserAtLeastLevel int           `form:"limit_user_at_least_level,omitempty"`
	LimitUserRole         []string      `form:"limit_user_role,omitempty"`
	LimitUserTag          []string      `form:"limit_user_tag,omitempty"`
	ValueZero             bool          `form:"value_zero,omitempty"`
	ValueGte              int           `form:"value_gte,omitempty"`
	ValueLte              int           `form:"value_lte,omitempty"`
	DiscussTotalZero      bool          `form:"discuss_total_zero,omitempty"`
	DiscussTotalGte       int           `form:"discuss_total_gte,omitempty"`
	DiscussTotalLte       int           `form:"discuss_total_lte,omitempty"`
	InTime                bool          `form:"in_time,omitempty"`
	StartTime             help.DateTime `form:"start_time,omitempty"`
	EndTime               help.DateTime `form:"end_time,omitempty"`
}

type RequestServeContentListType

type RequestServeContentListType struct {
	Type int `form:"type" validate:"oneof=0 1 2 3 4 5 6 1000 1001 1002 1003 1004 1005 1006"`
}

type RequestServeContentPublishType

type RequestServeContentPublishType struct {
	PublishType int `form:"publish_type" validate:"oneof=1 2 3 4"`
}

type RequestServeContentType

type RequestServeContentType struct {
	Type int `form:"type" validate:"oneof=0 1 2 3 4 5 6"`
}

type RequestServeContentTypes

type RequestServeContentTypes struct {
	Types []int `form:"types,omitempty" validate:"gte=0,dive,oneof=0 1 2 3 4 5 6 1000 1001 1002 1003 1004 1005 1006"`
}

type RequestServeContentUpdateDescription

type RequestServeContentUpdateDescription struct {
	RequestServeObjectIDRequired
	Description string `form:"description" validate:"required"`
}

type RequestServeContentUpdateEndTime

type RequestServeContentUpdateEndTime struct {
	RequestServeObjectIDRequired
	EndTime help.DateTime `form:"end_time" validate:"required"`
}

type RequestServeContentUpdateExtraData

type RequestServeContentUpdateExtraData struct {
	RequestServeObjectIDRequired
	ExtraData string `form:"extra_data" validate:"required"`
}

type RequestServeContentUpdateForbidDiscuss

type RequestServeContentUpdateForbidDiscuss struct {
	RequestServeObjectIDRequired
	ForbidDiscuss bool `form:"forbid_discuss"`
}

type RequestServeContentUpdateForbidDownload

type RequestServeContentUpdateForbidDownload struct {
	RequestServeObjectIDRequired
	ForbidDownload bool `form:"forbid_download"`
}

type RequestServeContentUpdateForbidForward

type RequestServeContentUpdateForbidForward struct {
	RequestServeObjectIDRequired
	ForbidForward bool `form:"forbid_forward"`
}

type RequestServeContentUpdateStartTime

type RequestServeContentUpdateStartTime struct {
	RequestServeObjectIDRequired
	StartTime help.DateTime `form:"start_time" validate:"required"`
}

type RequestServeContentVisibility

type RequestServeContentVisibility struct {
	Visibility int `form:"visibility" validate:"oneof=0 1 2 3 4 5 6 7 8 9"`
}

type RequestServeDiscussCreate

type RequestServeDiscussCreate struct {
	RequestServeObjectIDRequired
	RequestServeDiscussType
	RequestServeAtUsers
	ReplyDiscussID primitive.ObjectID `form:"reply_discuss_id,omitempty"`
	RequestServeDiscussVisibility
	RequestServeLongitudeLatitude
	Evaluation float64 `form:"evaluation" validate:"numeric"`
	Text       string  `form:"text" validate:"required"`
}

type RequestServeDiscussDelete

type RequestServeDiscussDelete struct {
	RequestServeIDRequired
}

type RequestServeDiscussList

type RequestServeDiscussList struct {
	Types []int `form:"types,omitempty" validate:"required_with=ObjectID,gte=0,dive,oneof=0 1 2 3"`
	RequestServeObjectID
	RequestServeID
	RequestServeDiscussVisibility
	RequestServePublishUserIDs
	RequestServeExcludePublishUserIDs
	RequestServeLongitudeLatitude
	RequestServeDistance
	EvaluationZero bool    `form:"evaluation_zero,omitempty"`
	EvaluationGte  float64 `form:"evaluation_gte,omitempty" validate:"numeric"`
	EvaluationLte  float64 `form:"evaluation_lte,omitempty" validate:"numeric"`
}

type RequestServeDiscussType

type RequestServeDiscussType struct {
	Type int `form:"type" validate:"oneof=1 2 3 4"`
}

type RequestServeDiscussVisibility

type RequestServeDiscussVisibility struct {
	Visibility int `form:"visibility" validate:"oneof=0 1 2 3 4 5 6 7 8 9"`
}

type RequestServeDistance

type RequestServeDistance struct {
	MaxDistance float64 `form:"max_distance,omitempty" validate:"numeric"`
	MinDistance float64 `form:"min_distance,omitempty" validate:"numeric"`
}

type RequestServeExcludePublishUserIDs

type RequestServeExcludePublishUserIDs struct {
	ExcludePublishUserID []primitive.ObjectID `form:"exclude_publish_user_id,omitempty" validate:"gte=0,dive,required"`
}

type RequestServeFollowBeRelationshipList

type RequestServeFollowBeRelationshipList struct {
	ObjectID primitive.ObjectID `form:"object_id" validate:"required_without=ObjectOwnerUserID"`
	RequestServeFollowTypes
	ObjectOwnerUserID primitive.ObjectID   `form:"object_owner_user_id"`
	ExtensionIDs      []primitive.ObjectID `form:"extension_id"`
	OnlyTotal         bool                 `form:"only_total,omitempty"`
}

type RequestServeFollowContentTypes

type RequestServeFollowContentTypes struct {
	Types []int `form:"types" validate:"gte=0,dive,oneof=0 1 2 3"`
}

type RequestServeFollowRelationshipCreate

type RequestServeFollowRelationshipCreate struct {
	RequestServeFollowType
	RequestServeObjectIDRequired
	ObjectOwnerUserID primitive.ObjectID `form:"object_owner_user_id"`
	Stealth           bool               `form:"stealth"`
	ExtensionID       primitive.ObjectID `form:"extension_id"`
}

type RequestServeFollowRelationshipDelete

type RequestServeFollowRelationshipDelete struct {
	RequestServeFollowType
	RequestServeObjectIDRequired
}

type RequestServeFollowRelationshipList

type RequestServeFollowRelationshipList struct {
	RequestServeUserID
	RequestServeFollowTypes
	ObjectOwnerUserID primitive.ObjectID   `form:"object_owner_user_id"`
	ExtensionIDs      []primitive.ObjectID `form:"extension_id"`
	OnlyTotal         bool                 `form:"only_total,omitempty"`
}

type RequestServeFollowType

type RequestServeFollowType struct {
	Type int `form:"type" validate:"oneof=1 2 3 4 100 101"`
}

type RequestServeFollowTypes

type RequestServeFollowTypes struct {
	Types []int `form:"type" validate:"gte=0,dive,oneof=1 2 3 4 100 101"`
}

type RequestServeID

type RequestServeID struct {
	ID primitive.ObjectID `form:"id,omitempty"`
}

type RequestServeIDRequired

type RequestServeIDRequired struct {
	ID primitive.ObjectID `form:"id" validate:"required"`
}

type RequestServeLongitudeLatitude

type RequestServeLongitudeLatitude struct {
	Longitude float64 `form:"longitude,omitempty" validate:"numeric"` //经度
	Latitude  float64 `form:"latitude,omitempty" validate:"numeric"`  //维度
}

type RequestServeMyFollowContentList

type RequestServeMyFollowContentList struct {
	RequestServeFollowContentTypes
	OnlyUnreaded  bool          `form:"only_unreaded"` //与其他readed_time的相关参数互斥
	OnlyReaded    bool          `form:"only_readed"`   //与其他readed_time的相关参数互斥
	GteReadedTime help.DateTime `form:"gte_readed_time"`
	LteReadedTime help.DateTime `form:"lte_readed_time"`
}

type RequestServeObjectID

type RequestServeObjectID struct {
	ObjectID primitive.ObjectID `form:"object_id,omitempty"`
}

type RequestServeObjectIDRequired

type RequestServeObjectIDRequired struct {
	ObjectID primitive.ObjectID `form:"object_id" validate:"required"`
}

type RequestServeParentID

type RequestServeParentID struct {
	ParentID primitive.ObjectID `form:"parent_id,omitempty"`
}

type RequestServePublishUserID

type RequestServePublishUserID struct {
	PublishUserID primitive.ObjectID `form:"publish_user_id,omitempty"`
}

type RequestServePublishUserIDs

type RequestServePublishUserIDs struct {
	PublishUserID []primitive.ObjectID `form:"publish_user_id,omitempty" validate:"gte=0,dive,required"`
}

type RequestServeSubjectCreate

type RequestServeSubjectCreate struct {
	RequestServeSubjectCreateType
	RequestServeSubjectVisibility
	RequestServeLongitudeLatitude
	RequestServeUserTags
	ExtraData string `form:"extra_data,omitempty"`
	Subject   string `form:"subject" validate:"required"`
}

type RequestServeSubjectCreateType

type RequestServeSubjectCreateType struct {
	Type int `form:"type" validate:"oneof=1 2 3 4"`
}

type RequestServeSubjectListType

type RequestServeSubjectListType struct {
	Type int `form:"type" validate:"oneof=1 2 3 4 1001 1002 1003 1004"`
}

type RequestServeSubjectVisibility

type RequestServeSubjectVisibility struct {
	Visibility int `form:"visibility" validate:"oneof=0 1 2 3 4 5 6 7 8 9"`
}

type RequestServeTags

type RequestServeTags struct {
	Tags []string `form:"tags"`
}

type RequestServeUserID

type RequestServeUserID struct {
	UserID primitive.ObjectID `form:"user_id" validate:"required"`
}

type RequestServeUserTags

type RequestServeUserTags struct {
	UserTags []string `form:"user_tags"`
}

Jump to

Keyboard shortcuts

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