109 lines
4.8 KiB
Go
109 lines
4.8 KiB
Go
// ==========================================================================
|
||
// 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#关联的项目需为整数" dc:"关联的项目"` //关联的项目
|
||
FollowName string `p:"followName" dc:"跟进人姓名"` //跟进人姓名
|
||
OwnerId string `p:"ownerId" v:"ownerId@integer#业主名需为整数" dc:"业主名"` //业主名
|
||
ContactName string `p:"contactName" dc:"对接人姓名"` //对接人姓名
|
||
ConPostName string `p:"conPostName" dc:"对接人职称"` //对接人职称
|
||
ContactPhone string `p:"contactPhone" dc:"对接人电话"` //对接人电话
|
||
FollowInfo string `p:"followInfo" dc:"跟进情况"` //跟进情况
|
||
FollowFile string `p:"followFile" dc:"相关附件"` //相关附件
|
||
CreatedAt string `p:"createdAt" v:"createdAt@datetime#创建日期需为YYYY-MM-DD hh:mm:ss格式" dc:"创建日期"` //创建日期
|
||
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
|
||
WxOrPc string `p:"wxOrPc" dc:"参数为1表示pc添加 否则为小程序添加"`
|
||
Creator string `p:"creator" v:"phone"`
|
||
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
|
||
Creator string `p:"creator" v:"phone" dc:"小程序需要传递当前用户的电话"`
|
||
WxOrPc string `p:"wxOrPc" dc:"参数为1表示pc添加 否则为小程序添加"`
|
||
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
|
||
}
|