Some checks failed
Build and Deploy (service.xpcool.com) / build-and-deploy (push) Failing after 35s
- 新增新房预售证表 house_presale 存储预售许可信息 - 为 house_community 表添加 avg_price 字段存储小区参考均价 - 增强服务器操作审计日志功能,新增管理员账号、IP归属地、错误信息、UA等字段 - 实现纯Go版IP归属地离线解析器,无外部依赖,支持二分查找 - 优化看房列表查询逻辑,修复Fields设置位置导致的SQL语法错误 - 集成招聘模块,添加独立数据库配置和Bark推送服务支持 - 重构日志查询接口,支持多维度筛选和综合分页列表展示 - 更新DAO实体结构同步数据库表结构调整
37 lines
1.3 KiB
Go
37 lines
1.3 KiB
Go
// Package house_presale 定义新房预售证查询接口,路由前缀 /house。
|
|
package house_presale
|
|
|
|
import "github.com/gogf/gf/v2/frame/g"
|
|
|
|
// PresaleItem 一条新房预售许可证。
|
|
type PresaleItem struct {
|
|
Id uint64 `json:"id"`
|
|
PresaleNo string `json:"presaleNo"`
|
|
CommunityName string `json:"communityName"`
|
|
Developer string `json:"developer"`
|
|
Region string `json:"region"`
|
|
Address string `json:"address"`
|
|
BuildingNo string `json:"buildingNo"`
|
|
HouseCount int `json:"houseCount"`
|
|
Area float64 `json:"area"`
|
|
Purpose string `json:"purpose"`
|
|
IssueDate string `json:"issueDate"`
|
|
Source string `json:"source"`
|
|
}
|
|
|
|
// PresaleListReq 分页查询新房预售证。
|
|
type PresaleListReq struct {
|
|
g.Meta `path:"/house/presale/list" method:"post" tags:"Admin/House/Presale" 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"`
|
|
Purpose string `json:"purpose"` // 规划用途(住宅/商业)
|
|
Keyword string `json:"keyword"` // 匹配楼盘名/开发商/预售证号
|
|
}
|
|
|
|
// PresaleListRes 是 PresaleListReq 的响应。
|
|
type PresaleListRes struct {
|
|
List []*PresaleItem `json:"list"`
|
|
Total int `json:"total"`
|
|
}
|