req

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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 Base

type Base struct {
	RemoteIP string `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 DelAdminUser

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

type ListChatGroup

type ListChatGroup struct {
	BasePageReq `validate:"valid(T)"`
	Search      string `form:"search"`
}

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)"`
	TgUserId    int64 `form:"tg_user_id" validate:"gte(0,invalid tg user id)"`
}

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)"`
}

type ListOrder

type ListOrder struct {
	BasePageReq `validate:"valid(T)"`
	GroupId     int64 `form:"group_id" validate:"lte(0,invalid group id)"`
	TgUserId    int64 `form:"tg_user_id" validate:"gte(0,invalid tg user id)"`
}

type ListTgUser

type ListTgUser struct {
	BasePageReq `validate:"valid(T)"`
	Search      string `form:"search"`
}

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 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 SetGroupOdds

type SetGroupOdds 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)"`
	MapOdds map[string]float64 `form:"-"`
}

func (*SetGroupOdds) Check

func (self *SetGroupOdds) Check() error

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:"-"`
}

Jump to

Keyboard shortcuts

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