Documentation
¶
Index ¶
- Constants
- Variables
- func FormatImgURL(mid int64, img string) (url string)
- func HasEmoji(s string) bool
- func IsAndroid(plat int8) bool
- func IsIOS(plat int8) bool
- func IsIPad(plat int8) bool
- func IsIPhone(plat int8) bool
- func IsIPhoneB(plat int8) bool
- func MobiAppPlat(mobiApp string) (p int)
- func Plat(mobiApp, device string) int8
- func ValidName(s string) bool
- type Account
- type AchieveReply
- type ArgAchieve
- type ArgAchieveGet
- type ArgAllowanceList
- type ArgAuthCode
- type ArgBilibiliPrizeGrant
- type ArgBilibiliVipGrant
- type ArgBind
- type ArgBindInfo
- type ArgCardID
- type ArgCouponBySuitID
- type ArgCouponPage
- type ArgCreateAssociateOrder
- type ArgCreateOrder2
- type ArgGroupID
- type ArgMobileVerify
- type ArgOpenAuthCallBack
- type ArgPrizeDraw
- type ArgRecommend
- type ArgResource
- type ArgSameFollowing
- type ArgTagSuggestRecommend
- type ArgUserInfoByOpenID
- type ArgVipCancelPay
- type ArgVipCoupon
- type ArgVipPanel
- type BatchModifyResult
- type CMAccountInfo
- type CodeInfoReq
- type Coin
- type CommonResq
- type EquipPHP
- type Following
- type GeeCaptchaRequest
- type GeeCheckRequest
- type GeeCheckResponse
- type GroupEntryPHP
- type GroupPHP
- type GroupVipPHP
- type Identification
- type IdentifyApply
- type IdentifyInfo
- type IdentifyStatus
- type Info
- type Invitee
- type LogCoin
- type LogCoins
- type LogExp
- type LogExps
- type LogLogin
- type LogLogins
- type LogMoral
- type LogMorals
- type ManagerResp
- type Member
- type MyHistoryPHP
- type MyPHP
- type NameplateInfo
- type NickFree
- type Notice2
- type OAuth2InfoResp
- type OfficialApply
- type OfficialConditions
- type OfficialPermissionResponse
- type OfficialSubmittedTimes
- type OpenIDResp
- type ParamRealnameAlipayApply
- type ParamRealnameCaptchaGTCheck
- type ParamRealnameCaptchaGTRefresh
- type PassportProfile
- type PendantInfo
- type PendantPHP
- type ProcessRes
- type Realname
- type RealnameAlipayApply
- type RealnameAlipayConfirm
- type RealnameBool
- type RealnameCaptchaGTRegister
- type RealnameCaptchaGTValidate
- type RealnameCardType
- type RealnameChannel
- type RealnameCountry
- type RecommendContent
- type RecommendInfo
- type RecommendResponse
- type Record
- type RecordAppend
- type ReplyHistory
- type ResourceCode
- type ResourceCodeResq
- type Reward
- type RichInvite
- type RichInviteStat
- type Security
- type Settings
- type Tag
- type TagSuggestRecommendContent
- type TagSuggestRecommendInfo
- type TagSuggestRecommendResponse
- type TipsReq
- type Token
- type TokenResq
- type Type
- type User
- type VIPInfo
- type ValidateRes
- type Vip
- type VipPanelRes
- type VipPanelResp
- type VipPanelRespV9
- type VipPanelV8Resp
- type WelfareInfo
- type WelfareRes
Constants ¶
const ( UpNameLogID = 14 UpNameAction = "log_name_update" )
const .
const ( // MobileUserAgentFlag is MobileUserAgentFlag = "Mobile" // PlatH5 is PlatH5 = "h5" // PlatPC is PlatPC = "pc" )
const ( IdentifyNotOK IdentifyStatus = iota IdentifyOK // ApiIdentifyOk identify ok APIIdentifyOk = 0 // ApiIdentifyNoInfo no identify info APIIdentifyNoInfo = 1 )
IdentifyStatus enum
const ( // NoticeStatusNotify notify NoticeStatusNotify = 1 // NoticeStatusNotNotify not notify NoticeStatusNotNotify = 0 // NoticeTypeSecurity security NoticeTypeSecurity = "security" )
const ( PanelPosition int8 = iota + 1 PgcPosition )
vip tips.
const ( // PlatAndroid is int8 for android. PlatAndroid = int8(0) // PlatIPhone is int8 for iphone. PlatIPhone = int8(1) // PlatIPad is int8 for ipad. PlatIPad = int8(2) // PlatWPhone is int8 for wphone. PlatWPhone = int8(3) // PlatAndroidG is int8 for Android Googleplay. PlatAndroidG = int8(4) // PlatIPhoneI is int8 for Iphone Global. PlatIPhoneI = int8(5) // PlatIPadI is int8 for IPAD Global. PlatIPadI = int8(6) // PlatAndroidTV is int8 for AndroidTV Global. PlatAndroidTV = int8(7) // PlatAndroidI is int8 for Android Global. PlatAndroidI = int8(8) // PlatIpadHD is int8 for IpadHD PlatIpadHD = int8(9) // PlatAndroidB is int8 for Android Blue. PlatAndroidB = int8(10) // PlatIPhoneB is int8 for Android Blue. PlatIPhoneB = int8(11) )
const ( ResourceBannerIPhone = "2850" ResourceBannerAndroid = "2857" ResourceBannerIPad = "2864" ResourceBuyIPhone = "2898" ResourceBuyAndroid = "2903" ResourceBuyIPad = "2908" )
resource id .
const ( MobiAppIphone = iota + 1 MobiAppIpad MobiAppPC MobiAppANDROID )
const for vip
const (
CouponCancelExplain = "解锁成功,请重新选择劵信息"
)
coupon cancel explain
Variables ¶
var ( Maritals = map[int]*Type{ 1: unmarried, 2: married, 3: divorce, 4: widowed, } DatingTypes = map[int]*Type{ 1: netFriend, 2: lover, 3: playmate, 4: commonInterest, 5: boyFriend, 6: girFriend, } Places = map[int]*Type{}/* 483 elements not displayed */ )
var .
var ( EmojiPattern = regexp.MustCompile(`[\x{1F600}-\x{1F6FF}|[\x{2600}-\x{26FF}]`) NamePattern = regexp.MustCompile("^[A-Za-z0-9\uAC00-\uD788\u3041-\u309E\u30A1-\u30FE\u3131-\u3163\u4E00-\u9FA5\uF92C-\uFA29_\\-]+$") )
var .
var MobiAppByName = map[string]int{ "iphone": MobiAppIphone, "ipad": MobiAppIpad, "pc": MobiAppPC, "android": MobiAppANDROID, }
MobiAppByName .
var Origin = map[int64]string{
1: "举报奖励",
2: "违规惩罚",
3: "撤销奖励",
4: "撤销惩罚",
5: "自动恢复",
6: "管理员操作",
}
Origin coin origin
Functions ¶
func FormatImgURL ¶
FormatImgURL format images url
Types ¶
type Account ¶
type Account struct { Mid int64 `json:"mid"` Uname string `json:"uname"` Face string `json:"face"` Sex int8 `json:"sex"` Birthday string `json:"birthday"` Sign string `json:"sign"` NickFree bool `json:"nick_free"` }
Account account.
type AchieveReply ¶
AchieveReply is
type ArgAchieve ¶
type ArgAchieve struct {
AwardToken string `form:"award_token" validate:"required"`
}
ArgAchieve is
type ArgAchieveGet ¶
ArgAchieveGet is
type ArgAllowanceList ¶
type ArgAllowanceList struct {
State int8 `form:"state"`
}
ArgAllowanceList req.
type ArgAuthCode ¶
type ArgAuthCode struct { Code string `form:"auth_code" validate:"required"` APPID int64 IP string }
ArgAuthCode get open_id args.
type ArgBilibiliPrizeGrant ¶
type ArgBilibiliPrizeGrant struct { PrizeKey string `form:"prize_key" validate:"required"` UniqueNo string `form:"unique_no" validate:"required"` OpenID string `form:"open_id" validate:"required"` AppID int64 }
ArgBilibiliPrizeGrant args.
type ArgBilibiliVipGrant ¶
type ArgBilibiliVipGrant struct { OpenID string `form:"open_id" validate:"required"` OutOpenID string `form:"out_open_id" validate:"required"` OutOrderNO string `form:"out_order_no" validate:"required"` Duration int32 `form:"duration" validate:"required"` AppID int64 }
ArgBilibiliVipGrant bilibili vip grant args.
type ArgBind ¶
type ArgBind struct { OpenID string `form:"open_id" validate:"required"` OutOpenID string `form:"out_open_id" validate:"required"` AppID int64 }
ArgBind bind args.
type ArgCardID ¶
type ArgCardID struct {
ID int64 `form:"id" validate:"required,min=1,gte=1"`
}
ArgCardID arg card id.
type ArgCouponBySuitID ¶
type ArgCouponBySuitID struct { Mid int64 Sid int64 `form:"id" validate:"required,min=1,gte=1"` Platform string `form:"platform" default:"pc"` MobiApp string `form:"mobi_app"` Device string `form:"device"` PanelType string `form:"panel_type" default:"normal"` Build int64 `form:"build"` }
ArgCouponBySuitID coupon by suit id.
type ArgCouponPage ¶
ArgCouponPage req .
type ArgCreateAssociateOrder ¶
type ArgCreateAssociateOrder struct { Month int32 `form:"months" validate:"required,min=1,gte=1"` Platform string `form:"platform" default:"pc"` MobiApp string `form:"mobi_app"` Device string `form:"device"` AppID int64 `form:"appId"` AppSubID string `form:"appSubId"` OrderType int8 `form:"orderType"` Dtype int8 `form:"dtype"` ReturnURL string `form:"returnUrl"` CouponToken string `form:"coupon_token"` Bmid int64 `form:"bmid"` PanelType string `form:"panel_type" default:"normal"` Build int64 `form:"build"` IP string Mid int64 }
ArgCreateAssociateOrder create asoociate order .
type ArgCreateOrder2 ¶
type ArgCreateOrder2 struct { Month int32 `form:"months" validate:"required,min=1,gte=1"` Platform string `form:"platform"` MobiApp string `form:"mobi_app"` Device string `form:"device"` AppID int64 `form:"appId"` AppSubID string `form:"appSubId"` OrderType int8 `form:"orderType"` Dtype int8 `form:"dtype"` ReturnURL string `form:"returnUrl"` CouponToken string `form:"coupon_token"` Bmid int64 `form:"bmid"` PanelType string `form:"panel_type" default:"normal"` Build int64 `form:"build"` IP string Mid int64 }
ArgCreateOrder2 .
type ArgGroupID ¶
type ArgGroupID struct {
ID int64 `form:"id" validate:"required,min=1,gte=1"`
}
ArgGroupID arg group id.
type ArgMobileVerify ¶
type ArgMobileVerify struct { Mobile string `form:"mobile" validate:"required"` Country int64 `form:"country"` }
ArgMobileVerify is.
type ArgOpenAuthCallBack ¶
type ArgOpenAuthCallBack struct { ThirdCode string `form:"auth_code" validate:"required"` State string `form:"state" validate:"required"` Mid int64 AppID int64 }
ArgOpenAuthCallBack args.
type ArgPrizeDraw ¶
type ArgPrizeDraw struct {
CardType int8 `form:"card_type" validate:"min=0,gte=0,lte=2"`
}
ArgPrizeDraw struct .
type ArgRecommend ¶
type ArgRecommend struct { Mid int64 Device *bm.Device RemoteIP string MainTids string `form:"main_tids"` SubTids string `form:"sub_tids"` PageSize int64 `form:"pagesize" default:"10"` }
ArgRecommend is
type ArgResource ¶
type ArgResource struct { MID int64 ResIDs string Plat int8 `form:"plat"` Build int `form:"build" validate:"required"` MobiApp string `form:"mobi_app" validate:"required"` Device string `form:"device"` Buvid string IP string Network string `form:"network"` Channel string }
ArgResource struct .
type ArgSameFollowing ¶
type ArgSameFollowing struct { Mid int64 `form:"mid"` VMid int64 `form:"vmid" validate:"required"` Order string `form:"order"` PS int64 `form:"ps"` PN int64 `form:"pn"` ReVersion uint64 `form:"re_version"` }
ArgSameFollowing is
type ArgTagSuggestRecommend ¶
type ArgTagSuggestRecommend struct { Mid int64 Device *bm.Device RemoteIP string TagName string `form:"tagname"` ContextID string `form:"context_id" validate:"required"` PageSize int64 `form:"pagesize" default:"10"` }
ArgTagSuggestRecommend is
type ArgUserInfoByOpenID ¶
type ArgUserInfoByOpenID struct { OpenID string `form:"open_id" validate:"required"` AppID int64 IP string }
ArgUserInfoByOpenID args.
type ArgVipCancelPay ¶
type ArgVipCancelPay struct {
CouponToken string `form:"coupon_token" validate:"required"`
}
ArgVipCancelPay req.
type ArgVipCoupon ¶
type ArgVipCoupon struct {
ID int64 `form:"id" validate:"required,min=1,gte=1"`
}
ArgVipCoupon req.
type ArgVipPanel ¶
type ArgVipPanel struct { Device string `form:"device"` Build int64 `form:"build"` MobiApp string `form:"mobi_app"` Platform string `form:"platform" default:"pc"` SortTP int8 `form:"sort_type"` PanelType string `form:"panel_type" default:"normal"` Mid int64 IP string }
ArgVipPanel arg panel.
type BatchModifyResult ¶
type BatchModifyResult struct {
FailedFids []int64 `json:"failed_fids"`
}
BatchModifyResult is
type CMAccountInfo ¶
type CMAccountInfo struct { Nickname string `json:"nickname"` CertificationTitle string `json:"certification_title"` CreditCode string `json:"credit_code"` CompanyName string `json:"company_name"` Organization string `json:"organization"` OrganizationType string `json:"organization_type"` }
CMAccountInfo is
type CodeInfoReq ¶
type CodeInfoReq struct { Appkey string `form:"appkey" validate:"required"` Sign string `form:"sign"` Ts time.Time `form:"ts"` StartTime time.Time `form:"start_time" validate:"required"` EndTime time.Time `form:"end_time" validate:"required"` Cursor int64 `form:"cursor"` }
CodeInfoReq code info request
type CommonResq ¶
type CommonResq struct { Code int64 `json:"code"` TS int64 `json:"ts"` Message string `json:"message"` }
CommonResq .
type EquipPHP ¶
type EquipPHP struct { Pid int64 `json:"pid"` Coins float64 `json:"coins"` Image string `json:"image"` ImageModel string `json:"image_model"` FaceURL string `json:"face_url"` }
EquipPHP struct.
type Following ¶
type Following struct { *relation.Following Uname string `json:"uname"` Face string `json:"face"` Sign string `json:"sign"` // OfficialVerify member.OfficialInfo `json:"official_verify"` OfficialVerify struct { Type int8 `json:"type"` Desc string `json:"desc"` } `json:"official_verify"` Vip Vip `json:"vip"` }
Following is user followinng info.
type GeeCaptchaRequest ¶
type GeeCaptchaRequest struct { MID int64 `json:"mid" form:"mid"` IP string `json:"ip" form:"ip"` // h5 web native ClientType string `json:"client_type" form:"client_type" default:"web"` }
GeeCaptchaRequest 获取极验验证请求参数
type GeeCheckRequest ¶
type GeeCheckRequest struct { MID int64 Challenge string `json:"challenge" form:"challenge" validate:"required"` Validate string `json:"validate" form:"validate" validate:"required"` Seccode string `json:"seccode" form:"seccode" validate:"required"` ClientType string `json:"client_type" form:"client_type" default:"web"` }
GeeCheckRequest 校验极验验证码请求参数
type GeeCheckResponse ¶
type GeeCheckResponse struct {
NewVoucher string `json:"new_voucher"`
}
GeeCheckResponse 校验极验验证码响应参数
type GroupEntryPHP ¶
type GroupEntryPHP struct { Pid int64 `json:"pid"` Money int64 `json:"money"` Name string `json:"name"` Image string `json:"image"` ImageModel string `json:"image_model"` }
GroupEntryPHP php vip pendant result
type GroupPHP ¶
type GroupPHP struct { Name string `json:"group_name"` Count int64 `json:"group_count"` Pendant []*usmdl.Pendant `json:"pendant_info"` }
GroupPHP php group result
type GroupVipPHP ¶
type GroupVipPHP struct { Pid int64 `json:"pid"` Money int64 `json:"money"` MoneyType int8 `json:"money_type"` Expire int64 `json:"display_expire"` Name string `json:"name"` Image string `json:"image"` ImageModel string `json:"image_model"` }
GroupVipPHP php vip pendant result
type Identification ¶
type Identification struct {
Identification IdentifyStatus `json:"identification"`
}
Identification .
type IdentifyApply ¶
IdentifyApply identify apply info.
type IdentifyInfo ¶
IdentifyInfo identify info.
type Info ¶
type Info struct { Mid string `json:"mid"` Name string `json:"uname"` Sex string `json:"sex"` Sign string `json:"sign"` Avatar string `json:"avatar"` Rank string `json:"rank"` DisplayRank string `json:"DisplayRank"` LevelInfo struct { Cur int `json:"current_level"` Min int `json:"current_min"` NowExp int `json:"current_exp"` NextExp interface{} `json:"next_exp"` } `json:"level_info"` Pendant accountv1.PendantInfo `json:"pendant"` Nameplate accountv1.NameplateInfo `json:"nameplate"` OfficialVerify accountv1.OfficialInfo `json:"official_verify"` Vip struct { Type int `json:"vipType"` DueDate int64 `json:"vipDueDate"` DueRemark string `json:"dueRemark"` AccessStatus int `json:"accessStatus"` VipStatus int `json:"vipStatus"` VipStatusWarn string `json:"vipStatusWarn"` } `json:"vip"` }
Info struct.
type Invitee ¶
type Invitee struct { Mid int64 `json:"mid"` Uname string `json:"uname"` Face string `json:"face"` }
Invitee invitee.
type LogCoin ¶
type LogCoin struct { Time string `json:"time"` Delta float64 `json:"delta"` Reason string `json:"reason"` }
LogCoin money
type LogExp ¶
type LogExp struct { Delta float64 `json:"delta"` Time string `json:"time"` Reason string `json:"reason"` }
LogExp exp
type LogLogin ¶
type LogLogin struct { IP string `json:"ip"` Time int64 `json:"time"` TimeAt string `json:"time_at"` Status bool `json:"status"` Type int64 `json:"type"` Geo string `json:"geo"` }
LogLogin logLogin
type LogMoral ¶
type LogMoral struct { Origin string `json:"origin"` Delta float64 `json:"delta"` Reason string `json:"reason"` Time string `json:"time"` }
LogMoral moral
type LogMorals ¶
type LogMorals struct { Moral int64 `json:"moral"` List []*LogMoral `json:"list"` Count int `json:"count"` }
LogMorals log moral
type ManagerResp ¶
type ManagerResp struct {
JointlyInfo []*vipmol.JointlyResp `json:"jointly_info"`
}
ManagerResp manager resp.
type MyHistoryPHP ¶
type MyHistoryPHP struct { Pid int64 `json:"pid"` Image string `json:"image"` Name string `json:"name"` BuyTime int64 `json:"buy_time"` PayID string `json:"pay_id"` Cost string `json:"cost"` TimeLength int64 `json:"time_length"` }
MyHistoryPHP struct.
type MyPHP ¶
type MyPHP struct { Pid int64 `json:"pid"` Name string `json:"name"` MoneyType int8 `json:"money_type"` Image string `json:"image"` ImageModel string `json:"image_model"` Expire int64 `json:"expire"` IsActivated int8 `json:"is_activated"` IsOnline int8 `json:"is_online"` IsVip int8 `json:"is_vip"` }
MyPHP struct.
type NameplateInfo ¶
type NameplateInfo struct { Nid int `json:"nid"` Name string `json:"name"` Image string `json:"image"` ImageSmall string `json:"image_small"` Level string `json:"level"` Condition string `json:"condition"` }
NameplateInfo is.
type Notice2 ¶
type Notice2 struct { Status int8 `json:"status"` Type string `json:"type,omitempty"` Realname *Realname `json:"realname,omitempty"` Security *Security `json:"security,omitempty"` }
Notice2 v2.
type OAuth2InfoResp ¶
OAuth2InfoResp oauth2 resp.
type OfficialApply ¶
type OfficialApply struct { Role int8 `form:"role" validate:"min=0,max=6" json:"role"` Name string `form:"name" validate:"required" json:"name"` Title string `form:"title" validate:"required" json:"title"` Desc string `form:"desc" json:"desc"` Realname int8 `form:"realname" json:"realname"` Operator string `form:"operator" json:"operator"` Telephone string `form:"telephone" json:"telephone"` TelVerifyCode int64 `form:"tel_verify_code" json:"tel_verify_code"` Email string `form:"email" json:"email"` Address string `form:"address" json:"address"` Company string `form:"company" json:"company"` CreditCode string `form:"credit_code" json:"credit_code"` // 社会信用代码 Organization string `form:"organization" json:"organization"` // 政府或组织名称 OrganizationType string `form:"organization_type" json:"organization_type"` // 组织或机构类型 BusinessLicense string `form:"business_license" json:"business_license"` // 企业营业执照 BusinessScale string `form:"business_scale" json:"business_scale"` // 企业规模 BusinessLevel string `form:"business_level" json:"business_level"` // 企业登记 BusinessAuth string `form:"business_auth" json:"business_auth"` // 企业授权函 Supplement string `form:"supplement" json:"supplement"` // 其他补充材料 Professional string `form:"professional" json:"professional"` // 专业资质 Identification string `form:"identification" json:"identification"` // 身份认证 OfficialSite string `form:"official_site" json:"official_site"` // 官方站点 RegisteredCapital string `form:"registered_capital" json:"registered_capital"` // 注册资本 }
OfficialApply .
type OfficialConditions ¶
type OfficialConditions struct { IsFormal bool `json:"is_formal"` BindTel bool `json:"bind_tel"` Realname bool `json:"realname"` FollowerCount bool `json:"follower_count"` ArchiveCount bool `json:"archive_count"` }
OfficialConditions is official conditions
type OfficialPermissionResponse ¶
type OfficialPermissionResponse struct { DeniedRoles []int8 `json:"denied_roles"` Metadata map[string]interface{} `json:"metadata"` }
OfficialPermissionResponse is
type OfficialSubmittedTimes ¶
type OfficialSubmittedTimes struct { Submitted int64 `json:"submitted"` Remain int64 `json:"remain"` }
OfficialSubmittedTimes is
type OpenIDResp ¶
type OpenIDResp struct {
OpenID string `json:"open_id"`
}
OpenIDResp open_id resp.
type ParamRealnameAlipayApply ¶
type ParamRealnameAlipayApply struct { Realname string `form:"real_name"` CardNum string `form:"card_num"` Capture int `form:"capture"` ImgToken string `form:"img_token"` }
ParamRealnameAlipayApply .
type ParamRealnameCaptchaGTCheck ¶
type ParamRealnameCaptchaGTCheck struct { Remote RealnameBool `form:"remote"` Challenge string `form:"challenge"` Validate string `form:"validate"` Seccode string `form:"seccode"` }
ParamRealnameCaptchaGTCheck .
type ParamRealnameCaptchaGTRefresh ¶
type ParamRealnameCaptchaGTRefresh struct {
Hash string `form:"hash"`
}
ParamRealnameCaptchaGTRefresh .
type PassportProfile ¶
type PassportProfile struct { Mid int64 `json:"mid"` UName string `json:"uname"` UserID string `json:"user_id"` Telphone string `json:"telphone"` NickLock int `json:"nick_lock"` BindQQ bool `json:"bind_qq"` BindSina bool `json:"bind_sina"` SpaceSta int `json:"spacesta"` LoginTime xtime.Time `json:"login_time"` LoginIP string `json:"login_ip"` JoinIP string `json:"join_ip"` JoinTime xtime.Time `json:"join_time"` SafeQuestion int `json:"safe_question"` CountryCode int64 `json:"country_code"` }
PassportProfile is
"mid": 288840748, "uname": "小学生pasami", "userid": "bili_43796499903", "telphone": "9028005779", "nickLock": 0, "bind_qq": false, "bind_sina": true, "spacesta": 2, "login_time": 1529165291, "login_ip": "103.228.109.204", "join_ip": "119.135.161.112", "join_time": 1518286685, "safe_question": 0, "country_code": 1
type PendantInfo ¶
type PendantInfo struct { Pid int `json:"pid"` Name string `json:"name"` Image string `json:"image"` Expire int `json:"expire"` }
PendantInfo is.
type PendantPHP ¶
type PendantPHP struct { Pid int64 `json:"pid"` Name string `json:"name"` Image string `json:"image"` ImageModel string `json:"image_model"` }
PendantPHP php pendant result
type ProcessRes ¶
type ProcessRes struct { Success int64 `json:"success"` CaptchaID string `json:"gt"` Challenge string `json:"challenge"` NewCaptcha int `json:"new_captcha"` }
ProcessRes 请求获取极验验证响应参数
type RealnameAlipayApply ¶
type RealnameAlipayApply struct {
URL string `json:"url"`
}
RealnameAlipayApply .
type RealnameAlipayConfirm ¶
type RealnameAlipayConfirm struct { Passed RealnameBool `json:"passed"` Reason string `json:"reason"` }
RealnameAlipayConfirm .
type RealnameBool ¶
type RealnameBool uint8
RealnameBool is.
const ( RealnameFalse RealnameBool = iota RealnameTrue )
RealnameBool enum
type RealnameCaptchaGTRegister ¶
type RealnameCaptchaGTRegister struct { Remote RealnameBool `json:"remote"` ID string `json:"gt_id"` Challenge string `json:"gt_challenge"` }
RealnameCaptchaGTRegister .
type RealnameCaptchaGTValidate ¶
type RealnameCaptchaGTValidate struct {
State RealnameBool `json:"state"`
}
RealnameCaptchaGTValidate .
type RealnameCardType ¶
RealnameCardType .
type RealnameChannel ¶
type RealnameChannel struct { Name string Flag RealnameBool }
RealnameChannel .
type RealnameCountry ¶
RealnameCountry .
type RecommendContent ¶
type RecommendContent struct { UpID int64 `json:"up_id"` RecReason string `json:"rec_reason"` RecType int64 `json:"rec_type"` Tid int16 `json:"tid"` SecondTid int16 `json:"second_tid"` }
RecommendContent is
type RecommendInfo ¶
type RecommendInfo struct { Info RecommendContent Fans int64 `json:"fans"` TypeName string `json:"type_name"` SecondTypeName string `json:"second_type_name"` TrackID string `json:"track_id"` Relation *relation.Following `json:"relation"` }
RecommendInfo is
type RecommendResponse ¶
type RecommendResponse struct { Code int64 `json:"code"` TrackID string `json:"trackid"` Msg string `json:"msg"` Data []*RecommendContent `json:"data"` }
RecommendResponse is
type Record ¶
type Record struct { ID int `json:"id"` Oid int64 `json:"oid"` OidStr string `json:"oid_str"` // oid 前端会溢出改用 string Type int64 `json:"type"` Floor int `json:"floor"` Like int `json:"like"` Rcount int `json:"rcount"` Mid int64 `json:"mid"` State int `json:"state"` Message string `json:"message"` Ctime string `json:"ctime"` Members []*Member `json:"members"` RecordAppend }
Record record
type RecordAppend ¶
RecordAppend record append
type ReplyHistory ¶
type ReplyHistory struct { Page struct { Num int `json:"num"` Size int `json:"size"` Total int `json:"total"` } `json:"page"` Records []*Record `json:"records"` }
ReplyHistory reply history
type ResourceCode ¶
type ResourceCode struct { Code string `json:"code"` Status int8 `json:"status"` Days int32 `json:"days"` BatchCodeID int64 `json:"batch_code_id"` }
ResourceCode .
type ResourceCodeResq ¶
type ResourceCodeResq struct { CommonResq Data *ResourceCode `json:"data"` }
ResourceCodeResq .
type Reward ¶
type Reward struct { Login bool `json:"login"` Watch bool `json:"watch"` Coin int64 `json:"coins"` }
Reward exp reward.
type RichInvite ¶
type RichInvite struct { Status int64 `json:"status"` Mid int64 `json:"mid"` Code string `json:"invite_code"` Ctime xtime.Time `json:"buy_time"` Expires int64 `json:"expires"` Invitee *Invitee `json:"invitee,omitempty"` UsedAt int64 `json:"used_at,omitempty"` }
RichInvite rich invite.
func NewRichInvite ¶
func NewRichInvite(inv *usmdl.Invite, info *accmdl.Info) *RichInvite
NewRichInvite new a rich invite.
type RichInviteStat ¶
type RichInviteStat struct { Mid int64 `json:"mid"` CurrentLimit int64 `json:"current_limit"` CurrentBought int64 `json:"current_bought"` TotalBought int64 `json:"total_bought"` TotalUsed int64 `json:"total_used"` InviteCodes []*RichInvite `json:"invite_codes"` }
RichInviteStat rich invite stat.
type Security ¶
type Security struct { Location string `json:"location,omitempty"` Time time.Time `json:"time,omitempty"` IP string `json:"ip,omitempty"` Mid int64 `json:"mid,omitempty"` }
Security struct.
type Settings ¶
type Settings struct { Uname string `json:"uname"` Sign string `json:"sign"` Sex string `json:"sex"` Birthday string `json:"birthday"` }
Settings settings
type Tag ¶
type Tag struct { Mid int64 `json:"mid"` Uname string `json:"uname"` Face string `json:"face"` Sign string `json:"sign"` // OfficialVerify member.OfficialInfo `json:"official_verify"` OfficialVerify struct { Type int8 `json:"type"` Desc string `json:"desc"` } `json:"official_verify"` Vip Vip `json:"vip"` }
Tag is user info.
type TagSuggestRecommendContent ¶
type TagSuggestRecommendContent struct { TagName string `json:"tagname"` UpList []*RecommendContent `json:"up_list"` MatchCnt int64 `json:"match_cnt"` }
TagSuggestRecommendContent is
func (*TagSuggestRecommendContent) UpIDs ¶
func (tsrc *TagSuggestRecommendContent) UpIDs() []int64
UpIDs is
type TagSuggestRecommendInfo ¶
type TagSuggestRecommendInfo struct { TagName string `json:"tagname"` UpList []*RecommendInfo `json:"up_list"` MatchCnt int64 `json:"match_cnt"` }
TagSuggestRecommendInfo is
type TagSuggestRecommendResponse ¶
type TagSuggestRecommendResponse struct { Code int64 `json:"code"` TrackID string `json:"trackid"` Msg string `json:"msg"` Data []*TagSuggestRecommendContent `json:"data"` }
TagSuggestRecommendResponse is
type TipsReq ¶
type TipsReq struct { Version int64 `form:"build"` Platform string `form:"platform" validate:"required"` Position int8 `form:"position" default:"1"` }
TipsReq tips request.
type User ¶
type User struct { Mid int64 `json:"mid"` Uname string `json:"uname"` Userid string `json:"userid"` Sign string `json:"sign"` Birthday string `json:"birthday"` Sex string `json:"sex"` NickFree bool `json:"nick_free"` }
User user info
type VIPInfo ¶
type VIPInfo struct { Mid int64 `json:"mid"` Type int8 `json:"vipType"` DueDate int64 `json:"vipDueDate"` DueMsec int64 `json:"vipSurplusMsec"` DueRemark string `json:"dueRemark"` Status int8 `json:"accessStatus"` VipStatus int8 `json:"vipStatus"` }
VIPInfo vip info.
type Vip ¶
type Vip struct { Type int `json:"vipType"` DueDate int64 `json:"vipDueDate"` DueRemark string `json:"dueRemark"` AccessStatus int `json:"accessStatus"` VipStatus int `json:"vipStatus"` VipStatusWarn string `json:"vipStatusWarn"` }
Vip .
type VipPanelRes ¶
type VipPanelRes struct { Device string `form:"device"` MobiApp string `form:"mobi_app"` Platform string `form:"platform" default:"pc"` SortTP int8 `form:"sort_type"` PanelType string `form:"panel_type" default:"normal"` Month int32 `form:"month"` SubType int32 `form:"order_type"` Build int64 `form:"build"` }
VipPanelRes .
type VipPanelResp ¶
type VipPanelResp struct { Vps []*vipmol.VipPanelInfo `json:"price_list"` CodeSwitch int8 `json:"code_switch"` GiveSwitch int8 `json:"give_switch"` Privileges map[int8]*vipmol.PrivilegesResp `json:"privileges,omitempty"` TipInfo *vipmol.TipsResp `json:"tip_info,omitempty"` UserInfo *vipmol.VipPanelExplain `json:"user_info,omitempty"` }
VipPanelResp vip panel resp.
type VipPanelRespV9 ¶
type VipPanelRespV9 struct { Vps []*vipv1.ModelVipPanelInfo `json:"price_list,omitempty"` Coupon *vipv1.CouponBySuitIDReply `json:"coupon,omitempty"` CouponSwith int32 `json:"coupon_switch"` CodeSwitch int32 `json:"code_switch"` GiveSwitch int32 `json:"give_switch"` Privileges map[int32]*vipv1.ModelPrivilegeResp `json:"privileges,omitempty"` TipInfo *vipmol.TipsResp `json:"tip_info,omitempty"` UserInfo *vipmol.VipPanelExplain `json:"user_info,omitempty"` AssociateVips []*vipmol.AssociateVipResp `json:"associate_vips,omitempty"` }
VipPanelRespV9 vip panel resp v9.
type VipPanelV8Resp ¶
type VipPanelV8Resp struct { Vps []*vipmol.VipPanelInfo `json:"price_list"` CouponInfo *col.CouponAllowancePanelInfo `json:"coupon_info,omitempty"` CouponSwith int8 `json:"coupon_switch,omitempty"` CodeSwitch int8 `json:"code_switch"` GiveSwitch int8 `json:"give_switch"` Privileges map[int8]*vipmol.PrivilegesResp `json:"privileges,omitempty"` TipInfo *vipmol.TipsResp `json:"tip_info,omitempty"` UserInfo *vipmol.VipPanelExplain `json:"user_info,omitempty"` AssociateVips []*vipmol.AssociateVipResp `json:"associate_vips,omitempty"` }
VipPanelV8Resp vip panel v8 resp.
type WelfareInfo ¶
type WelfareInfo struct { ID int `json:"id"` Name string `json:"name"` Desc string `json:"desc"` HomepageUri string `json:"homepage_uri"` BackdropUri string `json:"backdrop_uri"` SurplusCount int `json:"surplus_count"` Received bool `json:"received"` Stime time.Time `json:"stime"` Etime time.Time `json:"etime"` }
WelfareInfo welfare info