Documentation
¶
Index ¶
- Constants
- Variables
- func AttrSet(dest uint32, bitValue uint8, bit uint) (res uint32)
- func AttrVal(v uint32, bit uint) uint8
- func BuildBfsURL(raw string, appkey, secret, bucket, ePath string) string
- func ToFixed(num float64, precision int) float64
- type ArgMsg
- type AttrBasePermit
- type CsvFormatter
- type DataType
- type DataTypes
- type DataViewFansTop
- type DataViewTypeSummary
- type ExportArg
- type ExportArgInterface
- type FansRankIncr
- type LikesRankIncr
- type MCNCheatListReply
- type MCNCheatListReq
- type MCNCheatReply
- type MCNCheatUPListReply
- type MCNCheatUPListReq
- type MCNCheatUPReply
- type MCNDataArchiveRank
- type MCNDataSummary
- type MCNDataUP
- type MCNImportUPInfoReply
- type MCNImportUPInfoReq
- type MCNImportUPRewardSignReq
- type MCNIncreaseListReply
- type MCNIncreaseListReq
- type MCNIncreaseReply
- type MCNInfoReply
- type MCNInfoReq
- type MCNListOne
- type MCNListReply
- type MCNListReq
- type MCNPayEditReq
- type MCNPayState
- type MCNPayStateEditReq
- type MCNRenewalReq
- type MCNSign
- type MCNSignAction
- type MCNSignCycleAction
- type MCNSignEntryReq
- type MCNSignInfoReply
- type MCNSignInfoReq
- type MCNSignListReply
- type MCNSignPay
- type MCNSignPermissionReq
- type MCNSignState
- type MCNSignStateOpReq
- type MCNSignStateReq
- type MCNStateEditReq
- type MCNUP
- type MCNUPAction
- type MCNUPInfoReply
- type MCNUPListReply
- type MCNUPListReq
- type MCNUPPermissionAction
- type MCNUPPermissionState
- type MCNUPPermitOPReq
- type MCNUPPermitStateReq
- type MCNUPRecommendAction
- type MCNUPRecommendReq
- type MCNUPRecommendSource
- type MCNUPRecommendState
- type MCNUPReviewListReply
- type MCNUPState
- type MCNUPStateEditReq
- type MCNUPStateOpReq
- type MCNUPStateReq
- type MSG
- type MSGType
- type McnCommonReq
- type McnDataOverview
- type McnDataTopInfo
- type McnDataTypeSummary
- type McnDataTypesInfo
- type McnGetMcnFansReply
- type McnGetRankReq
- type McnGetRankUpFansReply
- type McnRankArchiveLikesOverview
- type McnRankFansOverview
- type McnUpPermissionApply
- type McnUpPermitApplyListReply
- type McnUpRecommendListReply
- type McnUpRecommendPool
- type PageArg
- type PageResult
- type Permits
- type QueryActivityByIDReq
- type QueryUpBonusByMidResult
- type RankArchiveLikeInfo
- type RankDataBase
- type RecommendStateOpReq
- type RecommendUpReq
- type SignPayInfoReply
- type SignPayReq
- type TidnameInfo
- type TotalMcnDataInfo
- type TotalMcnDataReq
- type UpBaseInfo
- type UpPlayInfo
- type UpSummaryBonusInfo
Constants ¶
const ( // MCNLogBizID mcn审核日志 MCNLogBizID int = 221 // MCNUPLogBizID mcn up主审核日志 MCNUPLogBizID int = 222 // MCNPayDateLogBizID mcn 付款周期审核日志 MCNPayDateLogBizID int = 223 // MCNRecommendLogBizID mcn 推荐池审核日志 MCNRecommendLogBizID int = 224 )
const ( BfsEasyPath = "/bfs/mcn" TimeFormatSec = "2006-01-02 15:04:05" TimeFormatDay = "2006-01-02" AllActiveTid = 65535 //mcn_data_summary表active_tid所有分区 DefaultTyName = "默认" )
const .
const ( MCNStateNoPay = int8(1) MCNStatePayed = int8(2) MCNStateDeled = int8(100) )
MCNSignPay State .
const ( // McnSignApplyPass MCN申请MCN管理入口申请成功 McnSignApplyPass = iota + 1 // McnSignNoApplyPass MCN申请MCN管理入口申请未通过 McnSignNoApplyPass // McnUpBindAuthApply MCN申请和up主绑定申请授权 McnUpBindAuthApply // McnUpBindAuthReview MCN申请和up主绑定up主同意等待运营审核中 McnUpBindAuthReview // McnUpBindAuthApplyPass MCN申请和up主绑定up主同意且运营通过 McnUpBindAuthApplyPass // UpMcnBindAuthApplyPass up主申请和MCN绑定up主同意且运营通过 UpMcnBindAuthApplyPass // McnUpBindAuthApplyNoPass MCN申请和up主绑定up主同意但运营未通过 McnUpBindAuthApplyNoPass // UpMcnBindAuthApplyNoPass up主申请和MCN绑定up主同意但运营未通过 UpMcnBindAuthApplyNoPass // McnUpBindAuthApplyRefuse MCN申请和up主绑定被up主拒绝 McnUpBindAuthApplyRefuse // UpMcnRelationFreeze MCN和up主纠纷处理 - Up主和MCN关系冻结 UpMcnRelationFreeze // McnUpRelationFreeze MCN和up主纠纷处理 - MCN和Up主关系冻结 McnUpRelationFreeze // UpMcnRelationRelease MCN和up主纠纷处理 - Up主和MCN提前解约 UpMcnRelationRelease // McnUpRelationRelease MCN和up主纠纷处理 - MCN和Up主提前解约 McnUpRelationRelease // McnBackstageBlock MCN违规账号封禁 McnBackstageBlock // McnBackstageClose MCN违规账号清退 McnBackstageClose // McnRenewcontract 续约合同 McnRenewcontract // McnAccountRestore MCN账号恢复 McnAccountRestore // McnPermissionOpen MCN新开权限 McnPermissionOpen // McnPermissionClosed MCN权限关闭 McnPermissionClosed // McnUpNotAgreeChangePermit UP主不同意授权变更 McnUpNotAgreeChangePermit // McnOperNotAgreeChangePermit 运营不同意授权变更 McnOperNotAgreeChangePermit // McnOperAgreeChangePermit 运营同意授权变更 McnOperAgreeChangePermit // McnApplyUpChangePermit MCN申请和up主的权限修改 McnApplyUpChangePermit )
const .
const ( ResponeModelJSON = "json" ResponeModelCSV = "csv" )
const .
const ( // TopDataLenth . TopDataLenth int = 5 )
Variables ¶
var PermitMap = map[AttrBasePermit]struct{}{ AttrBasePermitBit: {}, AttrDataPermitBit: {}, AttrRecPermitBit: {}, AttrDepartPermitBit: {}, }
PermitMap .
Functions ¶
func BuildBfsURL ¶
BuildBfsURL is.
Types ¶
type ArgMsg ¶
type ArgMsg struct { MSGType MSGType MIDs []int64 McnName string UpName string McnMid int64 UpMid int64 CompanyName string Reason string SignUpID int64 Permission string }
ArgMsg .
type AttrBasePermit ¶
type AttrBasePermit uint
AttrBasePermit .
const ( AttrBasePermitBit AttrBasePermit = 0 // 基础权限 AttrDataPermitBit AttrBasePermit = 1 // 数据权限 AttrRecPermitBit AttrBasePermit = 2 // 推荐权限 AttrDepartPermitBit AttrBasePermit = 3 // 起飞权限 )
const .
func (AttrBasePermit) String ¶
func (p AttrBasePermit) String() string
type CsvFormatter ¶
type CsvFormatter interface { GetFileName() string // ToCsv do not call flush ToCsv(writer *csv.Writer) }
CsvFormatter CsvFormatter
type DataType ¶
type DataType int8
DataType .
const ( // DataTypeAccumulate is a DataType of type Accumulate DataTypeAccumulate DataType = 1 // DataTypeDay is a DataType of type Day DataTypeDay DataType = 2 // DataTypeWeek is a DataType of type Week DataTypeWeek DataType = 3 // DataTypeMonth is a DataType of type Month DataTypeMonth DataType = 4 // DataTypeActiveFans active fans DataTypeActiveFans DataType = 5 )
DataType 数据类型,1累计,2昨日,3上周,4上月
ENUM(
Accumulate = 1 Day = 2 Week = 3 Month = 4 ActiveFans = 5 )
type DataTypes ¶
type DataTypes struct { TID int16 `json:"tid"` TypeName string `json:"type_name"` Total int64 `json:"total"` Amount int64 `json:"amount"` Rate int64 `json:"rate"` }
DataTypes .
type DataViewFansTop ¶
type DataViewFansTop int8
DataViewFansTop .
const ( // McnFansIncr . McnFansIncr DataViewFansTop = 1 // McnFansIncrRate . McnFansIncrRate DataViewFansTop = 2 // UpFansIncr . UpFansIncr DataViewFansTop = 3 // UpFansIncrRate . UpFansIncrRate DataViewFansTop = 4 )
type DataViewTypeSummary ¶
type DataViewTypeSummary int8
DataViewTypeSummary .
const ( // SignUpsAccumulate signed up accumulate amount. SignUpsAccumulate DataViewTypeSummary = 1 // FansIncr signed up fans incr amount. FansIncr DataViewTypeSummary = 2 // VideoUpsIncr signed up videoup incr amount. VideoUpsIncr DataViewTypeSummary = 3 // PlaysIncr signed up paly incr amount. PlaysIncr DataViewTypeSummary = 4 )
type ExportArg ¶
type ExportArg struct {
Export string `form:"export"`
}
ExportArg export arg
func (*ExportArg) ExportFormat ¶
ExportFormat export format
type ExportArgInterface ¶
type ExportArgInterface interface { // ExportFormat options: json, csv ExportFormat() string }
ExportArgInterface export interface
type FansRankIncr ¶
type FansRankIncr struct { SignID int64 `json:"sign_id"` Mid int64 `json:"mid"` Name string `json:"name"` Rank int16 `json:"rank"` FansIncr int64 `json:"fans_incr"` Fans int64 `json:"fans"` RateIncr int64 `json:"rate_incr"` }
FansRankIncr .
type LikesRankIncr ¶
type LikesRankIncr struct { McnMid int64 `json:"mcn_mid"` McnName string `json:"mcn_name"` UpMid int64 `json:"up_mid"` UpName string `json:"up_name"` AVID int64 `json:"avid"` AVTitle string `json:"av_title"` TID int16 `json:"tid"` TypeName string `json:"type_name"` LikesIncr int64 `json:"likes_incr"` PlayIncr int64 `json:"play_incr"` SignID int64 `json:"sign_id"` }
LikesRankIncr .
type MCNCheatListReply ¶
type MCNCheatListReply struct { List []*MCNCheatReply `json:"result"` PageResult }
MCNCheatListReply struct.
type MCNCheatListReq ¶
type MCNCheatListReq struct { McnCommonReq UPMID int64 `form:"up_mid"` PageArg }
MCNCheatListReq req .
type MCNCheatReply ¶
type MCNCheatReply struct { SignID int64 `json:"sign_id"` MCNMID int64 `json:"mcn_mid"` MCNName string `json:"mcn_name"` UpMID int64 `json:"up_mid"` UpName string `json:"up_name"` FansCountCheatAccumulate int64 `json:"fans_count_cheat_accumulate"` FansCountCheatIncreaseDay int64 `json:"fans_count_cheat_increase_day"` FansCountReal int64 `json:"fans_count_real"` FansCountCheatCleanedAccumulate int64 `json:"fans_count_cheat_cleaned_accumulate"` }
MCNCheatReply struct .
type MCNCheatUPListReply ¶
type MCNCheatUPListReply struct { List []*MCNCheatUPReply `json:"result"` PageResult }
MCNCheatUPListReply struct .
type MCNCheatUPListReq ¶
MCNCheatUPListReq struct .
type MCNCheatUPReply ¶
type MCNCheatUPReply struct { GenerateDate xtime.Time `json:"generate_date"` FansCountCheatIncreaseDay int64 `json:"fans_count_cheat_increase_day"` MCNMID int64 `json:"mcn_mid"` MCNName string `json:"mcn_name"` SignID int64 `json:"sign_id"` FansCountCheatAccumulate int64 `json:"fans_count_cheat_accumulate"` FansCountCheatCleanedAccumulate int64 `json:"fans_count_cheat_cleaned_accumulate"` FansCountReal int64 `json:"fans_count_real"` }
MCNCheatUPReply struct .
type MCNDataArchiveRank ¶
type MCNDataArchiveRank struct { ID int64 `json:"id"` MCNID int64 `json:"mcn_mid"` SignID int64 `json:"sign_id"` ArchiveID int64 `json:"archive_id"` ArchiveTitle string `json:"archive_title"` UPMID int64 `json:"up_mid"` LikeCountAccumulate int64 `json:"like_count_accumulate"` LikeCountIncrease int64 `json:"like_count_increase"` PlayCountIncrease int64 `json:"play_count_increase"` DataType int8 `json:"data_type"` TID int64 `json:"tid"` CtimeArchive xtime.Time `json:"ctime_archive"` Ctime xtime.Time `json:"ctime"` Mtime xtime.Time `json:"mtime"` }
MCNDataArchiveRank .
type MCNDataSummary ¶
type MCNDataSummary struct { ID int64 `json:"id"` MCNID int64 `json:"mcn_mid"` SignID int64 `json:"sign_id"` UPCount int64 `json:"up_count"` FansCountAccumulate int64 `json:"fans_count_accumulate"` FansCountOnline int64 `json:"fans_count_online"` FansCountReal int64 `json:"fans_count_real"` FansCountCheat int64 `json:"fans_count_cheat"` FansCountCheatAccumulate int64 `json:"fans_count_cheat_accumulate"` FansCountIncreaseDay int64 `json:"fans_count_increase_day"` PlayCountAccumulate int64 `json:"play_count_accumulate"` PlayCountIncreaseDay int64 `json:"play_count_increase_day"` ArchiveCountAccumulate int64 `json:"archive_count_accumulate"` ArchiveCountIncreaseDay int64 `json:"archive_count_increase_day"` ActiveTID int64 `json:"active_tid"` GenerateDate xtime.Time `json:"generate_date"` Ctime xtime.Time `json:"ctime"` Mtime xtime.Time `json:"mtime"` }
MCNDataSummary .
type MCNDataUP ¶
type MCNDataUP struct { ID int64 `json:"id"` MCNID int64 `json:"mcn_mid"` SignID int64 `json:"sign_id"` UPMID int64 `json:"up_mid"` DataType int8 `json:"data_type"` FansCountAll int64 `json:"fans_count_all"` FansCountActive int64 `json:"fans_count_active"` FansIncreaseAccumulate int64 `json:"fans_increase_accumulate"` ArchiveCount int64 `json:"archive_count"` PlayCount int64 `json:"play_count"` FansIncreaseMonth int64 `json:"fans_increase_month"` GenerateDate xtime.Time `json:"generate_date"` Ctime xtime.Time `json:"ctime"` Mtime xtime.Time `json:"mtime"` }
MCNDataUP .
type MCNImportUPInfoReply ¶
type MCNImportUPInfoReply struct { ID int64 `json:"id"` MCNMID int64 `json:"mcn_mid"` SignID int64 `json:"sign_id"` UpMID int64 `json:"up_mid"` UpName string `json:"up_name"` StandardFansDate int64 `json:"standard_fans_date"` StandardArchiveCount int64 `json:"standard_archive_count"` StandardFansCount int64 `json:"standard_fans_count"` IsReward int8 `json:"is_reward"` JoinTime int32 `json:"join_time"` }
MCNImportUPInfoReply struct .
type MCNImportUPInfoReq ¶
type MCNImportUPInfoReq struct { McnCommonReq UPMID int64 `form:"up_mid" validate:"required"` }
MCNImportUPInfoReq struct .
type MCNImportUPRewardSignReq ¶
type MCNImportUPRewardSignReq struct { SignID int64 `json:"sign_id" validate:"required"` UPMID int64 `json:"up_mid" validate:"required"` UserName string UID int64 }
MCNImportUPRewardSignReq struct .
type MCNIncreaseListReply ¶
type MCNIncreaseListReply struct { List []*MCNIncreaseReply `json:"result"` PageResult }
MCNIncreaseListReply struct .
type MCNIncreaseListReq ¶
type MCNIncreaseListReq struct { McnCommonReq DataType int8 `form:"data_type"` ActiveTID int64 `form:"active_tid" default:"65535"` PageArg }
MCNIncreaseListReq struct .
type MCNIncreaseReply ¶
type MCNIncreaseReply struct { ID int64 `json:"id"` SignID int64 `json:"sign_id"` DataType int8 `json:"data_type"` ActiveTID int64 `json:"active_tid"` GenerateDate xtime.Time `json:"generate_date"` UPCount int64 `json:"up_count"` FansCountOnlineAccumulate int64 `json:"fans_count_online_accumulate"` FansCountRealAccumulate int64 `json:"fans_count_real_accumulate"` FansCountCheatAccumulate int64 `json:"fans_count_cheat_accumulate"` FansCountIncreaseDay int64 `json:"fans_count_increase_day"` ArchiveCountAccumulate int64 `json:"archive_count_accumulate"` ArchiveCountDay int64 `json:"archive_count_day"` PlayCountAccumulate int64 `json:"play_count_accumulate"` PlayCountIncreaseDay int64 `json:"play_count_increase_day"` FansCountAccumulate int64 `json:"fans_count_accumulate"` }
MCNIncreaseReply struct .
type MCNInfoReply ¶
type MCNInfoReply struct { MCNSign UPCount int64 `json:"up_count"` ArchiveCountAccumulate int64 `json:"archive_count_accumulate"` PlayCountAccumulate int64 `json:"play_count_accumulate"` FansCountAccumulate int64 `json:"fans_count_accumulate"` FansCountOnline int64 `json:"fans_count_online"` FansCountReal int64 `json:"fans_count_real"` FansCountCheat int64 `json:"fans_count_cheat"` FansCountRealAccumulate int64 `json:"fans_count_real_accumulate"` FansCountOnlineAccumulate int64 `json:"fans_count_online_accumulate"` }
MCNInfoReply struct .
type MCNListOne ¶
type MCNListOne struct { ID int64 `json:"id"` MCNMID int64 `json:"mcn_mid"` MCNName string `json:"mcn_name"` UPCount int64 `json:"up_count"` FansCountAccumulate int64 `json:"fans_count_accumulate"` FansCountOnlineAccumulate int64 `json:"fans_count_online_accumulate"` FansCountRealAccumulate int64 `json:"fans_count_real_accumulate"` FansCountCheatAccumulate int64 `json:"fans_count_cheat_accumulate"` GenerateDate xtime.Time `json:"generate_date"` BeginDate xtime.Time `json:"begin_date"` EndDate xtime.Time `json:"end_date"` State MCNSignState `json:"state"` PayInfos []*SignPayInfoReply `json:"pay_infos"` Permission uint32 `json:"permission"` Permits *Permits `json:"permits"` // 权限集合 }
MCNListOne struct .
func (*MCNListOne) AttrPermitVal ¶
func (n *MCNListOne) AttrPermitVal()
AttrPermitVal get Permission all.
type MCNListReply ¶
type MCNListReply struct { List []*MCNListOne `json:"result"` PageResult }
MCNListReply struct .
func (*MCNListReply) GetFileName ¶
func (q *MCNListReply) GetFileName() string
GetFileName get file name
type MCNListReq ¶
type MCNListReq struct { McnCommonReq Permits ExpireSign bool `form:"expire_sign"` ExpirePay bool `form:"expire_pay"` FansNumMin int64 `form:"fans_num_min"` FansNumMax int64 `form:"fans_num_max"` State MCNSignState `form:"state" default:"-1"` SortUP string `form:"sort_up"` SortAllFans string `form:"sort_all_fans"` SortRiseFans string `form:"sort_rise_fans"` SortTrueRiseFans string `form:"sort_true_rise_fans"` SortCheatFans string `form:"sort_cheat_fans"` Order string `form:"order" default:"s.mtime"` Sort string `form:"sort" default:"DESC"` PageArg ExportArg }
MCNListReq req .
type MCNPayEditReq ¶
type MCNPayEditReq struct { ID int64 `json:"id" validate:"min=1"` MCNMID int64 `json:"mcn_mid" validate:"min=1"` SignID int64 `json:"sign_id" validate:"min=1"` DueDate string `json:"due_date" validate:"required"` PayValue int64 `json:"pay_value" validate:"min=1"` UserName string UID int64 }
MCNPayEditReq req .
type MCNPayState ¶
type MCNPayState int8
MCNPayState .
const ( // MCNPayNo 未支付 MCNPayNo MCNPayState = 0 // MCNPayed 已支付 MCNPayed MCNPayState = 1 // MCNPayDel 已删除 MCNPayDel MCNPayState = 100 )
const .
func (MCNPayState) String ¶
func (mps MCNPayState) String() string
type MCNPayStateEditReq ¶
type MCNPayStateEditReq struct { ID int64 `json:"id" validate:"min=1"` MCNMID int64 `json:"mcn_mid" validate:"min=1"` SignID int64 `json:"sign_id" validate:"min=1"` State int8 `json:"state"` UserName string UID int64 }
MCNPayStateEditReq req .
type MCNRenewalReq ¶
type MCNRenewalReq struct { ID int64 `json:"id" validate:"min=1"` MCNMID int64 `json:"mcn_mid" validate:"min=1"` BeginDate string `json:"begin_date" validate:"required"` // 0000-00-00 EndDate string `json:"end_date" validate:"required"` // 0000-00-00 ContractLink string `json:"contract_link" validate:"required"` SignPayInfo []*SignPayReq `json:"sign_pay_info"` Permits Permits `json:"permits"` Permission uint32 UserName string UID int64 }
MCNRenewalReq req .
func (*MCNRenewalReq) AttrPermitSet ¶
func (req *MCNRenewalReq) AttrPermitSet()
AttrPermitSet set Permission.
type MCNSign ¶
type MCNSign struct { ID int64 `json:"id"` MCNMID int64 `json:"mcn_mid"` MCNName string `json:"mcn_name"` CompanyName string `json:"company_name"` CompanyLicenseID string `json:"company_license_id"` CompanyLicenseLink string `json:"company_license_link"` ContractLink string `json:"contract_link"` ContactName string `json:"contact_name"` ContactTitle string `json:"contact_title"` ContactIdcard string `json:"contact_idcard"` ContactPhone string `json:"contact_phone"` BeginDate xtime.Time `json:"begin_date"` EndDate xtime.Time `json:"end_date"` State MCNSignState `json:"state"` RejectTime xtime.Time `json:"reject_time"` RejectReason string `json:"reject_reason"` Ctime xtime.Time `json:"ctime"` Mtime xtime.Time `json:"mtime"` Permission uint32 `json:"permission"` Permits *Permits `json:"permits"` // 权限集合 }
MCNSign struct .
type MCNSignAction ¶
type MCNSignAction int8
MCNSignAction .
const ( // MCNSignActionEntry 录入 MCNSignActionEntry MCNSignAction = 0 // MCNSignActionApply 申请 MCNSignActionApply MCNSignAction = 1 // MCNSignActionReject 驳回 MCNSignActionReject MCNSignAction = 2 // MCNSignActionPass 通过 MCNSignActionPass MCNSignAction = 10 // MCNSignActionBlock 封禁 MCNSignActionBlock MCNSignAction = 13 // MCNSignActionClear 清退 MCNSignActionClear MCNSignAction = 14 // MCNSignActionRenew 续约 MCNSignActionRenew MCNSignAction = 16 // MCNSignActionRestore 恢复 MCNSignActionRestore MCNSignAction = 17 // MCNSignActionPermit 签约用户权限变更(只用于记日志) MCNSignActionPermit MCNSignAction = 99 // MCNSignActionDelete 移除 MCNSignActionDelete MCNSignAction = 100 )
func (MCNSignAction) GetState ¶
func (action MCNSignAction) GetState(oldState MCNSignState) MCNSignState
GetState .
func (MCNSignAction) GetmsgType ¶
func (action MCNSignAction) GetmsgType(oldState MCNSignState) MSGType
GetmsgType .
func (MCNSignAction) NotRightAction ¶
func (action MCNSignAction) NotRightAction() bool
NotRightAction .
func (MCNSignAction) String ¶
func (action MCNSignAction) String() string
type MCNSignCycleAction ¶
type MCNSignCycleAction int8
MCNSignCycleAction .
const ( // MCNSignCycleActionUp 变更 MCNSignCycleActionUp MCNSignCycleAction = iota // MCNSignCycleActionAdd 新增 MCNSignCycleActionAdd // MCNSignCycleActionDel 删除 MCNSignCycleActionDel )
const .
func (MCNSignCycleAction) String ¶
func (act MCNSignCycleAction) String() string
type MCNSignEntryReq ¶
type MCNSignEntryReq struct { MCNMID int64 `json:"mcn_mid" validate:"min=1"` BeginDate string `json:"begin_date" validate:"required"` // 0000-00-00 EndDate string `json:"end_date" validate:"required"` // 0000-00-00 SignPayInfo []*SignPayReq `json:"sign_pay_info"` Permits *Permits `json:"permits"` UserName string UID int64 Permission uint32 }
MCNSignEntryReq req .
func (*MCNSignEntryReq) AttrPermitSet ¶
func (req *MCNSignEntryReq) AttrPermitSet()
AttrPermitSet set Permission.
type MCNSignInfoReply ¶
type MCNSignInfoReply struct { SignID int64 `json:"sign_id"` McnMid int64 `json:"mcn_mid"` McnName string `json:"mcn_name"` CompanyName string `json:"company_name"` CompanyLicenseID string `json:"company_license_id"` CompanyLicenseLink string `json:"company_license_link"` ContractLink string `json:"contract_link"` ContactName string `json:"contact_name"` ContactTitle string `json:"contact_title"` ContactPhone string `json:"contact_phone"` ContactIdcard string `json:"contact_idcard"` BeginDate xtime.Time `json:"begin_date"` EndDate xtime.Time `json:"end_date"` State MCNSignState `json:"state"` RejectTime xtime.Time `json:"reject_time"` RejectReason string `json:"reject_reason"` Ctime xtime.Time `json:"ctime"` Mtime xtime.Time `json:"mtime"` SignPayInfo []*SignPayInfoReply `json:"sign_pay_info"` Permission uint32 `json:"permission"` Permits *Permits `json:"permits"` // 权限集合 }
MCNSignInfoReply .
func (*MCNSignInfoReply) AttrPermitVal ¶
func (n *MCNSignInfoReply) AttrPermitVal()
AttrPermitVal get Permission all.
type MCNSignInfoReq ¶
type MCNSignInfoReq struct {
SignID int64 `form:"sign_id" validate:"min=1"`
}
MCNSignInfoReq req
type MCNSignListReply ¶
type MCNSignListReply struct { List []*MCNSignInfoReply `json:"result"` PageResult }
MCNSignListReply .
type MCNSignPay ¶
type MCNSignPay struct { ID int64 `json:"id"` MID int64 `json:"mid"` SignID int64 `json:"sign_id"` DueDate string `json:"due_date"` PayValue int64 `json:"pay_value"` State int8 `json:"state"` Note string `json:"note"` Ctime string `json:"ctime"` Mtime string `json:"mtime"` }
MCNSignPay struct .
type MCNSignPermissionReq ¶
type MCNSignPermissionReq struct { SignID int64 `json:"sign_id" validate:"required"` Permits *Permits `json:"permits"` Permission uint32 UserName string UID int64 }
MCNSignPermissionReq .
func (*MCNSignPermissionReq) AttrPermitSet ¶
func (req *MCNSignPermissionReq) AttrPermitSet()
AttrPermitSet set Permission.
type MCNSignState ¶
type MCNSignState int8
MCNSignState .
const ( // MCNSignStateUnKnown 未知状态 MCNSignStateUnKnown MCNSignState = -1 // MCNSignStateNoApply 未申请 MCNSignStateNoApply MCNSignState = 0 // MCNSignStateOnReview 待审核 MCNSignStateOnReview MCNSignState = 1 // MCNSignStateOnReject 已驳回 MCNSignStateOnReject MCNSignState = 2 // MCNSignStateOnSign 已签约 MCNSignStateOnSign MCNSignState = 10 // MCNSignStateOnCooling 冷却中 MCNSignStateOnCooling MCNSignState = 11 // MCNSignStateOnExpire 已到期 MCNSignStateOnExpire MCNSignState = 12 // MCNSignStateOnBlock 已封禁 MCNSignStateOnBlock MCNSignState = 13 // MCNSignStateOnClear 已清退 MCNSignStateOnClear MCNSignState = 14 // MCNSignStateOnPreOpen 待开启 MCNSignStateOnPreOpen MCNSignState = 15 // MCNSignStateOnDelete 已移除 MCNSignStateOnDelete MCNSignState = 100 )
const .
func (MCNSignState) IsOnReviewState ¶
func (state MCNSignState) IsOnReviewState(action MCNSignAction) bool
IsOnReviewState .
func (MCNSignState) IsRenewalState ¶
func (state MCNSignState) IsRenewalState() bool
IsRenewalState .
func (MCNSignState) NotRejectState ¶
func (state MCNSignState) NotRejectState() bool
NotRejectState .
func (MCNSignState) String ¶
func (state MCNSignState) String() string
type MCNSignStateOpReq ¶
type MCNSignStateOpReq struct { SignID int64 `json:"sign_id" validate:"min=1"` Action MCNSignAction `json:"action" validate:"min=0"` RejectReason string `json:"reject_reason"` UserName string UID int64 }
MCNSignStateOpReq .
type MCNSignStateReq ¶
type MCNSignStateReq struct { State MCNSignState `form:"state" validate:"min=0"` PageArg }
MCNSignStateReq req .
type MCNStateEditReq ¶
type MCNStateEditReq struct { ID int64 `json:"id" validate:"min=1"` MCNMID int64 `json:"mcn_mid" validate:"min=1"` Action MCNSignAction `json:"action"` State MCNSignState UserName string UID int64 }
MCNStateEditReq req .
type MCNUP ¶
type MCNUP struct { SignID int64 `json:"sign_id"` MCNMID int64 `json:"mcn_mid"` UPMID int64 `json:"up_mid"` BeginDate xtime.Time `json:"begin_date"` EndDate xtime.Time `json:"end_date"` ContractLink string `json:"contract_link"` UPAuthLink string `json:"up_auth_link"` RejectReason string `json:"reject_reason"` RejectTime xtime.Time `json:"reject_time"` State MCNUPState `json:"state"` StateChangeTime xtime.Time `json:"state_change_time"` Ctime xtime.Time `json:"ctime"` Mtime xtime.Time `json:"mtime"` UpType int8 `json:"up_type"` SiteLink string `json:"site_link"` ConfirmTime xtime.Time `json:"confirm_time"` Permission uint32 `json:"permission"` PublicationPrice int64 `json:"publication_price"` Permits *Permits `json:"permits"` // 权限集合 }
MCNUP struct .
type MCNUPAction ¶
type MCNUPAction int8
MCNUPAction .
const ( // MCNUPActionBind 发起绑定 MCNUPActionBind MCNUPAction = 0 // MCNUPActionReject 运营驳回 MCNUPActionReject MCNUPAction = 3 // MCNUPActionAgree up主同意 MCNUPActionAgree MCNUPAction = 4 // MCNUPActionRefuse up主拒绝 MCNUPActionRefuse MCNUPAction = 5 // MCNUPActionPass 通过 MCNUPActionPass MCNUPAction = 10 // MCNUPActionFreeze 冻结 MCNUPActionFreeze MCNUPAction = 11 // MCNUPActionRelease 解约 MCNUPActionRelease MCNUPAction = 14 // MCNUPActionRestore 恢复 MCNUPActionRestore MCNUPAction = 16 )
func (MCNUPAction) GetmsgType ¶
func (action MCNUPAction) GetmsgType(isMcn bool) MSGType
GetmsgType .
func (MCNUPAction) NotRightAction ¶
func (action MCNUPAction) NotRightAction() bool
NotRightAction .
func (MCNUPAction) String ¶
func (action MCNUPAction) String() string
type MCNUPInfoReply ¶
type MCNUPInfoReply struct { SignUpID int64 `json:"sign_up_id"` SignID int64 `json:"sign_id"` McnMid int64 `json:"mcn_mid"` UpMid int64 `json:"up_mid"` BeginDate xtime.Time `json:"begin_date"` EndDate xtime.Time `json:"end_date"` ContractLink string `json:"contract_link"` UpAuthLink string `json:"up_auth_link"` RejectTime xtime.Time `json:"reject_time"` RejectReason string `json:"reject_reason"` State MCNUPState `json:"state"` StateChangeTime xtime.Time `json:"state_change_time"` Ctime xtime.Time `json:"ctime"` Mtime xtime.Time `json:"mtime"` UpName string `json:"up_name"` McnName string `json:"mcn_name"` ActiveTid int16 `json:"active_tid"` TpName string `json:"type_name"` FansCount int64 `json:"fans_count"` FansCountActive int64 `json:"fans_count_active"` FansIncreaseAccumulate int64 `json:"fans_increase_accumulate"` ArchiveCount int64 `json:"archive_count"` PlayCount int64 `json:"play_count"` UPType int8 `json:"up_type"` SiteLink string `json:"site_link"` ConfirmTime xtime.Time `json:"confirm_time"` PubPrice int64 `json:"publication_price"` Permission uint32 `json:"permission"` Permits *Permits `json:"permits"` // 权限集合 }
MCNUPInfoReply .
func (*MCNUPInfoReply) AttrPermitVal ¶
func (n *MCNUPInfoReply) AttrPermitVal()
AttrPermitVal get Permission all.
type MCNUPListReply ¶
type MCNUPListReply struct { List []*MCNUPInfoReply `json:"result"` PageResult }
MCNUPListReply struct .
func (*MCNUPListReply) GetFileName ¶
func (q *MCNUPListReply) GetFileName() string
GetFileName get file name
type MCNUPListReq ¶
type MCNUPListReq struct { SignID int64 `form:"sign_id" validate:"required"` DataType int8 `form:"data_type" validate:"min=1"` State MCNUPState `form:"state" default:"-1"` ActiveTID int64 `form:"active_tid"` FansNumMin int64 `form:"fans_num_min"` FansNumMax int64 `form:"fans_num_max"` UPMID int64 `form:"up_mid"` SortFansCount string `form:"sort_fans_count"` SortFansCountActive string `form:"sort_fans_count_active"` SortFansIncreaseAccumulate string `form:"sort_fans_increase_accumulate"` SortArchiveCount string `form:"sort_archive_count"` SortPlayCount string `form:"sort_play_count"` SortPubPrice string `form:"sort_pub_price"` UpType int8 `form:"up_type" default:"-1"` Order string `form:"order" default:"u.mtime"` Sort string `form:"sort" default:"DESC"` Permits PageArg ExportArg }
MCNUPListReq req .
type MCNUPPermissionAction ¶
type MCNUPPermissionAction int8
MCNUPPermissionAction .
const ( // MCNUPPermissionActionOn 通过 MCNUPPermissionActionOn MCNUPPermissionAction = iota + 1 // MCNUPPermissionActionFail 驳回 MCNUPPermissionActionFail // MCNUPPermissionActionDel 移除 MCNUPPermissionActionDel )
const .
func (MCNUPPermissionAction) GetState ¶
func (action MCNUPPermissionAction) GetState() MCNUPPermissionState
GetState .
func (MCNUPPermissionAction) NotRightAction ¶
func (action MCNUPPermissionAction) NotRightAction() bool
NotRightAction .
func (MCNUPPermissionAction) String ¶
func (action MCNUPPermissionAction) String() string
type MCNUPPermissionState ¶
type MCNUPPermissionState int8
MCNUPPermissionState .
const ( // MCNUPPermissionStateUnKnown 未知状态 MCNUPPermissionStateUnKnown MCNUPPermissionState = -1 // MCNUPPermissionStateNoAuthorize 待Up主同意 MCNUPPermissionStateNoAuthorize MCNUPPermissionState = 0 // MCNUPStateOnRefuse Up主拒绝 MCNUPPermissionStateOnRefuse MCNUPPermissionState = 1 // MCNUPPermissionStateReview 待审中 MCNUPPermissionStateReview MCNUPPermissionState = 2 // MCNUPPermissionStatePass 已通过 MCNUPPermissionStatePass MCNUPPermissionState = 3 // MCNUPPermissionStateFail 已驳回 MCNUPPermissionStateFail MCNUPPermissionState = 4 // MCNUPPermissionStateDel 已删除 MCNUPPermissionStateDel MCNUPPermissionState = 100 )
const .
func (MCNUPPermissionState) String ¶
func (state MCNUPPermissionState) String() string
type MCNUPPermitOPReq ¶
type MCNUPPermitOPReq struct { ID int64 `json:"id" validate:"min=1"` Action MCNUPPermissionAction `json:"action" validate:"min=1"` RejectReason string `json:"reject_reason"` UserName string UID int64 }
MCNUPPermitOPReq .
type MCNUPPermitStateReq ¶
type MCNUPPermitStateReq struct { State MCNUPPermissionState `form:"state" validate:"required"` PageArg }
MCNUPPermitStateReq .
type MCNUPRecommendAction ¶
type MCNUPRecommendAction int8
MCNUPRecommendAction .
const ( // MCNUPRecommendActionOn 推荐 MCNUPRecommendActionOn MCNUPRecommendAction = iota + 1 // MCNUPRecommendActionBan 禁止推荐 MCNUPRecommendActionBan // MCNUPRecommendActionRestore 恢复 MCNUPRecommendActionRestore // MCNUPRecommendActionAdd 手动添加 MCNUPRecommendActionAdd // MCNUPRecommendActionDel 移除 MCNUPRecommendActionDel )
const .
func (MCNUPRecommendAction) GetState ¶
func (action MCNUPRecommendAction) GetState() MCNUPRecommendState
GetState .
func (MCNUPRecommendAction) String ¶
func (action MCNUPRecommendAction) String() string
type MCNUPRecommendReq ¶
type MCNUPRecommendReq struct { TID int64 `form:"tid"` UpMid int64 `form:"up_mid"` FansMin int64 `form:"fans_min"` FansMax int64 `form:"fans_max"` PlayMin int64 `form:"play_min"` PlayMax int64 `form:"play_max"` PlayAverageMin int64 `form:"play_average_min"` PlayAverageMax int64 `form:"play_average_max"` State MCNUPRecommendState `form:"state"` Source MCNUPRecommendSource `form:"source"` Order string `form:"order" default:"mtime"` Sort string `form:"sort" default:"DESC"` PageArg ExportArg }
MCNUPRecommendReq req .
type MCNUPRecommendSource ¶
type MCNUPRecommendSource int8
MCNUPRecommendSource .
const ( // MCNUPRecommendSourceUnKnown 未知来源 MCNUPRecommendSourceUnKnown MCNUPRecommendSource = iota // MCNUPRecommendSourceAuto 自动添加(大数据) MCNUPRecommendSourceAuto // MCNUPRecommendStateManual 手动添加 MCNUPRecommendStateManual )
const .
func (MCNUPRecommendSource) String ¶
func (source MCNUPRecommendSource) String() string
type MCNUPRecommendState ¶
type MCNUPRecommendState int8
MCNUPRecommendState .
const ( // MCNUPRecommendStateUnKnown 未知状态 MCNUPRecommendStateUnKnown MCNUPRecommendState = 0 // MCNUPRecommendStateOff 未推荐 MCNUPRecommendStateOff MCNUPRecommendState = 1 // MCNUPRecommendStateOn 推荐中 MCNUPRecommendStateOn MCNUPRecommendState = 2 // MCNUPRecommendStateBan 禁止推荐 MCNUPRecommendStateBan MCNUPRecommendState = 3 // MCNUPRecommendStateDel 移除中 MCNUPRecommendStateDel MCNUPRecommendState = 100 )
const .
func (MCNUPRecommendState) String ¶
func (state MCNUPRecommendState) String() string
type MCNUPReviewListReply ¶
type MCNUPReviewListReply struct { List []*MCNUPInfoReply `json:"result"` PageResult }
MCNUPReviewListReply .
type MCNUPState ¶
type MCNUPState int8
MCNUPState .
const ( // MCNUPStateUnKnown 未知状态 MCNUPStateUnKnown MCNUPState = -1 // MCNUPStateNoAuthorize 未授权 MCNUPStateNoAuthorize MCNUPState = 0 // MCNUPStateOnRefuse 已拒绝 MCNUPStateOnRefuse MCNUPState = 1 // MCNUPStateOnReview 待审核 MCNUPStateOnReview MCNUPState = 2 // MCNSignStateOnReject 已驳回 MCNUPStateOnReject MCNUPState = 3 // MCNUPStateOnSign 已签约 MCNUPStateOnSign MCNUPState = 10 // MCNUPStateOnFreeze 已冻结 MCNUPStateOnFreeze MCNUPState = 11 // MCNUPStateOnExpire 已到期 MCNUPStateOnExpire MCNUPState = 12 // MCNUPStateOnBlock 已封禁 MCNUPStateOnBlock MCNUPState = 13 // MCNUPStateOnClear 已解约 MCNUPStateOnClear MCNUPState = 14 // MCNUPStateOnPreOpen 待开启 MCNUPStateOnPreOpen MCNUPState = 15 // MCNUPStateOnDelete 已删除 MCNUPStateOnDelete MCNUPState = 100 )
const .
func (MCNUPState) IsOnReviewState ¶
func (state MCNUPState) IsOnReviewState() bool
IsOnReviewState .
func (MCNUPState) String ¶
func (state MCNUPState) String() string
type MCNUPStateEditReq ¶
type MCNUPStateEditReq struct { ID int64 `json:"id" validate:"required"` SignID int64 `json:"sign_id" validate:"required"` MCNMID int64 `json:"mcn_mid" validate:"required"` UPMID int64 `json:"up_mid" validate:"required"` Action MCNUPAction `json:"action"` State MCNUPState UserName string UID int64 }
MCNUPStateEditReq req .
type MCNUPStateOpReq ¶
type MCNUPStateOpReq struct { SignUpID int64 `json:"sign_up_id" validate:"min=1"` Action MCNUPAction `json:"action" validate:"min=0"` RejectReason string `json:"reject_reason"` UserName string UID int64 }
MCNUPStateOpReq req .
type MCNUPStateReq ¶
type MCNUPStateReq struct { State MCNUPState `form:"state" validate:"min=0"` PageArg }
MCNUPStateReq req .
type McnCommonReq ¶
McnCommonReq common mcn
type McnDataOverview ¶
type McnDataOverview struct { Mcns int64 `json:"mcns"` SignUps int64 `json:"sign_ups"` SignUpsIncr int64 `json:"sign_ups_incr"` Fans50 int64 `json:"fans_50"` Fans10 int64 `json:"fans_10"` Fans1 int64 `json:"fans_1"` FansIncr50 int64 `json:"fans_incr_50"` FansIncr10 int64 `json:"fans_incr_10"` FansIncr1 int64 `json:"fans_incr_1"` }
McnDataOverview base data.
type McnDataTopInfo ¶
type McnDataTopInfo struct { McnFansIncr []*FansRankIncr `json:"mcn_fans_incr"` McnFansRateIncr []*FansRankIncr `json:"mcn_fans_rate_incr"` UpFansIncr []*FansRankIncr `json:"up_fans_incr"` UpFansRateIncr []*FansRankIncr `json:"up_fans_rate_incr"` ArcLikesIncr []*LikesRankIncr `json:"arc_likes_incr"` }
McnDataTopInfo .
type McnDataTypeSummary ¶
type McnDataTypeSummary struct { ID int64 `json:"id"` Tid int16 `json:"tid"` DataView int8 `json:"data_view"` DataType int8 `json:"data_type"` Amount int64 `json:"amount"` GenerateDate xtime.Time `json:"generate_date"` Ctime xtime.Time `json:"ctime"` Mtime xtime.Time `json:"mtime"` }
McnDataTypeSummary tids data.
type McnDataTypesInfo ¶
type McnDataTypesInfo struct { SignUps []*DataTypes `json:"sign_ups"` FansIncr []*DataTypes `json:"fans_incr"` VideoupIncr []*DataTypes `json:"videoup_incr"` PlayIncr []*DataTypes `json:"play_incr"` }
McnDataTypesInfo .
type McnGetMcnFansReply ¶
type McnGetMcnFansReply struct { FansOverview *dtmdl.DmConMcnFansD `json:"fans_overview"` // 粉丝概况 FansSex *dtmdl.DmConMcnFansSexW `json:"fans_sex"` // 粉丝性别 FansAge *dtmdl.DmConMcnFansAgeW `json:"fans_age"` // 粉丝年龄 FansPlayWay *dtmdl.DmConMcnFansPlayWayW `json:"fans_play_way"` // 粉丝观看途径 FansArea []*dtmdl.DmConMcnFansAreaW `json:"fans_area"` // 粉丝地区分布 FansType []*dtmdl.DmConMcnFansTypeW `json:"fans_type"` // 粉丝倾向分布 FansTag []*dtmdl.DmConMcnFansTagW `json:"fans_tag"` // 粉丝标签地图分布 }
McnGetMcnFansReply reply 粉丝分析.
type McnGetRankReq ¶
type McnGetRankReq struct { McnCommonReq Tid int16 `form:"tid"` // 分区 1累计,2昨日,3上周,4上月 0全部 DataType DataType `form:"data_type"` PageArg ExportArg }
McnGetRankReq req to 获取排行
type McnGetRankUpFansReply ¶
type McnGetRankUpFansReply struct { Result []*RankArchiveLikeInfo `json:"result"` // 按顺序进行排名 TypeList []*TidnameInfo `json:"type_list"` }
McnGetRankUpFansReply reply
func (*McnGetRankUpFansReply) GetFileName ¶
func (list *McnGetRankUpFansReply) GetFileName() string
GetFileName get file name
func (*McnGetRankUpFansReply) ToCsv ¶
func (list *McnGetRankUpFansReply) ToCsv(writer *csv.Writer)
ToCsv to buffer
type McnRankArchiveLikesOverview ¶
type McnRankArchiveLikesOverview struct { ID int64 `json:"id"` McnMid int64 `json:"mcn_mid"` UpMid int64 `json:"up_mid"` SignID int64 `json:"sign_id"` Avid int64 `json:"avid"` Tid int16 `json:"tid"` Rank int16 `json:"rank"` DataType int8 `json:"data_type"` Likes int64 `json:"likes"` Plays int64 `json:"plays"` GenerateDate xtime.Time `json:"generate_date"` Ctime xtime.Time `json:"ctime"` Mtime xtime.Time `json:"mtime"` }
McnRankArchiveLikesOverview total mcn arc rank likes top
type McnRankFansOverview ¶
type McnRankFansOverview struct { ID int64 `json:"id"` SignID int64 `json:"sign_id"` Mid int64 `json:"mid"` DataView int8 `json:"data_view"` DataType int8 `json:"data_type"` Rank int16 `json:"rank"` FansIncr int64 `json:"fans_incr"` Fans int64 `json:"fans"` GenerateDate xtime.Time `json:"generate_date"` Ctime xtime.Time `json:"ctime"` Mtime xtime.Time `json:"mtime"` }
McnRankFansOverview top5 data.
type McnUpPermissionApply ¶
type McnUpPermissionApply struct { ID int64 `json:"id"` McnMid int64 `json:"mcn_mid"` UpMid int64 `json:"up_mid"` McnName string `json:"mcn_name"` UpName string `json:"up_name"` SignID int64 `json:"sign_id"` FansCount int64 `json:"fans_count"` UpAuthLink string `json:"up_auth_link"` ActiveTID int16 `json:"active_tid"` TypeName string `json:"type_name"` RejectReason string `json:"reject_reason"` RejectTime xtime.Time `json:"reject_time"` State MCNUPPermissionState `json:"state"` Ctime xtime.Time `json:"ctime"` Mtime xtime.Time `json:"mtime"` AdminID int64 `json:"admin_id"` AdminName string `json:"admin_name"` OldPermits *Permits `json:"old_permits"` NewPermits *Permits `json:"new_permits"` NewPermission uint32 `json:"-"` OldPermission uint32 `json:"-"` }
McnUpPermissionApply .
func (*McnUpPermissionApply) AttrPermitVal ¶
func (n *McnUpPermissionApply) AttrPermitVal()
AttrPermitVal get Permission all.
type McnUpPermitApplyListReply ¶
type McnUpPermitApplyListReply struct { List []*McnUpPermissionApply `json:"result"` PageResult }
McnUpPermitApplyListReply struct .
type McnUpRecommendListReply ¶
type McnUpRecommendListReply struct { List []*McnUpRecommendPool `json:"result"` PageResult }
McnUpRecommendListReply struct .
func (*McnUpRecommendListReply) GetFileName ¶
func (list *McnUpRecommendListReply) GetFileName() string
GetFileName get file name
func (*McnUpRecommendListReply) ToCsv ¶
func (list *McnUpRecommendListReply) ToCsv(writer *csv.Writer)
ToCsv to buffer
type McnUpRecommendPool ¶
type McnUpRecommendPool struct { ID int64 `json:"id"` UpMid int64 `json:"up_mid"` UpName string `json:"up_name"` FansCount int64 `json:"fans_count"` FansCountIncreaseMonth int64 `json:"fans_count_increase_month"` ArchiveCount int64 `json:"archive_count"` PlayCountAccumulate int64 `json:"play_count_accumulate"` PlayCountAverage int64 `json:"play_count_average"` ActiveTid int16 `json:"active_tid"` TpName string `json:"type_name"` LastArchiveTime xtime.Time `json:"last_archive_time"` State MCNUPRecommendState `json:"state"` Source MCNUPRecommendSource `json:"source"` GenerateTime xtime.Time `json:"generate_time"` Ctime xtime.Time `json:"ctime"` Mtime xtime.Time `json:"mtime"` }
McnUpRecommendPool .
type PageArg ¶
PageArg page arg
func (*PageArg) CheckPageValidation ¶
CheckPageValidation check the page validte, return limit offset
func (*PageArg) ToPageResult ¶
func (arg *PageArg) ToPageResult(total int) (res PageResult)
ToPageResult cast to page result
type PageResult ¶
PageResult page result
type Permits ¶
type Permits struct { BasePermission uint8 `form:"base_permission" json:"base_permission" validate:"min=0,max=1"` // 基础权限 DataPermission uint8 `form:"data_permission" json:"data_permission" validate:"min=0,max=1"` // 数据权限 RecPermission uint8 `form:"rec_permission" json:"rec_permission" validate:"min=0,max=1"` // 推荐权限 DepartPermission uint8 `form:"depart_permission" json:"depart_permission" validate:"min=0,max=1"` // 起飞权限 }
Permits .
func (*Permits) GetAttrPermitVal ¶
GetAttrPermitVal .
func (*Permits) SetAttrPermitVal ¶
SetAttrPermitVal set struct from permission
type QueryActivityByIDReq ¶
type QueryActivityByIDReq struct { FromDate string `form:"from_date"` // 20180101 ToDate string `form:"to_date"` // 20180102 closed interval [20180101, 20180102] ID int64 `form:"id"` // activity id, if not 0, FromDate and toDate not used PageArg ExportArg }
QueryActivityByIDReq arg
type QueryUpBonusByMidResult ¶
type QueryUpBonusByMidResult struct { Result []*UpSummaryBonusInfo `json:"result"` PageResult }
QueryUpBonusByMidResult query result
func (*QueryUpBonusByMidResult) GetFileName ¶
func (q *QueryUpBonusByMidResult) GetFileName() string
GetFileName get file name
func (*QueryUpBonusByMidResult) ToCsv ¶
func (q *QueryUpBonusByMidResult) ToCsv(writer *csv.Writer)
ToCsv to buffer
type RankArchiveLikeInfo ¶
type RankArchiveLikeInfo struct { RankDataBase ArchiveID int64 `json:"archive_id"` // 稿件ID ArchiveTitle string `json:"archive_title"` Pic string `json:"pic"` // 封面 TidName string `json:"tid_name"` LikesIncrease int64 `json:"likes_increase"` LikesAccumulate int64 `json:"likes_accumulate"` PlayIncrease int64 `json:"play_increase"` PlayAccumulate int64 `json:"play_accumulate"` Ctime xtime.Time `json:"ctime"` Stat arcmodel.Stat3 `json:"stat"` // 统计信息 Author arcmodel.Author3 `json:"author"` // up主信息 }
RankArchiveLikeInfo archive like rank info
type RankDataBase ¶
RankDataBase 基本排行信息
type RecommendStateOpReq ¶
type RecommendStateOpReq struct { UpMids []int64 `json:"up_mids"` Action MCNUPRecommendAction `json:"action" validate:"min=1"` UserName string UID int64 }
RecommendStateOpReq .
type RecommendUpReq ¶
type RecommendUpReq struct { UpMid int64 `json:"up_mid" validate:"min=1"` UserName string UID int64 }
RecommendUpReq req .
type SignPayInfoReply ¶
type SignPayInfoReply struct { SignPayID int64 `json:"sign_pay_id,omitempty"` McnMid int64 `json:"mcn_mid"` SignID int64 `json:"sign_id,omitempty"` State MCNPayState `json:"state"` DueDate xtime.Time `json:"due_date"` PayValue int64 `json:"pay_value"` // thousand bit }
SignPayInfoReply .
type SignPayReq ¶
type SignPayReq struct { DueDate string `json:"due_date" validate:"required"` // 0000-00-00 PayValue int64 `json:"pay_value" validate:"min=1"` // thousand bit }
SignPayReq .
type TidnameInfo ¶
TidnameInfo tid name
type TotalMcnDataInfo ¶
type TotalMcnDataInfo struct { BaseInfo *McnDataOverview `json:"base_info"` TopInfo *McnDataTopInfo `json:"top_info"` TypesInfo *McnDataTypesInfo `json:"types_info"` }
TotalMcnDataInfo .
type TotalMcnDataReq ¶
TotalMcnDataReq .
type UpBaseInfo ¶
type UpBaseInfo struct { Mid int64 `json:"mid"` FansCount int64 `json:"fans_count"` ActiveTid int16 `json:"active_tid"` ArticleCountAccumulate int64 `json:"article_count_accumulate"` }
UpBaseInfo .
type UpPlayInfo ¶
type UpPlayInfo struct { Mid int64 `json:"mid"` ArticleCount int64 `json:"article_count"` PlayCountAccumulate int64 `json:"play_count_accumulate"` PlayCountAverage int64 `json:"play_count_average"` }
UpPlayInfo .
type UpSummaryBonusInfo ¶
type UpSummaryBonusInfo struct { Mid int64 `json:"mid"` BilledMoney float64 `json:"billed_money"` UnbilledMoney float64 `json:"unbilled_money"` LastBillTime string `json:"last_bill_time"` // 20180101, 最近结算时间 TmpBillTime xtime.Time `json:"-"` // 用来计算LastBillTime TotalBonusMoney float64 `json:"total_bonus_money"` // 所有的中奖金额 }
UpSummaryBonusInfo bonus for one up info