param

package
v0.0.0-...-a32abf6 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: Unlicense Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdjustBalance

type AdjustBalance struct {
	Amount int64 `json:"amount"       binding:"required"`
}

type AdminChangePassword

type AdminChangePassword struct {
	Password    string `json:"password"       binding:"required"`
	NewPassword string `json:"new_password"   binding:"required"`
}

type AdminChangeRole

type AdminChangeRole struct {
	RoleId int64 `json:"role_id"`
}

type AdminEdit

type AdminEdit struct {
	Username string `json:"username"  binding:"required"`
}

type AdminLogin

type AdminLogin struct {
	Username string `json:"username"  binding:"required"`
	Password string `json:"password"   binding:"required"`
}

type AdminRecords

type AdminRecords struct {
	Username string `form:"username"`
	Pagination
}

type AdminRegister

type AdminRegister struct {
	Username string `json:"username"  binding:"required"`
	Password string `json:"password"   binding:"required"`
}

type AdminUploadAvatar

type AdminUploadAvatar struct {
	Avatar string `json:"avatar"  binding:"required"`
}

type Avatar

type Avatar struct {
	FindId  string `form:"find_id"           binding:"required"`
	IsGroup bool   `form:"is_group"`
}

type ChangePassword

type ChangePassword struct {
	Password    string `json:"password"       binding:"required"`
	NewPassword string `json:"new_password"   binding:"required"`
}

type CheckRoute

type CheckRoute struct {
	Path   string `json:"path"`
	Method string `json:"method"`
}

type CreateBarrage

type CreateBarrage struct {
	Hash    string `json:"hash"    binding:"requeired"`
	Content string `json:"content" binding:"requeired"`
}

type CreateLiveRoom

type CreateLiveRoom struct {
	Name string `json:"name"`
}

type CreateMeeting

type CreateMeeting struct {
	Name string `json:"name"`
}

type FileRecords

type FileRecords struct {
	Pagination
}

type FileRunParams

type FileRunParams struct {
	Id int64 `json:"id" binding:"required"`
}

type FileUploadParams

type FileUploadParams struct {
	File     string `json:"file"        binding:"required"`
	FileName string `json:"file_name"   binding:"required"`
	FileType uint8  `json:"file_type"   `
}

type FriendsGroups

type FriendsGroups struct {
	IsAllFriends   bool     `json:"is_all_friends"`  // 是否所有好友
	Friends        []string `json:"friends"`         // 好友
	ExcludeFriends []string `json:"exclude_friends"` // 排除掉的好友(优先级高于选中的好友)
	IsAllGroups    bool     `json:"is_all_groups"`   // 是否全部组群
	Groups         []string `json:"groups"`          // 选中的群聊
	ExcludeGroups  string   `json:"exclude_groups"`  // 排除掉的群聊(优先级高于选中的群聊)
}

type GetBarrage

type GetBarrage struct {
	Hash string `form:"hash"    binding:"requeired"`
}

type Host

type Host struct {
	Pagination
}

type HostSave

type HostSave struct {
	Name        string `json:"name"         binding:"required"`        // 主机名称
	Host        string `json:"host"`                                   // 主机地址
	Username    string `json:"username"`                               // 账号
	Password    string `json:"password"`                               // 密码
	ConnectType int    `json:"connect_type" binding:"gte=0,lte=2"`     // 连接类型 0 http 1 https 2 ssh
	Port        int    `json:"port"         binding:"gte=0,lte=65535"` // 端口
	Comment     string `json:"comment"       `                         // 备注
}

type LiveRoom

type LiveRoom struct {
	Pagination
}

type LogDel

type LogDel struct {
	Ids string `form:"ids"`
}

type LogRecords

type LogRecords struct {
	Pagination
	Types string `form:"types"`
}

type Login

type Login struct {
	Username string `json:"username"  binding:"required"`
	Password string `json:"password"   binding:"required"`
}

type MeetingRecords

type MeetingRecords struct {
	Name   string `form:"name"`
	Status string `form:"status"`
	Pagination
}

type OssUpload

type OssUpload struct {
	File string `json:"file"`
}

type Pagination

type Pagination struct {
	PageIndex int    `form:"page_index"`
	PageSize  int    `form:"page_size"`
	Sort      bool   `form:"sort"`
	Order     string `form:"order"`
}

