data

package
v0.0.0-...-31c84d2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2022 License: GPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func NewCommunityRepo

func NewCommunityRepo(data *Data) biz.CommunityRepo

func NewEntClient

func NewEntClient() *ent.Client

func NewRedisClient

func NewRedisClient() (*redis.Client, error)

func NewShopRepo

func NewShopRepo(data *Data) biz.ShopsRepo

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 地名

type Data

type Data struct {
	// contains filtered or unexported fields
}

func NewProvideData

func NewProvideData(entClient *ent.Client, rc *redis.Client) *Data

Directories

Path Synopsis
ent

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL