Documentation
¶
Index ¶
- func ListAggTimeUnit() []string
- func ListAggType() []string
- type AddAdminUser
- type AddMenu
- type AddRole
- type AggGroupFlow
- type AggProxy
- type AggUser
- type AuditWithdrawOfflinePay
- type AuditWithdrawOnlinePay
- type AuditWithdrawReject
- type Base
- type BasePageReq
- type BaseReq
- type CheckVersion
- type DelAdminUser
- type DelEventLog
- type DelExceptionLog
- type DelGroup
- type DelMenu
- type DelRole
- type EditMenu
- type EditRole
- type FlowerRange
- type GetUserInfo
- type ListChatGroup
- type ListEventLog
- type ListExceptionLog
- type ListGroupUser
- type ListMenu
- type ListMoneyRec
- type ListMoneyType
- type ListOddsType
- type ListOpenK3
- type ListOrder
- type ListTgUser
- type ListUser
- type ListWithdraw
- type Login
- type MigrateUser
- type RefreshMenu
- type ResetUserTradePassword
- type SetAdminUserGroup
- type SetAdminUserPwd
- type SetAdminUserRole
- type SetAdminUserStatus
- type SetBlackUser
- type SetConfigOdds
- type SetConfigOther
- type SetGroupAdmin
- type SetGroupProxy
- type SetMenuApi
- type SetProxyCommissionRate
- type SetRoleMenus
- type SetSysValue
- type SetUserCreditIn
- type SetUserCreditOut
- type SetUserDailyWithdrawLimit
- type SetVersion
- type TimeRange
- type Token
- type UserDownlineReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListAggTimeUnit ¶ added in v1.0.6
func ListAggTimeUnit() []string
func ListAggType ¶ added in v1.0.4
func ListAggType() []string
Types ¶
type AddAdminUser ¶
type AddMenu ¶ added in v1.0.9
type AddMenu struct {
BaseReq `validate:"valid(T)"`
ParentID int64 `form:"parent_id" validate:"min(0,invalid parent menu id)"`
Name string `form:"name" validate:"minlen(1,菜单名称)"`
RouteName string `form:"route_name" validate:"minlen(1,菜单路由名称不能为空)"`
Route string `form:"route" validate:"minlen(1,菜单路由路径不能为空)"`
IsButton bool `form:"is_button"`
}
type AggGroupFlow ¶ added in v1.1.25
type AggGroupFlow struct {
BaseReq `validate:"valid(T)"`
SpecDate string `form:"spec_date" validate:"len(10,日期格式不正确)"`
DateSpec time.Time
}
统计群流水
func (*AggGroupFlow) Check ¶ added in v1.1.25
func (self *AggGroupFlow) Check() error
type AggProxy ¶ added in v1.0.4
type AggProxy struct {
BaseReq `validate:"valid(T)"`
TimeRange `validate:"valid(T)"`
TimeUnit string `form:"time_unit" validate:"enum(day|week|month|year,无效的统计时长)"`
Type int `form:"type" validate:"enum(1|2|3,无效的类别)"` //充值 / 下注 / 提现
}
代理人统计
type AggUser ¶ added in v1.0.4
type AggUser struct {
BaseReq `validate:"valid(T)"`
TimeRange `validate:"valid(T)"`
FlowerRange `validate:"valid(T)"`
SpecGroupID int64 `form:"spec_group_id" validate:"max(0,无效的群ID)"`
TimeUnit string `form:"time_unit" validate:"enum(day|week|month|year,无效的统计时长)"`
SearchKey string `form:"search_key"`
}
个人用户统计
type AuditWithdrawOfflinePay ¶ added in v1.1.3
type AuditWithdrawOnlinePay ¶ added in v1.1.3
type AuditWithdrawReject ¶ added in v1.0.7
type BasePageReq ¶
type CheckVersion ¶ added in v1.1.23
type CheckVersion struct {
BaseReq `validate:"valid(T)"`
OSType string `form:"os_type" validate:"enum(windows|darwin,无效的操作系统类别)"`
}
检测版本
type DelAdminUser ¶
type DelEventLog ¶ added in v1.0.7
type DelExceptionLog ¶ added in v1.0.7
type DelGroup ¶ added in v1.1.40
type DelGroup struct {
BaseReq `validate:"valid(T)"`
GroupId int64 `form:"group_id" validate:"lt(0,invalid group id)"`
}
删除群
type FlowerRange ¶ added in v1.1.42
type FlowerRange struct {
BeginFlower float64 `form:"begin_flower" validate:"gte(0,无效的启始流水)"`
EndFlower float64 `form:"end_flower" validate:"gte(0,无效的启始流水)"`
}
func (*FlowerRange) Check ¶ added in v1.1.42
func (self *FlowerRange) Check() error
type GetUserInfo ¶ added in v1.1.30
type ListChatGroup ¶
type ListChatGroup struct {
BasePageReq `validate:"valid(T)"`
Search string `form:"search"`
}
type ListEventLog ¶ added in v1.0.7
type ListEventLog struct {
BasePageReq `validate:"valid(T)"`
SearchKey string `form:"search_key"`
}
type ListExceptionLog ¶ added in v1.0.7
type ListExceptionLog struct {
BasePageReq `validate:"valid(T)"`
SearchKey string `form:"search_key"`
}
type ListGroupUser ¶
type ListGroupUser struct {
BasePageReq `validate:"valid(T)"`
GroupId int64 `form:"group_id" validate:"lt(0,invalid group id)"`
Search string `form:"search"`
}
type ListMoneyRec ¶
type ListMoneyRec struct {
BasePageReq `validate:"valid(T)"`
MoneyType int `form:"money_type" validate:"gte(0,invalid money type)"`
GroupId int64 `form:"group_id" validate:"lte(0,invalid group id)"`
SearchKey string `form:"search_key"`
TimeRange `validate:"valid(T)"`
}
func (*ListMoneyRec) Check ¶
func (self *ListMoneyRec) Check() error
type ListMoneyType ¶
type ListMoneyType struct {
BaseReq `validate:"valid(T)"`
}
type ListOddsType ¶
type ListOddsType struct {
BaseReq `validate:"valid(T)"`
}
type ListOpenK3 ¶
type ListOpenK3 struct {
BasePageReq `validate:"valid(T)"`
GroupId int64 `form:"group_id" validate:"lte(0,invalid group id)"`
ExpectNo string `form:"expect_no"`
}
type ListOrder ¶
type ListOrder struct {
BasePageReq `validate:"valid(T)"`
GroupId int64 `form:"group_id" validate:"lte(0,invalid group id)"`
SearchKey string `form:"search_key"`
OrderType int `form:"order_type" validate:"enum(0|1|2|3,invalid order type)"`
}
type ListTgUser ¶
type ListTgUser struct {
BasePageReq `validate:"valid(T)"`
Search string `form:"search"`
}
type ListUser ¶ added in v1.0.7
type ListUser struct {
BasePageReq `validate:"valid(T)"`
Search string `form:"search"`
}
type ListWithdraw ¶ added in v1.0.7
type ListWithdraw struct {
BasePageReq `validate:"valid(T)"`
TimeRange `validate:"valid(T)"`
TgUserID int64 `form:"tg_user_id" validate:"min(0,invalid tg user id)"`
Status int `form:"status" validate:"enum(0|1|2|3|31|32|33,invalid withdraw status)"`
}
type MigrateUser ¶ added in v1.1.30
type MigrateUser struct {
BaseReq `validate:"valid(T)"`
OldTgID int64 `form:"old_tg_id" validate:"min(1,无效的旧账号)"`
NewTgID int64 `form:"new_tg_id" validate:"min(1,无效的新账号)"`
}
账号迁移流程
func (*MigrateUser) Check ¶ added in v1.1.30
func (self *MigrateUser) Check() error
type RefreshMenu ¶
type RefreshMenu struct {
BaseReq `validate:"valid(T)"`
}
type ResetUserTradePassword ¶ added in v1.1.42
type ResetUserTradePassword struct {
BaseReq `validate:"valid(T)"`
TgUserId int64 `form:"tg_user_id" validate:"gt(0,invalid tg user id)"`
}
重置交易密码
type SetAdminUserGroup ¶ added in v1.1.35
type SetAdminUserPwd ¶
type SetAdminUserRole ¶
type SetAdminUserStatus ¶
type SetBlackUser ¶ added in v1.1.32
type SetBlackUser struct {
BaseReq `validate:"valid(T)"`
TgUserId int64 `form:"tg_user_id" validate:"gt(0,invalid tg user id)"`
}
黑名单操作
type SetConfigOdds ¶ added in v1.1.16
type SetConfigOdds struct {
BaseReq `validate:"valid(T)"`
GroupId int64 `form:"group_id" validate:"lt(0,invalid group id)"`
SetOdds string `form:"set_odds" validate:"minlen(1,empty odds setting)"`
ConfigOdds map[string]model.BetRule `form:"-"`
}
func (*SetConfigOdds) Check ¶ added in v1.1.16
func (self *SetConfigOdds) Check() error
type SetConfigOther ¶ added in v1.1.16
type SetConfigOther struct {
BaseReq `validate:"valid(T)"`
GroupId int64 `form:"group_id" validate:"lt(0,invalid group id)"`
model.GroupOtherConfig `validate:"valid(T)"`
}
type SetGroupAdmin ¶
type SetGroupProxy ¶ added in v1.0.3
type SetMenuApi ¶ added in v1.0.9
type SetMenuApi struct {
BaseReq `validate:"valid(T)"`
ID int64 `form:"id" validate:"min(1,empty menu id)"`
ListApiPermission []string `form:"list_api_permission" validate:"arr_minlen(1,empty list api)"`
}
func (*SetMenuApi) Check ¶ added in v1.0.9
func (self *SetMenuApi) Check() error
type SetProxyCommissionRate ¶ added in v1.1.4
type SetProxyCommissionRate struct {
BaseReq `validate:"valid(T)"`
GroupId int64 `form:"group_id" validate:"lt(0,invalid group id)"`
CommissionRate float64 `form:"commission_rate" validate:"range_excl(0,1,invalid commission rate)"`
}
设置代理抽成比例
type SetRoleMenus ¶ added in v1.0.9
type SetSysValue ¶ added in v1.1.27
type SetSysValue struct {
BaseReq `validate:"valid(T)"`
KeyName string `form:"key_name" validate:"min_len(1,空的key信息)"`
JsonValue string `form:"json_value" validate:"min_len(1,空的value值)"`
Remark string `form:"remark"`
}
func (*SetSysValue) Check ¶ added in v1.1.27
func (self *SetSysValue) Check() error
type SetUserCreditIn ¶ added in v1.1.14
type SetUserCreditIn struct {
BaseReq `validate:"valid(T)"`
TgUserId int64 `form:"tg_user_id" validate:"gt(0,invalid tg user id)"`
Money int64 `form:"money" validate:"gt(1,invalid credit in money)"`
}
上分
type SetUserCreditOut ¶ added in v1.1.14
type SetUserCreditOut struct {
BaseReq `validate:"valid(T)"`
TgUserId int64 `form:"tg_user_id" validate:"gt(0,invalid tg user id)"`
Money int64 `form:"money" validate:"gt(1,invalid credit out money)"`
}
下分
type SetUserDailyWithdrawLimit ¶ added in v1.1.3
type SetVersion ¶ added in v1.1.23
type SetVersion struct {
BaseReq `validate:"valid(T)"`
OSType string `form:"os_type" validate:"enum(windows|darwin,无效的操作系统类别)"`
Version string `form:"version" validate:"minlen(1,version is null)"`
URL string `form:"url" validate:"minlen(1,下载地址不能为空)"`
Remark string `form:"remark" validate:"minlen(1,升级说明不能为空)"`
}
上传新的版本
type TimeRange ¶
type TimeRange struct {
BeginTime string `form:"begin_time"` //格式 :yyyy-mm-dd 00:00:00
EndTime string `form:"end_time"`
BeginTimeStamp int64 `form:"-"`
EndTimeStamp int64 `form:"-"`
}
func (*TimeRange) ToTimeRange ¶ added in v1.1.26
Click to show internal directories.
Click to hide internal directories.