Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewEntClient, NewRedisClient, NewProvideData, NewShopRepo, NewCommunityRepo)
Functions ¶
func NewCommunityRepo ¶
func NewCommunityRepo(data *Data) biz.CommunityRepo
func NewEntClient ¶
func NewRedisClient ¶
func NewRedisClient() (*redis.Client, error)
func NewShopRepo ¶
Types ¶
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"` }
Community 小区
type CountryArea ¶
type CountryArea struct { CodeID int `db:"code_id"` ParentID *int `db:"parent_id"` CityName *string `db:"city_name"` }
CountryArea 地名
Click to show internal directories.
Click to hide internal directories.