chores: refactor struct and structure project
This commit is contained in:
@@ -1,9 +1,13 @@
|
||||
package categorydomain
|
||||
|
||||
import "time"
|
||||
|
||||
type Category struct {
|
||||
ID string `json:"id" gorm:"primaryKey"`
|
||||
Name string `json:"name"`
|
||||
Code string `json:"code"`
|
||||
ID string `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Code string `json:"code"`
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
UpdatedAt time.Time `json:"updated_at"`
|
||||
}
|
||||
|
||||
type CategoryReq struct {
|
||||
|
||||
Reference in New Issue
Block a user