model

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// EventAdd add reply
	EventAdd = "reply"
	// EventLike add like
	EventLike = "like"
	// EventLikeCancel like cal
	EventLikeCancel = "like_cancel"
	// EventHate hate
	EventHate = "hate"
	// EventHateCancel hate cal
	EventHateCancel = "hate_cancel"
	// EventReportDel user report approved
	EventReportDel = "report_del"
	// EventReportRecover user report recover
	EventReportRecover = "report_recover"
)

Variables

View Source
var (

	//ActionCounterTable action counter
	ActionCounterTable = "ugc:figureactioncounter"

	//ACFamilyUser user family
	ACFamilyUser = "user"

	//ACColumnCoins column
	ACColumnCoins = "coins"
	//ACColumnDanmaku column
	ACColumnDanmaku = "danmuka"
	//ACColumnReplyAct reply act
	ACColumnReplyAct = "replies"
	//ACColumnReplyLiked reply like
	ACColumnReplyLiked = "reply_liked"
	//ACColumnReplyHate reply hate
	ACColumnReplyHate = "reply_hate"
	//ACColumnLowRisk low risk
	ACColumnLowRisk = "coin_low_risk"
	//ACColumnHighRisk high risk
	ACColumnHighRisk = "coin_high_risk"
	//ACColumnReplyReoprtPassed report reply passed
	ACColumnReplyReoprtPassed = "report_reply_passed"
	//ACColumnDanmakuReoprtPassed danmaku reply passed
	ACColumnDanmakuReoprtPassed = "report_danmaku_passed"
	//ACColumnPublishReplyDeleted report reply passed
	ACColumnPublishReplyDeleted = "publish_reply_deleted"
	//ACColumnPublishDanmakuDeleted report reply passed
	ACColumnPublishDanmakuDeleted = "publish_danmaku_deleted"
	//ACColumnPayMoney user pay money
	ACColumnPayMoney = "pay_money"
	//ACColumnPayLiveMoney user pay money for live
	ACColumnPayLiveMoney = "pay_live_money"

	//UserInfoTable user info
	UserInfoTable = "ugc:figureuserstatus"

	//USFamilyUser user family
	USFamilyUser = "user"

	//USColumnExp exp
	USColumnExp = "exp"
	//USColumnSpyScore spy score
	USColumnSpyScore = "spy_score"
	//USColumnArchiveViews archive views
	USColumnArchiveViews = "archive_views"
	//USColumnVipStatus vip status
	USColumnVipStatus = "vip_status"
	//USColumnBlockedRage blocked rage
	USColumnBlockedRage = "blocked_rage"
)

Functions

This section is empty.

Types

type BinlogMsg

type BinlogMsg struct {
	Action string          `json:"action"`
	Table  string          `json:"table"`
	New    json.RawMessage `json:"new"`
	Old    json.RawMessage `json:"old"`
}

BinlogMsg dm binlog msg

type DMAction

type DMAction struct {
	Action string `json:"action"`
	Data   DMData `json:"data"`
}

DMAction danmaku report action.

type DMData

type DMData struct {
	ID        int64 `json:"id"`
	Dmid      int64 `json:"dmid"`
	OwnerUID  int64 `json:"dm_owner_uid"`
	ReportUID int64 `json:"uid"`
}

DMData danmaku report action.

type Figure

type Figure struct {
	ID              int32     `json:"-"`
	Mid             int64     `json:"mid"`
	Score           int32     `json:"score"`
	LawfulScore     int32     `json:"lawful_score"`
	WideScore       int32     `json:"wide_score"`
	FriendlyScore   int32     `json:"friendly_score"`
	BountyScore     int32     `json:"bounty_score"`
	CreativityScore int32     `json:"creativity_score"`
	Ver             int32     `json:"-"`
	Ctime           time.Time `json:"-"`
	Mtime           time.Time `json:"-"`
}

Figure user figure model

type MsgAccountLog

type MsgAccountLog struct {
	Mid     int64             `json:"mid"`
	IP      string            `json:"ip"`
	TS      int64             `json:"ts"`
	Content map[string]string `json:"content"`
}

func (*MsgAccountLog) ExpFrom

func (m *MsgAccountLog) ExpFrom() (exp int)

func (*MsgAccountLog) ExpTo

func (m *MsgAccountLog) ExpTo() (exp int)

func (*MsgAccountLog) IsViewExp

func (m *MsgAccountLog) IsViewExp() bool

type MsgCanal

type MsgCanal struct {
	Action string          `json:"action"`
	Table  string          `json:"table"`
	New    json.RawMessage `json:"new"`
	Old    json.RawMessage `json:"old"`
}

MsgCanal canal message struct

type MsgVipInfo

type MsgVipInfo struct {
	Mid       int64 `json:"mid"`
	Type      int8  `json:"type"`
	Timestamp int64 `json:"ts"`
}

MsgVipInfo message for user vip staus

type ReplyAction

type ReplyAction struct {
	Mid    int64 `json:"mid"`
	Action int8  `json:"action"`
	Oid    int64 `json:"oid"`
	Type   int8  `json:"type"`
	Ctime  int64 `json:"ctime"`
}

ReplyAction reply action.

type ReplyEvent

type ReplyEvent struct {
	Action  string          `json:"action"`
	Mid     int64           `json:"mid"`
	Subject *repmol.Subject `json:"subject"`
	Reply   *repmol.Reply   `json:"reply"`
	Report  *repmol.Report  `json:"report"`
}

ReplyEvent reply event

type ReplyInfo

type ReplyInfo struct {
	Mid   int64 `json:"mid"`
	Oid   int64 `json:"oid"`
	Type  int8  `json:"type"`
	Ctime int64 `json:"ctime"`
}

ReplyInfo Reply info.

Jump to

Keyboard shortcuts

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