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: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// VerifyMail verify mail
	VerifyMail = 1 //验证码邮件
	// CommitMail commit mail
	CommitMail = 2 //申诉信息提交邮件
	// RejectMail reject mail
	RejectMail = 3 //账号申诉驳回邮件
	// AgreeMail agree mail
	AgreeMail = 4 //账号审核通过邮件

	// DOAgree agree this appeal
	DOAgree = 1 //申诉通过
	// DOReject reject this appeal
	DOReject = 2 //申诉驳回

	// HIDEALL hide all
	HIDEALL = "*********"

	// BizGame game
	BizGame = "game"
)

Variables

This section is empty.

Functions

func BuildFileURL

func BuildFileURL(raw string) string

BuildFileURL build bfs download url

func BusinessExtraArgs

func BusinessExtraArgs(business string) []string

BusinessExtraArgs business args

Types

type AccountRecoveryInfo

type AccountRecoveryInfo struct {
	Rid             int64
	Mid             int64
	UserType        int64
	Status          int64
	LoginAddr       string
	UNames          string
	RegTime         time.Time `json:"-"`
	RegTimeStr      string    `json:"RegTime"`
	RegType         int64     `json:"-"`
	RegTypeStr      string    `json:"RegType"`
	RegAddr         string
	Pwd             string
	Phones          string
	Emails          string
	SafeQuestion    int64  `json:"-"`
	SafeQuestionStr string `json:"SafeQuestion"`
	SafeAnswer      string
	CardType        int64  `json:"-"`
	CardTypeStr     string `json:"CardType"`
	CardID          string
	SysLoginAddr    string
	SysReg          string
	SysUNames       string
	SysPwds         string
	SysPhones       string
	SysEmails       string
	SysSafe         string
	SysCard         string
	LinkEmail       string
	Operator        string
	OptTime         time.Time
	Remark          string
	CTime           time.Time
	MTime           time.Time
	Bussiness       string
	LastSucCount    int64
	LastSucCTime    time.Time
}

AccountRecoveryInfo account recovery db info

type AddrInfo

type AddrInfo struct {
	OftenAddrs string `json:"oftenAddrs"`
}

AddrInfo AddrInfo

type AppealRes

type AppealRes struct {
	Rid   int64     `json:"rid"`
	Mid   int64     `json:"uid"`
	Ctime time.Time `json:"ctime"`
	Count int64     `json:"count"`

	LinkEmail string `json:"link_email"`
	Remark    string `json:"remark"`
	Status    int64  `json:"status"`

	UserInfoRes *UserInfoRes `json:"user_info"`
	SysInfo     *SysInfo     `json:"sys_info"`
	OperInfo    *OperInfo    `json:"oper_info"`
}

AppealRes 信息查询返回结果

type BatchAppeal

type BatchAppeal struct {
	Rid      string
	Mid      string
	LinkMail string
	Ctime    time.Time
}

BatchAppeal some of appeal info

type BatchJudgeReq

type BatchJudgeReq struct {
	Status   int64     `form:"status" validate:"required"`
	Rids     string    `form:"rids" validate:"required"`
	Operator string    `form:"operator" validate:"required"`
	OptTime  time.Time `form:"opt_time" validate:"required"`
	Remark   string    `form:"remark"`
	RidsAry  []int64
}

BatchJudgeReq appeal judge

type CaptchaMailReq

type CaptchaMailReq struct {
	Mid      int64  `form:"mid" validate:"required"`
	LinkMail string `form:"link_mail" validate:"required"`
}

CaptchaMailReq get mail captcha

type CardInfo

type CardInfo struct {
	CardID   string `json:"card_id"`
	CardType int8   `json:"card_type"`
}

CardInfo card info

type Check

type Check struct {
	CheckInfo string `json:"checkInfo"`
}

Check check safe: Flag , reg: CheckInfo

type CheckEmailPhone

type CheckEmailPhone struct {
	PhonesCheck string
	EmailCheck  string
}

CheckEmailPhone check email and phone

type CommonResq

type CommonResq struct {
	Code    int64  `json:"code"`
	TS      int64  `json:"ts"`
	Message string `json:"message"`
}

CommonResq common response

type DBAccountRecoveryAddit

type DBAccountRecoveryAddit struct {
	Rid   int64     `json:"rid"`
	Files string    `json:"files"`
	Extra string    `json:"extra"`
	Ctime time.Time `json:"ctime"`
	Mtime time.Time `json:"mtime"`
}

DBAccountRecoveryAddit is

func (*DBAccountRecoveryAddit) AsRecoveryAddit

func (dbAddit *DBAccountRecoveryAddit) AsRecoveryAddit() *RecoveryAddit

AsRecoveryAddit parse DBAccountRecoveryAddit to RecoveryAddit

type DBRecoveryInfoParams

