req

package
v1.1.25 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2025 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

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 AddAdminUser struct {
	BaseReq  `validate:"valid(T)"`
	Name     string `form:"name" validate:"minlen(1,empty user name)"`
	Password string `form:"password" validate:"minlen(1,empty login password)"`
}

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 AddRole added in v1.0.9

type AddRole struct {
	BaseReq     `validate:"valid(T)"`
	Name        string `form:"name" validate:"minlen(1,empty role name)"`
	Description string `form:"description"`
}

type AggGroupFlow added in v1.1.25

type AggGroupFlow struct {
	BaseReq  `validate:"valid(T)"`
	SpecDate string `validate:"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)"`
	TimeUnit  string `form:"time_unit" validate:"enum(day|week|month|year,无效的统计时长)"`
	SearchKey string `form:"search_key"`
}

个人用户统计

type AuditWithdrawOfflinePay added in v1.1.3

type AuditWithdrawOfflinePay struct {
	BaseReq    `validate:"valid(T)"`
	WithdrawID int64  `form:"withdraw_id" validate:"min(1,empty withdraw id)"`
	Remark     string `form:"remark"`
}

type AuditWithdrawOnlinePay added in v1.1.3

type AuditWithdrawOnlinePay struct {
	BaseReq    `validate:"valid(T)"`
	WithdrawID int64  `form:"withdraw_id" validate:"min(1,empty withdraw id)"`
	Remark     string `form:"remark"`
}

type AuditWithdrawReject added in v1.0.7

type AuditWithdrawReject struct {
	BaseReq    `validate:"valid(T)"`
	WithdrawID int64  `form:"withdraw_id" validate:"min(1,empty withdraw id)"`
	Reason     string `form:"reason" validate:"minlen(1,empty reject reason)"`
}

type Base

type Base struct {
	RemoteIP string      `form:"-" json:"-"`
	Logs     log.InfoLog `form:"-" json:"-"`
}

type BasePageReq

type BasePageReq struct {
	BaseReq       `validate:"valid(T)"`
	mygin.PageReq `validate:"valid(T)"`
}

type BaseReq

type BaseReq struct {
	Base  `validate:"valid(T)"`
	Token `validate:"valid(T)"`
}

type CheckVersion added in v1.1.24

type CheckVersion struct {
	BaseReq `validate:"valid(T)"`
	OSType  string `form:"os_type" validate:"enum(windows|darwin,无效的操作系统类别)"`
}

检测版本

type DelAdminUser

type DelAdminUser struct {
	BaseReq `validate:"valid(T)"`
	Id      int64 `form:"id" validate:"min(1,empty user id)"`
}

type DelEventLog added in v1.0.7

type DelEventLog struct {
	BaseReq     `validate:"valid(T)"`
	ListEventID []int64 `form:"list_event_id" validate:"arr_minlen(1,empty event id list)"`
}

type DelExceptionLog added in v1.0.7

type DelExceptionLog struct {
	BaseReq         `validate:"valid(T)"`
	ListExceptionID []int64 `form:"list_exception_id" validate:"arr_minlen(1,empty exception id list)"`
}

type DelMenu added in v1.0.9

type DelMenu struct {
	BaseReq `validate:"valid(T)"`
	ID      int64 `form:"id" validate:"min(1,empty menu id)"`
}

type DelRole added in v1.0.9

type DelRole struct {
	BaseReq `validate:"valid(T)"`
	ID      int64 `form:"id" validate:"min(1,empty role id)"`
}

type EditMenu added in v1.0.9

type EditMenu struct {
	AddMenu `validate:"valid(T)"`
	ID      int64 `form:"id" validate:"min(1,empty menu id)"`
}

type EditRole added in v1.0.9

type EditRole struct {
	AddRole `validate:"valid(T)"`
	ID      int64 `form:"id" validate:"min(1,empty role id)"`
}

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 ListMenu added in v1.0.9

type ListMenu struct {
	BaseReq  `validate:"valid(T)"`
	ParentID int64 `form:"parent_id" validate:"min(0,invalid parent menu id)"`
}

type ListMoneyRec

type ListMoneyRec struct {
	BasePageReq `validate:"valid(T)"`
	MoneyType   int    `form:"money_type" validate:"gte(0,invalid money type)"`
	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)"`
	Status      int `form:"status" validate:"enum(0|1|2|3,invalid withdraw status)"`
}

type Login

type Login struct {
	Base     `validate:"valid(T)"`
	Name     string `form:"name" validate:"minlen(1,empty user name)"`
	Password string `form:"password" validate:"minlen(1,empty login password)"`
}

type RefreshMenu

type RefreshMenu struct {
	BaseReq `validate:"valid(T)"`
}

type SetAdminUserPwd

type SetAdminUserPwd struct {
	BaseReq     `validate:"valid(T)"`
	Id          int64  `form:"id" validate:"min(1,empty user id)"`
	NewPassword string `form:"new_password" validate:"minlen(1,empty new password)"`
}

type SetAdminUserRole

type SetAdminUserRole struct {
	BaseReq `validate:"valid(T)"`
	Id      int64 `form:"id" validate:"min(1,empty user id)"`
	RoleID  int64 `form:"role_id" validate:"min(1,empty role id)"`
}

type SetAdminUserStatus

type SetAdminUserStatus struct {
	BaseReq `validate:"valid(T)"`
	Id      int64 `form:"id" validate:"min(1,empty user id)"`
	Enabled bool  `form:"enabled"`
}

type SetConfigOdds added in v1.1.17

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.17

func (self *SetConfigOdds) Check() error

type SetConfigOther added in v1.1.17

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 SetGroupAdmin struct {
	BaseReq  `validate:"valid(T)"`
	GroupId  int64 `form:"group_id" validate:"lt(0,invalid group id)"`
	TgUserId int64 `form:"tg_user_id" validate:"gt(0,invalid tg user id)"`
	Admin    bool  `form:"admin"`
}

type SetGroupProxy added in v1.0.3

type SetGroupProxy struct {
	BaseReq  `validate:"valid(T)"`
	GroupId  int64 `form:"group_id" validate:"lt(0,invalid group id)"`
	TgUserId int64 `form:"tg_user_id" validate:"gt(0,invalid tg user id)"`
	Proxy    bool  `form:"proxy"`
}

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 SetRoleMenus struct {
	BaseReq    `validate:"valid(T)"`
	ID         int64   `form:"id" validate:"min(1,empty role id)"`
	ListMenuID []int64 `form:"list_menu_id" validate:"arr_minlen(1,empty menu id)"`
}

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 SetUserDailyWithdrawLimit struct {
	BaseReq            `validate:"valid(T)"`
	TgUserId           int64 `form:"tg_user_id" validate:"gt(0,invalid tg user id)"`
	DailyWithdrawLimit int64 `form:"daily_withdraw_limit" validate:"gt(1,invalid withdraw limit)"`
}

type SetVersion added in v1.1.24

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) Check

func (self *TimeRange) Check() error

type Token

type Token struct {
	TokenUserID   int64  `form:"-" json:"-"`
	TokenUserName string `form:"-" json:"-"`
}

Jump to

Keyboard shortcuts

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