feat: 添加鉴权组件

This commit is contained in:
lixiangwuxian
2024-10-20 01:24:45 +08:00
parent 0efdd71c8a
commit b1fa836304
4 changed files with 72 additions and 2 deletions

6
auth/model.go Normal file
View File

@@ -0,0 +1,6 @@
package auth
type Auth struct {
Qqid string `json:"qqid" db:"qqid"`
Role int `json:"role" db:"role"`
}