type DBRecoveryInfoParams struct {
	ExistGame   bool
	ExistStatus bool
	ExistMid    bool
	Mid         int64
	Game        int64
	Status      int64
	FirstRid    int64
	LastRid     int64
	Size        int64
	StartTime   time.Time
	EndTime     time.Time
	SubNum      int64
	CurrPage    int64
}

DBRecoveryInfoParams DBRecoveryInfoParams

type EsRes

type EsRes struct {
	Page   Page            `json:"page"`
	Result []*UserActLogEs `json:"result"`
}

EsRes EsRes

type Game

type Game struct {
	GameBaseID int    `json:"id"`
	GameName   string `json:"name"`
	LastLogin  string `json:"lastLogin"`
}

Game data of game

type GameListRes

type GameListRes struct {
	Mid   int64   `json:"mid"`
	Items []*Game `json:"items"`
}

GameListRes game list res

type JudgeReq

type JudgeReq struct {
	Status   int64     `form:"status" validate:"required"`
	Rid      int64     `form:"rid" validate:"required"`
	Operator string    `form:"operator" validate:"required"`
	OptTime  time.Time `form:"opt_time" validate:"required"`
	Remark   string    `form:"remark"`
}

JudgeReq appeal judge

type LastSuccessData

type LastSuccessData struct {
	LastApplyMID  int64 `json:"-"`
	LastApplyTime time.Time
}

LastSuccessData last recovery success info

type LoginIPInfo

type LoginIPInfo struct {
	LoginIP string `json:"loginip"`
}

LoginIPInfo login ip info

type MIDInfo

type MIDInfo struct {
	Mids  string `json:"mids"`
	Count int64  `json:"count"`
}

MIDInfo mid info data

type MultiQueryRes

type MultiQueryRes struct {
	Info []*RecoveryResInfo
	Page *Page
}

MultiQueryRes MultiQueryRes

type NickESRes

type NickESRes struct {
	Page   Page             `json:"page"`
	Result []*NickNameLogEs `json:"result"`
}

NickESRes the result of es query

type NickNameInfo

type NickNameInfo struct {
	OldName string `json:"old_name"`
	NewName string `json:"new_name"`
}

NickNameInfo nickName

type NickNameLogEs

type NickNameLogEs struct {
	OldName string `json:"str_0"`
	NewName string `json:"str_1"`
}

NickNameLogEs query field form es

type NickNameLogRes

type NickNameLogRes struct {
	Page   Page            `json:"page"`
	Result []*NickNameInfo `json:"result"`
}

NickNameLogRes make NickESRes result become we need

type NickNameReq

type NickNameReq struct {
	Mid  int64 `form:"mid"`
	Page int   `form:"page"`
	Size int   `form:"size"`
	From int64 `form:"from"`
	To   int64 `form:"to"`
}

NickNameReq request es params

type OperInfo

type OperInfo struct {
	Operator string    `json:"operator"`
	OperTime time.Time `json:"oper_time"`
}

OperInfo operate info

type Page

type Page struct {
	//Num   int64 `json:"num"`
	Size  int64 `json:"size"`
	Total int64 `json:"total"`
}

Page page

type QueryInfoReq

type QueryInfoReq struct {
	QType  string `form:"q_type" validate:"required"`
	QValue string `form:"q_value" validate:"required"`
	CToken string `form:"token" validate:"required"`
	Code   string `form:"code" validate:"required"`
}

QueryInfoReq query mid info req

type QueryInfoResp

type QueryInfoResp struct {
	Status int64 `json:"status"`
	UID    int64 `json:"uid"`
}

QueryInfoResp query info response

type QueryRecoveryInfoReq

type QueryRecoveryInfoReq struct {
	// FirstRid int64 `json:"first_rid" form:"first_rid"`
	// LastRid  int64 `json:"last_rid" form:"last_rid"`
	// RID account recovery info id
	RID int64 `json:"rid" form:"rid"`
	// UID user id
	UID int64 `json:"uid" form:"uid"`
	// Status account recovery status
	// status value, example: default "0", thought "1", reject "2"
	Status *int64 `json:"status" form:"-"`
	// Game is game user
	// game value, example: "1"/"0"
	Game *int64 `json:"game" form:"-"`
	// Size default size 10
	Size       int64     `json:"size" form:"size"`
	StartTime  time.Time `json:"start_time" form:"start_time"`
	EndTime    time.Time `json:"end_time" form:"end_time"`
	IsAdvanced bool      `json:"-"`
	// CurrPage   int64     `form:"curr_page"`
	Page      int64  `form:"page"`
	Bussiness string `json:"-"`
}

QueryRecoveryInfoReq 信息查询请求

type RecoveryAddit

type RecoveryAddit struct {
	Files []string
	Extra map[string]interface{}
}

RecoveryAddit common business field

type RecoveryResInfo

RecoveryResInfo RecoveryResInfo

type RecoverySuccess

type RecoverySuccess struct {
	SuccessMID       int64 `json:"-"`
	SuccessCount     int64
	FirstSuccessTime time.Time
	LastSuccessTime  time.Time
}

