-
Notifications
You must be signed in to change notification settings - Fork 0
/
handler.go
51 lines (39 loc) · 1.04 KB
/
handler.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
package user
import (
"github.com/YeHeng/go-web-api/internal/pkg/context"
)
var _ Handler = (*handler)(nil)
type handler struct {
}
type Handler interface {
i()
// ModifyPassword 修改密码
// @Tags API.admin
// @Router /api/admin/modify_password [patch]
ModifyPassword() context.HandlerFunc
// Detail 个人信息
// @Tags API.admin
// @Router /api/admin/info [get]
Detail() context.HandlerFunc
// ModifyPersonalInfo 修改个人信息
// @Tags API.admin
// @Router /api/admin/modify_personal_info [patch]
ModifyPersonalInfo() context.HandlerFunc
// Create 新增管理员
// @Tags API.admin
// @Router /api/admin [post]
Create() context.HandlerFunc
// List 管理员列表
// @Tags API.admin
// @Router /api/admin [get]
List() context.HandlerFunc
// Delete 删除管理员
// @Tags API.admin
// @Router /api/admin/{id} [delete]
Delete() context.HandlerFunc
// ResetPassword 重置密码
// @Tags API.admin
// @Router /api/admin/reset_password/{id} [patch]
ResetPassword() context.HandlerFunc
}
func (h *handler) i() {}