Documentation
¶
Overview ¶
Copyright 2019 Axetroy. All rights reserved. MIT license.
Copyright 2019 Axetroy. All rights reserved. MIT license.
Copyright 2019 Axetroy. All rights reserved. MIT license.
Copyright 2019 Axetroy. All rights reserved. MIT license.
Copyright 2019 Axetroy. All rights reserved. MIT license.
Copyright 2019 Axetroy. All rights reserved. MIT license.
Copyright 2019 Axetroy. All rights reserved. MIT license.
Index ¶
- func CreateAdmin(input CreateAdminParams, isSuper bool) (res schema.Response)
- func CreateAdminRouter(context *gin.Context)
- func DeleteAdminByAccount(account string)
- func DeleteAdminById(context controller.Context, adminId string) (res schema.Response)
- func DeleteAdminByIdRouter(context *gin.Context)
- func GetAccession() (res schema.Response)
- func GetAccessionRouter(context *gin.Context)
- func GetAdminInfo(context controller.Context) (res schema.Response)
- func GetAdminInfoById(context controller.Context, adminId string) (res schema.Response)
- func GetAdminInfoByIdRouter(context *gin.Context)
- func GetAdminInfoRouter(context *gin.Context)
- func GetList(context controller.Context, input Query) (res schema.List)
- func GetListRouter(context *gin.Context)
- func Login(input SignInParams) (res schema.Response)
- func LoginRouter(context *gin.Context)
- func Update(context controller.Context, adminId string, input UpdateParams) (res schema.Response)
- func UpdatePassword(context controller.Context, input UpdatePasswordParams) (res schema.Response)
- func UpdatePasswordRouter(context *gin.Context)
- func UpdateRouter(context *gin.Context)
- type CreateAdminParams
- type Query
- type SignInParams
- type UpdateParams
- type UpdatePasswordParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAdmin ¶
func CreateAdmin(input CreateAdminParams, isSuper bool) (res schema.Response)
创建管理员
func CreateAdminRouter ¶
func DeleteAdminByAccount ¶
func DeleteAdminByAccount(account string)
func DeleteAdminById ¶
func DeleteAdminById(context controller.Context, adminId string) (res schema.Response)
TODO: 添加测试用例
func DeleteAdminByIdRouter ¶
func GetAccession ¶
func GetAccessionRouter ¶
func GetAdminInfo ¶
func GetAdminInfo(context controller.Context) (res schema.Response)
func GetAdminInfoById ¶
func GetAdminInfoById(context controller.Context, adminId string) (res schema.Response)
func GetAdminInfoByIdRouter ¶
func GetAdminInfoRouter ¶
func GetListRouter ¶
func Login ¶
func Login(input SignInParams) (res schema.Response)
func LoginRouter ¶
func Update ¶
func Update(context controller.Context, adminId string, input UpdateParams) (res schema.Response)
func UpdatePassword ¶
func UpdatePassword(context controller.Context, input UpdatePasswordParams) (res schema.Response)
func UpdatePasswordRouter ¶
func UpdateRouter ¶
Types ¶
type CreateAdminParams ¶
type SignInParams ¶
type UpdateParams ¶
type UpdateParams struct {
Status *model.AdminStatus `json:"status"` // 管理员状态
Name *string `json:"name"` // 管理员名字
Accession *[]string `json:"accession"` // 管理员的权限
}
type UpdatePasswordParams ¶
Click to show internal directories.
Click to hide internal directories.