12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- package model
- type ApPushTask struct {
- ID int64 `json:"id"`
- Type int `json:"type"`
- TargetID int64 `json:"target_id"`
- AlertTitle string `json:"alert_title"`
- AlertBody string `json:"alert_body"`
- MidSource int `json:"mid_source"`
- LinkType int `json:"link_type"`
- LinkValue string `json:"link_value"`
- Total int `json:"total"`
- ExpireTime int `json:"expire_time"`
- Group string
- }
- type StartLiveMessage struct {
- TargetID int64 `json:"target_id"`
- Uname string `json:"uname"`
- LinkValue string `json:"link_value"`
- ExpireTime int `json:"expire_time"`
- RoomTitle string `json:"room_title"`
- }
- type LiveCommonMessage struct {
- Topic string `json:"topic"`
- MsgID string `json:"msg_id"`
- MsgKey string `json:"msg_key"`
- MsgContent LiveCommonMessageContent `json:"msg_content"`
- }
- type LiveCommonMessageContent struct {
- Business int `json:"business"`
- Group string `json:"group"`
- Mids string `json:"mids"`
- AlertTitle string `json:"alert_title"`
- AlertBody string `json:"alert_body"`
- LinkValue string `json:"link_value"`
- LinkType int `json:"link_type"`
- ExpireTime int `json:"expire_time"`
- }
- const (
- LivePushType = 1001
- LivePushSwitchOn = 1
- LivePushConfigOn = 1
- PushIntervalKey = "push_interval"
- PushIntervalDefault = 1800
- )
- const (
-
- RelationAttention = iota + 1
-
- RelationSpecial
-
- RelationAll
- )
- const (
- StrategySwitch = "Switch"
- StrategySpecial = "Special"
- StrategyFans = "Fans"
- StrategySwitchSpecial = "SwitchAndSpecial"
- )
- const (
- TaskSourceSwitch = 1
- TaskSourceSpecial = 2
- TaskSourceFans = 4
- TaskSourceSwitchSpe = 8
- )
- const (
- AttentionGroup = "follow"
- SpecialGroup = "sfollow"
- ActivityAppointment = "activity_appointment"
- )
- const (
- StartLiveBusiness = 1
- ActivityBusiness = 111
- )
|