19 lines
395 B
Go
Raw Normal View History

2025-03-01 21:20:51 +08:00
package categorydomain
2025-03-05 23:55:41 +08:00
import (
"time"
)
2025-03-01 21:20:51 +08:00
type Category struct {
2025-03-05 22:15:39 +08:00
ID string `json:"id" gorm:"primaryKey"`
Name string `json:"name"`
Code string `json:"code"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
2025-03-01 21:20:51 +08:00
}
type CategoryReq struct {
Name string `json:"name" validate:"required"`
Code string `json:"code" validate:"required"`
}