Files
zmkgC/api/v1/test/test_owner_info.go
2025-07-07 20:11:59 +08:00

103 lines
4.3 KiB
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2023-09-01 17:51:41
// 生成路径: api/v1/test/test_owner_info.go
// 生成人yqq
// desc:业主方基本情况相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package test
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/test/model"
)
// TestOwnerInfoSearchReq 分页请求参数
type TestOwnerInfoSearchReq struct {
g.Meta `path:"/list" tags:"业主方基本情况" method:"get" summary:"业主方基本情况列表"`
Id string `p:"id"` //
CompanyName string `p:"companyName"` //企业名称
CompanyAddress string `p:"companyAddress"` //单位地址
RegistrationType string `p:"registrationType"` //企业登记注册类型
RegisteredCapital string `p:"registeredCapital" v:"registeredCapital@integer#注册资金需为整数"` //注册资金
Legaler string `p:"legaler"` //法人代表
LegalerPhone string `p:"legalerPhone"` //法人电话
CreatedAt string `p:"createdAt" v:"createdAt@datetime#创建日期需为YYYY-MM-DD hh:mm:ss格式"` //创建日期
commonApi.PageReq
commonApi.Author
}
// TestOwnerInfoSearchRes 列表返回结果
type TestOwnerInfoSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.TestOwnerInfoListRes `json:"list"`
}
// TestOwnerInfoAddReq 添加操作请求参数
type TestOwnerInfoAddReq struct {
g.Meta `path:"/add" tags:"业主方基本情况" method:"post" summary:"业主方基本情况添加"`
commonApi.Author
WxOrPc string `p:"wxOrPc" dc:"参数为1表示pc添加 否则为小程序添加"`
Creator string `p:"creator" v:"phone"`
CompanyName string `p:"companyName" v:"required#企业名称不能为空"`
CompanyAddress string `p:"companyAddress" `
RegistrationType string `p:"registrationType" `
RegisteredCapital int `p:"registeredCapital" `
Legaler string `p:"legaler" `
LegalerPhone string `p:"legalerPhone" `
}
// TestOwnerInfoAddRes 添加操作返回结果
type TestOwnerInfoAddRes struct {
commonApi.EmptyRes
}
// TestOwnerInfoEditReq 修改操作请求参数
type TestOwnerInfoEditReq struct {
g.Meta `path:"/edit" tags:"业主方基本情况" method:"put" summary:"业主方基本情况修改"`
commonApi.Author
WxOrPc string `p:"wxOrPc" dc:"参数为1表示pc添加 否则为小程序添加"`
Creator string `p:"creator" v:"phone" dc:"小程序需要传递当前用户的电话"`
Id uint `p:"id" v:"required#主键ID不能为空"`
CompanyName string `p:"companyName" v:"required#企业名称不能为空"`
CompanyAddress string `p:"companyAddress" `
RegistrationType string `p:"registrationType" `
RegisteredCapital int `p:"registeredCapital" `
Legaler string `p:"legaler" `
LegalerPhone string `p:"legalerPhone" `
}
// TestOwnerInfoEditRes 修改操作返回结果
type TestOwnerInfoEditRes struct {
commonApi.EmptyRes
}
// TestOwnerInfoGetReq 获取一条数据请求
type TestOwnerInfoGetReq struct {
g.Meta `path:"/get" tags:"业主方基本情况" method:"get" summary:"获取业主方基本情况信息"`
commonApi.Author
Id uint `p:"id" v:"required#主键必须"` //通过主键获取
}
// TestOwnerInfoGetRes 获取一条数据结果
type TestOwnerInfoGetRes struct {
g.Meta `mime:"application/json"`
*model.TestOwnerInfoInfoRes
}
// TestOwnerInfoDeleteReq 删除数据请求
type TestOwnerInfoDeleteReq struct {
g.Meta `path:"/delete" tags:"业主方基本情况" method:"delete" summary:"删除业主方基本情况"`
commonApi.Author
Ids []uint `p:"ids" v:"required#主键必须"` //通过主键删除
}
// TestOwnerInfoDeleteRes 删除数据返回
type TestOwnerInfoDeleteRes struct {
commonApi.EmptyRes
}