BUG修复,返回结构统一
This commit is contained in:
13
server/models/category.go
Normal file
13
server/models/category.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package models
|
||||
|
||||
// Category 分类模型
|
||||
type Category struct {
|
||||
ID uint `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Slug string `json:"slug"`
|
||||
Description string `json:"description"`
|
||||
SortOrder uint `json:"sortOrder"`
|
||||
CreatedAt int64 `json:"createdAt"`
|
||||
UpdatedAt int64 `json:"updatedAt"`
|
||||
DeletedAt int64 `json:"deletedAt"`
|
||||
}
|
||||
Reference in New Issue
Block a user