// Package house_transaction 定义成交记录查询接口,路由前缀 /house。 package house_transaction import "github.com/gogf/gf/v2/frame/g" // TransactionItem 一条成交记录。 type TransactionItem struct { Id uint64 `json:"id"` CommunityId uint64 `json:"communityId"` CommunityName string `json:"communityName"` Layout string `json:"layout"` Area float64 `json:"area"` DealPrice float64 `json:"dealPrice"` DealUnitPrice float64 `json:"dealUnitPrice"` ListDays int `json:"listDays"` DealDate string `json:"dealDate"` Source string `json:"source"` } // TransactionListReq 分页查询成交记录。 type TransactionListReq struct { g.Meta `path:"/house/transaction/list" method:"post" tags:"Admin/House/Transaction" summary:"成交记录列表"` Page int `json:"page" d:"1" v:"min:1"` Size int `json:"size" d:"10" v:"min:1|max:100"` Region string `json:"region"` Keyword string `json:"keyword"` // 匹配小区名/户型 } // TransactionListRes 是 TransactionListReq 的响应。 type TransactionListRes struct { List []*TransactionItem `json:"list"` Total int `json:"total"` }