houses

package
v0.0.0-...-3fb8e6e Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHouseDomain

func NewHouseDomain() *houseDomain

Types

type House

type House struct {
	Id          int64     `db:id,omitempty`           //唯一编号
	HouseHid    string    `db:"house_hid",uni`        //楼盘唯一编号
	HouseName   string    `db:"house_name"`           //楼盘名称
	HouseType   int       `db:"house_type"`           //楼盘类型
	HouseStatus int       `db:"house_status"`         //楼盘状态
	CreatedAt   time.Time `db:"created_at,omitempty"` //创建时间
	UpdatedAt   time.Time `db:"updated_at,omitempty"` //更新时间
}

func (*House) FromDTO

func (house *House) FromDTO(dto *services.HouseCreatedDTO)

func (*House) ToDTO

func (house *House) ToDTO() *services.HouseDTO

type HouseDao

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

func (*HouseDao) GetByUserId

func (dao *HouseDao) GetByUserId(
	id int,
	houseType int) *House

func (*HouseDao) GetOne

func (dao *HouseDao) GetOne(househid string) *House

func (*HouseDao) Insert

func (dao *HouseDao) Insert(house *House) (id int64, err error)

func (*HouseDao) UpdateStatus

func (dao *HouseDao) UpdateStatus(
	houseHid string,
	status int,
) (rows int64, err error)

type Picture

type Picture struct {
	Id            int64     `db:id,omitempty`           //唯一编号
	PictureNo     string    `db:"picture_id",uni`       //图片唯一编号
	PictureUrl    string    `db:"picture_url"`          //图片路径
	PictureType   int       `db:"picture_type"`         //图片类型
	PictureStatus int       `db:"picture_status"`       //图片状态
	CreatedAt     time.Time `db:"created_at,omitempty"` //创建时间
	UpdatedAt     time.Time `db:"updated_at,omitempty"` //更新时间
}

func (*Picture) FromDTO

func (picture *Picture) FromDTO(dto *services.PictureCreatedDTO)

func (*Picture) ToDTO

func (picture *Picture) ToDTO() *services.PictureDTO

type PictureDao

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

func (*PictureDao) GetByPicType

func (dao *PictureDao) GetByPicType(picType int) *Picture

func (*PictureDao) GetOne

func (dao *PictureDao) GetOne(picNo string) *Picture

func (*PictureDao) Insert

func (dao *PictureDao) Insert(p *Picture) (id int64, err error)

Jump to

Keyboard shortcuts

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