Open gdegas opened 4 years ago
base.yaml
dosa: namePrefix: kiosk.grouprides
/entity/product.go
package entity import ( "time" "github.com/gofrs/uuid" ) type Product struct { UUID uuid.UUID `json:"uuid"` Name string `json:"name"` ImageURL string `json:"imageUrl"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` }
/entity/productdetail.go
package entity import ( "time" "github.com/gofrs/uuid" ) type ProductDetail struct { UUID uuid.UUID `json:"uuid"` ProductUUID uuid.UUID `json:"name"` CityID int32 `json:"cityID"` UsdRateAdditionalHourLow int32 `json:"UsdRateAdditionalHourLow"` UsdRateAdditionalHourHigh int32 `json:"UsdRateAdditionalHourHigh"` UsdRateBaseLow int32 `json:"UsdRateBaseLow"` Enabled bool `json:"enabled"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` }
dep ensure -add github.com/uber-go/dosa dep ensure -add github.com/gofrs/uuid
The rest of models are in scaffold 1-23 under /models
/models
Suggested ways to mitigate wrong scaffold
Delete repo way:
Port over all scaffoled folders under repo:
group-rides-api
TODO to replicate whats done
base.yaml
/entity/product.go
/entity/productdetail.go
The rest of models are in scaffold 1-23 under
/models