RecoverySuccess recovery success info

type RegInfo

type RegInfo struct {
	RegTime time.Time `json:"reg_time"`
	RegType int64     `json:"reg_type"`
	RegAddr string    `json:"reg_addr"`
}

RegInfo reg info

type SafeInfo

type SafeInfo struct {
	SafeQuestion int8   `json:"safe_question"`
	SafeAnswer   string `json:"safe_answer"`
}

SafeInfo safe info

type SendMailReq

type SendMailReq struct {
	RID    int64 `form:"rid" validate:"required"`
	Status int64 `form:"status" validate:"required"`
}

SendMailReq send mail according to status and rid

type SysInfo

type SysInfo struct {
	SysLoginAddrs string `json:"sys_login_addrs"`
	SysReg        string `json:"sys_reg"`
	SysUNames     string `json:"sys_nick"`
	SysPwds       string `json:"sys_pwds"`
	SysPhones     string `json:"sys_phones"`
	SysEmails     string `json:"sys_emails"`
	SysSafe       string `json:"sys_safe"`
	SysCard       string `json:"sys_card"`
}

SysInfo sys check info

type Token

type Token struct {
	Token string `json:"token"`
	URL   string `json:"url"`
}

Token captcha token

type TokenResq

type TokenResq struct {
	CommonResq
	Data *Token `json:"data"`
}

TokenResq response of capthca

type User

type User struct {
	UserID string `json:"userid"`
	Pwd    string `json:"pwd"`
}

User user info data

type UserActLogEs

type UserActLogEs struct {
	Mid       int64  `json:"mid"`
	Str0      string `json:"str_0"`
	ExtraData string `json:"extra_data"`
	CTime     string `json:"ctime"`
}

UserActLogEs UserActLogEs

type UserBindLog

type UserBindLog struct {
	Mid   int64  `json:"mid"`
	Phone string `json:"phone"`
	Email string `json:"email"`
	Time  string `json:"time"`
}

UserBindLog UserBindLog

type UserBindLogReq

type UserBindLogReq struct {
	// Action value : telBindLog or emailBindLog
	Action string `form:"action"`
	Mid    int64  `form:"mid"`
	//Query search tel or email
	Query string `form:"query"`
	Page  int    `form:"page"`
	Size  int    `form:"size"`
	From  int64  `form:"from"`
	To    int64  `form:"to"`
}

UserBindLogReq UserBindLogReq

type UserBindLogRes

type UserBindLogRes struct {
	Page   Page           `json:"page"`
	Result []*UserBindLog `json:"result"`
}

UserBindLogRes UserBindLogRes

type UserInfo

type UserInfo struct {
	Mid      int64     `json:"mid"`
	Phone    string    `json:"telphone"`
	Email    string    `json:"email"`
	JoinTime time.Time `json:"join_time"`
}

UserInfo user detail info

type UserInfoReq

type UserInfoReq struct {
	LoginAddrs   string    `json:"login_addrs" form:"login_addrs" validate:"required,min=1"`
	RegTime      time.Time `json:"reg_time" form:"reg_time" validate:"required"`
	RegType      int8      `json:"reg_type" form:"reg_type" validate:"required"`
	RegAddr      string    `json:"reg_addr" form:"reg_addr" validate:"required"`
	Unames       string    `json:"unames" form:"unames"`
	Pwds         string    `json:"pwds" form:"pwds" validate:"required"`
	Phones       string    `json:"phones" form:"phones"`
	Emails       string    `json:"emails" form:"emails"`
	SafeQuestion int8      `json:"safe_question" form:"safe_question" default:"99"`
	SafeAnswer   string    `json:"safe_answer" form:"safe_answer"`
	CardID       string    `json:"card_id" form:"card_id"`
	CardType     int8      `json:"card_type" form:"card_type" default:"99"`
	Captcha      string    `json:"captcha" form:"captcha" validate:"required"`
	LinkMail     string    `json:"link_mail" form:"link_mail" validate:"required,email"`
	Mid          int64     `json:"mid" form:"mid" validate:"required,min=1"`
	Business     string    `json:"business" form:"business" default:"account"`
	BusinessMap  map[string]string
	Files        []string  `json:"files" form:"files,split"`
	LastSucCount int64     //成功找回的总次数
	LastSucCTime time.Time //上次成功找回的提交时间
}

UserInfoReq 用户申诉提交信息

type UserInfoRes

type UserInfoRes struct {
	LoginAddrs string `json:"login_addrs"`
	Unames     string `json:"unames"`
	Pwds       string `json:"pwds"`
	Phones     string `json:"phones"`
	Emails     string `json:"emails"`

	RegInfo  *RegInfo  `json:"reg_info"`
	SafeInfo *SafeInfo `json:"safe_info"`
	CardInfo *CardInfo `json:"card_info"`
}

UserInfoRes response of userInfo

Jump to

Keyboard shortcuts

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