feat: category routes

This commit is contained in:
ericprd
2025-03-01 21:20:51 +08:00
parent acd80480dd
commit bdf6dd131e
19 changed files with 368 additions and 52 deletions
+12
View File
@@ -0,0 +1,12 @@
package categorydomain
type Category struct {
ID string `json:"id"`
Name string `json:"name"`
Code string `json:"code"`
}
type CategoryReq struct {
Name string `json:"name" validate:"required"`
Code string `json:"code" validate:"required"`
}