17 lines
372 B
Go
Raw Normal View History

2025-03-01 21:20:51 +08:00
package categorydomain
import "time"
2025-03-01 21:20:51 +08:00
type Category struct {
ID string `json:"id"`
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"`
}