func (*Pagination) GetPageIndex

func (p *Pagination) GetPageIndex() int

func (*Pagination) GetPageSize

func (p *Pagination) GetPageSize() int

func (*Pagination) Offset

func (p *Pagination) Offset() int

func (*Pagination) OrderBy

func (p *Pagination) OrderBy() string

type PasswordParam

type PasswordParam struct {
	Password string `json:"password"`
}

type Permission

type Permission struct {
	Name     string  `json:"name"       binding:"required"` // 权限名称
	ParentId int     `json:"parent_id"`                     // 父节点id
	Key      string  `json:"key"`                           // 前端key
	RouteIds []int64 `json:"route_ids"`                     // 路由ids
}

type PermissionRecords

type PermissionRecords struct {
	Pagination
}

type PushRtmp

type PushRtmp struct {
	Name string `json:"name"`
}

type Register

type Register struct {
	Username string `json:"username"  binding:"required"`
	Password string `json:"password"   binding:"required"`
}

type ReplyBot

type ReplyBot struct {
	Pagination
}

type Role

type Role struct {
	Name string `json:"name"       binding:"required"` // 角色名称
}

type RolePermissionEdit

type RolePermissionEdit struct {
	PermissionIds []int64 `json:"permission_ids"`
}

type RoleRecords

type RoleRecords struct {
	Pagination
}

type Room

type Room struct {
	Id int64 `json:"id" binding:"required"`
}

type RouteEdit

type RouteEdit struct {
	Name string `json:"name"  binding:"required"`
}

type Rule

type Rule struct {
	Pagination
}

type SaveReplyBot

type SaveReplyBot struct {
	FriendsGroups
	Name        string  `json:"name"           binding:"required"`
	Description string  `json:"description"`
	RuleIds     []int64 `json:"rule_ids"       binding:"required"`
}

type SaveRule

type SaveRule struct {
	Name        string `json:"name"         binding:"required"`
	Key         string `json:"key"          binding:"required"`
	Description string `json:"description"`
	Reply       string `json:"reply"        binding:"required"`
}

type SaveTimerBot

type SaveTimerBot struct {
	FriendsGroups
	Name        string `json:"name"           binding:"required"`
	Msg         string `json:"msg"            binding:"required"` // 发送信息
	Spec        string `json:"spec"           binding:"required"` // 定时规则
	Times       int    `json:"times"`                             // 次数
	Description string `json:"description"`                       // 描述
}

type Socket

type Socket struct {
	Id string `uri:"id" binding:"required"`
}

type SocketInt

type SocketInt struct {
	Id int64 `uri:"id" binding:"required"`
}

type Task

type Task struct {
	Pagination
}

type TaskDelete

type TaskDelete struct {
	All bool    `form:"all"`
	Ids []int64 `form:"ids"`
}

type TaskLog

type TaskLog struct {
	Id int64 `form:"id"`
	Pagination
}

type TaskSave

type TaskSave struct {
	HostId     int64  `json:"host_id"       binding:"required"` // 主机id
	Name       string `json:"name"`                             // 任务名称
	Cmd        string `json:"cmd"`                              // 任务指令
	Spec       string `json:"spec"`                             // 执行时刻
	EffectTime int64  `json:"effect_time"   binding:"gte=0"`    // 生效时间
	ExpiryTime int64  `json:"expiry_time"   binding:"gte=0"`    // 失效时间
	Comment    string `json:"comment"`                          // 备注
}

type TimerBot

type TimerBot struct {
	Pagination
}

type UriAuthorization

type UriAuthorization struct {
	Authorization string `uri:"authorization"`
}

type UriId

type UriId struct {
	Id int64 `uri:"id" binding:"required"`
}

type UriStrId

type UriStrId struct {
	Id string `uri:"id" binding:"required"`
}

type UserEdit

type UserEdit struct {
	Username string `json:"username"  binding:"required"`
}

type UserRecords

type UserRecords struct {
	Username string `form:"username"`
	Pagination
}

type UserUploadAvatar

type UserUploadAvatar struct {
	Avatar string `json:"avatar"  binding:"required"`
}

Jump to

Keyboard shortcuts

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