fix: create and get news
This commit is contained in:
@@ -1,12 +1,16 @@
|
||||
package tagdomain
|
||||
|
||||
import "time"
|
||||
|
||||
type TagReq struct {
|
||||
Code string `json:"code" validate:"required"`
|
||||
Name string `json:"name" validate:"required"`
|
||||
}
|
||||
|
||||
type Tag struct {
|
||||
ID string `json:"id" gorm:"primaryKey"`
|
||||
Code string `json:"code"`
|
||||
Name string `json:"name"`
|
||||
ID string `json:"id" gorm:"primaryKey"`
|
||||
Code string `json:"code"`
|
||||
Name string `json:"name"`
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
UpdatedAt time.Time `json:"updated_at"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user