Documentation
¶
Index ¶
- type AddressBook
- func (ct *AddressBook) BatchCreate(c *gin.Context)
- func (ct *AddressBook) BatchCreateFromPeers(c *gin.Context)
- func (ct *AddressBook) Create(c *gin.Context)
- func (ct *AddressBook) Delete(c *gin.Context)
- func (ct *AddressBook) Detail(c *gin.Context)
- func (ct *AddressBook) List(c *gin.Context)
- func (ct *AddressBook) ShareByWebClient(c *gin.Context)
- func (ct *AddressBook) Update(c *gin.Context)
- type AddressBookCollection
- type AddressBookCollectionRule
- func (abcr *AddressBookCollectionRule) CheckForm(t *model.AddressBookCollectionRule) (string, bool)
- func (abcr *AddressBookCollectionRule) Create(c *gin.Context)
- func (abcr *AddressBookCollectionRule) Delete(c *gin.Context)
- func (abcr *AddressBookCollectionRule) Detail(c *gin.Context)
- func (abcr *AddressBookCollectionRule) List(c *gin.Context)
- func (abcr *AddressBookCollectionRule) Update(c *gin.Context)
- type Audit
- type Captcha
- type Config
- type File
- type FileBack
- type Group
- type Login
- type LoginLimiter
- func (l *LoginLimiter) CleanupExpired()
- func (l *LoginLimiter) GenerateCaptcha(ip string) Captcha
- func (l *LoginLimiter) NeedsCaptcha(ip string) bool
- func (l *LoginLimiter) RecordFailure(ip string)
- func (l *LoginLimiter) RemoveCaptcha(ip string)
- func (l *LoginLimiter) RemoveRecord(ip string)
- func (l *LoginLimiter) VerifyCaptcha(ip, code string) bool
- type LoginLog
- type Oauth
- func (o *Oauth) BindConfirm(c *gin.Context)
- func (o *Oauth) Confirm(c *gin.Context)
- func (o *Oauth) Create(c *gin.Context)
- func (o *Oauth) Delete(c *gin.Context)
- func (o *Oauth) Detail(c *gin.Context)
- func (o *Oauth) Info(c *gin.Context)
- func (o *Oauth) List(c *gin.Context)
- func (o *Oauth) ToBind(c *gin.Context)
- func (o *Oauth) Unbind(c *gin.Context)
- func (o *Oauth) Update(c *gin.Context)
- type Peer
- type Rustdesk
- type RustdeskCmd
- type ShareRecord
- type Tag
- type User
- func (ct *User) ChangeCurPwd(c *gin.Context)
- func (ct *User) Create(c *gin.Context)
- func (ct *User) Current(c *gin.Context)
- func (ct *User) Delete(c *gin.Context)
- func (ct *User) Detail(c *gin.Context)
- func (ct *User) GroupUsers(c *gin.Context)
- func (ct *User) List(c *gin.Context)
- func (ct *User) MyOauth(c *gin.Context)
- func (ct *User) Register(c *gin.Context)
- func (ct *User) Update(c *gin.Context)
- func (ct *User) UpdatePassword(c *gin.Context)
- type UserToken
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddressBook ¶
type AddressBook struct { }
func (*AddressBook) BatchCreate ¶
func (ct *AddressBook) BatchCreate(c *gin.Context)
BatchCreate 批量创建地址簿 @Tags 地址簿 @Summary 批量创建地址簿 @Description 批量创建地址簿 @Accept json @Produce json @Param body body admin.AddressBookForm true "地址簿信息" @Success 200 {object} response.Response{data=model.AddressBook} @Failure 500 {object} response.Response @Router /admin/address_book/batchCreate [post] @Security token
func (*AddressBook) BatchCreateFromPeers ¶
func (ct *AddressBook) BatchCreateFromPeers(c *gin.Context)
func (*AddressBook) Create ¶
func (ct *AddressBook) Create(c *gin.Context)
Create 创建地址簿 @Tags 地址簿 @Summary 创建地址簿 @Description 创建地址簿 @Accept json @Produce json @Param body body admin.AddressBookForm true "地址簿信息" @Success 200 {object} response.Response{data=model.AddressBook} @Failure 500 {object} response.Response @Router /admin/address_book/create [post] @Security token
func (*AddressBook) Delete ¶
func (ct *AddressBook) Delete(c *gin.Context)
Delete 删除 @Tags 地址簿 @Summary 地址簿删除 @Description 地址簿删除 @Accept json @Produce json @Param body body admin.AddressBookForm true "地址簿信息" @Success 200 {object} response.Response @Failure 500 {object} response.Response @Router /admin/address_book/delete [post] @Security token
func (*AddressBook) Detail ¶
func (ct *AddressBook) Detail(c *gin.Context)
Detail 地址簿 @Tags 地址簿 @Summary 地址簿详情 @Description 地址簿详情 @Accept json @Produce json @Param id path int true "ID" @Success 200 {object} response.Response{data=model.AddressBook} @Failure 500 {object} response.Response @Router /admin/address_book/detail/{id} [get] @Security token
func (*AddressBook) List ¶
func (ct *AddressBook) List(c *gin.Context)
List 列表 @Tags 地址簿 @Summary 地址簿列表 @Description 地址簿列表 @Accept json @Produce json @Param page query int false "页码" @Param page_size query int false "页大小" @Param user_id query int false "用户id" @Param is_my query int false "是否是我的" @Success 200 {object} response.Response{data=model.AddressBookList} @Failure 500 {object} response.Response @Router /admin/address_book/list [get] @Security token
func (*AddressBook) ShareByWebClient ¶
func (ct *AddressBook) ShareByWebClient(c *gin.Context)
ShareByWebClient @Tags 地址簿 @Summary 地址簿分享 @Description 地址簿分享 @Accept json @Produce json @Param body body admin.ShareByWebClientForm true "地址簿信息" @Success 200 {object} response.Response @Failure 500 {object} response.Response @Router /admin/address_book/share [post] @Security token
func (*AddressBook) Update ¶
func (ct *AddressBook) Update(c *gin.Context)
Update 编辑 @Tags 地址簿 @Summary 地址簿编辑 @Description 地址簿编辑 @Accept json @Produce json @Param body body admin.AddressBookForm true "地址簿信息" @Success 200 {object} response.Response{data=model.AddressBook} @Failure 500 {object} response.Response @Router /admin/address_book/update [post] @Security token
type AddressBookCollection ¶
type AddressBookCollection struct { }
func (*AddressBookCollection) Create ¶
func (abc *AddressBookCollection) Create(c *gin.Context)
Create 创建地址簿名称 @Tags 地址簿名称 @Summary 创建地址簿名称 @Description 创建地址簿名称 @Accept json @Produce json @Param body body model.AddressBookCollection true "地址簿名称信息" @Success 200 {object} response.Response{data=model.AddressBookCollection} @Failure 500 {object} response.Response @Router /admin/address_book_collection/create [post] @Security token
func (*AddressBookCollection) Delete ¶
func (abc *AddressBookCollection) Delete(c *gin.Context)
Delete 删除 @Tags 地址簿名称 @Summary 地址簿名称删除 @Description 地址簿名称删除 @Accept json @Produce json @Param body body model.AddressBookCollection true "地址簿名称信息" @Success 200 {object} response.Response @Failure 500 {object} response.Response @Router /admin/address_book_collection/delete [post] @Security token
func (*AddressBookCollection) Detail ¶
func (abc *AddressBookCollection) Detail(c *gin.Context)
Detail 地址簿名称 @Tags 地址簿名称 @Summary 地址簿名称详情 @Description 地址簿名称详情 @Accept json @Produce json @Param id path int true "ID" @Success 200 {object} response.Response{data=model.AddressBookCollection} @Failure 500 {object} response.Response @Router /admin/address_book_collection/detail/{id} [get] @Security token
func (*AddressBookCollection) List ¶
func (abc *AddressBookCollection) List(c *gin.Context)
List 列表 @Tags 地址簿名称 @Summary 地址簿名称列表 @Description 地址簿名称列表 @Accept json @Produce json @Param page query int false "页码" @Param page_size query int false "页大小" @Param is_my query int false "是否是我的" @Param user_id query int false "用户id" @Success 200 {object} response.Response{data=model.AddressBookCollectionList} @Failure 500 {object} response.Response @Router /admin/address_book_collection/list [get] @Security token
func (*AddressBookCollection) Update ¶
func (abc *AddressBookCollection) Update(c *gin.Context)
Update 编辑 @Tags 地址簿名称 @Summary 地址簿名称编辑 @Description 地址簿名称编辑 @Accept json @Produce json @Param body body model.AddressBookCollection true "地址簿名称信息" @Success 200 {object} response.Response{data=model.AddressBookCollection} @Failure 500 {object} response.Response @Router /admin/address_book_collection/update [post] @Security token
type AddressBookCollectionRule ¶
type AddressBookCollectionRule struct { }
func (*AddressBookCollectionRule) CheckForm ¶
func (abcr *AddressBookCollectionRule) CheckForm(t *model.AddressBookCollectionRule) (string, bool)
func (*AddressBookCollectionRule) Create ¶
func (abcr *AddressBookCollectionRule) Create(c *gin.Context)
Create 创建地址簿规则 @Tags 地址簿规则 @Summary 创建地址簿规则 @Description 创建地址簿规则 @Accept json @Produce json @Param body body model.AddressBookCollectionRule true "地址簿规则信息" @Success 200 {object} response.Response{data=model.AddressBookCollection} @Failure 500 {object} response.Response @Router /admin/address_book_collection_rule/create [post] @Security token
func (*AddressBookCollectionRule) Delete ¶
func (abcr *AddressBookCollectionRule) Delete(c *gin.Context)
Delete 删除 @Tags 地址簿规则 @Summary 地址簿规则删除 @Description 地址簿规则删除 @Accept json @Produce json @Param body body model.AddressBookCollectionRule true "地址簿规则信息" @Success 200 {object} response.Response @Failure 500 {object} response.Response @Router /admin/address_book_collection_rule/delete [post] @Security token
func (*AddressBookCollectionRule) Detail ¶
func (abcr *AddressBookCollectionRule) Detail(c *gin.Context)
Detail 地址簿规则 @Tags 地址簿规则 @Summary 地址簿规则详情 @Description 地址簿规则详情 @Accept json @Produce json @Param id path int true "ID" @Success 200 {object} response.Response{data=model.AddressBookCollectionRule} @Failure 500 {object} response.Response @Router /admin/address_book_collection_rule/detail/{id} [get] @Security token
func (*AddressBookCollectionRule) List ¶
func (abcr *AddressBookCollectionRule) List(c *gin.Context)
List 列表 @Tags 地址簿规则 @Summary 地址簿规则列表 @Description 地址簿规则列表 @Accept json @Produce json @Param page query int false "页码" @Param page_size query int false "页大小" @Param is_my query int false "是否是我的" @Param user_id query int false "用户id" @Param collection_id query int false "地址簿集合id" @Success 200 {object} response.Response{data=model.AddressBookCollectionList} @Failure 500 {object} response.Response @Router /admin/address_book_collection_rule/list [get] @Security token
func (*AddressBookCollectionRule) Update ¶
func (abcr *AddressBookCollectionRule) Update(c *gin.Context)
Update 编辑 @Tags 地址簿规则 @Summary 地址簿规则编辑 @Description 地址簿规则编辑 @Accept json @Produce json @Param body body model.AddressBookCollectionRule true "地址簿规则信息" @Success 200 {object} response.Response{data=model.AddressBookCollection} @Failure 500 {object} response.Response @Router /admin/address_book_collection_rule/update [post] @Security token
type Audit ¶
type Audit struct { }
func (*Audit) BatchConnDelete ¶
BatchConnDelete 删除 @Tags 链接日志 @Summary 链接日志批量删除 @Description 链接日志批量删除 @Accept json @Produce json @Param body body admin.AuditConnLogIds true "链接日志" @Success 200 {object} response.Response @Failure 500 {object} response.Response @Router /admin/audit_conn/batchDelete [post] @Security token
func (*Audit) BatchFileDelete ¶
BatchFileDelete 删除 @Tags 文件日志 @Summary 文件日志批量删除 @Description 文件日志批量删除 @Accept json @Produce json @Param body body admin.AuditFileLogIds true "文件日志" @Success 200 {object} response.Response @Failure 500 {object} response.Response @Router /admin/audit_file/batchDelete [post] @Security token
func (*Audit) ConnDelete ¶
ConnDelete 删除 @Tags 链接日志 @Summary 链接日志删除 @Description 链接日志删除 @Accept json @Produce json @Param body body model.AuditConn true "链接日志信息" @Success 200 {object} response.Response @Failure 500 {object} response.Response @Router /admin/audit_conn/delete [post] @Security token
func (*Audit) ConnList ¶
ConnList 列表 @Tags 链接日志 @Summary 链接日志列表 @Description 链接日志列表 @Accept json @Produce json @Param page query int false "页码" @Param page_size query int false "页大小" @Param peer_id query int false "目标设备" @Param from_peer query int false "来源设备" @Success 200 {object} response.Response{data=model.AuditConnList} @Failure 500 {object} response.Response @Router /admin/audit_conn/list [get] @Security token
func (*Audit) FileDelete ¶
FileDelete 删除 @Tags 文件日志 @Summary 文件日志删除 @Description 文件日志删除 @Accept json @Produce json @Param body body model.AuditFile true "文件日志信息" @Success 200 {object} response.Response @Failure 500 {object} response.Response @Router /admin/audit_file/delete [post] @Security token
func (*Audit) FileList ¶
FileList 列表 @Tags 文件日志 @Summary 文件日志列表 @Description 文件日志列表 @Accept json @Produce json @Param page query int false "页码" @Param page_size query int false "页大小" @Param peer_id query int false "目标设备" @Param from_peer query int false "来源设备" @Success 200 {object} response.Response{data=model.AuditFileList} @Failure 500 {object} response.Response @Router /admin/audit_file/list [get] @Security token
type Captcha ¶
type Captcha struct { Id string `json:"id"` // 验证码 ID B64 string `json:"b64"` // base64 验证码 Code string `json:"-"` // 验证码内容 ExpiresAt time.Time `json:"-"` // 过期时间 }
Captcha 验证码结构
type Config ¶
type Config struct { }
func (*Config) AdminConfig ¶
AdminConfig ADMIN服务配置 @Tags ADMIN @Summary ADMIN服务配置 @Description ADMIN服务配置 @Accept json @Produce json @Success 200 {object} response.Response @Failure 500 {object} response.Response @Router /admin/config/admin [get] @Security token
func (*Config) AppConfig ¶
AppConfig APP服务配置 @Tags ADMIN @Summary APP服务配置 @Description APP服务配置 @Accept json @Produce json @Success 200 {object} response.Response @Failure 500 {object} response.Response @Router /admin/config/app [get] @Security token
func (*Config) ServerConfig ¶
ServerConfig RUSTDESK服务配置 @Tags ADMIN @Summary RUSTDESK服务配置 @Description 服务配置,给webclient提供api-server @Accept json @Produce json @Success 200 {object} response.Response @Failure 500 {object} response.Response @Router /admin/config/server [get] @Security token
type File ¶
type File struct { }
func (*File) OssToken ¶
OssToken 文件 @Tags 文件 @Summary 获取ossToken @Description 获取ossToken @Accept json @Produce json @Success 200 {object} response.Response @Failure 500 {object} response.Response @Router /admin/file/oss_token [get] @Security token
type FileBack ¶
type FileBack struct { upload.CallbackBaseForm Url string `json:"url"` }
type Group ¶
type Group struct { }
func (*Group) Create ¶
Create 创建群组 @Tags 群组 @Summary 创建群组 @Description 创建群组 @Accept json @Produce json @Param body body admin.GroupForm true "群组信息" @Success 200 {object} response.Response{data=model.Group} @Failure 500 {object} response.Response @Router /admin/group/create [post] @Security token
func (*Group) Delete ¶
Delete 删除 @Tags 群组 @Summary 群组删除 @Description 群组删除 @Accept json @Produce json @Param body body admin.GroupForm true "群组信息" @Success 200 {object} response.Response @Failure 500 {object} response.Response @Router /admin/group/delete [post] @Security token
func (*Group) Detail ¶
Detail 群组 @Tags 群组 @Summary 群组详情 @Description 群组详情 @Accept json @Produce json @Param id path int true "ID" @Success 200 {object} response.Response{data=model.Group} @Failure 500 {object} response.Response @Router /admin/group/detail/{id} [get] @Security token
func (*Group) List ¶
List 列表 @Tags 群组 @Summary 群组列表 @Description 群组列表 @Accept json @Produce json @Param page query int false "页码" @Param page_size query int false "页大小" @Success 200 {object} response.Response{data=model.GroupList} @Failure 500 {object} response.Response @Router /admin/group/list [get] @Security token
type Login ¶
type Login struct { }
func (*Login) Login ¶
Login 登录 @Tags 登录 @Summary 登录 @Description 登录 @Accept json @Produce json @Param body body admin.Login true "登录信息" @Success 200 {object} response.Response{data=adResp.LoginPayload} @Failure 500 {object} response.Response @Router /admin/login [post] @Security token
func (*Login) LoginOptions ¶
LoginOptions @Tags 登录 @Summary 登录选项 @Description 登录选项 @Accept json @Produce json @Success 200 {object} []string @Failure 500 {object} response.ErrorResponse @Router /admin/login-options [post]
func (*Login) Logout ¶
Logout 登出 @Tags 登录 @Summary 登出 @Description 登出 @Accept json @Produce json @Success 200 {object} response.Response @Failure 500 {object} response.Response @Router /admin/logout [post]
func (*Login) OidcAuth ¶
OidcAuth @Tags Oauth @Summary OidcAuth @Description OidcAuth @Accept json @Produce json @Router /admin/oidc/auth [post]
func (*Login) OidcAuthQuery ¶
OidcAuthQuery @Tags Oauth @Summary OidcAuthQuery @Description OidcAuthQuery @Accept json @Produce json @Success 200 {object} response.Response{data=adResp.LoginPayload} @Failure 500 {object} response.Response @Router /admin/oidc/auth-query [get]
type LoginLimiter ¶
type LoginLimiter struct {
// contains filtered or unexported fields
}
func NewLoginLimiter ¶
func NewLoginLimiter(threshold int, expiry time.Duration) *LoginLimiter
func (*LoginLimiter) CleanupExpired ¶
func (l *LoginLimiter) CleanupExpired()
CleanupExpired 清理过期的记录
func (*LoginLimiter) GenerateCaptcha ¶
func (l *LoginLimiter) GenerateCaptcha(ip string) Captcha
GenerateCaptcha 为指定 IP 生成验证码
func (*LoginLimiter) NeedsCaptcha ¶
func (l *LoginLimiter) NeedsCaptcha(ip string) bool
NeedsCaptcha 检查是否需要验证码
func (*LoginLimiter) RecordFailure ¶
func (l *LoginLimiter) RecordFailure(ip string)
RecordFailure 记录登录失败
func (*LoginLimiter) RemoveCaptcha ¶
func (l *LoginLimiter) RemoveCaptcha(ip string)
RemoveCaptcha 移除指定 IP 的验证码
func (*LoginLimiter) RemoveRecord ¶
func (l *LoginLimiter) RemoveRecord(ip string)
func (*LoginLimiter) VerifyCaptcha ¶
func (l *LoginLimiter) VerifyCaptcha(ip, code string) bool
VerifyCaptcha 验证指定 IP 的验证码
type LoginLog ¶
type LoginLog struct { }
func (*LoginLog) BatchDelete ¶
BatchDelete 删除 @Tags 登录日志 @Summary 登录日志批量删除 @Description 登录日志批量删除 @Accept json @Produce json @Param body body admin.LoginLogIds true "登录日志" @Success 200 {object} response.Response @Failure 500 {object} response.Response @Router /admin/login_log/batchDelete [post] @Security token
func (*LoginLog) Delete ¶
Delete 删除 @Tags 登录日志 @Summary 登录日志删除 @Description 登录日志删除 @Accept json @Produce json @Param body body model.LoginLog true "登录日志信息" @Success 200 {object} response.Response @Failure 500 {object} response.Response @Router /admin/login_log/delete [post] @Security token
func (*LoginLog) Detail ¶
Detail 登录日志 @Tags 登录日志 @Summary 登录日志详情 @Description 登录日志详情 @Accept json @Produce json @Param id path int true "ID" @Success 200 {object} response.Response{data=model.LoginLog} @Failure 500 {object} response.Response @Router /admin/login_log/detail/{id} [get] @Security token
func (*LoginLog) List ¶
List 列表 @Tags 登录日志 @Summary 登录日志列表 @Description 登录日志列表 @Accept json @Produce json @Param page query int false "页码" @Param page_size query int false "页大小" @Param user_id query int false "用户ID" @Success 200 {object} response.Response{data=model.LoginLogList} @Failure 500 {object} response.Response @Router /admin/login_log/list [get] @Security token
type Oauth ¶
type Oauth struct { }
func (*Oauth) BindConfirm ¶
func (*Oauth) Create ¶
Create 创建Oauth @Tags Oauth @Summary 创建Oauth @Description 创建Oauth @Accept json @Produce json @Param body body admin.OauthForm true "Oauth信息" @Success 200 {object} response.Response{data=model.Oauth} @Failure 500 {object} response.Response @Router /admin/oauth/create [post] @Security token
func (*Oauth) Delete ¶
Delete 删除 @Tags Oauth @Summary Oauth删除 @Description Oauth删除 @Accept json @Produce json @Param body body admin.OauthForm true "Oauth信息" @Success 200 {object} response.Response @Failure 500 {object} response.Response @Router /admin/oauth/delete [post] @Security token
func (*Oauth) Detail ¶
Detail Oauth @Tags Oauth @Summary Oauth详情 @Description Oauth详情 @Accept json @Produce json @Param id path int true "ID" @Success 200 {object} response.Response{data=model.Oauth} @Failure 500 {object} response.Response @Router /admin/oauth/detail/{id} [get] @Security token
func (*Oauth) List ¶
List 列表 @Tags Oauth @Summary Oauth列表 @Description Oauth列表 @Accept json @Produce json @Param page query int false "页码" @Param page_size query int false "页大小" @Success 200 {object} response.Response{data=model.OauthList} @Failure 500 {object} response.Response @Router /admin/oauth/list [get] @Security token
func (*Oauth) Update ¶
Update 编辑 @Tags Oauth @Summary Oauth编辑 @Description Oauth编辑 @Accept json @Produce json @Param body body admin.OauthForm true "Oauth信息" @Success 200 {object} response.Response{data=model.OauthList} @Failure 500 {object} response.Response @Router /admin/oauth/update [post] @Security token
type Peer ¶
type Peer struct { }
func (*Peer) BatchDelete ¶
BatchDelete 批量删除 @Tags 设备 @Summary 批量设备删除 @Description 批量设备删除 @Accept json @Produce json @Param body body admin.PeerBatchDeleteForm true "设备id" @Success 200 {object} response.Response @Failure 500 {object} response.Response @Router /admin/peer/batchDelete [post] @Security token
func (*Peer) Create ¶
Create 创建设备 @Tags 设备 @Summary 创建设备 @Description 创建设备 @Accept json @Produce json @Param body body admin.PeerForm true "设备信息" @Success 200 {object} response.Response{data=model.Peer} @Failure 500 {object} response.Response @Router /admin/peer/create [post] @Security token
func (*Peer) Delete ¶
Delete 删除 @Tags 设备 @Summary 设备删除 @Description 设备删除 @Accept json @Produce json @Param body body admin.PeerForm true "设备信息" @Success 200 {object} response.Response @Failure 500 {object} response.Response @Router /admin/peer/delete [post] @Security token
func (*Peer) Detail ¶
Detail 设备 @Tags 设备 @Summary 设备详情 @Description 设备详情 @Accept json @Produce json @Param id path int true "ID" @Success 200 {object} response.Response{data=model.Peer} @Failure 500 {object} response.Response @Router /admin/peer/detail/{id} [get] @Security token
func (*Peer) List ¶
List 列表 @Tags 设备 @Summary 设备列表 @Description 设备列表 @Accept json @Produce json @Param page query int false "页码" @Param page_size query int false "页大小" @Param time_ago query int false "时间" @Param id query string false "ID" @Param hostname query string false "主机名" @Param uuids query string false "uuids 用逗号分隔" @Success 200 {object} response.Response{data=model.PeerList} @Failure 500 {object} response.Response @Router /admin/peer/list [get] @Security token
func (*Peer) SimpleData ¶
type RustdeskCmd ¶
type ShareRecord ¶
type ShareRecord struct { }
func (*ShareRecord) BatchDelete ¶
func (sr *ShareRecord) BatchDelete(c *gin.Context)
BatchDelete 批量删除 @Tags 分享记录 @Summary 批量分享记录 @Description 批量分享记录 @Accept json @Produce json @Param body body admin.PeerShareRecordBatchDeleteForm true "id" @Success 200 {object} response.Response @Failure 500 {object} response.Response @Router /admin/share_record/batchDelete [post] @Security token
func (*ShareRecord) Delete ¶
func (sr *ShareRecord) Delete(c *gin.Context)
Delete 删除 @Tags 分享记录 @Summary 分享记录删除 @Description 分享记录删除 @Accept json @Produce json @Param body body admin.ShareRecordForm true "分享记录信息" @Success 200 {object} response.Response @Failure 500 {object} response.Response @Router /admin/share_record/delete [post] @Security token
func (*ShareRecord) List ¶
func (sr *ShareRecord) List(c *gin.Context)
List 列表 @Tags 分享记录 @Summary 分享记录列表 @Description 分享记录列表 @Accept json @Produce json @Param user_id query int false "用户ID" @Param page query int false "页码" @Param page_size query int false "页大小" @Success 200 {object} response.Response @Failure 500 {object} response.Response @Router /admin/share_record/list [get] @Security token
type Tag ¶
type Tag struct { }
func (*Tag) Create ¶
Create 创建标签 @Tags 标签 @Summary 创建标签 @Description 创建标签 @Accept json @Produce json @Param body body admin.TagForm true "标签信息" @Success 200 {object} response.Response{data=model.Tag} @Failure 500 {object} response.Response @Router /admin/tag/create [post] @Security token
func (*Tag) Delete ¶
Delete 删除 @Tags 标签 @Summary 标签删除 @Description 标签删除 @Accept json @Produce json @Param body body admin.TagForm true "标签信息" @Success 200 {object} response.Response @Failure 500 {object} response.Response @Router /admin/tag/delete [post] @Security token
func (*Tag) Detail ¶
Detail 标签 @Tags 标签 @Summary 标签详情 @Description 标签详情 @Accept json @Produce json @Param id path int true "ID" @Success 200 {object} response.Response{data=model.Tag} @Failure 500 {object} response.Response @Router /admin/tag/detail/{id} [get] @Security token
func (*Tag) List ¶
List 列表 @Tags 标签 @Summary 标签列表 @Description 标签列表 @Accept json @Produce json @Param page query int false "页码" @Param page_size query int false "页大小" @Param is_my query int false "是否是我的" @Param user_id query int false "用户id" @Success 200 {object} response.Response{data=model.TagList} @Failure 500 {object} response.Response @Router /admin/tag/list [get] @Security token
type User ¶
type User struct { }
func (*User) ChangeCurPwd ¶
ChangeCurPwd 修改当前用户密码 @Tags 用户 @Summary 修改当前用户密码 @Description 修改当前用户密码 @Accept json @Produce json @Param body body admin.ChangeCurPasswordForm true "用户信息" @Success 200 {object} response.Response @Failure 500 {object} response.Response @Router /admin/user/changeCurPwd [post] @Security token
func (*User) Create ¶
Create 管理员 @Tags 用户 @Summary 创建管理员 @Description 创建管理员 @Accept json @Produce json @Param body body admin.UserForm true "管理员信息" @Success 200 {object} response.Response{data=model.User} @Failure 500 {object} response.Response @Router /admin/user/create [post] @Security token
func (*User) Current ¶
Current 当前用户 @Tags 用户 @Summary 当前用户 @Description 当前用户 @Accept json @Produce json @Success 200 {object} response.Response{data=adResp.LoginPayload} @Failure 500 {object} response.Response @Router /admin/user/current [get] @Security token
func (*User) Delete ¶
Delete 删除 @Tags 用户 @Summary 管理员删除 @Description 管理员编删除 @Accept json @Produce json @Param body body admin.UserForm true "用户信息" @Success 200 {object} response.Response @Failure 500 {object} response.Response @Router /admin/user/delete [post] @Security token
func (*User) Detail ¶
Detail 管理员 @Tags 用户 @Summary 管理员详情 @Description 管理员详情 @Accept json @Produce json @Param id path int true "ID" @Success 200 {object} response.Response{data=model.User} @Failure 500 {object} response.Response @Router /admin/user/detail/{id} [get] @Security token
func (*User) List ¶
List 列表 @Tags 用户 @Summary 管理员列表 @Description 管理员列表 @Accept json @Produce json @Param page query int false "页码" @Param page_size query int false "页大小" @Param username query int false "账户" @Success 200 {object} response.Response{data=model.UserList} @Failure 500 {object} response.Response @Router /admin/user/list [get] @Security token
func (*User) MyOauth ¶
MyOauth @Tags 用户 @Summary 我的授权 @Description 我的授权 @Accept json @Produce json @Success 200 {object} response.Response{data=[]adResp.UserOauthItem} @Failure 500 {object} response.Response @Router /admin/user/myOauth [get] @Security token
func (*User) Update ¶
Update 编辑 @Tags 用户 @Summary 管理员编辑 @Description 管理员编辑 @Accept json @Produce json @Param body body admin.UserForm true "用户信息" @Success 200 {object} response.Response{data=model.User} @Failure 500 {object} response.Response @Router /admin/user/update [post] @Security token
func (*User) UpdatePassword ¶
UpdatePassword 修改密码 @Tags 用户 @Summary 修改密码 @Description 修改密码 @Accept json @Produce json @Param body body admin.UserPasswordForm true "用户信息" @Success 200 {object} response.Response @Failure 500 {object} response.Response @Router /admin/user/updatePassword [post] @Security token
type UserToken ¶
type UserToken struct { }
func (*UserToken) BatchDelete ¶
BatchDelete 批量删除 @Tags 登录凭证 @Summary 登录凭证批量删除 @Description 登录凭证批量删除 @Accept json @Produce json @Param body body admin.UserTokenBatchDeleteForm true "登录凭证信息" @Success 200 {object} response.Response @Failure 500 {object} response.Response @Router /admin/user_token/batchDelete [post] @Security token
func (*UserToken) Delete ¶
Delete 删除 @Tags 登录凭证 @Summary 登录凭证删除 @Description 登录凭证删除 @Accept json @Produce json @Param body body model.UserToken true "登录凭证信息" @Success 200 {object} response.Response @Failure 500 {object} response.Response @Router /admin/user_token/delete [post] @Security token
func (*UserToken) List ¶
List 列表 @Tags 登录凭证 @Summary 登录凭证列表 @Description 登录凭证列表 @Accept json @Produce json @Param page query int false "页码" @Param page_size query int false "页大小" @Param user_id query int false "用户ID" @Success 200 {object} response.Response{data=model.UserTokenList} @Failure 500 {object} response.Response @Router /admin/user_token/list [get] @Security token