Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewCommunityUseCase, NewShopUseCase)
Functions ¶
This section is empty.
Types ¶
type CommListResp ¶
type CommListResp struct {
List interface{}
}
type Community ¶
type Community struct { ID int `db:"id"` // Comment: 小区名字 Name string `db:"name"` // Comment: 省份id ProvinceID int `db:"province_id"` // Comment: 市/州id CityID int `db:"city_id"` // Comment: 区/县id AreaID int `db:"area_id"` // Comment: 面积 AreaNum int `db:"area_num"` // Comment: 管理员id AdminID int `db:"admin_id"` // Comment: 小区编码 Number int `db:"number"` // Comment: 状态,1入驻审核2入驻成功3取消入驻 State int `db:"state"` // Comment: 开始时间 StartTime time.Time `db:"start_time"` // Comment: 结束时间 EndTime time.Time `db:"end_time"` CreatedAt time.Time `db:"created_at"` UpdatedAt time.Time `db:"updated_at"` DeletedAt time.Time `db:"deleted_at"` }
type CommunityRepo ¶
type CommunityUseCase ¶
type CommunityUseCase struct {
// contains filtered or unexported fields
}
func NewCommunityUseCase ¶
func NewCommunityUseCase(repo CommunityRepo) *CommunityUseCase
func (*CommunityUseCase) List ¶
func (c *CommunityUseCase) List(ctx context.Context, co ListCommunityReq) (*[]Community, error)
type ListCommunityReq ¶
type ListShopsReq ¶
type ListShopsResp ¶
type ListUnitsReq ¶
type ListUnitsReq struct {
CommunityId int
}
type ListUnitsResp ¶
type ListUnitsResp struct {
Data []Building
}
type Shop ¶
type Shop struct { // ID of the ent. ID int `json:"id,omitempty"` // FloorID holds the value of the "floor_id" field. FloorID string `json:"floor_id,omitempty"` // RoomNum holds the value of the "room_num" field. RoomNum int `json:"room_num,omitempty"` // Layer holds the value of the "layer" field. Layer int `json:"layer,omitempty"` // BuiltUpArea holds the value of the "built_up_area" field. BuiltUpArea float32 `json:"built_up_area,omitempty"` // CommunityID holds the value of the "community_id" field. CommunityID int `json:"community_id,omitempty"` // FeeRate holds the value of the "fee_rate" field. FeeRate float32 `json:"fee_rate,omitempty"` // RoomArea holds the value of the "room_area" field. RoomArea float32 `json:"room_area,omitempty"` // Rent holds the value of the "rent" field. Rent float32 `json:"rent,omitempty"` // Remark holds the value of the "remark" field. Remark string `json:"remark,omitempty"` // CreatedAt holds the value of the "created_at" field. CreatedAt time.Time `json:"created_at,omitempty"` // UpdatedAt holds the value of the "updated_at" field. UpdatedAt time.Time `json:"updated_at,omitempty"` // DeletedAt holds the value of the "deleted_at" field. DeletedAt time.Time `json:"deleted_at,omitempty"` }
Shop is the model entity for the Shop schema.
type ShopUseCase ¶
type ShopUseCase struct {
// contains filtered or unexported fields
}
func NewShopUseCase ¶
func NewShopUseCase(repo ShopsRepo) *ShopUseCase
func (*ShopUseCase) CreateShop ¶
func (*ShopUseCase) ListShop ¶
func (uc *ShopUseCase) ListShop(ctx context.Context, pageNum, pageSize, villageId int) (*ListShopsResp, error)
func (*ShopUseCase) UpdateShop ¶
Click to show internal directories.
Click to hide internal directories.