初始
This commit is contained in:
54
internal/app/test/controller/test_contact_info.go
Normal file
54
internal/app/test/controller/test_contact_info.go
Normal file
@ -0,0 +1,54 @@
|
||||
// ==========================================================================
|
||||
// GFast自动生成controller操作代码。
|
||||
// 生成日期:2023-09-01 17:36:18
|
||||
// 生成路径: internal/app/test/controller/test_contact_info.go
|
||||
// 生成人:yqq
|
||||
// desc:业主方联系人关联
|
||||
// company:云南奇讯科技有限公司
|
||||
// ==========================================================================
|
||||
|
||||
package controller
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/tiger1103/gfast/v3/api/v1/test"
|
||||
systemController "github.com/tiger1103/gfast/v3/internal/app/system/controller"
|
||||
"github.com/tiger1103/gfast/v3/internal/app/test/service"
|
||||
)
|
||||
|
||||
type testContactInfoController struct {
|
||||
systemController.BaseController
|
||||
}
|
||||
|
||||
var TestContactInfo = new(testContactInfoController)
|
||||
|
||||
// List 列表
|
||||
func (c *testContactInfoController) List(ctx context.Context, req *test.TestContactInfoSearchReq) (res *test.TestContactInfoSearchRes, err error) {
|
||||
res, err = service.TestContactInfo().List(ctx, req)
|
||||
return
|
||||
}
|
||||
|
||||
// Get 获取业主方联系人关联
|
||||
func (c *testContactInfoController) Get(ctx context.Context, req *test.TestContactInfoGetReq) (res *test.TestContactInfoGetRes, err error) {
|
||||
res = new(test.TestContactInfoGetRes)
|
||||
res.TestContactInfoInfoRes, err = service.TestContactInfo().GetById(ctx, req.Id)
|
||||
return
|
||||
}
|
||||
|
||||
// Add 添加业主方联系人关联
|
||||
func (c *testContactInfoController) Add(ctx context.Context, req *test.TestContactInfoAddReq) (res *test.TestContactInfoAddRes, err error) {
|
||||
err = service.TestContactInfo().Add(ctx, req)
|
||||
return
|
||||
}
|
||||
|
||||
// Edit 修改业主方联系人关联
|
||||
func (c *testContactInfoController) Edit(ctx context.Context, req *test.TestContactInfoEditReq) (res *test.TestContactInfoEditRes, err error) {
|
||||
err = service.TestContactInfo().Edit(ctx, req)
|
||||
return
|
||||
}
|
||||
|
||||
// Delete 删除业主方联系人关联
|
||||
func (c *testContactInfoController) Delete(ctx context.Context, req *test.TestContactInfoDeleteReq) (res *test.TestContactInfoDeleteRes, err error) {
|
||||
err = service.TestContactInfo().Delete(ctx, req.Ids)
|
||||
return
|
||||
}
|
54
internal/app/test/controller/test_follow_info.go
Normal file
54
internal/app/test/controller/test_follow_info.go
Normal file
@ -0,0 +1,54 @@
|
||||
// ==========================================================================
|
||||
// GFast自动生成controller操作代码。
|
||||
// 生成日期:2023-09-01 16:38:07
|
||||
// 生成路径: internal/app/test/controller/test_follow_info.go
|
||||
// 生成人:yqq
|
||||
// desc:跟进信息
|
||||
// company:云南奇讯科技有限公司
|
||||
// ==========================================================================
|
||||
|
||||
package controller
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/tiger1103/gfast/v3/api/v1/test"
|
||||
systemController "github.com/tiger1103/gfast/v3/internal/app/system/controller"
|
||||
"github.com/tiger1103/gfast/v3/internal/app/test/service"
|
||||
)
|
||||
|
||||
type testFollowInfoController struct {
|
||||
systemController.BaseController
|
||||
}
|
||||
|
||||
var TestFollowInfo = new(testFollowInfoController)
|
||||
|
||||
// List 列表
|
||||
func (c *testFollowInfoController) List(ctx context.Context, req *test.TestFollowInfoSearchReq) (res *test.TestFollowInfoSearchRes, err error) {
|
||||
res, err = service.TestFollowInfo().List(ctx, req)
|
||||
return
|
||||
}
|
||||
|
||||
// Get 获取跟进信息
|
||||
func (c *testFollowInfoController) Get(ctx context.Context, req *test.TestFollowInfoGetReq) (res *test.TestFollowInfoGetRes, err error) {
|
||||
res = new(test.TestFollowInfoGetRes)
|
||||
res.TestFollowInfoInfoRes, err = service.TestFollowInfo().GetById(ctx, req.Id)
|
||||
return
|
||||
}
|
||||
|
||||
// Add 添加跟进信息
|
||||
func (c *testFollowInfoController) Add(ctx context.Context, req *test.TestFollowInfoAddReq) (res *test.TestFollowInfoAddRes, err error) {
|
||||
err = service.TestFollowInfo().Add(ctx, req)
|
||||
return
|
||||
}
|
||||
|
||||
// Edit 修改跟进信息
|
||||
func (c *testFollowInfoController) Edit(ctx context.Context, req *test.TestFollowInfoEditReq) (res *test.TestFollowInfoEditRes, err error) {
|
||||
err = service.TestFollowInfo().Edit(ctx, req)
|
||||
return
|
||||
}
|
||||
|
||||
// Delete 删除跟进信息
|
||||
func (c *testFollowInfoController) Delete(ctx context.Context, req *test.TestFollowInfoDeleteReq) (res *test.TestFollowInfoDeleteRes, err error) {
|
||||
err = service.TestFollowInfo().Delete(ctx, req.Ids)
|
||||
return
|
||||
}
|
54
internal/app/test/controller/test_owner_info.go
Normal file
54
internal/app/test/controller/test_owner_info.go
Normal file
@ -0,0 +1,54 @@
|
||||
// ==========================================================================
|
||||
// GFast自动生成controller操作代码。
|
||||
// 生成日期:2023-09-01 17:51:42
|
||||
// 生成路径: internal/app/test/controller/test_owner_info.go
|
||||
// 生成人:yqq
|
||||
// desc:业主方基本情况
|
||||
// company:云南奇讯科技有限公司
|
||||
// ==========================================================================
|
||||
|
||||
package controller
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/tiger1103/gfast/v3/api/v1/test"
|
||||
systemController "github.com/tiger1103/gfast/v3/internal/app/system/controller"
|
||||
"github.com/tiger1103/gfast/v3/internal/app/test/service"
|
||||
)
|
||||
|
||||
type testOwnerInfoController struct {
|
||||
systemController.BaseController
|
||||
}
|
||||
|
||||
var TestOwnerInfo = new(testOwnerInfoController)
|
||||
|
||||
// List 列表
|
||||
func (c *testOwnerInfoController) List(ctx context.Context, req *test.TestOwnerInfoSearchReq) (res *test.TestOwnerInfoSearchRes, err error) {
|
||||
res, err = service.TestOwnerInfo().List(ctx, req)
|
||||
return
|
||||
}
|
||||
|
||||
// Get 获取业主方基本情况
|
||||
func (c *testOwnerInfoController) Get(ctx context.Context, req *test.TestOwnerInfoGetReq) (res *test.TestOwnerInfoGetRes, err error) {
|
||||
res = new(test.TestOwnerInfoGetRes)
|
||||
res.TestOwnerInfoInfoRes, err = service.TestOwnerInfo().GetById(ctx, req.Id)
|
||||
return
|
||||
}
|
||||
|
||||
// Add 添加业主方基本情况
|
||||
func (c *testOwnerInfoController) Add(ctx context.Context, req *test.TestOwnerInfoAddReq) (res *test.TestOwnerInfoAddRes, err error) {
|
||||
err = service.TestOwnerInfo().Add(ctx, req)
|
||||
return
|
||||
}
|
||||
|
||||
// Edit 修改业主方基本情况
|
||||
func (c *testOwnerInfoController) Edit(ctx context.Context, req *test.TestOwnerInfoEditReq) (res *test.TestOwnerInfoEditRes, err error) {
|
||||
err = service.TestOwnerInfo().Edit(ctx, req)
|
||||
return
|
||||
}
|
||||
|
||||
// Delete 删除业主方基本情况
|
||||
func (c *testOwnerInfoController) Delete(ctx context.Context, req *test.TestOwnerInfoDeleteReq) (res *test.TestOwnerInfoDeleteRes, err error) {
|
||||
err = service.TestOwnerInfo().Delete(ctx, req.Ids)
|
||||
return
|
||||
}
|
54
internal/app/test/controller/test_project_info.go
Normal file
54
internal/app/test/controller/test_project_info.go
Normal file
@ -0,0 +1,54 @@
|
||||
// ==========================================================================
|
||||
// GFast自动生成controller操作代码。
|
||||
// 生成日期:2023-09-01 16:15:09
|
||||
// 生成路径: internal/app/test/controller/test_project_info.go
|
||||
// 生成人:yqq
|
||||
// desc:项目备案信息
|
||||
// company:云南奇讯科技有限公司
|
||||
// ==========================================================================
|
||||
|
||||
package controller
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/tiger1103/gfast/v3/api/v1/test"
|
||||
systemController "github.com/tiger1103/gfast/v3/internal/app/system/controller"
|
||||
"github.com/tiger1103/gfast/v3/internal/app/test/service"
|
||||
)
|
||||
|
||||
type testProjectInfoController struct {
|
||||
systemController.BaseController
|
||||
}
|
||||
|
||||
var TestProjectInfo = new(testProjectInfoController)
|
||||
|
||||
// List 列表
|
||||
func (c *testProjectInfoController) List(ctx context.Context, req *test.TestProjectInfoSearchReq) (res *test.TestProjectInfoSearchRes, err error) {
|
||||
res, err = service.TestProjectInfo().List(ctx, req)
|
||||
return
|
||||
}
|
||||
|
||||
// Get 获取项目备案信息
|
||||
func (c *testProjectInfoController) Get(ctx context.Context, req *test.TestProjectInfoGetReq) (res *test.TestProjectInfoGetRes, err error) {
|
||||
res = new(test.TestProjectInfoGetRes)
|
||||
res.TestProjectInfoInfoRes, err = service.TestProjectInfo().GetById(ctx, req.Id)
|
||||
return
|
||||
}
|
||||
|
||||
// Add 添加项目备案信息
|
||||
func (c *testProjectInfoController) Add(ctx context.Context, req *test.TestProjectInfoAddReq) (res *test.TestProjectInfoAddRes, err error) {
|
||||
err = service.TestProjectInfo().Add(ctx, req)
|
||||
return
|
||||
}
|
||||
|
||||
// Edit 修改项目备案信息
|
||||
func (c *testProjectInfoController) Edit(ctx context.Context, req *test.TestProjectInfoEditReq) (res *test.TestProjectInfoEditRes, err error) {
|
||||
err = service.TestProjectInfo().Edit(ctx, req)
|
||||
return
|
||||
}
|
||||
|
||||
// Delete 删除项目备案信息
|
||||
func (c *testProjectInfoController) Delete(ctx context.Context, req *test.TestProjectInfoDeleteReq) (res *test.TestProjectInfoDeleteRes, err error) {
|
||||
err = service.TestProjectInfo().Delete(ctx, req.Ids)
|
||||
return
|
||||
}
|
Reference in New Issue
Block a user