Documentation ¶
Index ¶
- type AdjustBalance
- type AdminChangePassword
- type AdminChangeRole
- type AdminEdit
- type AdminLogin
- type AdminRecords
- type AdminRegister
- type AdminUploadAvatar
- type Avatar
- type ChangePassword
- type CheckRoute
- type CreateBarrage
- type CreateLiveRoom
- type CreateMeeting
- type FileRecords
- type FileRunParams
- type FileUploadParams
- type FriendsGroups
- type GetBarrage
- type Host
- type HostSave
- type LiveRoom
- type LogDel
- type LogRecords
- type Login
- type MeetingRecords
- type OssUpload
- type Pagination
- type PasswordParam
- type Permission
- type PermissionRecords
- type PushRtmp
- type Register
- type ReplyBot
- type Role
- type RolePermissionEdit
- type RoleRecords
- type Room
- type RouteEdit
- type Rule
- type SaveReplyBot
- type SaveRule
- type SaveTimerBot
- type Socket
- type SocketInt
- type Task
- type TaskDelete
- type TaskLog
- type TaskSave
- type TimerBot
- type UriAuthorization
- type UriId
- type UriStrId
- type UserEdit
- type UserRecords
- type UserUploadAvatar
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 AdminChangeRole ¶
type AdminChangeRole struct {
RoleId int64 `json:"role_id"`
}
type AdminLogin ¶
type AdminRecords ¶
type AdminRecords struct { Username string `form:"username"` Pagination }
type AdminRegister ¶
type AdminUploadAvatar ¶
type AdminUploadAvatar struct {
Avatar string `json:"avatar" binding:"required"`
}
type ChangePassword ¶
type CheckRoute ¶
type CreateBarrage ¶
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 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 LogRecords ¶
type LogRecords struct { Pagination Types string `form:"types"` }
type MeetingRecords ¶
type MeetingRecords struct { Name string `form:"name"` Status string `form:"status"` Pagination }
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 PermissionRecords ¶
type PermissionRecords struct {
Pagination
}
type ReplyBot ¶
type ReplyBot struct {
Pagination
}
type RolePermissionEdit ¶
type RolePermissionEdit struct {
PermissionIds []int64 `json:"permission_ids"`
}
type RoleRecords ¶
type RoleRecords struct {
Pagination
}
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 SaveTimerBot ¶
type Task ¶
type Task struct {
Pagination
}
type TaskDelete ¶
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 UserRecords ¶
type UserRecords struct { Username string `form:"username"` Pagination }
type UserUploadAvatar ¶
type UserUploadAvatar struct {
Avatar string `json:"avatar" binding:"required"`
}
Click to show internal directories.
Click to hide internal directories.