🎉初步完成用户
This commit is contained in:
18
http/vo/navigation.go
Normal file
18
http/vo/navigation.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package vo
|
||||
|
||||
// TypeItem
|
||||
// @description: 导航分类
|
||||
type TypeItem struct {
|
||||
ID string `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Icon string `json:"icon"`
|
||||
}
|
||||
|
||||
type NavigationItem struct {
|
||||
ID string `json:"id"`
|
||||
Title string `json:"title"`
|
||||
Url string `json:"url"`
|
||||
Icon string `json:"icon"`
|
||||
Desc string `json:"desc"`
|
||||
Enabled bool `json:"enabled"`
|
||||
}
|
25
http/vo/user.go
Normal file
25
http/vo/user.go
Normal file
@@ -0,0 +1,25 @@
|
||||
package vo
|
||||
|
||||
import "website-nav/model"
|
||||
|
||||
// UserItem
|
||||
// @description: 用户列表的数据
|
||||
type UserItem struct {
|
||||
Id string `json:"id"`
|
||||
Account string `json:"account"`
|
||||
Avatar string `json:"avatar"`
|
||||
Nickname string `json:"nickname"`
|
||||
Contact string `json:"contact"`
|
||||
CreatedAt model.JsonTime `json:"createdAt"`
|
||||
UpdatedAt model.JsonTime `json:"updatedAt"`
|
||||
}
|
||||
|
||||
// User
|
||||
// @description: 用户信息
|
||||
type User struct {
|
||||
Id string `json:"id"`
|
||||
Account string `json:"account"`
|
||||
Password string `json:"-"`
|
||||
Nickname string `json:"nickname"`
|
||||
Contact string `json:"contact"`
|
||||
}
|
Reference in New Issue
Block a user