19 lines
426 B
Go
19 lines
426 B
Go
package models
|
|
|
|
// Tag 标签模型
|
|
type Tag struct {
|
|
ID uint `json:"id"`
|
|
Name string `json:"name"`
|
|
Slug string `json:"slug"`
|
|
CreatedAt int64 `json:"createdAt"`
|
|
UpdatedAt int64 `json:"updatedAt"`
|
|
DeletedAt int64 `json:"deletedAt"`
|
|
}
|
|
|
|
// PostTag 文章标签关联模型
|
|
type PostTag struct {
|
|
PostID string `json:"postId"`
|
|
TagID uint `json:"tagId"`
|
|
CreatedAt int64 `json:"createdAt"`
|
|
}
|