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
+1 -1
View File
@@ -3,7 +3,7 @@ package categorydomain
import "time"
type Category struct {
ID string `json:"id"`
ID string `json:"id" gorm:"primaryKey"`
Name string `json:"name"`
Code string `json:"code"`
CreatedAt time.Time `json:"created_at"`