初始
This commit is contained in:
91
api/test/test_contact_info.go
Normal file
91
api/test/test_contact_info.go
Normal file
@ -0,0 +1,91 @@
|
||||
// ==========================================================================
|
||||
// GFast自动生成api操作代码。
|
||||
// 生成日期:2023-09-01 17:36:18
|
||||
// 生成路径: api/v1/test/test_contact_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"
|
||||
)
|
||||
|
||||
// TestContactInfoSearchReq 分页请求参数
|
||||
type TestContactInfoSearchReq struct {
|
||||
g.Meta `path:"/list" tags:"业主方联系人关联" method:"get" summary:"业主方联系人关联列表"`
|
||||
Id string `p:"id"` //
|
||||
OwenerId string `p:"owenerId" v:"owenerId@integer#需为整数"` //
|
||||
ContactName string `p:"contactName"` //
|
||||
ContactPost string `p:"contactPost"` //
|
||||
ContactPhone string `p:"contactPhone"` //
|
||||
commonApi.PageReq
|
||||
commonApi.Author
|
||||
}
|
||||
|
||||
// TestContactInfoSearchRes 列表返回结果
|
||||
type TestContactInfoSearchRes struct {
|
||||
g.Meta `mime:"application/json"`
|
||||
commonApi.ListRes
|
||||
List []*model.TestContactInfoListRes `json:"list"`
|
||||
}
|
||||
|
||||
// TestContactInfoAddReq 添加操作请求参数
|
||||
type TestContactInfoAddReq struct {
|
||||
g.Meta `path:"/add" tags:"业主方联系人关联" method:"post" summary:"业主方联系人关联添加"`
|
||||
commonApi.Author
|
||||
OwenerId uint `p:"owenerId" `
|
||||
ContactName string `p:"contactName" v:"required#不能为空"`
|
||||
ContactPost string `p:"contactPost" `
|
||||
ContactPhone string `p:"contactPhone" `
|
||||
}
|
||||
|
||||
// TestContactInfoAddRes 添加操作返回结果
|
||||
type TestContactInfoAddRes struct {
|
||||
commonApi.EmptyRes
|
||||
}
|
||||
|
||||
// TestContactInfoEditReq 修改操作请求参数
|
||||
type TestContactInfoEditReq struct {
|
||||
g.Meta `path:"/edit" tags:"业主方联系人关联" method:"put" summary:"业主方联系人关联修改"`
|
||||
commonApi.Author
|
||||
Id uint `p:"id" v:"required#主键ID不能为空"`
|
||||
OwenerId uint `p:"owenerId" `
|
||||
ContactName string `p:"contactName" v:"required#不能为空"`
|
||||
ContactPost string `p:"contactPost" `
|
||||
ContactPhone string `p:"contactPhone" `
|
||||
}
|
||||
|
||||
// TestContactInfoEditRes 修改操作返回结果
|
||||
type TestContactInfoEditRes struct {
|
||||
commonApi.EmptyRes
|
||||
}
|
||||
|
||||
// TestContactInfoGetReq 获取一条数据请求
|
||||
type TestContactInfoGetReq struct {
|
||||
g.Meta `path:"/get" tags:"业主方联系人关联" method:"get" summary:"获取业主方联系人关联信息"`
|
||||
commonApi.Author
|
||||
Id uint `p:"id" v:"required#主键必须"` //通过主键获取
|
||||
}
|
||||
|
||||
// TestContactInfoGetRes 获取一条数据结果
|
||||
type TestContactInfoGetRes struct {
|
||||
g.Meta `mime:"application/json"`
|
||||
*model.TestContactInfoInfoRes
|
||||
}
|
||||
|
||||
// TestContactInfoDeleteReq 删除数据请求
|
||||
type TestContactInfoDeleteReq struct {
|
||||
g.Meta `path:"/delete" tags:"业主方联系人关联" method:"delete" summary:"删除业主方联系人关联"`
|
||||
commonApi.Author
|
||||
Ids []uint `p:"ids" v:"required#主键必须"` //通过主键删除
|
||||
}
|
||||
|
||||
// TestContactInfoDeleteRes 删除数据返回
|
||||
type TestContactInfoDeleteRes struct {
|
||||
commonApi.EmptyRes
|
||||
}
|
104
api/test/test_follow_info.go
Normal file
104
api/test/test_follow_info.go
Normal file
@ -0,0 +1,104 @@
|
||||
// ==========================================================================
|
||||
// GFast自动生成api操作代码。
|
||||
// 生成日期:2023-09-01 16:38:07
|
||||
// 生成路径: api/v1/test/test_follow_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"
|
||||
)
|
||||
|
||||
// TestFollowInfoSearchReq 分页请求参数
|
||||
type TestFollowInfoSearchReq struct {
|
||||
g.Meta `path:"/list" tags:"跟进信息" method:"get" summary:"跟进信息列表"`
|
||||
Id string `p:"id"` //
|
||||
ProjectId string `p:"projectId" v:"projectId@integer#关联的项目需为整数"` //关联的项目
|
||||
FollowName string `p:"followName"` //跟进人姓名
|
||||
OwnerId string `p:"ownerId" v:"ownerId@integer#业主名需为整数"` //业主名
|
||||
ContactName string `p:"contactName"` //对接人姓名
|
||||
ConPostName string `p:"conPostName"` //对接人职称
|
||||
ContactPhone string `p:"contactPhone"` //对接人电话
|
||||
FollowInfo string `p:"followInfo"` //跟进情况
|
||||
FollowFile string `p:"followFile"` //相关附件
|
||||
CreatedAt string `p:"createdAt" v:"createdAt@datetime#创建日期需为YYYY-MM-DD hh:mm:ss格式"` //创建日期
|
||||
commonApi.PageReq
|
||||
commonApi.Author
|
||||
}
|
||||
|
||||
// TestFollowInfoSearchRes 列表返回结果
|
||||
type TestFollowInfoSearchRes struct {
|
||||
g.Meta `mime:"application/json"`
|
||||
commonApi.ListRes
|
||||
List []*model.TestFollowInfoListRes `json:"list"`
|
||||
}
|
||||
|
||||
// TestFollowInfoAddReq 添加操作请求参数
|
||||
type TestFollowInfoAddReq struct {
|
||||
g.Meta `path:"/add" tags:"跟进信息" method:"post" summary:"跟进信息添加"`
|
||||
commonApi.Author
|
||||
ProjectId int `p:"projectId" v:"required#关联的项目不能为空"`
|
||||
FollowName string `p:"followName" v:"required#跟进人姓名不能为空"`
|
||||
OwnerId uint `p:"ownerId" `
|
||||
ContactName string `p:"contactName" v:"required#对接人姓名不能为空"`
|
||||
ConPostName string `p:"conPostName" v:"required#对接人职称不能为空"`
|
||||
ContactPhone string `p:"contactPhone" `
|
||||
FollowInfo string `p:"followInfo" `
|
||||
FollowFile string `p:"followFile" `
|
||||
}
|
||||
|
||||
// TestFollowInfoAddRes 添加操作返回结果
|
||||
type TestFollowInfoAddRes struct {
|
||||
commonApi.EmptyRes
|
||||
}
|
||||
|
||||
// TestFollowInfoEditReq 修改操作请求参数
|
||||
type TestFollowInfoEditReq struct {
|
||||
g.Meta `path:"/edit" tags:"跟进信息" method:"put" summary:"跟进信息修改"`
|
||||
commonApi.Author
|
||||
Id uint `p:"id" v:"required#主键ID不能为空"`
|
||||
ProjectId int `p:"projectId" v:"required#关联的项目不能为空"`
|
||||
FollowName string `p:"followName" v:"required#跟进人姓名不能为空"`
|
||||
OwnerId uint `p:"ownerId" `
|
||||
ContactName string `p:"contactName" v:"required#对接人姓名不能为空"`
|
||||
ConPostName string `p:"conPostName" v:"required#对接人职称不能为空"`
|
||||
ContactPhone string `p:"contactPhone" `
|
||||
FollowInfo string `p:"followInfo" `
|
||||
FollowFile string `p:"followFile" `
|
||||
}
|
||||
|
||||
// TestFollowInfoEditRes 修改操作返回结果
|
||||
type TestFollowInfoEditRes struct {
|
||||
commonApi.EmptyRes
|
||||
}
|
||||
|
||||
// TestFollowInfoGetReq 获取一条数据请求
|
||||
type TestFollowInfoGetReq struct {
|
||||
g.Meta `path:"/get" tags:"跟进信息" method:"get" summary:"获取跟进信息信息"`
|
||||
commonApi.Author
|
||||
Id uint `p:"id" v:"required#主键必须"` //通过主键获取
|
||||
}
|
||||
|
||||
// TestFollowInfoGetRes 获取一条数据结果
|
||||
type TestFollowInfoGetRes struct {
|
||||
g.Meta `mime:"application/json"`
|
||||
*model.TestFollowInfoInfoRes
|
||||
}
|
||||
|
||||
// TestFollowInfoDeleteReq 删除数据请求
|
||||
type TestFollowInfoDeleteReq struct {
|
||||
g.Meta `path:"/delete" tags:"跟进信息" method:"delete" summary:"删除跟进信息"`
|
||||
commonApi.Author
|
||||
Ids []uint `p:"ids" v:"required#主键必须"` //通过主键删除
|
||||
}
|
||||
|
||||
// TestFollowInfoDeleteRes 删除数据返回
|
||||
type TestFollowInfoDeleteRes struct {
|
||||
commonApi.EmptyRes
|
||||
}
|
98
api/test/test_owner_info.go
Normal file
98
api/test/test_owner_info.go
Normal file
@ -0,0 +1,98 @@
|
||||
// ==========================================================================
|
||||
// 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
|
||||
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
|
||||
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
|
||||
}
|
104
api/test/test_project_info.go
Normal file
104
api/test/test_project_info.go
Normal file
@ -0,0 +1,104 @@
|
||||
// ==========================================================================
|
||||
// GFast自动生成api操作代码。
|
||||
// 生成日期:2023-09-01 16:15:09
|
||||
// 生成路径: api/v1/test/test_project_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"
|
||||
)
|
||||
|
||||
// TestProjectInfoSearchReq 分页请求参数
|
||||
type TestProjectInfoSearchReq struct {
|
||||
g.Meta `path:"/list" tags:"项目备案信息" method:"get" summary:"项目备案信息列表"`
|
||||
Id string `p:"id"` //
|
||||
ProjectName string `p:"projectName"` //项目名称
|
||||
ProjectAddress string `p:"projectAddress"` //单位地址
|
||||
ProjectLeader string `p:"projectLeader"` //项目负责人
|
||||
ResourceName string `p:"resourceName"` //资源方
|
||||
OwnerId string `p:"ownerId" v:"ownerId@integer#业主名id需为整数"` //业主名id
|
||||
ProjectType string `p:"projectType"` //项目类型
|
||||
ProjectInfo string `p:"projectInfo"` //项目概况
|
||||
ProjectState string `p:"projectState" v:"projectState@integer#项目状态(0未开始 1进行中 2已完成)需为整数"` //项目状态(0未开始 1进行中 2已完成)
|
||||
CreatedAt string `p:"createdAt" v:"createdAt@datetime#创建日期需为YYYY-MM-DD hh:mm:ss格式"` //创建日期
|
||||
commonApi.PageReq
|
||||
commonApi.Author
|
||||
}
|
||||
|
||||
// TestProjectInfoSearchRes 列表返回结果
|
||||
type TestProjectInfoSearchRes struct {
|
||||
g.Meta `mime:"application/json"`
|
||||
commonApi.ListRes
|
||||
List []*model.TestProjectInfoListRes `json:"list"`
|
||||
}
|
||||
|
||||
// TestProjectInfoAddReq 添加操作请求参数
|
||||
type TestProjectInfoAddReq struct {
|
||||
g.Meta `path:"/add" tags:"项目备案信息" method:"post" summary:"项目备案信息添加"`
|
||||
commonApi.Author
|
||||
ProjectName string `p:"projectName" v:"required#项目名称不能为空"`
|
||||
ProjectAddress string `p:"projectAddress" `
|
||||
ProjectLeader string `p:"projectLeader" `
|
||||
ResourceName string `p:"resourceName" v:"required#资源方不能为空"`
|
||||
OwnerId int `p:"ownerId" v:"required#业主名id不能为空"`
|
||||
ProjectType string `p:"projectType" `
|
||||
ProjectInfo string `p:"projectInfo" `
|
||||
ProjectState int `p:"projectState" `
|
||||
}
|
||||
|
||||
// TestProjectInfoAddRes 添加操作返回结果
|
||||
type TestProjectInfoAddRes struct {
|
||||
commonApi.EmptyRes
|
||||
}
|
||||
|
||||
// TestProjectInfoEditReq 修改操作请求参数
|
||||
type TestProjectInfoEditReq struct {
|
||||
g.Meta `path:"/edit" tags:"项目备案信息" method:"put" summary:"项目备案信息修改"`
|
||||
commonApi.Author
|
||||
Id uint `p:"id" v:"required#主键ID不能为空"`
|
||||
ProjectName string `p:"projectName" v:"required#项目名称不能为空"`
|
||||
ProjectAddress string `p:"projectAddress" `
|
||||
ProjectLeader string `p:"projectLeader" `
|
||||
ResourceName string `p:"resourceName" v:"required#资源方不能为空"`
|
||||
OwnerId int `p:"ownerId" v:"required#业主名id不能为空"`
|
||||
ProjectType string `p:"projectType" `
|
||||
ProjectInfo string `p:"projectInfo" `
|
||||
ProjectState int `p:"projectState" `
|
||||
}
|
||||
|
||||
// TestProjectInfoEditRes 修改操作返回结果
|
||||
type TestProjectInfoEditRes struct {
|
||||
commonApi.EmptyRes
|
||||
}
|
||||
|
||||
// TestProjectInfoGetReq 获取一条数据请求
|
||||
type TestProjectInfoGetReq struct {
|
||||
g.Meta `path:"/get" tags:"项目备案信息" method:"get" summary:"获取项目备案信息信息"`
|
||||
commonApi.Author
|
||||
Id uint `p:"id" v:"required#主键必须"` //通过主键获取
|
||||
}
|
||||
|
||||
// TestProjectInfoGetRes 获取一条数据结果
|
||||
type TestProjectInfoGetRes struct {
|
||||
g.Meta `mime:"application/json"`
|
||||
*model.TestProjectInfoInfoRes
|
||||
}
|
||||
|
||||
// TestProjectInfoDeleteReq 删除数据请求
|
||||
type TestProjectInfoDeleteReq struct {
|
||||
g.Meta `path:"/delete" tags:"项目备案信息" method:"delete" summary:"删除项目备案信息"`
|
||||
commonApi.Author
|
||||
Ids []uint `p:"ids" v:"required#主键必须"` //通过主键删除
|
||||
}
|
||||
|
||||
// TestProjectInfoDeleteRes 删除数据返回
|
||||
type TestProjectInfoDeleteRes struct {
|
||||
commonApi.EmptyRes
|
||||
}
|
Reference in New Issue
Block a user