Documentation ¶
Index ¶
- Constants
- type BasicTag
- type Business
- type Channel
- type ChannelCategory
- type ChannelCategorySort
- type ChannelInfo
- type ChannelRule
- type ChannelRuleSort
- type ChannelSort
- type ChannelSynonym
- type ChannelSynonymSort
- type DependServiceHost
- type ESTag
- type HotRank
- type LimitRes
- type LimitUser
- type MngSearchTag
- type MngSearchTagList
- type Page
- type ParamChanneList
- type ParamHotList
- type ParamPage
- type ParamRelation
- type ParamRelationAdd
- type ParamRelationList
- type ParamReport
- type ParamReportHandle
- type ParamReportList
- type ParamReportLog
- type ParamReportPunish
- type ParamReportState
- type ParamResLimit
- type ParamResLimitState
- type ParamResLogList
- type ParamResLogState
- type ParamSynonymDel
- type ParamSynonymEdit
- type ParamSynonymExist
- type ParamSynonymList
- type ParamTagEdit
- type ParamTagState
- type RankCount
- type RankFilter
- type RankFilterSort
- type RankResult
- type RankResultSort
- type RankTop
- type RankTopSort
- type RecommendChannelSort
- type Relation
- type Report
- type ReportDetail
- type ReportInfo
- type ReportLog
- type ReportUser
- type ResTagLog
- type Resource
- type SearchRes
- type SynonymInfo
- type SynonymTag
- type Tag
- type TagCount
- type TagInfo
- type UpdateESearchTag
- type UpdateTag
- type UserInfo
Constants ¶
const ( ChanStateOffline = int32(0) //频道下线 ChanStateStop = int32(1) //频道停用 ChanStateCommon = int32(2) //频道普通 ChanStateRecomend = int32(3) //频道推荐 // ChannelStateTop . ChannelStateTop = int32(1) //频道置顶位 ChannelStateShieldINT = int32(1) // 频道海外屏蔽 CategoryStateShieldINT = int32(1) // 频道分类海外屏蔽 ChanRuleNormal = int32(0) //频道规则状态:正常 ChanRuleDelete = int32(1) //频道规则状态:删除 ChanGroupNormal = int32(0) //频道规则状态:正常 ChanGroupDelete = int32(1) //频道规则状态:删除 ChannelRuleMaxLen = int(2) //频道规则最长组成元素个数 ChannelActivity = int32(4) //是否为活动频道 ChannelSynonymMax = int32(8) //频道最多相似频道 ChannelTopNo = int32(0) //非置顶频道 ChannelTopYes = int32(1) //是置顶频道 ChannelAttrCheckBack = uint(0) //回查频道位 ChannelAttrTop = uint(1) //置顶频道位 ChannelAttrActivity = uint(2) //活动频道位 ChannelAttrINT = uint(3) //频道海外版位 ChannelCategoryAttrINT = uint(0) //频道分类海外版位 ShortContentMax = int(15) DetailContentMax = int(56) )
const const value.
const ( MngActionDelete = string("delete") MngActionIgnore = string("ignore") MngActionPunish = string("punish") MngActionHandle = string("handle") MngActionAdd = string("add") MngModuleReport = string("report") MngModuleSynonym = string("synonym") MngModuleLimit = string("whitelist") MngModuleResource = string("resource") MngModuleTag = string("tag") MngModuleRelation = string("relation") MngModuleHot = string("hot_tag") MngTypeNone = int(-1) MngOidNone = int64(-1) )
const const value.
const ( HotRegionTag = int32(0) HotArchiveTag = int32(1) )
const const value.
const ( ResTypeArticle = int32(1) // 文章类型 ResTypeMusic = int32(2) // 音乐类型 ResTypeArchive = int32(3) // 稿件类型 ResTypeOpenMall = int32(4) // 开放平台电商 ResRoleALL = int32(-1) // ALL ResRoleUpper = int32(0) // up主 ResRoleUser = int32(1) // 用户 ResRoleAdmin = int32(2) // 管理员 ResTagALL = int32(-1) //全部 ResTagAdd = int32(0) //增加 ResTagDel = int32(1) //删除 ResTagRestore = int32(2) //恢复 RelationStateNormal = int32(0) RelationStateDelete = int32(1) AttrLockNone = int32(0) // 未锁定 AttrLocked = int32(1) // 已锁定 QueryTypeTName = int32(0) //按照tag名称查询 QueryTypeOid = int32(1) //按照资源ID查询 ArchiveStateOpen = int32(0) ArchiveStateForbidFixed = int32(-6) )
const const value.
const ( // DataType tag DataType = int32(4) // ActionDel 删除 ActionDel = int32(0) // ActionAdd 增加 ActionAdd = int32(1) // AuditFirst 一审 AuditFirst = int32(1) // AuditSecond 二审 AuditSecond = int32(2) // AuditNotHanleFirst 一审未处理 AuditNotHanleFirst = int32(0) // AuditHanledFirst 一审已处理 AuditHanledFirst = int32(4) // AuditHanledSecond 二审已处理 AuditHanledSecond = int32(1) // AuditNotHanleSecond 二审未处理 AuditNotHanleSecond = int32(3) // AuditNotDealSecond 二审不处理 AuditNotDealSecond = int32(2) RptUserIsFirst = int32(1) // 第一举报者 RptUserIsMng = int32(1) // 举报者是管理员 HandleNull = int32(-2) // 空状态 HandleWait = int32(-1) // 等待审核 HandleIntegral = int32(2) // 扣节操 HandleBlock = int32(3) // 封禁用户 HandleDelFirst = int32(5) // 一审删除 HandleDelSecond = int32(0) // 二审删除 HandleAddFirst = int32(6) // 一审添加 HandleAddSecond = int32(1) // 二审添加 HandleIgnoreFirst = int32(7) // 一审忽略(待二审) HandleIgnoreSecond = int32(4) // 二审忽略 HandleAddUserFirst = int32(8) // 一审添加(用户) HandleAddUserSecond = int32(10) // 二审添加(用户) HandleDelUserFirst = int32(9) // 一审删除(用户) HandleDelUserSecond = int32(11) // 二审删除(用户) HandleRestoreDelFirst = int32(12) // 一审恢复(删除) HandleRestoreDelSecond = int32(14) // 二审恢复(删除) HandleRestoreAddFirst = int32(13) // 一审恢复(添加) HandleRestoreAddSecond = int32(15) // 二审恢复(添加) HandleCommission = int32(100) // 移交众裁 // MoralNotDeducted 节操尚未扣除 MoralNotDeducted = int32(0) // MoralHasDeducted 节操已经被扣除 MoralHasDeducted = int32(1) // RptOriginReply 评论 RptOriginReply = int32(1) // RptOriginDM 弹幕 RptOriginDM = int32(2) // RptOriginLetter 私信 RptOriginLetter = int32(3) // RptOriginTag 标签 RptOriginTag = int32(4) // RptOriginProfile 个人资料 RptOriginProfile = int32(5) // RptOriginVideoup 投稿 RptOriginVideoup = int32(6) )
const const value.
const ( // DESC 降序排列 DESC = int32(0) // ASC 升序排列 ASC = int32(1) // VerifyUnknown tag审核状态未知 VerifyUnknown = int32(-1) // VerifyNone tag无需审核 VerifyNone = int32(0) // VerifyWait tag待审核 VerifyWait = int32(1) // VerifyDone tag已审核 VerifyDone = int32(2) // StateUnknown tag状态未知 StateUnknown = int32(-1) // StateNormal 正常 StateNormal = int32(0) // StateDel 删除 StateDel = int32(1) // StateShield 屏蔽 StateShield = int32(2) // DefaultPageNum Default Page Num. DefaultPageNum = int32(1) // DefaultPagesize default page size. DefaultPagesize = int32(50) // DefaultSearchNum default tag search num. DefaultSearchNum = int32(10) // DefaultOrder DefaultOrder. DefaultOrder = "ctime" // DefaultSort DefaultSort. DefaultSort = "DESC" // TNameMaxLen tag name length . TNameMaxLen = 32 // TagHot hot tag TagHot = int32(0) // TagSubmission submission tag TagSubmission = int32(1) // OperateAdd 操作增加 OperateAdd = int32(0) // OperateDel 操作删除 OperateDel = int32(1) //QuerryByResInfo 按照资源信息查询 QuerryByResInfo = int32(0) // QuerryByLimitState 按照限制状态查询 QuerryByLimitState = int32(1) // ResLimitNone 资源限制状态:无 ResLimitNone = int32(0) // TypeUnknow TypeUnknow. TypeUnknow = int32(-1) // TypeUser 用户tag TypeUser = int32(0) // TypeUper up主tag TypeUper = int32(1) // TypeBiliClass 官方分类tag. TypeBiliClass = int32(2) // TypeBiliContent 官方内容tag. TypeBiliContent = int32(3) // TypeBiliActivity 官方活动tag. TypeBiliActivity = int32(4) // TagOperateYes TagOperateYes. TagOperateYes = int32(1) // TagOperateNO TagOperateNO. TagOperateNO = int32(0) )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Business ¶
type Business struct { Type int32 `json:"type"` Name string `json:"name"` Appkey string `json:"app_key"` Remark string `json:"remark"` Alias string `json:"alias"` }
Business business struct
type Channel ¶
type Channel struct { ID int64 `json:"id"` Name string `json:"name"` Type int64 `json:"type"` Rank int32 `json:"rank"` Operator string `json:"operator"` Editor string `json:"editor"` Cover string `json:"cover"` HeadCover string `json:"head_cover"` Content string `json:"detail_content"` ShortContent string `json:"short_content"` Attr int32 `json:"attr"` State int32 `json:"state"` Top int32 `json:"top"` TopRank int32 `json:"-"` CheckBack int32 `json:"check_back"` Activity int32 `json:"activity"` INTShield int32 `json:"int_shield"` // International Shield. 国际版是否屏蔽 Count *TagCount `json:"count,omitempty"` TagNums int32 `json:"tag_nums"` CTime time.Time `json:"ctime"` MTime time.Time `json:"mtime"` }
Channel Channel struct.
type ChannelCategory ¶
type ChannelCategory struct { ID int64 `json:"id"` Name string `json:"name"` Order int32 `json:"order"` State int32 `json:"state"` Attr int32 `json:"-"` INTShield int32 `json:"int_shield"` // International Shield. 国际版是否屏蔽 CTime time.Time `json:"ctime"` MTime time.Time `json:"mtime"` }
ChannelCategory ChannelCategory.
func (*ChannelCategory) AttrSet ¶
func (t *ChannelCategory) AttrSet(bit uint, v int32)
AttrSet get attr flag.
func (*ChannelCategory) AttrVal ¶
func (t *ChannelCategory) AttrVal(bit uint) int32
AttrVal get attr flag.
type ChannelInfo ¶
type ChannelInfo struct { ID int64 `json:"id"` Name string `json:"name"` Type int64 `json:"type"` Rank int32 `json:"rank"` Operator string `json:"operator"` Cover string `json:"cover"` HeadCover string `json:"head_cover"` Content string `json:"detail_content"` ShortContent string `json:"short_content"` Attr int32 `json:"-"` CheckBack int32 `json:"check_back"` Activity int32 `json:"activity"` INTShield int32 `json:"int_shield"` // International Shield. 国际版是否屏蔽 State int32 `json:"state"` Rules []*ChannelRule `json:"rules"` Synonyms []*ChannelSynonym `json:"synonyms"` }
ChannelInfo ChannelInfo.
type ChannelRule ¶
type ChannelRule struct { ID int64 `json:"id"` Tid int64 `json:"tid"` InRule string `json:"in"` NotInRule string `json:"notin"` InRuleName string `json:"in_name"` NotInRuleName string `json:"notin_name"` Name string `json:"name"` Editor string `json:"editor"` State int32 `json:"state"` CTime time.Time `json:"ctime"` MTime time.Time `json:"mtime"` }
ChannelRule ChannelRule.
type ChannelSynonym ¶
type ChannelSynonym struct { ID int64 `json:"id"` PTid int64 `json:"-"` Tid int64 `json:"tid"` TName string `json:"tname"` Alias string `json:"alias"` Rank int32 `json:"rank"` Operator string `json:"operator"` State int32 `json:"state"` CTime time.Time `json:"ctime"` MTime time.Time `json:"mtime"` }
ChannelSynonym channel group.
type ChannelSynonymSort ¶
type ChannelSynonymSort []*ChannelSynonym
ChannelSynonymSort ChannelSynonymSort.
type DependServiceHost ¶
type DependServiceHost struct { // MngSearchHost string PlatformHost string HotTagHost string ArchiveHotHost string AccountHost string MessageHost string }
DependServiceHost tag
type ESTag ¶
type ESTag struct { IDs []int64 `form:"ids,split"` TagType int32 `form:"tag_type" default:"-1"` State int32 `form:"tag_state" default:"-1"` Vstate int32 `form:"verify_state" default:"-1"` Sort string `form:"sort" default:"desc"` Order string `form:"order" default:"ctime"` Keyword string `form:"keyword"` ParamPage }
ESTag ESTag.
type HotRank ¶
type HotRank struct { Type int32 `json:"type"` Prid int64 `json:"prid"` Rid int64 `json:"rid"` View []*RankResult `json:"view"` Filter []*RankFilter `json:"filter"` //Table: rank_filter Top []*RankTop `json:"top"` //Table: rank_top }
HotRank HotRank.
type LimitRes ¶
type LimitRes struct { ID int64 `json:"id"` Oid int64 `json:"oid"` Type int64 `json:"type"` Title string `json:"title"` Author string `json:"author"` Operation int32 `json:"operation"` CTime time.Time `json:"ctime"` MTime time.Time `json:"mtime"` }
LimitRes Limit Res.
type LimitUser ¶
type LimitUser struct { ID int64 `json:"id"` Mid int64 `json:"mid"` //用户mid Name string `json:"name"` //用户名称 Creator string `json:"creator"` //创建者名称 CTime time.Time `json:"ctime"` MTime time.Time `json:"-"` }
LimitUser limit user.
type MngSearchTag ¶
type MngSearchTag struct { ID int64 `json:"id"` Name string `json:"name"` Content string `json:"content"` Type int32 `json:"tag_type"` //类型 0-用户tag 1-up主tag 2-官方分类tag 3-官方内容tag Use int64 `json:"use_count"` Atten int64 `json:"atten_count"` State int32 `json:"state"` //状态 0-正常 1-删除 2-屏蔽 Verify int32 `json:"verify_state"` //状态 0-无需审核 1-待审核 2-已审核 CTime string `json:"ctime"` //TODO string ===> time.Time MTime string `json:"mtime"` //TODO string ===> time.Time }
MngSearchTag MngSearchTag.
type MngSearchTagList ¶
type MngSearchTagList struct { Result []*MngSearchTag `json:"result"` Page *Page `json:"page"` }
MngSearchTagList .
type ParamChanneList ¶
type ParamChanneList struct { ParamPage IDs []int64 `form:"ids,split"` Type int32 `form:"type"` Operator string `form:"operator"` Sort string `form:"sort"` Order string `form:"order"` State int32 `form:"state"` STime string `form:"stime"` ETime string `form:"etime"` INTShield int32 `form:"int_shield" default:"-1"` }
ParamChanneList ParamChanneList.
type ParamHotList ¶
type ParamHotList struct { Type int32 `form:"type" validate:"gte=0"` Rid int64 `form:"rid" validate:"required,gt=0"` Prid int64 `form:"prid" validate:"required,gt=0"` }
ParamHotList ParamHotList.
type ParamRelation ¶
type ParamRelation struct { Tid int64 `form:"tid" validate:"required,gt=0"` Oid int64 `form:"oid" validate:"required,gt=0"` Type int32 `form:"type" validate:"required,gt=0"` }
ParamRelation ParamRelation.
type ParamRelationAdd ¶
type ParamRelationAdd struct { TName string `form:"tname" validate:"required"` Oid int64 `form:"oid" validate:"required,gt=0"` Type int32 `form:"type" validate:"required,gt=0"` }
ParamRelationAdd ParamRelationAdd.
type ParamRelationList ¶
type ParamRelationList struct { Type int32 `form:"type" validate:"gte=0,lte=1"` TName string `form:"tname"` Oid int64 `form:"oid"` OidType int32 `form:"oid_type"` ParamPage }
ParamRelationList RelationList.
type ParamReport ¶
type ParamReport struct { IDs []int64 `form:"ids,split" validate:"required,min=1,dive,gt=0"` Audit int32 `form:"audit" validate:"required,gte=1,lte=2"` //1:一审; 2:二审 }
ParamReport ParamReport.
type ParamReportHandle ¶
type ParamReportHandle struct { ID int64 `form:"id" validate:"required,gt=0"` Audit int32 `form:"audit" validate:"required,gte=1,lte=2"` //1:一审; 2:二审 Action int32 `form:"action" validate:"gte=0,lte=1"` }
ParamReportHandle ParamReportHandle.
type ParamReportList ¶
type ParamReportList struct { Audit int32 `form:"audit" validate:"required,gt=0,lte=2"` //1:一审; 2:二审 State int32 `form:"state" validate:"gte=0,lte=4"` //处理结果 0:一审未处理,1:二审已处理;2:二审不处理;3:二审未处理; 4:一审已处理 Reason int32 `form:"reason"` //举报原因 Mid int64 `form:"mid"` //mid:被举报人 rptMid:举报人 RptMid int64 `form:"rpt_mid"` STime string `form:"stime"` ETime string `form:"etime"` Rid []int64 `form:"rid,split"` Oid int64 `form:"oid"` Type int32 `form:"type"` TName string `form:"tname"` // tag名称. Tids []int64 `form:"tids"` // tag id. ParamPage }
ParamReportList ParamReportList.
type ParamReportLog ¶
type ParamReportLog struct { Oid int64 `form:"oid"` Type int32 `form:"type"` Tid int64 `form:"tid"` Rid int64 `form:"rid"` Mid int64 `form:"mid"` STime string `form:"stime"` ETime string `form:"etime"` Username string `form:"username"` HandleType []int64 `form:"handle_type,split"` ParamPage }
ParamReportLog ParamReportLog.
type ParamReportPunish ¶
type ParamReportPunish struct { ID []int64 `form:"ids,split" validate:"required,min=1,dive,gt=0"` Audit int32 `form:"audit" validate:"required,gte=1,lte=2"` //1:一审; 2:二审 ReasonType int32 `form:"reasontype"` Moral int32 `form:"moral"` BlockTimeLength int32 `form:"blocktimelength"` Notify int32 `form:"is_notify"` Reason int32 `form:"reason"` Remark string `form:"remark"` Note string `form:"note"` }
ParamReportPunish ParamReportPunish.
type ParamReportState ¶
type ParamReportState struct { ID int64 `form:"id" validate:"required,gt=0"` State int32 `form:"state" validate:"gte=0,lte=4"` //处理结果 0:一审未处理,1:二审已处理;2:二审不处理;3:二审未处理; 4:一审已处理 }
ParamReportState ParamReportState.
type ParamResLimit ¶
type ParamResLimit struct { Oid int64 `form:"oid"` OidType int32 `form:"oid_type"` TP int32 `form:"type" validate:"gte=0,lte=1"` LimitState int32 `form:"state"` ParamPage }
ParamResLimit ParamResLimit.
type ParamResLimitState ¶
type ParamResLimitState struct { Oid int64 `form:"oid" validate:"required,gt=0"` Type int32 `form:"type" validate:"required,gt=0"` Operate int32 `form:"operate" validate:"gte=0"` }
ParamResLimitState ParamResLimitState.
type ParamResLogList ¶
type ParamResLogList struct { Oid int64 `form:"oid" validate:"required,gt=0"` TP int32 `form:"type" validate:"required,gt=0"` Role int32 `form:"role" validate:"lte=2"` Action int32 `form:"action" validate:"lte=4"` ParamPage }
ParamResLogList ParamResLogList.
type ParamResLogState ¶
type ParamResLogState struct { ID int64 `form:"id" validate:"required,gt=0"` Oid int64 `form:"oid" validate:"required,gt=0"` TP int32 `form:"type" validate:"required,gt=0"` State int32 `form:"state" validate:"lte=1,gte=0"` }
ParamResLogState ParamResLogState.
type ParamSynonymDel ¶
type ParamSynonymDel struct { Tid int64 `form:"tid" validate:"required,gt=0"` Adverb []int64 `form:"adverb,split"` }
ParamSynonymDel ParamSynonymDel.
type ParamSynonymEdit ¶
type ParamSynonymEdit struct { TName string `form:"tname" validate:"required"` Adverb []int64 `form:"adverb,split" validate:"required,min=1,dive,gt=0"` }
ParamSynonymEdit ParamSynonymEdit.
type ParamSynonymExist ¶
type ParamSynonymExist struct { TName string `form:"tname" validate:"required"` Adverb string `form:"adverb" validate:"required"` }
ParamSynonymExist ParamSynonymExist.
type ParamSynonymList ¶
ParamSynonymList ParamSynonymList.
type ParamTagEdit ¶
type ParamTagEdit struct { TName string `form:"name" validate:"required"` Content string `form:"content"` TP int32 `form:"type" validate:"gte=0"` Tid int64 `form:"tid"` }
ParamTagEdit param tag edit.
type ParamTagState ¶
type ParamTagState struct { Tid int64 `form:"tid" validate:"required,gt=0"` State int32 `form:"state" validate:"gte=0,lte=2"` }
ParamTagState param tag state.
type RankCount ¶
type RankCount struct { ID int64 `json:"id"` Prid int64 `json:"prid"` Rid int64 `json:"rid"` Type int32 `json:"type"` TopCount int64 `json:"top"` ViewCount int64 `json:"view"` FilterCount int64 `json:"filter"` CTime time.Time `json:"ctime"` MTime time.Time `json:"mtime"` }
RankCount RankCount.
type RankFilter ¶
type RankFilter struct { ID int64 `json:"-"` Tid int64 `json:"tid"` TName string `json:"tname"` TagType int64 `json:"tag_type"` Rank int64 `json:"rank"` CTime time.Time `json:"ctime"` MTime time.Time `json:"mtime"` }
RankFilter RankFilter.
type RankResult ¶
type RankResult struct { ID int64 `json:"-"` Tid int64 `json:"tid"` TName string `json:"tname"` TagType int64 `json:"tag_type"` Rank int64 `json:"rank"` HighLight int64 `json:"highlight"` Business int32 `json:"business"` CTime time.Time `json:"ctime"` MTime time.Time `json:"mtime"` }
RankResult RankResult.
type RankTop ¶
type RankTop struct { ID int64 `json:"-"` Tid int64 `json:"tid"` TName string `json:"tname"` TagType int64 `json:"tag_type"` HighLight int64 `json:"highlight"` Rank int64 `json:"rank"` Business int32 `json:"business"` CTime time.Time `json:"ctime"` MTime time.Time `json:"mtime"` }
RankTop RankTop.
type Relation ¶
type Relation struct { ID int64 `json:"id"` Oid int64 `json:"oid"` Type int32 `json:"type"` Tid int64 `json:"tid"` Mid int64 `json:"mid"` Role int32 `json:"role"` Enjoy int64 `json:"like"` Hate int64 `json:"hate"` Attr int32 `json:"attr"` State int32 `json:"state"` }
Relation res-tag and tag-res.
type Report ¶
type Report struct { ID int64 `json:"id"` Oid int64 `json:"oid"` Type int32 `json:"type"` Mid int64 `json:"mid"` Tid int64 `json:"tid"` Prid int64 `json:"prid"` Rid int64 `json:"rid"` Action int32 `json:"action"` Reason int32 `json:"reason"` Count int32 `json:"count"` Content string `json:"content"` Moral int32 `json:"moral"` Score int32 `json:"score"` State int32 `json:"state"` CTime time.Time `json:"ctime"` MTime time.Time `json:"mtime"` }
Report Report.
type ReportDetail ¶
type ReportDetail struct { ID int64 `json:"id"` PRptID int64 `json:"parent_id"` Oid int64 `json:"oid"` Type int32 `json:"type"` Title string `json:"title"` Tid int64 `json:"tid"` TName string `json:"tname"` TagState int32 `json:"tag_state"` Mid int64 `json:"mid"` RptMid int64 `json:"rpt_mid"` Action int32 `json:"action"` Rid int64 `json:"rid"` Reason int32 `json:"reason"` IsDelMoral int32 `json:"is_del_moral"` Score int32 `json:"score"` State int32 `json:"state"` CTime time.Time `json:"ctime"` MTime time.Time `json:"mtime"` }
ReportDetail ReportDetail
type ReportInfo ¶
type ReportInfo struct { // TypeID int64 `json:"type_id"` // rid ID int64 `json:"id"` Oid int64 `json:"oid"` Type int32 `json:"type"` Title string `json:"title"` Count int32 `json:"count"` MissionID int64 `json:"mission_id"` Tid int64 `json:"tid"` TName string `json:"tname"` TagState int32 `json:"tag_state"` Mid int64 `json:"mid"` Action int32 `json:"action"` Rid int64 `json:"rid"` Reason int32 `json:"reason"` IsDelMoral int32 `json:"is_del_moral"` Score int32 `json:"score"` State int32 `json:"state"` RptMid int64 `json:"rpt_mid"` RptIsUp int32 `json:"rpt_is_up"` MidIsUp int32 `json:"mid_is_up"` Examine int32 `json:"examine"` Log []*ReportLog `json:"log"` CTime time.Time `json:"ctime"` MTime time.Time `json:"mtime"` }
ReportInfo ReportInfo
type ReportLog ¶
type ReportLog struct { ID int64 `json:"id"` RptID int64 `json:"rpt_id"` UserName string `json:"username"` Points int32 `json:"points"` Oid int64 `json:"oid"` Type int32 `json:"type"` Mid int64 `json:"mid"` Tid int64 `json:"tid"` Rid int64 `json:"rid"` Reason string `json:"reason"` HandleType int32 `json:"handle_type"` Notice int32 `json:"is_notice"` CTime time.Time `json:"ctime"` MTime time.Time `json:"mtime"` Tag *Tag `json:"tag,omitempty"` }
ReportLog ReportLog.
type ReportUser ¶
type ReportUser struct { ID int64 `json:"id"` RptID int64 `json:"rpt_id"` Mid int64 `json:"rpt_mid"` Attr int32 `json:"attr"` CTime time.Time `json:"ctime"` MTime time.Time `json:"mtime"` }
ReportUser ReportUser.
type ResTagLog ¶
type ResTagLog struct { ID int64 `json:"id"` Oid int64 `json:"oid"` Mid int64 `json:"mid"` Tid int64 `json:"tid"` Tname string `json:"tname"` Typ int8 `json:"type"` Role int8 `json:"role"` Action int8 `json:"action"` Remark string `json:"remark"` State int8 `json:"state"` CTime time.Time `json:"ctime"` MTime time.Time `json:"mtime"` }
ResTagLog Resource log.
type Resource ¶
type Resource struct { ID int64 `json:"id"` Oid int64 `json:"oid"` Type int64 `json:"type"` Title string `json:"title"` Tid int64 `json:"tid"` Mid int64 `json:"mid"` Author string `json:"author"` Role int64 `json:"role"` Enjoy int64 `json:"like"` Hate int64 `json:"hate"` Attr int64 `json:"attr"` State int64 `json:"state"` CTime time.Time `json:"ctime"` MTime time.Time `json:"mtime"` Tag *Tag `json:"tag"` TagCount *TagCount `json:"tag_count"` }
Resource Resource tag info
type SearchRes ¶
type SearchRes struct { ID int64 `json:"id"` Oid int64 `json:"oid"` Type int64 `json:"type"` TypeID int64 `json:"typeid"` Title string `json:"title"` Author string `json:"author"` MissionID int64 `json:"mission_id"` Mid int64 `json:"mid"` PubDate string `json:"pubtime"` CTime string `json:"ctime"` Copyright int32 `json:"copyright"` State int32 `json:"state"` }
SearchRes seach res.
type SynonymInfo ¶
SynonymInfo SynonymInfo.
type SynonymTag ¶
type SynonymTag struct { ID int64 `json:"id"` //主键 Ptid int64 `json:"ptid"` Tid int64 `json:"tid"` TName string `json:"tname"` UName string `json:"uname"` Adverb []*BasicTag `json:"adverb"` //副词 CTime time.Time `json:"ctime"` MTime time.Time `json:"mtime"` }
SynonymTag SynonymTag.
type Tag ¶
type Tag struct { ID int64 `json:"id"` //主键 Type int32 `json:"type"` //类型 0-用户tag 1-up主tag 2-官方分类tag 3-官方内容tag Name string `json:"name"` //tag name Cover string `json:"cover"` //封面地址 Content string `json:"content"` //tag简介 Verify int32 `json:"verify"` //状态 0-无需审核 1-待审核 2-已审核 Attr int32 `json:"attr"` // 属性: 0:锁定 1:锁定 State int32 `json:"state"` //状态 0-正常 1-删除 2-屏蔽 CTime time.Time `json:"ctime"` //创建时间 MTime time.Time `json:"mtime"` //最后修改时间 HeadCover string `json:"head_cover"` //头图 ShortContent string `json:"short_content"` // 短评 }
Tag Tag.
type TagCount ¶
type TagCount struct { Tid int64 `json:"tag_id"` Bind int64 `json:"bind_count"` Sub int64 `json:"sub_count"` }
TagCount tag count.
type TagInfo ¶
type TagInfo struct { ID int64 `json:"id"` //主键 Type int32 `json:"type"` //类型 0-用户tag 1-up主tag 2-官方分类tag 3-官方内容tag Name string `json:"name"` //tag name Cover string `json:"cover"` //封面地址 Content string `json:"content"` //tag简介 Verify int32 `json:"verify"` //状态 0-无需审核 1-待审核 2-已审核 Attr int32 `json:"attr"` // 属性: 0:锁定 1:锁定 State int32 `json:"state"` //状态 0-正常 1-删除 2-屏蔽 Bind int64 `json:"bind_count"` Sub int64 `json:"sub_count"` CTime time.Time `json:"ctime"` //创建时间 MTime time.Time `json:"mtime"` //最后修改时间 }
TagInfo tag info.
type UpdateESearchTag ¶
type UpdateESearchTag struct { ID int64 `json:"id"` Name string `json:"name,omitempty"` Content string `json:"content,omitempty"` Type *int32 `json:"tag_type,omitempty"` //类型 0-用户tag 1-up主tag 2-官方分类tag 3-官方内容tag Use int64 `json:"use_count,omitempty"` Atten int64 `json:"atten_count,omitempty"` State *int32 `json:"state,omitempty"` //状态 0-正常 1-删除 2-屏蔽 Verify *int32 `json:"verify_state,omitempty"` //状态 0-无需审核 1-待审核 2-已审核 CTime string `json:"ctime,omitempty"` //TODO string ===> time.Time MTime string `json:"mtime,omitempty"` //TODO string ===> time.Time }
UpdateESearchTag UpdateESearchTag.