Add: simple get tags and create tag

This commit is contained in:
2021-12-12 03:23:21 +08:00
parent b96daa07c6
commit 1bbcecfb2e
9 changed files with 360 additions and 8 deletions

View File

@@ -28,10 +28,16 @@ type User struct {
AvatarId int64 `json:"avatar_id"`
}
type Tag struct {
ID int64 `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
}
var (
RoleAnonymous = int64(0)
RoleAdmin = int64(1)
RoleUser = int64(2)
RoleAdmin = int64(1)
RoleUser = int64(2)
)
func (f *File) Path() (string, error) {