fix: create and get news

This commit is contained in:
ericprd
2025-03-05 22:15:39 +08:00
parent dd109c8aa0
commit 5c699dfa53
22 changed files with 46 additions and 159 deletions
+7 -3
View File
@@ -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"`
}