This commit is contained in:
2025-07-07 20:11:59 +08:00
parent ab0fdbc447
commit 06e3aa2eb3
2009 changed files with 193082 additions and 0 deletions

View File

@ -0,0 +1,83 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2024-05-28 15:09:13
// 生成路径: api/v1/system/app_menus.go
// 生成人gfast
// desc:app菜单相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// AppMenusSearchReq 分页请求参数
type AppMenusSearchReq struct {
g.Meta `path:"/list" tags:"app菜单" method:"get" summary:"app菜单列表"`
MenuId string `p:"menuId"` //
MenuName string `p:"menuName"` //菜单名
CreatedAt string `p:"createdAt" v:"createdAt@datetime#需为YYYY-MM-DD hh:mm:ss格式"` //
commonApi.PageReq
commonApi.Author
}
// AppMenusSearchRes 列表返回结果
type AppMenusSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.AppMenusListRes `json:"list"`
}
// AppMenusAddReq 添加操作请求参数
type AppMenusAddReq struct {
g.Meta `path:"/add" tags:"app菜单" method:"post" summary:"app菜单添加"`
commonApi.Author
MenuName string `p:"menuName" v:"required#菜单名不能为空"`
}
// AppMenusAddRes 添加操作返回结果
type AppMenusAddRes struct {
commonApi.EmptyRes
}
// AppMenusEditReq 修改操作请求参数
type AppMenusEditReq struct {
g.Meta `path:"/edit" tags:"app菜单" method:"put" summary:"app菜单修改"`
commonApi.Author
MenuId uint `p:"menuId" v:"required#主键ID不能为空"`
MenuName string `p:"menuName" v:"required#菜单名不能为空"`
}
// AppMenusEditRes 修改操作返回结果
type AppMenusEditRes struct {
commonApi.EmptyRes
}
// AppMenusGetReq 获取一条数据请求
type AppMenusGetReq struct {
g.Meta `path:"/get" tags:"app菜单" method:"get" summary:"获取app菜单信息"`
commonApi.Author
MenuId uint `p:"menuId" v:"required#主键必须"` //通过主键获取
}
// AppMenusGetRes 获取一条数据结果
type AppMenusGetRes struct {
g.Meta `mime:"application/json"`
*model.AppMenusInfoRes
}
// AppMenusDeleteReq 删除数据请求
type AppMenusDeleteReq struct {
g.Meta `path:"/delete" tags:"app菜单" method:"delete" summary:"删除app菜单"`
commonApi.Author
MenuIds []uint `p:"menuIds" v:"required#主键必须"` //通过主键删除
}
// AppMenusDeleteRes 删除数据返回
type AppMenusDeleteRes struct {
commonApi.EmptyRes
}

View File

@ -0,0 +1,86 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2024-05-28 15:11:14
// 生成路径: api/v1/system/app_role_menus.go
// 生成人gfast
// desc:app角色绑定菜单相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// AppRoleMenusSearchReq 分页请求参数
type AppRoleMenusSearchReq struct {
g.Meta `path:"/list" tags:"app角色绑定菜单" method:"get" summary:"app角色绑定菜单列表"`
Id string `p:"id"` //
RoleId string `p:"roleId" v:"roleId@integer#角色ID需为整数"` //角色ID
MenuId string `p:"menuId" v:"menuId@integer#菜单ID需为整数"` //菜单ID
CreatedAt string `p:"createdAt" v:"createdAt@datetime#需为YYYY-MM-DD hh:mm:ss格式"` //
commonApi.PageReq
commonApi.Author
}
// AppRoleMenusSearchRes 列表返回结果
type AppRoleMenusSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.AppRoleMenusListRes `json:"list"`
}
// AppRoleMenusAddReq 添加操作请求参数
type AppRoleMenusAddReq struct {
g.Meta `path:"/add" tags:"app角色绑定菜单" method:"post" summary:"app角色绑定菜单添加"`
commonApi.Author
RoleId int `p:"roleId" `
MenuId int `p:"menuId" `
}
// AppRoleMenusAddRes 添加操作返回结果
type AppRoleMenusAddRes struct {
commonApi.EmptyRes
}
// AppRoleMenusEditReq 修改操作请求参数
type AppRoleMenusEditReq struct {
g.Meta `path:"/edit" tags:"app角色绑定菜单" method:"put" summary:"app角色绑定菜单修改"`
commonApi.Author
Id uint `p:"id" v:"required#主键ID不能为空"`
RoleId int `p:"roleId" `
MenuId int `p:"menuId" `
}
// AppRoleMenusEditRes 修改操作返回结果
type AppRoleMenusEditRes struct {
commonApi.EmptyRes
}
// AppRoleMenusGetReq 获取一条数据请求
type AppRoleMenusGetReq struct {
g.Meta `path:"/get" tags:"app角色绑定菜单" method:"get" summary:"获取app角色绑定菜单信息"`
commonApi.Author
Id uint `p:"id" v:"required#主键必须"` //通过主键获取
}
// AppRoleMenusGetRes 获取一条数据结果
type AppRoleMenusGetRes struct {
g.Meta `mime:"application/json"`
*model.AppRoleMenusInfoRes
}
// AppRoleMenusDeleteReq 删除数据请求
type AppRoleMenusDeleteReq struct {
g.Meta `path:"/delete" tags:"app角色绑定菜单" method:"delete" summary:"删除app角色绑定菜单"`
commonApi.Author
Ids []uint `p:"ids" v:"required#主键必须"` //通过主键删除
}
// AppRoleMenusDeleteRes 删除数据返回
type AppRoleMenusDeleteRes struct {
commonApi.EmptyRes
}

108
api/v1/system/app_roles.go Normal file
View File

@ -0,0 +1,108 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2024-05-28 15:11:36
// 生成路径: api/v1/system/app_roles.go
// 生成人gfast
// desc:app角色相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// AppRolesSearchReq 分页请求参数
type AppRolesSearchReq struct {
g.Meta `path:"/list" tags:"app角色" method:"get" summary:"app角色列表"`
RoleId string `p:"roleId"` //
RoleName string `p:"roleName"` // 角色名
CreatedAt string `p:"createdAt" v:"createdAt@datetime#需为YYYY-MM-DD hh:mm:ss格式"` //
commonApi.PageReq
commonApi.Author
}
// AppRolesSearchRes 列表返回结果
type AppRolesSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.AppRolesListRes `json:"list"`
}
// AppRolesAddReq 添加操作请求参数
type AppRolesAddReq struct {
g.Meta `path:"/add" tags:"app角色" method:"post" summary:"app角色添加"`
commonApi.Author
RoleName string `p:"roleName" v:"required#角色名不能为空"`
}
// AppRolesAddRes 添加操作返回结果
type AppRolesAddRes struct {
commonApi.EmptyRes
}
// AppRolesAddMenuReq 添加角色时绑定菜单
type AppRolesAddMenuReq struct {
g.Meta `path:"/addMenu" tags:"app角色" method:"post" summary:"app添加角色的同时绑定菜单"`
RoleName string `p:"roleName" v:"required#角色名不能为空" dc:"角色名"` // 角色名字
MenuIds []int `p:"menuIds" v:"required#菜单ID不能为空" dc:"菜单ID 数组"` // 菜单ID
commonApi.Author
}
type AppRolesAddMenuRes struct {
commonApi.EmptyRes
}
// AppRolesEditReq 修改操作请求参数
type AppRolesEditReq struct {
g.Meta `path:"/edit" tags:"app角色" method:"put" summary:"app角色修改"`
commonApi.Author
RoleId uint `p:"roleId" v:"required#主键ID不能为空"`
RoleName string `p:"roleName" v:"required#角色名不能为空"`
MenuIds []int `p:"menuIds" dc:"菜单列表"` // 菜单列表
}
// AppRolesEditRes 修改操作返回结果
type AppRolesEditRes struct {
commonApi.EmptyRes
}
// AppRolesGetReq 获取一条数据请求
type AppRolesGetReq struct {
g.Meta `path:"/get" tags:"app角色" method:"get" summary:"获取app角色信息"`
commonApi.Author
RoleId uint `p:"roleId" v:"required#主键必须"` // 通过主键获取
}
// AppRolesGetRes 获取一条数据结果
type AppRolesGetRes struct {
g.Meta `mime:"application/json"`
*model.AppRolesInfoRes
}
// AppRolesDeleteReq 删除数据请求
type AppRolesDeleteReq struct {
g.Meta `path:"/delete" tags:"app角色" method:"delete" summary:"删除app角色"`
commonApi.Author
RoleIds []uint `p:"roleIds" v:"required#主键必须"` // 通过主键删除
}
// AppRolesDeleteRes 删除数据返回
type AppRolesDeleteRes struct {
commonApi.EmptyRes
}
// 获取一个角色的菜单
type AppRolesGetMenuReq struct {
g.Meta `path:"/getMenu" tags:"app角色" method:"get" summary:"获取角色的菜单"`
commonApi.Author
RoleId uint `p:"roleId" v:"required#角色ID不能为空"`
}
type AppRolesGetMenuRes struct {
g.Meta `mime:"application/json"`
List model.AppRoleDetails
}

View File

@ -0,0 +1,86 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2024-05-28 15:11:37
// 生成路径: api/v1/system/app_user_disable_menus.go
// 生成人gfast
// desc:app用户禁用菜单关联相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// AppUserDisableMenusSearchReq 分页请求参数
type AppUserDisableMenusSearchReq struct {
g.Meta `path:"/list" tags:"app用户禁用菜单关联" method:"get" summary:"app用户禁用菜单关联列表"`
UserDisabledMenuId string `p:"userDisabledMenuId"` //
UserId string `p:"userId" v:"userId@integer#用户ID需为整数"` //用户ID
MenuId string `p:"menuId" v:"menuId@integer#菜单ID需为整数"` //菜单ID
CreatedAt string `p:"createdAt" v:"createdAt@datetime#需为YYYY-MM-DD hh:mm:ss格式"` //
commonApi.PageReq
commonApi.Author
}
// AppUserDisableMenusSearchRes 列表返回结果
type AppUserDisableMenusSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.AppUserDisableMenusListRes `json:"list"`
}
// AppUserDisableMenusAddReq 添加操作请求参数
type AppUserDisableMenusAddReq struct {
g.Meta `path:"/add" tags:"app用户禁用菜单关联" method:"post" summary:"app用户禁用菜单关联添加"`
commonApi.Author
UserId int `p:"userId" `
MenuId int `p:"menuId" `
}
// AppUserDisableMenusAddRes 添加操作返回结果
type AppUserDisableMenusAddRes struct {
commonApi.EmptyRes
}
// AppUserDisableMenusEditReq 修改操作请求参数
type AppUserDisableMenusEditReq struct {
g.Meta `path:"/edit" tags:"app用户禁用菜单关联" method:"put" summary:"app用户禁用菜单关联修改"`
commonApi.Author
UserDisabledMenuId uint `p:"userDisabledMenuId" v:"required#主键ID不能为空"`
UserId int `p:"userId" `
MenuId int `p:"menuId" `
}
// AppUserDisableMenusEditRes 修改操作返回结果
type AppUserDisableMenusEditRes struct {
commonApi.EmptyRes
}
// AppUserDisableMenusGetReq 获取一条数据请求
type AppUserDisableMenusGetReq struct {
g.Meta `path:"/get" tags:"app用户禁用菜单关联" method:"get" summary:"获取app用户禁用菜单关联信息"`
commonApi.Author
UserDisabledMenuId uint `p:"userDisabledMenuId" v:"required#主键必须"` //通过主键获取
}
// AppUserDisableMenusGetRes 获取一条数据结果
type AppUserDisableMenusGetRes struct {
g.Meta `mime:"application/json"`
*model.AppUserDisableMenusInfoRes
}
// AppUserDisableMenusDeleteReq 删除数据请求
type AppUserDisableMenusDeleteReq struct {
g.Meta `path:"/delete" tags:"app用户禁用菜单关联" method:"delete" summary:"删除app用户禁用菜单关联"`
commonApi.Author
UserDisabledMenuIds []uint `p:"userDisabledMenuIds" v:"required#主键必须"` //通过主键删除
}
// AppUserDisableMenusDeleteRes 删除数据返回
type AppUserDisableMenusDeleteRes struct {
commonApi.EmptyRes
}

View File

@ -0,0 +1,86 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2024-05-28 15:11:37
// 生成路径: api/v1/system/app_user_menus.go
// 生成人gfast
// desc:app用户菜单关联相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// AppUserMenusSearchReq 分页请求参数
type AppUserMenusSearchReq struct {
g.Meta `path:"/list" tags:"app用户菜单关联" method:"get" summary:"app用户菜单关联列表"`
UserMenuId string `p:"userMenuId"` //
UserId string `p:"userId" v:"userId@integer#用户ID需为整数"` //用户ID
MenuId string `p:"menuId" v:"menuId@integer#菜单ID需为整数"` //菜单ID
CreatedAt string `p:"createdAt" v:"createdAt@datetime#需为YYYY-MM-DD hh:mm:ss格式"` //
commonApi.PageReq
commonApi.Author
}
// AppUserMenusSearchRes 列表返回结果
type AppUserMenusSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.AppUserMenusListRes `json:"list"`
}
// AppUserMenusAddReq 添加操作请求参数
type AppUserMenusAddReq struct {
g.Meta `path:"/add" tags:"app用户菜单关联" method:"post" summary:"app用户菜单关联添加"`
commonApi.Author
UserId int `p:"userId" `
MenuId int `p:"menuId" `
}
// AppUserMenusAddRes 添加操作返回结果
type AppUserMenusAddRes struct {
commonApi.EmptyRes
}
// AppUserMenusEditReq 修改操作请求参数
type AppUserMenusEditReq struct {
g.Meta `path:"/edit" tags:"app用户菜单关联" method:"put" summary:"app用户菜单关联修改"`
commonApi.Author
UserMenuId uint `p:"userMenuId" v:"required#主键ID不能为空"`
UserId int `p:"userId" `
MenuId int `p:"menuId" `
}
// AppUserMenusEditRes 修改操作返回结果
type AppUserMenusEditRes struct {
commonApi.EmptyRes
}
// AppUserMenusGetReq 获取一条数据请求
type AppUserMenusGetReq struct {
g.Meta `path:"/get" tags:"app用户菜单关联" method:"get" summary:"获取app用户菜单关联信息"`
commonApi.Author
UserMenuId uint `p:"userMenuId" v:"required#主键必须"` //通过主键获取
}
// AppUserMenusGetRes 获取一条数据结果
type AppUserMenusGetRes struct {
g.Meta `mime:"application/json"`
*model.AppUserMenusInfoRes
}
// AppUserMenusDeleteReq 删除数据请求
type AppUserMenusDeleteReq struct {
g.Meta `path:"/delete" tags:"app用户菜单关联" method:"delete" summary:"删除app用户菜单关联"`
commonApi.Author
UserMenuIds []uint `p:"userMenuIds" v:"required#主键必须"` //通过主键删除
}
// AppUserMenusDeleteRes 删除数据返回
type AppUserMenusDeleteRes struct {
commonApi.EmptyRes
}

View File

@ -0,0 +1,130 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2024-05-28 15:11:37
// 生成路径: api/v1/system/app_user_roles.go
// 生成人gfast
// desc:app用户角色关联相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// AppUserRolesSearchReq 分页请求参数
type AppUserRolesSearchReq struct {
g.Meta `path:"/list" tags:"app用户角色关联" method:"get" summary:"app用户角色关联列表"`
Id string `p:"id"` //
UserId string `p:"userId" v:"userId@integer#用户ID需为整数"` // 用户ID
RoleId string `p:"roleId" v:"roleId@integer#关联的角色ID需为整数"` // 关联的角色ID
CreatedAt string `p:"createdAt" v:"createdAt@datetime#需为YYYY-MM-DD hh:mm:ss格式"` //
commonApi.PageReq
commonApi.Author
}
// AppUserRolesSearchRes 列表返回结果
type AppUserRolesSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.AppUserRolesListRes `json:"list"`
}
// AppUserRolesAddReq 添加操作请求参数
type AppUserRolesAddReq struct {
g.Meta `path:"/add" tags:"app用户角色关联" method:"post" summary:"app用户角色关联添加"`
commonApi.Author
UserId int `p:"userId" `
RoleId int `p:"roleId" `
}
// AppUserRolesAddRes 添加操作返回结果
type AppUserRolesAddRes struct {
commonApi.EmptyRes
}
// AppUserRolesEditReq 修改操作请求参数
type AppUserRolesEditReq struct {
g.Meta `path:"/edit" tags:"app用户角色关联" method:"put" summary:"app用户角色关联修改"`
commonApi.Author
Id uint `p:"id"`
UserId int `p:"userId" `
RoleId int `p:"roleId" `
}
// AppUserRolesEditRes 修改操作返回结果
type AppUserRolesEditRes struct {
commonApi.EmptyRes
}
// AppUserRolesGetReq 获取一条数据请求
type AppUserRolesGetReq struct {
g.Meta `path:"/get" tags:"app用户角色关联" method:"get" summary:"获取app用户角色关联信息"`
commonApi.Author
Id uint `p:"id" v:"required#主键必须"` // 通过主键获取
}
// AppUserRolesGetRes 获取一条数据结果
type AppUserRolesGetRes struct {
g.Meta `mime:"application/json"`
*model.AppUserRolesInfoRes
}
// AppUserRolesDeleteReq 删除数据请求
type AppUserRolesDeleteReq struct {
g.Meta `path:"/delete" tags:"app用户角色关联" method:"delete" summary:"删除app用户角色关联"`
commonApi.Author
Ids []uint `p:"ids" v:"required#主键必须"` // 通过主键删除
}
// AppUserRolesDeleteRes 删除数据返回
type AppUserRolesDeleteRes struct {
commonApi.EmptyRes
}
// AppUserRolesBindReq 给用户绑定角色
type AppUserRolesBindReq struct {
g.Meta `path:"/bindRole" tags:"app用户角色关联" method:"post" summary:"给用户绑定角色"`
commonApi.Author
UserId int `p:"userId" v:"required#用户ID必须"`
AdminRole []int `p:"adminRole" dc:"管理员所绑定的角色 [1,2]"` // 管理员角色
ConstructionRole []int `p:"constructionRole" dc:"施工人员所绑定的角色 [7,8]"` // 施工人员角色
}
// AppUserRolesBindRes 给用户绑定角色返回
type AppUserRolesBindRes struct {
commonApi.EmptyRes
}
// AppUserRolesGetRolesReq 获取用户的角色
type AppUserRolesGetRolesReq struct {
g.Meta `path:"/getUserRoles" tags:"app用户角色关联" method:"get" summary:"获取用户的角色"`
UserID int `p:"userId" v:"required#用户ID必须"`
commonApi.Author
}
// AppUserRolesGetRolesRes 获取用户的角色返回
type AppUserRolesGetRolesRes struct {
g.Meta `mime:"application/json"`
// 管理员角色
AdminRole []model.Ruler `json:"adminRole"`
// 施工人员角色
ConstructionRole []model.Ruler `json:"constructionRole"`
}
// 返回所有管理员角色和施工人员角色
type AppUserRolesGetAllRolesReq struct {
g.Meta `path:"/getAllRoles" tags:"app用户角色关联" method:"get" summary:"获取所有角色"`
commonApi.Author
}
type AppUserRolesGetAllRolesRes struct {
g.Meta `mime:"application/json"`
// 管理员角色
AdminRole []model.AppRoles `json:"adminRole"`
// 施工人员角色
ConstructionRole []model.AppRoles `json:"constructionRole"`
}

View File

@ -0,0 +1,38 @@
package system
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/tiger1103/gfast/v3/library/upload_chunk"
)
// 上传文件
type BigUploadReq struct {
g.Meta `path:"/bigUpload/upload" tags:"后台大文件上传" method:"post" summary:"上传文件"`
upload_chunk.UploadReq
}
type BigUploadRes struct {
upload_chunk.UpLoadRes
}
// 上传文件检查
type BigUploadCheckReq struct {
g.Meta `path:"/bigUpload/upload" tags:"后台大文件上传" method:"get" summary:"上传文件检查"`
upload_chunk.UploadReq
}
type BigUploadCheckRes struct {
upload_chunk.CheckRes
Identifier string `json:"identifier"` // 标识
TotalChunks int `json:"totalChunks"` // 分片总数
}
// 上传文件合并
type BigUploadMergeReq struct {
g.Meta `path:"/bigUpload/uploadMerge" tags:"后台大文件上传" method:"post" summary:"上传文件合并"`
upload_chunk.UploadReq
}
type BigUploadMergeRes struct {
upload_chunk.MergeRes
}

View File

@ -0,0 +1,183 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2025-03-03 10:32:47
// 生成路径: api/v1/system/bus_attendance_machine.go
// 生成人gfast
// desc:考勤机相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// BusAttendanceMachineSearchReq 分页请求参数
type BusAttendanceMachineSearchReq struct {
g.Meta `path:"/list" tags:"考勤机" method:"get" summary:"考勤机列表"`
ProjectId string `p:"projectId" dc:"项目ID"`
Sn string `p:"sn" dc:"设备sn"`
commonApi.PageReq
commonApi.Author
}
// BusAttendanceMachineSearchRes 列表返回结果
type BusAttendanceMachineSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.BusAttendanceMachineExtendRes `json:"list"`
}
// BusAttendanceMachineAddReq 添加操作请求参数
type BusAttendanceMachineAddReq struct {
g.Meta `path:"/add" tags:"考勤机" method:"post" summary:"考勤机添加"`
commonApi.Author
ProjectId uint64 `p:"projectId" v:"required#项目ID不能为空"`
Sn string `p:"sn" v:"required#设备sn不能为空"`
Teams string `p:"teams" `
CreateBy string `p:"createBy" `
Remark string `p:"remark" `
}
// BusAttendanceMachineAddRes 添加操作返回结果
type BusAttendanceMachineAddRes struct {
commonApi.EmptyRes
}
// BusAttendanceMachineEditReq 修改操作请求参数
type BusAttendanceMachineEditReq struct {
g.Meta `path:"/edit" tags:"考勤机" method:"put" summary:"考勤机修改"`
commonApi.Author
Sn string `p:"sn" v:"required#设备sn不能为空"`
Id uint64 `p:"id" v:"required#主键ID不能为空"`
ProjectId uint64 `p:"projectId" v:"required#项目ID不能为空"`
Teams string `p:"teams" dc:"班组ID多个逗号分割" v:"required#班组ID不能为空"`
Remark string `p:"remark" dc:"备注"`
}
// BusAttendanceMachineEditRes 修改操作返回结果
type BusAttendanceMachineEditRes struct {
commonApi.EmptyRes
}
// BusAttendanceMachineGetReq 获取一条数据请求
type BusAttendanceMachineGetReq struct {
g.Meta `path:"/get" tags:"考勤机" method:"get" summary:"获取考勤机信息"`
commonApi.Author
Id uint64 `p:"id" v:"required#主键必须"` //通过主键获取
}
// BusAttendanceMachineGetRes 获取一条数据结果
type BusAttendanceMachineGetRes struct {
g.Meta `mime:"application/json"`
*model.BusAttendanceMachineExtendRes
}
// BusAttendanceMachineDeleteReq 删除数据请求
type BusAttendanceMachineDeleteReq struct {
g.Meta `path:"/delete" tags:"考勤机" method:"delete" summary:"删除考勤机"`
commonApi.Author
Ids []uint64 `p:"ids" v:"required#主键必须"` //通过主键删除
}
// BusAttendanceMachineDeleteRes 删除数据返回
type BusAttendanceMachineDeleteRes struct {
commonApi.EmptyRes
}
/**
===============================================================
===============================================================
===============================================================
*/
type BusAttendanceMachineRegisterReq struct {
g.Meta `path:"/busAttendanceMachineRegister" tags:"考勤机" method:"post" summary:"考勤机注册"`
commonApi.Author
Sn string `p:"sn" v:"required#设备sn不能为空"`
Remark string `p:"remark" `
}
type BusAttendanceMachineRegisterRes struct {
commonApi.EmptyRes
}
type BusAttendanceMachineChangeReq struct {
g.Meta `path:"/busAttendanceMachineChange" tags:"考勤机" method:"post" summary:"变更考勤机状态"`
commonApi.Author
Sn string `p:"sn" v:"required#设备sn不能为空"`
Status string `p:"status" dc:"考勤机在线状态"`
}
type BusAttendanceMachineChangeRes struct {
commonApi.EmptyRes
}
type BindUserInformationToDevicesInBatchesReq struct {
g.Meta `path:"/bindUserInformationToDevicesInBatches" tags:"考勤机" method:"post" summary:"将用户信息与考勤机绑定"`
commonApi.Author
Bind []BindUserInformationToDevicesInBatchesTwoReq `p:"bind" v:"required#用户信息"`
}
type BindUserInformationToDevicesInBatchesTwoReq struct {
MachineId int64 `p:"machineId" v:"required#考勤机ID不能为空"`
TeamId int64 `p:"teamId" v:"required#班组ID不能为空"`
UserId string `p:"userId" v:"required#用户ID不能为空"`
}
type BindUserInformationToDevicesInBatchesRes struct {
commonApi.EmptyRes
}
type SendTheUserInformationToTheAttendanceMachineReq struct {
g.Meta `path:"/sendTheUserInformationToTheAttendanceMachine" tags:"考勤机" method:"post" summary:"将用户信息下发到考勤机上"`
commonApi.Author
Sn string `p:"sn" dc:"设备唯一标识" v:"required#sn不能为空"`
MachineId string `p:"machineId" dc:"自增id" v:"required#machineIdsn不能为空"`
Type int `p:"type" dc:"1全部 2批量 3指定" v:"between:1,3#参数传递为1~3"`
UserId []string `p:"userId" dc:"type为1不传递 2传递部分 3传递一个"`
}
type SendTheUserInformationToTheAttendanceMachineRes struct {
commonApi.EmptyRes
}
type DeleteTheUserBoundToTheAttendanceMachineAndDeviceReq struct {
g.Meta `path:"/deleteTheUserBoundToTheAttendanceMachineAndDevice" tags:"考勤机" method:"post" summary:"将考勤机和设备绑定的用户删除掉"`
commonApi.Author
Sn string `p:"sn" dc:"设备唯一标识" v:"required#sn不能为空"`
MachineId string `p:"machineId" dc:"自增id" v:"required#machineIdsn不能为空"`
TeamId int64 `p:"teamId" v:"required#班组ID不能为空"`
UserId string `p:"userId" dc:"用户openid" v:"required#用户openid不能为空"`
}
type DeleteTheUserBoundToTheAttendanceMachineAndDeviceRes struct {
commonApi.EmptyRes
}
type ObtainInformationAboutPersonnelAssociatedWithTheAttendanceDeviceReq struct {
g.Meta `path:"/obtainInformationAboutPersonnelAssociatedWithTheAttendanceDevice" tags:"考勤机" method:"get" summary:"获取考勤设备关联的人员信息"`
Sn string `p:"sn" dc:"设备唯一标识" v:"required#sn不能为空"`
MachineId string `p:"machineId" dc:"自增id" v:"required#machineIdsn不能为空"`
TeamId string `p:"teamId" dc:"班组ID" v:"required#班组ID不能为空"`
UserName string `p:"name" dc:"用户名称"`
commonApi.Paging
commonApi.PageReq
commonApi.Author
}
type ObtainInformationAboutPersonnelAssociatedWithTheAttendanceDeviceRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
UserList []*ObtainInformationAboutPersonnelAssociatedWithTheAttendanceDeviceTwo `p:"userList" dc:"用户信息列表"`
}
type ObtainInformationAboutPersonnelAssociatedWithTheAttendanceDeviceTwo struct {
Openid string `p:"openid" dc:"用户openId"`
UserName string `p:"userName" dc:"用户名称"`
TeamId string `p:"teamId" dc:"班组ID"`
PacePhoto string `p:"pacePhoto" dc:"人脸照"`
XFStatus string `p:"xFStatus" dc:"是否已绑定设备(1绑定 0未绑定)"`
Status string `p:"status" dc:"是否存在考勤设备中(1存在 0不存在)"`
}

View File

@ -0,0 +1,92 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2025-03-03 10:33:17
// 生成路径: api/v1/system/bus_attendance_machine_user.go
// 生成人gfast
// desc:考勤机用户列相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// BusAttendanceMachineUserSearchReq 分页请求参数
type BusAttendanceMachineUserSearchReq struct {
g.Meta `path:"/list" tags:"考勤机用户列" method:"get" summary:"考勤机用户列列表"`
Id string `p:"id"` //主键ID
MachineId string `p:"machineId" v:"machineId@integer#考勤机主键ID需为整数"` //考勤机主键ID
TeamId string `p:"teamId" v:"teamId@integer#班组ID需为整数"` //班组ID
UserId string `p:"userId" v:"userId@integer#用户ID需为整数"` //用户ID
Identifying string `p:"identifying" v:"identifying@integer#标识(是否下发)需为整数"` //标识(是否下发)
commonApi.PageReq
commonApi.Author
}
// BusAttendanceMachineUserSearchRes 列表返回结果
type BusAttendanceMachineUserSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.BusAttendanceMachineUserListRes `json:"list"`
}
// BusAttendanceMachineUserAddReq 添加操作请求参数
type BusAttendanceMachineUserAddReq struct {
g.Meta `path:"/add" tags:"考勤机用户列" method:"post" summary:"考勤机用户列添加"`
commonApi.Author
Id int64 `p:"id" v:"required#主键ID不能为空"`
MachineId int64 `p:"machineId" `
TeamId int64 `p:"teamId" `
UserId int64 `p:"userId" `
Identifying int `p:"identifying" `
}
// BusAttendanceMachineUserAddRes 添加操作返回结果
type BusAttendanceMachineUserAddRes struct {
commonApi.EmptyRes
}
// BusAttendanceMachineUserEditReq 修改操作请求参数
type BusAttendanceMachineUserEditReq struct {
g.Meta `path:"/edit" tags:"考勤机用户列" method:"put" summary:"考勤机用户列修改"`
commonApi.Author
Id int64 `p:"id" v:"required#主键ID不能为空"`
MachineId int64 `p:"machineId" `
TeamId int64 `p:"teamId" `
UserId int64 `p:"userId" `
Identifying int `p:"identifying" `
}
// BusAttendanceMachineUserEditRes 修改操作返回结果
type BusAttendanceMachineUserEditRes struct {
commonApi.EmptyRes
}
// BusAttendanceMachineUserGetReq 获取一条数据请求
type BusAttendanceMachineUserGetReq struct {
g.Meta `path:"/get" tags:"考勤机用户列" method:"get" summary:"获取考勤机用户列信息"`
commonApi.Author
Id int64 `p:"id" v:"required#主键必须"` //通过主键获取
}
// BusAttendanceMachineUserGetRes 获取一条数据结果
type BusAttendanceMachineUserGetRes struct {
g.Meta `mime:"application/json"`
*model.BusAttendanceMachineUserInfoRes
}
// BusAttendanceMachineUserDeleteReq 删除数据请求
type BusAttendanceMachineUserDeleteReq struct {
g.Meta `path:"/delete" tags:"考勤机用户列" method:"delete" summary:"删除考勤机用户列"`
commonApi.Author
Ids []int64 `p:"ids" v:"required#主键必须"` //通过主键删除
}
// BusAttendanceMachineUserDeleteRes 删除数据返回
type BusAttendanceMachineUserDeleteRes struct {
commonApi.EmptyRes
}

View File

@ -0,0 +1,106 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2023-09-20 14:55:42
// 生成路径: api/v1/system/bus_camera_channel.go
// 生成人gfast
// desc:摄像头(国标通道)相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// BusCameraChannelSearchReq 分页请求参数
type BusCameraChannelSearchReq struct {
g.Meta `path:"/list" tags:"摄像头(国标通道)" method:"get" summary:"摄像头(国标通道)列表"`
ProjectId int64 `p:"projectId" v:"required#项目ID不能为空"`
CountryId string `p:"countryId"` //国标ID
ChannelNumber string `p:"channelNumber"` //国标通道号
ChannelName string `p:"channelName"` //通道名称
ChannelFormat string `p:"channelFormat"` //视频格式(字典)
ChannelState string `p:"channelState"` //在线状态(字典)
CreatedAt string `p:"createdAt" v:"createdAt@datetime#创建时间需为YYYY-MM-DD hh:mm:ss格式"` //创建时间
commonApi.PageReq
commonApi.Author
}
// BusCameraChannelSearchRes 列表返回结果
type BusCameraChannelSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.BusCameraChannelListRes `json:"list"`
}
// BusCameraChannelAddReq 添加操作请求参数
type BusCameraChannelAddReq struct {
g.Meta `path:"/add" tags:"摄像头(国标通道)" method:"post" summary:"摄像头(国标通道)添加"`
commonApi.Author
ProjectId int64 `p:"projectId" v:"required#项目ID不能为空"`
CountryId int64 `p:"countryId" v:"required#摄像头ID不能为空"`
ChannelNumber string `p:"channelNumber" v:"required#国标通道号不能为空"`
ChannelName string `p:"channelName" v:"required#通道名称不能为空"`
ChannelPath string `p:"channelPath" `
ChannelFormat string `p:"channelFormat" `
ChannelState string `p:"channelState" `
Remark string `p:"remark" `
Imei string `p:"imei" dc:"识别码"`
Iccid string `p:"iccid" dc:"序列号"`
}
// BusCameraChannelAddRes 添加操作返回结果
type BusCameraChannelAddRes struct {
commonApi.EmptyRes
}
// BusCameraChannelEditReq 修改操作请求参数
type BusCameraChannelEditReq struct {
g.Meta `path:"/edit" tags:"摄像头(国标通道)" method:"put" summary:"摄像头(国标通道)修改"`
commonApi.Author
Id int64 `p:"id" v:"required#主键ID不能为空"`
ProjectId int64 `p:"projectId" v:"required#项目ID不能为空"`
CountryId int64 `p:"countryId" v:"required#摄像头ID不能为空"`
ChannelNumber string `p:"channelNumber" v:"required#国标通道号不能为空"`
ChannelName string `p:"channelName" v:"required#通道名称不能为空"`
ChannelPath string `p:"channelPath" `
ChannelFormat string `p:"channelFormat" `
ChannelState string `p:"channelState" `
Remark string `p:"remark" `
Detail string `p:"detail" `
Imei string `p:"imei" dc:"识别码"`
Iccid string `p:"iccid" dc:"序列号"`
}
// BusCameraChannelEditRes 修改操作返回结果
type BusCameraChannelEditRes struct {
commonApi.EmptyRes
}
// BusCameraChannelGetReq 获取一条数据请求
type BusCameraChannelGetReq struct {
g.Meta `path:"/get" tags:"摄像头(国标通道)" method:"get" summary:"获取摄像头(国标通道)信息"`
commonApi.Author
Id int64 `p:"id" v:"required#主键必须"` //通过主键获取
}
// BusCameraChannelGetRes 获取一条数据结果
type BusCameraChannelGetRes struct {
g.Meta `mime:"application/json"`
*model.BusCameraChannelInfoRes
}
// BusCameraChannelDeleteReq 删除数据请求
type BusCameraChannelDeleteReq struct {
g.Meta `path:"/delete" tags:"摄像头(国标通道)" method:"delete" summary:"删除摄像头(国标通道)"`
commonApi.Author
Ids []int64 `p:"ids" v:"required#主键必须"` //通过主键删除
}
// BusCameraChannelDeleteRes 删除数据返回
type BusCameraChannelDeleteRes struct {
commonApi.EmptyRes
}

View File

@ -0,0 +1,90 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2023-09-20 14:55:24
// 生成路径: api/v1/system/bus_camera_chinese_standard.go
// 生成人gfast
// desc:摄像头(国标)相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// BusCameraChineseStandardSearchReq 分页请求参数
type BusCameraChineseStandardSearchReq struct {
g.Meta `path:"/list" tags:"摄像头(国标)" method:"get" summary:"摄像头(国标)列表"`
ProjectId int64 `p:"projectId" v:"required#项目ID不能为空"`
CountryNumber string `p:"countryNumber"` //国标号
CountryName string `p:"countryName"` //摄像头名称
CountryState string `p:"countryState"` //在线状态(字典)
CreatedAt string `p:"createdAt" v:"createdAt@datetime#创建时间需为YYYY-MM-DD hh:mm:ss格式"` //创建时间
commonApi.PageReq
commonApi.Author
}
// BusCameraChineseStandardSearchRes 列表返回结果
type BusCameraChineseStandardSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.BusCameraChineseStandardListRes `json:"list"`
}
// BusCameraChineseStandardAddReq 添加操作请求参数
type BusCameraChineseStandardAddReq struct {
g.Meta `path:"/add" tags:"摄像头(国标)" method:"post" summary:"摄像头(国标)添加"`
commonApi.Author
ProjectId int64 `p:"projectId" v:"required#项目ID不能为空"`
CountryNumber string `p:"countryNumber" v:"required#国标号不能为空"`
CountryName string `p:"countryName" v:"required#摄像头名称不能为空"`
}
// BusCameraChineseStandardAddRes 添加操作返回结果
type BusCameraChineseStandardAddRes struct {
commonApi.EmptyRes
}
// BusCameraChineseStandardEditReq 修改操作请求参数
type BusCameraChineseStandardEditReq struct {
g.Meta `path:"/edit" tags:"摄像头(国标)" method:"put" summary:"摄像头(国标)修改"`
commonApi.Author
Id int64 `p:"id" v:"required#主键ID不能为空"`
ProjectId int64 `p:"projectId" v:"required#项目ID不能为空"`
CountryNumber string `p:"countryNumber" `
CountryName string `p:"countryName" v:"required#摄像头名称不能为空"`
CountryState string `p:"countryState" `
}
// BusCameraChineseStandardEditRes 修改操作返回结果
type BusCameraChineseStandardEditRes struct {
commonApi.EmptyRes
}
// BusCameraChineseStandardGetReq 获取一条数据请求
type BusCameraChineseStandardGetReq struct {
g.Meta `path:"/get" tags:"摄像头(国标)" method:"get" summary:"获取摄像头(国标)信息"`
commonApi.Author
Id int64 `p:"id" v:"required#主键必须"` //通过主键获取
}
// BusCameraChineseStandardGetRes 获取一条数据结果
type BusCameraChineseStandardGetRes struct {
g.Meta `mime:"application/json"`
*model.BusCameraChineseStandardInfoRes
}
// BusCameraChineseStandardDeleteReq 删除数据请求
type BusCameraChineseStandardDeleteReq struct {
g.Meta `path:"/delete" tags:"摄像头(国标)" method:"delete" summary:"删除摄像头(国标)"`
commonApi.Author
Ids []int64 `p:"ids" v:"required#主键必须"` //通过主键删除
}
// BusCameraChineseStandardDeleteRes 删除数据返回
type BusCameraChineseStandardDeleteRes struct {
commonApi.EmptyRes
}

View File

@ -0,0 +1,82 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2023-10-07 15:52:19
// 生成路径: api/v1/system/bus_category.go
// 生成人gfast
// desc:题库_题库类别相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// BusCategorySearchReq 分页请求参数
type BusCategorySearchReq struct {
g.Meta `path:"/list" tags:"题库_题库类别" method:"get" summary:"题库_题库类别列表"`
Id string `p:"id"` //序号
CategoryName string `p:"categoryName"` //题库类别
commonApi.PageReq
commonApi.Author
}
// BusCategorySearchRes 列表返回结果
type BusCategorySearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.BusCategoryListRes `json:"list"`
}
// BusCategoryAddReq 添加操作请求参数
type BusCategoryAddReq struct {
g.Meta `path:"/add" tags:"题库_题库类别" method:"post" summary:"题库_题库类别添加"`
commonApi.Author
CategoryName string `p:"categoryName" v:"required#题库类别不能为空"`
}
// BusCategoryAddRes 添加操作返回结果
type BusCategoryAddRes struct {
commonApi.EmptyRes
}
// BusCategoryEditReq 修改操作请求参数
type BusCategoryEditReq struct {
g.Meta `path:"/edit" tags:"题库_题库类别" method:"put" summary:"题库_题库类别修改"`
commonApi.Author
Id int64 `p:"id" v:"required#主键ID不能为空"`
CategoryName string `p:"categoryName" v:"required#题库类别不能为空"`
}
// BusCategoryEditRes 修改操作返回结果
type BusCategoryEditRes struct {
commonApi.EmptyRes
}
// BusCategoryGetReq 获取一条数据请求
type BusCategoryGetReq struct {
g.Meta `path:"/get" tags:"题库_题库类别" method:"get" summary:"获取题库_题库类别信息"`
commonApi.Author
Id int64 `p:"id" v:"required#主键必须"` //通过主键获取
}
// BusCategoryGetRes 获取一条数据结果
type BusCategoryGetRes struct {
g.Meta `mime:"application/json"`
*model.BusCategoryInfoRes
}
// BusCategoryDeleteReq 删除数据请求
type BusCategoryDeleteReq struct {
g.Meta `path:"/delete" tags:"题库_题库类别" method:"delete" summary:"删除题库_题库类别"`
commonApi.Author
Ids []int64 `p:"ids" v:"required#主键必须"` //通过主键删除
}
// BusCategoryDeleteRes 删除数据返回
type BusCategoryDeleteRes struct {
commonApi.EmptyRes
}

View File

@ -0,0 +1,103 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2023-07-28 14:08:14
// 生成路径: api/v1/system/bus_company.go
// 生成人gfast
// desc:公司相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// BusCompanySearchReq 分页请求参数
type BusCompanySearchReq struct {
g.Meta `path:"/list" tags:"公司" method:"get" summary:"公司列表"`
CompanyId string `p:"companyId"` //序号
CompanyName string `p:"companyName"` //公司名称
Status string `p:"status"` //帐号状态
CreatedAt string `p:"createdAt" v:"createdAt@datetime#创建时间需为YYYY-MM-DD hh:mm:ss格式"` //创建时间
commonApi.PageReq
commonApi.Author
}
// BusCompanySearchRes 列表返回结果
type BusCompanySearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.BusCompanyListRes `json:"list"`
}
// BusCompanyAddReq 添加操作请求参数
type BusCompanyAddReq struct {
g.Meta `path:"/add" tags:"公司" method:"post" summary:"公司添加"`
commonApi.Author
CompanyName string `p:"companyName" v:"required#公司名称不能为空"`
Status string `p:"status" v:"required#帐号状态不能为空"`
UpdateBy string `p:"updateBy" `
}
// BusCompanyAddRes 添加操作返回结果
type BusCompanyAddRes struct {
commonApi.EmptyRes
}
// BusCompanyEditReq 修改操作请求参数
type BusCompanyEditReq struct {
g.Meta `path:"/edit" tags:"公司" method:"put" summary:"公司修改"`
commonApi.Author
CompanyId int64 `p:"companyId" v:"required#主键ID不能为空"`
CompanyName string `p:"companyName" v:"required#公司名称不能为空"`
Status string `p:"status" v:"required#帐号状态不能为空"`
UpdateBy string `p:"updateBy" `
}
// BusCompanyEditRes 修改操作返回结果
type BusCompanyEditRes struct {
commonApi.EmptyRes
}
// BusCompanyGetReq 获取一条数据请求
type BusCompanyGetReq struct {
g.Meta `path:"/get" tags:"公司" method:"get" summary:"获取公司信息"`
commonApi.Author
CompanyId int64 `p:"companyId" v:"required#主键必须"` //通过主键获取
}
// BusCompanyGetRes 获取一条数据结果
type BusCompanyGetRes struct {
g.Meta `mime:"application/json"`
*model.BusCompanyInfoRes
}
// BusCompanyDeleteReq 删除数据请求
type BusCompanyDeleteReq struct {
g.Meta `path:"/delete" tags:"公司" method:"delete" summary:"删除公司"`
commonApi.Author
CompanyIds []int64 `p:"companyIds" v:"required#主键必须"` //通过主键删除
}
// BusCompanyDeleteRes 删除数据返回
type BusCompanyDeleteRes struct {
commonApi.EmptyRes
}
//app
// BusCompanyAppSearchReq分页请求参数
type BusCompanyAppSearchReq struct {
g.Meta `path:"/applist" tags:"材料设备App" method:"get" summary:"公司app列表"`
commonApi.Author
}
// BusCompanyAppSearchRes 列表返回结果
type BusCompanyAppSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.BusCompanyAppListRes `json:"list"`
}

View File

@ -0,0 +1,94 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2023-12-04 18:09:50
// 生成路径: api/v1/system/bus_complaint_box.go
// 生成人gfast
// desc:意见箱相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// BusComplaintBoxSearchReq 分页请求参数
type BusComplaintBoxSearchReq struct {
g.Meta `path:"/list" tags:"意见箱" method:"get" summary:"意见箱列表"`
ProjectId string `p:"projectId" v:"projectId@integer#项目id需为整数"` // 项目id
Openid string `p:"openid"` // openid
Status string `p:"status"` // 状态0未读1已读
Dispose string `p:"dispose" v:"dispose@datetime#处理时间需为YYYY-MM-DD hh:mm:ss格式"` // 处理时间
CreatedAt string `p:"createdAt" v:"createdAt@datetime#创建时间需为YYYY-MM-DD hh:mm:ss格式"` // 创建时间
Phone string `p:"phone"` // 手机号
commonApi.PageReq
commonApi.Author
}
// BusComplaintBoxSearchRes 列表返回结果
type BusComplaintBoxSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.BusComplaintBoxListRes `json:"list"`
}
//// BusComplaintBoxAddReq 添加操作请求参数
//type BusComplaintBoxAddReq struct {
// g.Meta `path:"/add" tags:"意见箱" method:"post" summary:"意见箱添加"`
// commonApi.Author
// ProjectId int64 `p:"projectId" `
// Openid string `p:"openid" `
// Opinion string `p:"opinion" `
//}
//
//// BusComplaintBoxAddRes 添加操作返回结果
//type BusComplaintBoxAddRes struct {
// commonApi.EmptyRes
//}
// BusComplaintBoxEditReq 修改操作请求参数
type BusComplaintBoxEditReq struct {
g.Meta `path:"/edit" tags:"意见箱" method:"put" summary:"意见箱修改"`
commonApi.Author
Id int64 `p:"id" v:"required#主键ID不能为空"`
ProjectId int64 `p:"projectId" `
Openid string `p:"openid" `
Opinion string `p:"opinion" v:"max-length:512#最大输入字数为512"`
Status string `p:"status" v:"required#状态0未读1已读不能为空"`
Dispose *gtime.Time `p:"dispose" `
Remark string `p:"remark" v:"max-length:512#最大输入字数为512"`
}
// BusComplaintBoxEditRes 修改操作返回结果
type BusComplaintBoxEditRes struct {
commonApi.EmptyRes
}
// BusComplaintBoxGetReq 获取一条数据请求
type BusComplaintBoxGetReq struct {
g.Meta `path:"/get" tags:"意见箱" method:"get" summary:"获取意见箱信息"`
commonApi.Author
Id int64 `p:"id" v:"required#主键必须"` // 通过主键获取
}
// BusComplaintBoxGetRes 获取一条数据结果
type BusComplaintBoxGetRes struct {
g.Meta `mime:"application/json"`
*model.BusComplaintBoxInfoRes
}
// BusComplaintBoxDeleteReq 删除数据请求
type BusComplaintBoxDeleteReq struct {
g.Meta `path:"/delete" tags:"意见箱" method:"delete" summary:"删除意见箱"`
commonApi.Author
Ids []int64 `p:"ids" v:"required#主键必须"` // 通过主键删除
}
// BusComplaintBoxDeleteRes 删除数据返回
type BusComplaintBoxDeleteRes struct {
commonApi.EmptyRes
}

View File

@ -0,0 +1,88 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2023-11-10 14:08:39
// 生成路径: api/v1/system/bus_construction_blacklist.go
// 生成人gfast
// desc:黑名单相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// BusConstructionBlacklistSearchReq 分页请求参数
type BusConstructionBlacklistSearchReq struct {
g.Meta `path:"/list" tags:"黑名单" method:"get" summary:"黑名单列表"`
Name string `p:"name"` //名字
SfzNumber string `p:"sfzNumber"` //身份证号码
CreatedAt string `p:"createdAt" v:"createdAt@date#创建时间需为YYYY-MM-DD格式"` //创建时间
commonApi.PageReq
commonApi.Author
}
// BusConstructionBlacklistSearchRes 列表返回结果
type BusConstructionBlacklistSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.BusConstructionBlacklistListRes `json:"list"`
}
// BusConstructionBlacklistAddReq 添加操作请求参数
type BusConstructionBlacklistAddReq struct {
g.Meta `path:"/add" tags:"黑名单" method:"post" summary:"黑名单添加"`
commonApi.Author
Openid string `p:"openid" v:"required#主键ID不能为空"`
Name string `p:"name" v:"required#名字不能为空"`
SfzNumber string `p:"sfzNumber" v:"required#身份证号码不能为空"`
Remark string `p:"remark" `
}
// BusConstructionBlacklistAddRes 添加操作返回结果
type BusConstructionBlacklistAddRes struct {
commonApi.EmptyRes
}
// BusConstructionBlacklistGetReq 获取一条数据请求
type BusConstructionBlacklistGetReq struct {
g.Meta `path:"/get" tags:"黑名单" method:"get" summary:"获取黑名单信息"`
commonApi.Author
Openid string `p:"openid" v:"required#主键必须"` //通过主键获取
}
// BusConstructionBlacklistGetRes 获取一条数据结果
type BusConstructionBlacklistGetRes struct {
g.Meta `mime:"application/json"`
*model.BusConstructionBlacklistInfoRes
}
// BusConstructionBlacklistDeleteReq 删除数据请求
type BusConstructionBlacklistDeleteReq struct {
g.Meta `path:"/delete" tags:"黑名单" method:"delete" summary:"删除黑名单"`
commonApi.Author
Openids []string `p:"openids" v:"required#主键必须"` //通过主键删除
}
// BusConstructionBlacklistDeleteRes 删除数据返回
type BusConstructionBlacklistDeleteRes struct {
commonApi.EmptyRes
}
// BlackListReq 黑名单人员列表查询
type BlackListReq struct {
g.Meta `path:"/blackList" tags:"黑名单" method:"get" summary:"添加用户列表"`
SfzNumber string `p:"sfzNumber" dc:"身份证号码"` //身份证号码
commonApi.PageReq
commonApi.Author
}
// BlackListRes 黑名单人员列表查询
type BlackListRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.ModBlackListRes `json:"list"`
}

View File

@ -0,0 +1,94 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2024-03-22 16:27:43
// 生成路径: api/v1/system/bus_construction_log.go
// 生成人gfast
// desc:施工日志相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// BusConstructionLogSearchReq 分页请求参数
type BusConstructionLogSearchReq struct {
g.Meta `path:"/list" tags:"施工日志" method:"get" summary:"施工日志列表"`
//Id string `p:"id"`
//ProjectName string `p:"projectName"`
ProjectId int64 `p:"projectId" dc:"项目id"`
DateOfOccurrence string `p:"dateOfOccurrence" dc:"发生日期筛选" v:"date-format:Y-m-d#时间格式错误!"`
commonApi.PageReq
commonApi.Author
}
// BusConstructionLogSearchRes 列表返回结果
type BusConstructionLogSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.AppletDetails `json:"list"`
}
// BusConstructionLogAddReq 添加操作请求参数
type BusConstructionLogAddReq struct {
g.Meta `path:"/add" tags:"施工日志" method:"post" summary:"施工日志添加"`
commonApi.Author
ProjectId int64 `p:"projectId" `
DateOfOccurrence string `p:"dateOfOccurrence" `
Condition string `p:"condition" `
TechnologyQuality string `p:"technologyQuality" `
Remark string `p:"remark" `
Path string `p:"path" `
CreatedBy uint64
}
// BusConstructionLogAddRes 添加操作返回结果
type BusConstructionLogAddRes struct {
commonApi.EmptyRes
}
// BusConstructionLogEditReq 修改操作请求参数
type BusConstructionLogEditReq struct {
g.Meta `path:"/edit" tags:"施工日志" method:"put" summary:"施工日志修改"`
commonApi.Author
Id int64 `p:"id" v:"required#主键ID不能为空"`
DateOfOccurrence string `p:"dateOfOccurrence" `
Condition string `p:"condition" `
TechnologyQuality string `p:"technologyQuality" `
Remark string `p:"remark" `
UpdatedBy uint64
}
// BusConstructionLogEditRes 修改操作返回结果
type BusConstructionLogEditRes struct {
commonApi.EmptyRes
}
// BusConstructionLogGetReq 获取一条数据请求
type BusConstructionLogGetReq struct {
g.Meta `path:"/get" tags:"施工日志" method:"get" summary:"获取施工日志信息"`
commonApi.Author
Id int64 `p:"id" v:"required#主键必须"` //通过主键获取
}
// BusConstructionLogGetRes 获取一条数据结果
type BusConstructionLogGetRes struct {
g.Meta `mime:"application/json"`
DataEntity *model.AppletDetails `json:"dataEntity"`
}
// BusConstructionLogDeleteReq 删除数据请求
type BusConstructionLogDeleteReq struct {
g.Meta `path:"/delete" tags:"施工日志" method:"delete" summary:"删除施工日志"`
commonApi.Author
Ids []int64 `p:"ids" v:"required#主键必须"` //通过主键删除
}
// BusConstructionLogDeleteRes 删除数据返回
type BusConstructionLogDeleteRes struct {
commonApi.EmptyRes
}

View File

@ -0,0 +1,85 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2023-08-07 10:17:50
// 生成路径: api/v1/system/bus_construction_project.go
// 生成人gfast
// desc:施工人员对应项目相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// BusConstructionProjectSearchReq 分页请求参数
type BusConstructionProjectSearchReq struct {
g.Meta `path:"/list" tags:"施工人员对应项目" method:"get" summary:"施工人员对应项目列表"`
Id string `p:"id"` //序号
ConstructionUserId string `p:"constructionUserId" v:"constructionUserId@integer#微信用户id需为整数"` //微信用户id
ProjectId string `p:"projectId" v:"projectId@integer#项目id需为整数"` //项目id
commonApi.PageReq
commonApi.Author
}
// BusConstructionProjectSearchRes 列表返回结果
type BusConstructionProjectSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.BusConstructionProjectListRes `json:"list"`
}
// BusConstructionProjectAddReq 添加操作请求参数
type BusConstructionProjectAddReq struct {
g.Meta `path:"/add" tags:"施工人员对应项目" method:"post" summary:"施工人员对应项目添加"`
commonApi.Author
ConstructionUserId int64 `p:"constructionUserId" `
ProjectId int64 `p:"projectId" `
}
// BusConstructionProjectAddRes 添加操作返回结果
type BusConstructionProjectAddRes struct {
commonApi.EmptyRes
}
// BusConstructionProjectEditReq 修改操作请求参数
type BusConstructionProjectEditReq struct {
g.Meta `path:"/edit" tags:"施工人员对应项目" method:"put" summary:"施工人员对应项目修改"`
commonApi.Author
Id uint64 `p:"id" v:"required#主键ID不能为空"`
ConstructionUserId int64 `p:"constructionUserId" `
ProjectId int64 `p:"projectId" `
}
// BusConstructionProjectEditRes 修改操作返回结果
type BusConstructionProjectEditRes struct {
commonApi.EmptyRes
}
// BusConstructionProjectGetReq 获取一条数据请求
type BusConstructionProjectGetReq struct {
g.Meta `path:"/get" tags:"施工人员对应项目" method:"get" summary:"获取施工人员对应项目信息"`
commonApi.Author
Id uint64 `p:"id" v:"required#主键必须"` //通过主键获取
}
// BusConstructionProjectGetRes 获取一条数据结果
type BusConstructionProjectGetRes struct {
g.Meta `mime:"application/json"`
*model.BusConstructionProjectInfoRes
}
// BusConstructionProjectDeleteReq 删除数据请求
type BusConstructionProjectDeleteReq struct {
g.Meta `path:"/delete" tags:"施工人员对应项目" method:"delete" summary:"删除施工人员对应项目"`
commonApi.Author
Ids []uint64 `p:"ids" v:"required#主键必须"` //通过主键删除
}
// BusConstructionProjectDeleteRes 删除数据返回
type BusConstructionProjectDeleteRes struct {
commonApi.EmptyRes
}

View File

@ -0,0 +1,382 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2023-08-07 10:31:18
// 生成路径: api/v1/system/bus_construction_user.go
// 生成人gfast
// desc:施工人员相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/net/ghttp"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
comModel "github.com/tiger1103/gfast/v3/internal/app/common/model"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
wxModel "github.com/tiger1103/gfast/v3/internal/app/wxApplet/model"
)
// ExportDataFuncReq 分页请求参数
type ExportDataFuncReq struct {
g.Meta `path:"/list" tags:"施工人员" method:"get" summary:"施工人员列表"`
ProjectId string `p:"projectId" dc:"导出所有"` //项目id
Openid []string `p:"openid" dc:"根据openid导出"` //项目id
commonApi.Author
}
// ExportDataFuncRes 列表返回结果
type ExportDataFuncRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.BusConstructionUserListRes `json:"list"`
}
// BusConstructionUserSearchReq 分页请求参数
type BusConstructionUserSearchReq struct {
g.Meta `path:"/list" tags:"施工人员" method:"get" summary:"施工人员列表"`
NickName string `p:"nickName"` //微信名称
UserName string `p:"userName"` //人员姓名
ProjectId string `p:"projectId" v:"projectId@integer#项目id需为整数"` //项目id
Status string `p:"status"` //状态
CreatedAt string `p:"createdAt" v:"createdAt@datetime#创建时间需为YYYY-MM-DD hh:mm:ss格式"` //创建时间
Phone string `p:"phone"` //电话
Sex string `p:"sex"` //性别
SfzNation string `p:"sfzNation"` //身份证民族
NativePlace string `p:"nativePlace"` //籍贯
commonApi.PageReq
commonApi.Author
}
// BusConstructionUserSearchRes 列表返回结果
type BusConstructionUserSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.BusConstructionUserListRes `json:"list"`
}
// BusConstructionUserAddReq 添加操作请求参数
type BusConstructionUserAddReq struct {
g.Meta `path:"/add" tags:"施工人员" method:"post" summary:"施工人员添加"`
commonApi.Author
Openid string `p:"openid" `
NickName string `p:"nickName" v:"required#微信名称不能为空"`
TeamId int64 `p:"teamId" `
HeadIcon string `p:"headIcon" `
PacePhoto string `p:"pacePhoto" `
UserName string `p:"userName" v:"required#人员姓名不能为空"`
ProjectId int64 `p:"projectId" `
Status string `p:"status" v:"required#状态不能为空"`
IsPinch string `p:"isPinch" `
IfManagement string `p:"ifManagement" `
CreateBy string `p:"createBy" `
UpdateBy string `p:"updateBy" `
Phone string `p:"phone" `
Sex string `p:"sex" `
SfzNation string `p:"sfzNation" `
SfzNumber string `p:"sfzNumber" `
SfzStart string `p:"sfzStart" `
SfzEnd string `p:"sfzEnd" `
SfzSite string `p:"sfzSite" `
NativePlace string `p:"nativePlace" `
YhkNumber string `p:"yhkNumber" `
YhkOpeningBank string `p:"yhkOpeningBank" `
YhkCardholder string `p:"yhkCardholder" `
ProjectRecord string `p:"projectRecord" `
RoleIds []int64 `p:"roleIds" dc:"角色ID" v:"array"`
}
// BusConstructionUserAddRes 添加操作返回结果
type BusConstructionUserAddRes struct {
commonApi.EmptyRes
}
// BusConstructionUserEditReq 修改操作请求参数
type BusConstructionUserEditReq struct {
g.Meta `path:"/pcEdit" tags:"施工人员" method:"put" summary:"施工人员修改"`
commonApi.Author
WxOrPc string `p:"wxOrPc" dc:"参数为1表示pc添加 否则为小程序添加"`
SiteNum string `p:"siteNum" dc:"1入场时间 2离场时间 3或零值不操作"`
Id int64 `p:"id" v:"required#主键ID不能为空微信用户"`
Openid string `p:"openid" v:"required-unless:WxOrPc,1#需要填写小程序的openid"`
NickName string `p:"nickName" `
//TeamId int64 `p:"teamId" `
HeadIcon string `p:"headIcon" `
PacePhoto string `p:"pacePhoto" `
UserName string `p:"userName" v:"required#人员姓名不能为空"`
ProjectId int64 `p:"projectId" `
Status string `p:"status" v:"required#状态不能为空"`
IsPinch string `p:"isPinch" `
IfManagement string `p:"ifManagement" `
CreateBy string `p:"createBy" `
UpdateBy string `p:"updateBy" `
Phone string `p:"phone" v:"phone"`
Sex string `p:"sex" `
SfzNation string `p:"sfzNation" `
SfzNumber string `p:"sfzNumber" `
SfzStart string `p:"sfzStart" `
SfzEnd string `p:"sfzEnd" `
SfzSite string `p:"sfzSite" `
NativePlace string `p:"nativePlace" `
YhkNumber string `p:"yhkNumber" `
YhkOpeningBank string `p:"yhkOpeningBank" `
YhkCardholder string `p:"yhkCardholder" `
SfzBirth string `p:"sfzBirth" `
LabourserviceId int64 `p:"labourserviceId"`
TypeOfWork string `p:"typeOfWork"`
EntryDate string `p:"entryDate"`
LeaveDate string `p:"leaveDate"`
Clock string `p:"clock"`
PostReq *model.BusConstructionUserPostInfoRes `json:"postReq"`
ProjectListReq []*model.BusConstructionProjectListRes `json:"projectListReq"`
FilesListReq []*model.BusConstructionUserFileListRes `json:"filesListReq"`
ProjectRecord string `p:"projectRecord" `
DevNum string `p:"devNum" dc:"安全帽标识"`
RoleIds []int64 `p:"roleIds" dc:"角色ID" v:"array"`
}
// BusConstructionUserEditRes 修改操作返回结果
type BusConstructionUserEditRes struct {
commonApi.EmptyRes
}
// BusConstructionUserGetReq 获取一条数据请求
type BusConstructionUserGetReq struct {
g.Meta `path:"/get" tags:"施工人员" method:"get" summary:"获取施工人员信息"`
commonApi.Author
Id int64 `p:"id" v:"required#主键必须"` //通过主键获取
}
// BusConstructionUserGetRes 获取一条数据结果
type BusConstructionUserGetRes struct {
g.Meta `mime:"application/json"`
*model.BusConstructionUserInfoRes
}
// BusConstructionUserDeleteReq 删除数据请求
type BusConstructionUserDeleteReq struct {
g.Meta `path:"/delete" tags:"施工人员" method:"delete" summary:"删除施工人员"`
commonApi.Author
Ids []int64 `p:"ids" v:"required#主键必须"` //通过主键删除
}
// BusConstructionUserDeleteRes 删除数据返回
type BusConstructionUserDeleteRes struct {
commonApi.EmptyRes
}
// BatchImportDataReq 批量导入施工人员的资料
type BatchImportDataReq struct {
g.Meta `path:"/coryBatch" tags:"施工人员" method:"post" summary:"批量导入施工人员的资料(作废)"`
commonApi.Author
File *comModel.UpFile `p:"file"`
}
// BatchImportDataRes 批量导入施工人员的资料
type BatchImportDataRes struct {
commonApi.EmptyRes
}
// ExportSalaryTeamReq 导出施工人员工资组成(项目)
type ExportSalaryTeamReq struct {
g.Meta `path:"/exportSalaryTeam" tags:"施工人员" method:"post" summary:"根据项目或班组导出出勤记录(项目)"`
commonApi.Author
//ProjectId int64 `p:"projectId" dc:"项目主键ID" v:"required#项目主键ID必须"`
//TeamId int64 `p:"teamId" dc:"班组主键ID" `
//Years string `p:"years" dc:"时间格式为2024-02" v:"date-format:Y-m#格式为2024-02"`
FuzzyQuery string `p:"fuzzyQuery" dc:"模糊查询" `
ProjectId int64 `p:"projectId" dc:"项目ID" v:"required#项目ID不能为空"`
TeamId int64 `p:"teamId" dc:"班组ID"`
TypeOfWork string `p:"typeOfWork" dc:"工种"`
DateStr string `p:"dateStr" dc:"日期格式2024-04" v:"date-format:Y-m#时间格式为2024-04"`
}
// ExportSalaryReq 导出施工人员工资组成(班组)
type ExportSalaryReq struct {
g.Meta `path:"/exportSalary" tags:"施工人员" method:"post" summary:"根据项目或班组导出出勤记录(班组)"`
commonApi.Author
FuzzyQuery string `p:"fuzzyQuery" dc:"模糊查询" `
ProjectId int64 `p:"projectId" dc:"项目ID" v:"required#项目ID不能为空"`
TeamId int64 `p:"teamId" dc:"班组ID"`
TypeOfWork string `p:"typeOfWork" dc:"工种"`
DateStr string `p:"dateStr" dc:"日期格式2024-04" v:"date-format:Y-m#时间格式为2024-04"`
}
// ExportSalaryRes 导出施工人员工资组成
type ExportSalaryRes struct {
commonApi.EmptyRes
AttendanceAllOne []model.AttendanceAllEntity `p:"attendanceAllOne" dc:"成员基本信息"`
}
type SigningMessagesReq struct {
g.Meta `path:"/signingMessages" tags:"施工人员" method:"get" summary:"【签名】根据openid获取到指定小程序用户的签名信息"`
commonApi.Author
Openid string `p:"openid" dc:"openid" v:"required#施工人员openid不能为空"`
}
type SigningMessagesRes struct {
commonApi.EmptyRes
Signature *wxModel.BusConstructiomUserSignatureRes `p:"signature" dc:"签名信息"`
}
type SigningUpdateFuncReq struct {
g.Meta `path:"/signingUpdate" tags:"施工人员" method:"put" summary:"【签名】修改指定签名的状态"`
commonApi.Author
Id string `p:"id" dc:"签名主键ID" v:"required#签名主键ID不能为空"`
Change string `p:"change" dc:"是否更改签名1不更改 2更改" v:"required#change状态不能为空"`
}
type SigningUpdateFuncRes struct {
commonApi.EmptyRes
}
type OneClickOpenReq struct {
g.Meta `path:"/oneClickOpen" tags:"施工人员" method:"put" summary:"一键开启/关闭打开"`
commonApi.Author
Type string `p:"type" dc:"1开启 2关闭" v:"between:1,2#取值范围为1~2"`
ProjectId int64 `p:"projectId" dc:"项目ID" v:"required#项目主键ID必须"`
}
type OneClickOpenRes struct {
commonApi.EmptyRes
}
type ClockingConditionReq struct {
g.Meta `path:"/clockingCondition" tags:"施工人员" method:"put" summary:"开启/关闭打开(根据某个人操作)"`
commonApi.Author
Type string `p:"type" dc:"1开启 2关闭" v:"between:1,2#取值范围为1~2"`
Id int64 `p:"id" dc:"ID" v:"required#主键ID必须"`
}
type ClockingConditionRes struct {
commonApi.EmptyRes
}
type TemplateExportReq struct {
g.Meta `path:"/templateExport" tags:"施工人员" method:"get" summary:"施工人员资料文件上传模板导出"`
ProjectId int64 `p:"projectId" v:"required#项目ID必须"`
commonApi.Author
}
type TemplateExportRes struct {
commonApi.EmptyRes
Path string `p:"path" dc:"zip路径"`
}
type ZipFolderuploadReq struct {
g.Meta `path:"/zipFolderupload" tags:"施工人员" method:"post" summary:"批量上传施工人员的资料压缩文件zip上传"`
//File *ghttp.UploadFile `p:"file" `
FilePath string `p:"filePath" `
commonApi.Author
}
type ZipFolderuploadRes struct {
commonApi.EmptyRes
}
type DepartureReq struct {
g.Meta `path:"/departure" tags:"施工人员" method:"post" summary:"离场(成员离开班组)"`
Id string `p:"id" dc:"班组成员主键ID" v:"required#班组成员主键ID必须"`
File []*ghttp.UploadFile `p:"file" dc:"附件"`
Remark string `p:"remark" dc:"备注" v:"max-length:512#最大输入字数为512"`
commonApi.Author
}
type DepartureRes struct {
commonApi.EmptyRes
}
type DepartureRecordReq struct {
g.Meta `path:"/departureRecord" tags:"施工人员" method:"post" summary:"施工人员入场退场历史记录信息(根据身份证信息查询)"`
SfzNumber string `p:"sfzNumber" dc:"身份证号码" v:"required#身份证号码必须"`
commonApi.Author
}
type DepartureRecordRes struct {
commonApi.EmptyRes
List []model.BusConstructionUserDepartureInfoRes `p:"list"`
}
type PcCollectDataForTwoWeeksReq struct {
g.Meta `path:"/pcCollectDataForTwoWeeks" tags:"施工人员" method:"get" summary:"获取最近两周的数据(统计全勤、半勤、缺勤)"`
commonApi.Author
ProjectId string `p:"projectId" dc:"项目ID" v:"required#项目ID不能为空"`
}
type PcCollectDataForTwoWeeksRes struct {
commonApi.EmptyRes
List []*PcCollectDataForTwoWeeksTwoRes `json:"list"`
}
type PcCollectDataForTwoWeeksTwoRes struct {
DateStr string `json:"dateStr" dc:"日期"`
Absenteeism int `json:"absenteeism" dc:"缺勤人数(下班未打卡)"`
HalfDuty int `json:"halfDuty" dc:"半勤人数(只打了上班)"`
Attendance int `json:"attendance" dc:"出勤人数(全勤)"`
}
type PcSelectBelowProjectOfPersonnelReq struct {
g.Meta `path:"/pcSelectBelowProjectOfPersonnel" tags:"施工人员" method:"get" summary:"获取指定项目下的人员打卡信息"`
commonApi.Author
commonApi.PageReq
FuzzyQuery string `p:"fuzzyQuery" dc:"模糊查询" `
ProjectId int64 `p:"projectId" dc:"项目ID" v:"required#项目ID不能为空"`
TeamId int64 `p:"teamId" dc:"班组ID"`
TypeOfWork string `p:"typeOfWork" dc:"工种"`
DateStr string `p:"dateStr" dc:"日期格式2024-04" v:"date-format:Y-m#时间格式为2024-04"`
}
type PcSelectBelowProjectOfPersonnelRes struct {
commonApi.EmptyRes
commonApi.ListRes
List []*PcSelectBelowProjectOfPersonnelTwoRes `json:"list"`
}
type PcSelectBelowProjectOfPersonnelTwoRes struct {
Id string `p:"id" dc:"打卡主键ID"`
Openid string `p:"openid" dc:"openid"`
UserName string `p:"userName" dc:"用户名称"`
TeamName string `p:"teamName" dc:"班组名称"`
TypeOfWork string `p:"typeOfWork" dc:"工种字典type_of_work"`
Attendance int `p:"attendance" dc:"出勤(单位:天)"`
BeLate int `p:"beLate" dc:"迟到(单位:次)"`
LeaveEarly int `p:"leaveEarly" dc:"早退(单位:次)"`
LackOfCard int `p:"lackOfCard" dc:"缺卡(单位:次)"`
List []*wxModel.BusAttendanceInfoRes `json:"list"`
}
type PcQueryBasedOnOpenidReq struct {
g.Meta `path:"/pcQueryBasedOnOpenid" tags:"施工人员" method:"get" summary:"根据openid查询某人指定月份的打卡详情"`
commonApi.Author
Openid string `p:"openid" dc:"openid" `
DateStr string `p:"dateStr" dc:"日期格式2024-04" v:"date-format:Y-m#时间格式为2024-04"`
}
type PcQueryBasedOnOpenidRes struct {
commonApi.EmptyRes
List []*PcQueryBasedOnOpenidTwoRes `json:"list"`
}
type PcQueryBasedOnOpenidTwoRes struct {
Openid string `p:"openid" dc:"openid"`
ProjectId int64 `p:"projectId" dc:"项目ID"`
ProjectName string `p:"projectName" dc:"班组名称"`
TeamId int64 `p:"teamId" dc:"班组ID"`
TeamName string `p:"teamName" dc:"班组名称"`
PrintingDate string `p:"printingDate" dc:"年月日"`
Status []string `p:"status" dc:"1、考勤正常 2迟到早退缺卡 3补卡申请"`
ThreeList []*PcQueryBasedOnOpenidThreeRes `json:"threelist"`
}
type PcQueryBasedOnOpenidThreeRes struct {
Commuter string `p:"commuter" dc:"上下班1上班 2下班"`
Clock string `p:"clock" dc:"打卡日期时间"`
IsPinch string `p:"isPinch" dc:"1正常,2迟到,3早退,4缺勤,5补卡"`
}
type ListOfAttendanceMachinesReq struct {
g.Meta `path:"/listOfAttendanceMachines" tags:"施工人员" method:"get" summary:"考勤机列表"`
ProjectId int64 `p:"projectId" dc:"项目ID"` //项目id
Sn string `p:"sn" dc:"根据openid导出"` //sn
commonApi.Author
}
type ListOfAttendanceMachinesRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.BusConstructionUserListRes `json:"list"`
}

View File

@ -0,0 +1,103 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2023-08-07 10:17:41
// 生成路径: api/v1/system/bus_construction_user_file.go
// 生成人gfast
// desc:微信用户的文件存储相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// BusConstructionUserFileSearchReq 分页请求参数
type BusConstructionUserFileSearchReq struct {
g.Meta `path:"/list" tags:"微信用户的文件存储" method:"get" summary:"微信用户的文件存储列表"`
Id string `p:"id"` //主键ID
UserId string `p:"userId" v:"userId@integer#用户id需为整数"` //用户id
UserImgType string `p:"userImgType"` //图片类型
Path string `p:"path"` //图片路径
CreatedAt string `p:"createdAt" v:"createdAt@datetime#创建时间需为YYYY-MM-DD hh:mm:ss格式"` //创建时间
commonApi.PageReq
commonApi.Author
}
// BusConstructionUserFileSearchRes 列表返回结果
type BusConstructionUserFileSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.BusConstructionUserFileListRes `json:"list"`
}
// BusConstructionUserFileAddReq 添加操作请求参数
type BusConstructionUserFileAddReq struct {
g.Meta `path:"/add" tags:"微信用户的文件存储" method:"post" summary:"微信用户的文件存储添加"`
commonApi.Author
UserId int64 `p:"userId" v:"required#用户id不能为空"`
UserImgType string `p:"userImgType" `
Path string `p:"path" `
}
// BusConstructionUserFileAddRes 添加操作返回结果
type BusConstructionUserFileAddRes struct {
commonApi.EmptyRes
}
// BusConstructionUserFileEditReq 修改操作请求参数
type BusConstructionUserFileEditReq struct {
g.Meta `path:"/edit" tags:"微信用户的文件存储" method:"put" summary:"微信用户的文件存储修改"`
commonApi.Author
Id int64 `p:"id" v:"required#主键ID不能为空"`
UserId int64 `p:"userId" v:"required#用户id不能为空"`
UserImgType string `p:"userImgType" `
Path string `p:"path" `
}
// BusConstructionUserFileEditRes 修改操作返回结果
type BusConstructionUserFileEditRes struct {
commonApi.EmptyRes
}
// BusConstructionUserFileGetReq 获取一条数据请求
type BusConstructionUserFileGetReq struct {
g.Meta `path:"/get" tags:"微信用户的文件存储" method:"get" summary:"获取微信用户的文件存储信息"`
commonApi.Author
Id int64 `p:"id" v:"required#主键必须"` //通过主键获取
}
// BusConstructionUserFileGetRes 获取一条数据结果
type BusConstructionUserFileGetRes struct {
g.Meta `mime:"application/json"`
*model.BusConstructionUserFileInfoRes
}
// BusConstructionUserFileGetReq 根据主键id获取安全考试信息
type BusConstructionUserFileGetSafetyFileReq struct {
g.Meta `path:"/getsafety" tags:"微信用户的文件存储" method:"get" summary:"获取微信用户的安全考试存储信息"`
commonApi.Author
Id int64 `p:"id" v:"required#主键必须"` //通过主键获取
ProjectId int64 `p:"projectId" v:"required#项目id必须"`
}
// BusConstructionUserFileGetRes 根据主键id获取安全考试信息
type BusConstructionUserFileGetSafetyFileRes struct {
g.Meta `mime:"application/json"`
List *model.BusWechatFileRes `json:"list"`
}
// BusConstructionUserFileDeleteReq 删除数据请求
type BusConstructionUserFileDeleteReq struct {
g.Meta `path:"/delete" tags:"微信用户的文件存储" method:"delete" summary:"删除微信用户的文件存储"`
commonApi.Author
Ids []int64 `p:"ids" v:"required#主键必须"` //通过主键删除
}
// BusConstructionUserFileDeleteRes 删除数据返回
type BusConstructionUserFileDeleteRes struct {
commonApi.EmptyRes
}

View File

@ -0,0 +1,85 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2023-08-07 10:06:34
// 生成路径: api/v1/system/bus_construction_user_post.go
// 生成人gfast
// desc:施工人员岗位相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// BusConstructionUserPostSearchReq 分页请求参数
type BusConstructionUserPostSearchReq struct {
g.Meta `path:"/list" tags:"施工人员岗位" method:"get" summary:"施工人员岗位列表"`
Id string `p:"id"` //
ConstructionUserId string `p:"constructionUserId" v:"constructionUserId@integer#施工人员id需为整数"` //施工人员id
PostId string `p:"postId" v:"postId@integer#岗位id需为整数"` //岗位id
commonApi.PageReq
commonApi.Author
}
// BusConstructionUserPostSearchRes 列表返回结果
type BusConstructionUserPostSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.BusConstructionUserPostListRes `json:"list"`
}
// BusConstructionUserPostAddReq 添加操作请求参数
type BusConstructionUserPostAddReq struct {
g.Meta `path:"/add" tags:"施工人员岗位" method:"post" summary:"施工人员岗位添加"`
commonApi.Author
ConstructionUserId int64 `p:"constructionUserId" `
PostId int64 `p:"postId" `
}
// BusConstructionUserPostAddRes 添加操作返回结果
type BusConstructionUserPostAddRes struct {
commonApi.EmptyRes
}
// BusConstructionUserPostEditReq 修改操作请求参数
type BusConstructionUserPostEditReq struct {
g.Meta `path:"/edit" tags:"施工人员岗位" method:"put" summary:"施工人员岗位修改"`
commonApi.Author
Id uint64 `p:"id" v:"required#主键ID不能为空"`
ConstructionUserId int64 `p:"constructionUserId" `
PostId int64 `p:"postId" `
}
// BusConstructionUserPostEditRes 修改操作返回结果
type BusConstructionUserPostEditRes struct {
commonApi.EmptyRes
}
// BusConstructionUserPostGetReq 获取一条数据请求
type BusConstructionUserPostGetReq struct {
g.Meta `path:"/get" tags:"施工人员岗位" method:"get" summary:"获取施工人员岗位信息"`
commonApi.Author
Id uint64 `p:"id" v:"required#主键必须"` //通过主键获取
}
// BusConstructionUserPostGetRes 获取一条数据结果
type BusConstructionUserPostGetRes struct {
g.Meta `mime:"application/json"`
*model.BusConstructionUserPostInfoRes
}
// BusConstructionUserPostDeleteReq 删除数据请求
type BusConstructionUserPostDeleteReq struct {
g.Meta `path:"/delete" tags:"施工人员岗位" method:"delete" summary:"删除施工人员岗位"`
commonApi.Author
Ids []uint64 `p:"ids" v:"required#主键必须"` //通过主键删除
}
// BusConstructionUserPostDeleteRes 删除数据返回
type BusConstructionUserPostDeleteRes struct {
commonApi.EmptyRes
}

View File

@ -0,0 +1,86 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2024-03-20 16:49:36
// 生成路径: api/v1/system/bus_corporate_events.go
// 生成人gfast
// desc:企业大事记相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// BusCorporateEventsSearchReq 分页请求参数
type BusCorporateEventsSearchReq struct {
g.Meta `path:"/list" tags:"企业大事记" method:"get" summary:"企业大事记列表"`
Headline string `p:"headline"` //标题
CreatedAt string `p:"createdAt" v:"createdAt@datetime#创建时间需为YYYY-MM-DD hh:mm:ss格式"` //创建时间
commonApi.PageReq
commonApi.Author
}
// BusCorporateEventsSearchRes 列表返回结果
type BusCorporateEventsSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.BusCorporateEventsListRes `json:"list"`
}
// BusCorporateEventsAddReq 添加操作请求参数
type BusCorporateEventsAddReq struct {
g.Meta `path:"/add" tags:"企业大事记" method:"post" summary:"企业大事记添加"`
commonApi.Author
Headline string `p:"headline" v:"required#标题必须"`
Content string `p:"content" v:"required#内容必须"`
CreatedBy uint64
}
// BusCorporateEventsAddRes 添加操作返回结果
type BusCorporateEventsAddRes struct {
commonApi.EmptyRes
}
// BusCorporateEventsEditReq 修改操作请求参数
type BusCorporateEventsEditReq struct {
g.Meta `path:"/edit" tags:"企业大事记" method:"put" summary:"企业大事记修改"`
commonApi.Author
Id int64 `p:"id" v:"required#主键ID不能为空"`
Headline string `p:"headline" v:"required#标题必须"`
Content string `p:"content" v:"required#内容必须"`
UpdatedBy uint64
}
// BusCorporateEventsEditRes 修改操作返回结果
type BusCorporateEventsEditRes struct {
commonApi.EmptyRes
}
// BusCorporateEventsGetReq 获取一条数据请求
type BusCorporateEventsGetReq struct {
g.Meta `path:"/get" tags:"企业大事记" method:"get" summary:"获取企业大事记信息"`
commonApi.Author
Id int64 `p:"id" v:"required#主键必须"` //通过主键获取
}
// BusCorporateEventsGetRes 获取一条数据结果
type BusCorporateEventsGetRes struct {
g.Meta `mime:"application/json"`
*model.BusCorporateEventsInfoRes
}
// BusCorporateEventsDeleteReq 删除数据请求
type BusCorporateEventsDeleteReq struct {
g.Meta `path:"/delete" tags:"企业大事记" method:"delete" summary:"删除企业大事记"`
commonApi.Author
Ids []int64 `p:"ids" v:"required#主键必须"` //通过主键删除
}
// BusCorporateEventsDeleteRes 删除数据返回
type BusCorporateEventsDeleteRes struct {
commonApi.EmptyRes
}

View File

@ -0,0 +1,103 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2024-04-09 15:40:16
// 生成路径: api/v1/system/bus_design_audit.go
// 生成人gfast
// desc:设计审核(竣工、施工、可研)相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// BusDesignAuditSearchReq 分页请求参数
type BusDesignAuditSearchReq struct {
g.Meta `path:"/list" tags:"设计审核(竣工、施工、可研)" method:"get" summary:"设计审核(竣工、施工、可研)列表"`
ProjectId int64 `p:"projectId" v:"required#项目ID不能为空"`
TableType string `p:"tableType" dc:"表类型1竣工 2施工 3可研" v:"between:1,3#范围值为1~3"`
Status string `p:"status" dc:"审核状态(1未读 2拒绝 3通过)" v:"between:1,3#范围值为1~3"`
CreatedAt string `p:"createdAt" v:"createdAt@datetime#创建时间需为YYYY-MM-DD hh:mm:ss格式"` //创建时间
commonApi.PageReq
commonApi.Author
}
// BusDesignAuditSearchRes 列表返回结果
type BusDesignAuditSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.CoryAuditListRes `json:"list"`
}
// BusDesignAuditAddReq 添加操作请求参数
type BusDesignAuditAddReq struct {
g.Meta `path:"/add" tags:"设计审核(竣工、施工、可研)" method:"post" summary:"设计审核(竣工、施工、可研)添加"`
commonApi.Author
ProjectId int64 `p:"projectId" v:"required#项目ID不能为空"`
TableName string `p:"tableName" v:"required#表名不能为空"`
TableId int64 `p:"tableId" v:"required#表ID不能为空"`
}
// BusDesignAuditAddRes 添加操作返回结果
type BusDesignAuditAddRes struct {
commonApi.EmptyRes
}
// BusDesignAuditEditReq 修改操作请求参数
type BusDesignAuditEditReq struct {
g.Meta `path:"/edit" tags:"设计审核(竣工、施工、可研)" method:"put" summary:"设计审核(竣工、施工、可研)修改"`
commonApi.Author
Id int64 `p:"id" dc:"主键ID" v:"required#主键ID不能为空"`
Status string `p:"status" dc:"审核状态" v:"required#审核状态(2拒绝 3通过)不能为空" v:"between:2,3#取值范围为2~3"`
Cause string `p:"cause" dc:"拒绝原因status为2必填" v:"required-if:status,2#status未拒绝状态必填cause|max-length:300#最大输入字数为300"`
}
// BusDesignAuditEditRes 修改操作返回结果
type BusDesignAuditEditRes struct {
commonApi.EmptyRes
}
// BusDesignAuditGetReq 获取一条数据请求
type BusDesignAuditGetReq struct {
g.Meta `path:"/get" tags:"设计审核(竣工、施工、可研)" method:"get" summary:"获取设计审核(竣工、施工、可研)信息"`
commonApi.Author
Id int64 `p:"id" v:"required#主键必须"` //通过主键获取
}
// BusDesignAuditGetRes 获取一条数据结果
type BusDesignAuditGetRes struct {
g.Meta `mime:"application/json"`
*model.BusDesignAuditInfoRes
}
// BusDesignAuditDeleteReq 删除数据请求
type BusDesignAuditDeleteReq struct {
g.Meta `path:"/delete" tags:"设计审核(竣工、施工、可研)" method:"delete" summary:"删除设计审核(竣工、施工、可研)"`
commonApi.Author
Id int64 `p:"id" dc:"审核主键ID" v:"required#主键必须"`
}
// BusDesignAuditDeleteRes 删除数据返回
type BusDesignAuditDeleteRes struct {
commonApi.EmptyRes
}
// DesignAuditFileDownloadReq 单文件下载
type DesignAuditFileDownloadReq struct {
g.Meta `path:"/designAuditFileDownload" tags:"设计审核(竣工、施工、可研)" method:"get" summary:"单文件下载"`
ProjectId int64 `p:"projectId" dc:"项目ID" v:"required#projectId不能为空"`
TableName string `p:"tableName" dc:"表名称" v:"required#tableName不能为空"`
TableId int64 `p:"tableId" dc:"对应TableName的主键ID" v:"required#tableId不能为空"`
Type string `p:"type" dc:"1文件下载 2文件夹下载" v:"required#type不能为空"`
commonApi.Author
}
// DesignAuditFileDownloadRes 单文件下载
type DesignAuditFileDownloadRes struct {
commonApi.EmptyRes
Path string `p:"path" dc:"文件夹压缩包下载路径"`
}

View File

@ -0,0 +1,87 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2023-07-29 16:31:29
// 生成路径: api/v1/system/bus_design_document.go
// 生成人gfast
// desc:设计管理相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
comModel "github.com/tiger1103/gfast/v3/internal/app/common/model"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// BusDesignDocumentSearchReq 分页请求参数
type BusDesignDocumentSearchReq struct {
g.Meta `path:"/list" tags:"设计管理" method:"get" summary:"设计管理列表"`
DocumenName string `p:"documenName"` //文档名称
CreatedAt string `p:"createdAt" v:"createdAt@datetime#上传时间需为YYYY-MM-DD hh:mm:ss格式"` //上传时间
commonApi.PageReq
commonApi.Author
}
// BusDesignDocumentSearchRes 列表返回结果
type BusDesignDocumentSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.BusDesignDocumentListRes `json:"list"`
}
// BusDesignDocumentAddReq 添加操作请求参数
type BusDesignDocumentAddReq struct {
g.Meta `path:"/add" tags:"设计管理" method:"post" summary:"设计管理添加"`
commonApi.Author
FileId int64 `p:"fileId" `
ProjectId int64 `p:"projectId" `
FileUrl []*comModel.UpFile `p:"fileUrl" `
}
// BusDesignDocumentAddRes 添加操作返回结果
type BusDesignDocumentAddRes struct {
commonApi.EmptyRes
}
// BusDesignDocumentEditReq 修改操作请求参数
type BusDesignDocumentEditReq struct {
g.Meta `path:"/edit" tags:"设计管理" method:"put" summary:"设计管理修改"`
commonApi.Author
Id int64 `p:"id" v:"required#主键ID不能为空"`
FileId int64 `p:"fileId" `
ProjectId int64 `p:"projectId" `
FileUrl []*comModel.UpFile `p:"fileUrl" `
}
// BusDesignDocumentEditRes 修改操作返回结果
type BusDesignDocumentEditRes struct {
commonApi.EmptyRes
}
// BusDesignDocumentGetReq 获取一条数据请求
type BusDesignDocumentGetReq struct {
g.Meta `path:"/get" tags:"设计管理" method:"get" summary:"获取设计管理信息"`
commonApi.Author
Id int64 `p:"id" v:"required#主键必须"` //通过主键获取
}
// BusDesignDocumentGetRes 获取一条数据结果
type BusDesignDocumentGetRes struct {
g.Meta `mime:"application/json"`
*model.BusDesignDocumentInfoRes
}
// BusDesignDocumentDeleteReq 删除数据请求
type BusDesignDocumentDeleteReq struct {
g.Meta `path:"/delete" tags:"设计管理" method:"delete" summary:"删除设计管理"`
commonApi.Author
Ids []int64 `p:"ids" v:"required#主键必须"` //通过主键删除
}
// BusDesignDocumentDeleteRes 删除数据返回
type BusDesignDocumentDeleteRes struct {
commonApi.EmptyRes
}

View File

@ -0,0 +1,96 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2024-04-11 17:28:54
// 生成路径: api/v1/system/bus_design_period_range.go
// 生成人gfast
// desc:设计-周期范围相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// BusDesignPeriodRangeSearchReq 分页请求参数
type BusDesignPeriodRangeSearchReq struct {
g.Meta `path:"/list" tags:"设计-周期范围" method:"get" summary:"设计-周期范围列表"`
ProjectId string `p:"projectId" dc:"项目ID" v:"projectId@integer#项目id需为整数"` //项目id
TableType string `p:"tableType" dc:"记录类型1竣工 2施工 3可研" v:"between:1,3#范围值为1~3"` //记录类型1竣工 2施工 3可研
FileName string `p:"fileName" dc:"文件名称"` //文件名称
commonApi.PageReq
commonApi.Author
}
// BusDesignPeriodRangeSearchRes 列表返回结果
type BusDesignPeriodRangeSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.BusDesignPeriodRangeListRes `json:"list"`
}
// BusDesignPeriodRangeAddReq 添加操作请求参数
type BusDesignPeriodRangeAddReq struct {
g.Meta `path:"/add" tags:"设计-周期范围" method:"post" summary:"设计-周期范围添加"`
commonApi.Author
ProjectId int64 `p:"projectId" dc:"项目iD" v:"required#项目ID不能为空"`
TableType string `p:"tableType" dc:"记录类型" v:"required#记录类型不能为空"`
FileName string `p:"fileName" dc:"文件名称" v:"required#文件名称不能为空"`
FilePath string `p:"filePath" dc:"文件路径" v:"required#文件路径不能为空"`
StartTime string `p:"startTime" dc:"起始时间"`
EndTime string `p:"endTime" dc:"结束时间"`
}
// BusDesignPeriodRangeAddRes 添加操作返回结果
type BusDesignPeriodRangeAddRes struct {
commonApi.EmptyRes
}
// BusDesignPeriodRangeEditReq 修改操作请求参数
type BusDesignPeriodRangeEditReq struct {
g.Meta `path:"/edit" tags:"设计-周期范围" method:"put" summary:"设计-周期范围修改"`
commonApi.Author
Id int64 `p:"id" v:"required#主键ID不能为空"`
ProjectId int64 `p:"projectId" `
TableType string `p:"tableType" `
FileName string `p:"fileName" v:"required#文件名称不能为空"`
FilePath string `p:"filePath" `
IsEntering string `p:"isEntering" `
StartTime string `p:"startTime" `
EndTime string `p:"endTime" `
CreateBy string `p:"createBy" `
UpdateBy string `p:"updateBy" `
}
// BusDesignPeriodRangeEditRes 修改操作返回结果
type BusDesignPeriodRangeEditRes struct {
commonApi.EmptyRes
}
// BusDesignPeriodRangeGetReq 获取一条数据请求
type BusDesignPeriodRangeGetReq struct {
g.Meta `path:"/get" tags:"设计-周期范围" method:"get" summary:"获取设计-周期范围信息"`
commonApi.Author
Id int64 `p:"id" v:"required#主键必须"` //通过主键获取
}
// BusDesignPeriodRangeGetRes 获取一条数据结果
type BusDesignPeriodRangeGetRes struct {
g.Meta `mime:"application/json"`
*model.BusDesignPeriodRangeInfoRes
}
// BusDesignPeriodRangeDeleteReq 删除数据请求
type BusDesignPeriodRangeDeleteReq struct {
g.Meta `path:"/delete" tags:"设计-周期范围" method:"delete" summary:"删除设计-周期范围"`
commonApi.Author
Ids []int64 `p:"ids" v:"required#主键必须"` //通过主键删除
}
// BusDesignPeriodRangeDeleteRes 删除数据返回
type BusDesignPeriodRangeDeleteRes struct {
commonApi.EmptyRes
}

View File

@ -0,0 +1,122 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2023-07-29 10:41:51
// 生成路径: api/v1/system/bus_engineering_quality.go
// 生成人gfast
// desc:工程质量列相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
comModel "github.com/tiger1103/gfast/v3/internal/app/common/model"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// BusEngineeringQualitySearchReq 分页请求参数
type BusEngineeringQualitySearchReq struct {
g.Meta `path:"/list" tags:"工程质量列" method:"get" summary:"工程质量列列表"`
UnitName1 string `p:"unitName1"` //单位工程
UnitName2 string `p:"unitName2"` //子单位工程
UnitName3 string `p:"unitName3"` //分部工程
UnitName4 string `p:"unitName4"` //子分部工程
UnitName5 string `p:"unitName5"` //分项工程
UnitName6 string `p:"unitName6"` //检验批
QualityName string `p:"qualityName"` //工程项目名称
commonApi.PageReq
commonApi.Author
}
// BusEngineeringQualitySearchRes 列表返回结果
type BusEngineeringQualitySearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.BusEngineeringQualityListRes `json:"list"`
}
// BusEngineeringQualityAddReq 添加操作请求参数
type BusEngineeringQualityAddReq struct {
g.Meta `path:"/add" tags:"工程质量列" method:"post" summary:"工程质量列添加"`
commonApi.Author
UnitName1 string `p:"unitName1" v:"required#单位工程不能为空"`
UnitName2 string `p:"unitName2" v:"required#子单位工程不能为空"`
UnitName3 string `p:"unitName3" v:"required#分部工程不能为空"`
UnitName4 string `p:"unitName4" v:"required#子分部工程不能为空"`
UnitName5 string `p:"unitName5" v:"required#分项工程不能为空"`
UnitName6 string `p:"unitName6" v:"required#检验批不能为空"`
QualityName string `p:"qualityName" v:"required#工程项目名称不能为空"`
ProjectId int64 `p:"projectId" `
Status string `p:"status" v:"required#施工类型状态不能为空"`
CreateTime *gtime.Time `p:"createTime" `
}
// BusEngineeringQualityAddRes 添加操作返回结果
type BusEngineeringQualityAddRes struct {
commonApi.EmptyRes
}
// BusEngineeringQualityEditReq 修改操作请求参数
type BusEngineeringQualityEditReq struct {
g.Meta `path:"/edit" tags:"工程质量列" method:"put" summary:"工程质量列修改"`
commonApi.Author
Id uint64 `p:"id" v:"required#主键ID不能为空"`
UnitName1 string `p:"unitName1" v:"required#单位工程不能为空"`
UnitName2 string `p:"unitName2" v:"required#子单位工程不能为空"`
UnitName3 string `p:"unitName3" v:"required#分部工程不能为空"`
UnitName4 string `p:"unitName4" v:"required#子分部工程不能为空"`
UnitName5 string `p:"unitName5" v:"required#分项工程不能为空"`
UnitName6 string `p:"unitName6" v:"required#检验批不能为空"`
QualityName string `p:"qualityName" v:"required#工程项目名称不能为空"`
Status string `p:"status" v:"required#施工类型状态不能为空"`
FileUrl []*comModel.UpFile `p:"fileUrl" `
CreateBy string `p:"createBy" `
CreateTime *gtime.Time `p:"createTime" `
UpdateTime *gtime.Time `p:"updateTime" `
}
// BusEngineeringQualityEditRes 修改操作返回结果
type BusEngineeringQualityEditRes struct {
commonApi.EmptyRes
}
// BusEngineeringQualityGetReq 获取一条数据请求
type BusEngineeringQualityGetReq struct {
g.Meta `path:"/get" tags:"工程质量列" method:"get" summary:"获取工程质量列信息"`
commonApi.Author
Id uint64 `p:"id" v:"required#主键必须"` //通过主键获取
}
// BusEngineeringQualityGetRes 获取一条数据结果
type BusEngineeringQualityGetRes struct {
g.Meta `mime:"application/json"`
*model.BusEngineeringQualityInfoRes
}
// BusEngineeringQualityDeleteReq 删除数据请求
type BusEngineeringQualityDeleteReq struct {
g.Meta `path:"/delete" tags:"工程质量列" method:"delete" summary:"删除工程质量列"`
commonApi.Author
Ids []uint64 `p:"ids" v:"required#主键必须"` //通过主键删除
}
// BusEngineeringQualityDeleteRes 删除数据返回
type BusEngineeringQualityDeleteRes struct {
commonApi.EmptyRes
}
// BusEngineeringQualityUploadingReq 上传数据请求
type BusEngineeringQualityUploadingReq struct {
g.Meta `path:"/delete" tags:"工程质量列" method:"delete" summary:"删除工程质量列"`
commonApi.Author
Id uint64 `p:"id" v:"required#主键必须"`
FileUrl []*comModel.UpFile `p:"fileUrl" `
}
// BusEngineeringQualityUploadingRes 上传数据返回
type BusEngineeringQualityUploadingRes struct {
commonApi.EmptyRes
}

View File

@ -0,0 +1,91 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2023-07-29 11:14:45
// 生成路径: api/v1/system/bus_equipment_equipment_unpacking.go
// 生成人gfast
// desc:开箱记录相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
comModel "github.com/tiger1103/gfast/v3/internal/app/common/model"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// BusEquipmentEquipmentUnpackingSearchReq 分页请求参数
type BusEquipmentEquipmentUnpackingSearchReq struct {
g.Meta `path:"/list" tags:"开箱记录" method:"get" summary:"开箱记录列表"`
UnpackingName string `p:"unpackingName"` //开箱名称
Status string `p:"status"` //状态
CreatedAt string `p:"createdAt" v:"createdAt@datetime#创建时间需为YYYY-MM-DD hh:mm:ss格式"` //创建时间
commonApi.PageReq
commonApi.Author
}
// BusEquipmentEquipmentUnpackingSearchRes 列表返回结果
type BusEquipmentEquipmentUnpackingSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.BusEquipmentEquipmentUnpackingListRes `json:"list"`
}
// BusEquipmentEquipmentUnpackingAddReq 添加操作请求参数
type BusEquipmentEquipmentUnpackingAddReq struct {
g.Meta `path:"/add" tags:"开箱记录" method:"post" summary:"开箱记录添加"`
commonApi.Author
EquipmentMaterialsId int64 `p:"equipmentMaterialsId" `
UnpackingName string `p:"unpackingName" v:"required#开箱名称不能为空"`
UnpackingUrl []*comModel.UpFile `p:"unpackingUrl" `
ProjectId int64 `p:"projectId" `
Status string `p:"status" v:"required#状态不能为空"`
}
// BusEquipmentEquipmentUnpackingAddRes 添加操作返回结果
type BusEquipmentEquipmentUnpackingAddRes struct {
commonApi.EmptyRes
}
// BusEquipmentEquipmentUnpackingEditReq 修改操作请求参数
type BusEquipmentEquipmentUnpackingEditReq struct {
g.Meta `path:"/edit" tags:"开箱记录" method:"put" summary:"开箱记录修改"`
commonApi.Author
UnpackingId int64 `p:"unpackingId" v:"required#主键ID不能为空"`
EquipmentMaterialsId int64 `p:"equipmentMaterialsId" `
UnpackingName string `p:"unpackingName" v:"required#开箱名称不能为空"`
UnpackingUrl []*comModel.UpFile `p:"unpackingUrl" `
Status string `p:"status" v:"required#状态不能为空"`
}
// BusEquipmentEquipmentUnpackingEditRes 修改操作返回结果
type BusEquipmentEquipmentUnpackingEditRes struct {
commonApi.EmptyRes
}
// BusEquipmentEquipmentUnpackingGetReq 获取一条数据请求
type BusEquipmentEquipmentUnpackingGetReq struct {
g.Meta `path:"/get" tags:"开箱记录" method:"get" summary:"获取开箱记录信息"`
commonApi.Author
UnpackingId int64 `p:"unpackingId" v:"required#主键必须"` //通过主键获取
}
// BusEquipmentEquipmentUnpackingGetRes 获取一条数据结果
type BusEquipmentEquipmentUnpackingGetRes struct {
g.Meta `mime:"application/json"`
*model.BusEquipmentEquipmentUnpackingInfoRes
}
// BusEquipmentEquipmentUnpackingDeleteReq 删除数据请求
type BusEquipmentEquipmentUnpackingDeleteReq struct {
g.Meta `path:"/delete" tags:"开箱记录" method:"delete" summary:"删除开箱记录"`
commonApi.Author
UnpackingIds []int64 `p:"unpackingIds" v:"required#主键必须"` //通过主键删除
}
// BusEquipmentEquipmentUnpackingDeleteRes 删除数据返回
type BusEquipmentEquipmentUnpackingDeleteRes struct {
commonApi.EmptyRes
}

View File

@ -0,0 +1,198 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2023-07-29 11:14:16
// 生成路径: api/v1/system/bus_equipment_materials.go
// 生成人gfast
// desc:材料/设备名称相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
comModel "github.com/tiger1103/gfast/v3/internal/app/common/model"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// BusEquipmentMaterialsSearchReq 分页请求参数
type BusEquipmentMaterialsSearchReq struct {
g.Meta `path:"/list" tags:"材料/设备名称" method:"get" summary:"材料/设备名称列表"`
EquipmentMaterialsName string `p:"equipmentMaterialsName" dc:"材料/设备"`
CompanyId string `p:"companyId" v:"companyId@integer#公司需为整数" dc:"公司"`
ProjectId string `p:"projectId" v:"required#项目不能为空" dc:"项目ID"`
commonApi.PageReq
commonApi.Author
}
// BusEquipmentMaterialsSearchRes 列表返回结果
type BusEquipmentMaterialsSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.BusEquipmentMaterialsListRes `json:"list"`
}
// BusEquipmentMaterialsAddReq 添加操作请求参数
type BusEquipmentMaterialsAddReq struct {
g.Meta `path:"/add" tags:"材料/设备名称" method:"post" summary:"材料/设备名称添加"`
commonApi.Author
EquipmentMaterialsName string `p:"equipmentMaterialsName" v:"required#材料/设备不能为空" dc:"材料/设备"`
CompanyId int64 `p:"companyId" v:"required#公司不能为空" dc:"公司ID"`
ProjectId int64 `p:"projectId" v:"required#项目不能为空" dc:"项目ID"`
TypeSpecificationName string `p:"typeSpecificationName" v:"required#规格型号不能为空" dc:"规格型号"`
//TypeSpecificationUrl []*comModel.UpFile `p:"typeSpecificationUrl" dc:"规格型号文件" v:"required#规格型号文件不能为空"`
//CertificateConformityName string `p:"certificateConformityName" v:"required#合格证编号不能为空" dc:"合格证编号"`
CertificateConformityUrl []*comModel.UpFile `p:"certificateConformityUrl" dc:"合格证编号文件" `
//QualityName string `p:"qualityName" v:"required#质量说明书编号不能为空" dc:"质量说明书编号"`
QualityUrl []*comModel.UpFile `p:"qualityUrl" dc:"质量说明书编号文件"`
//InspectionReportName string `p:"inspectionReportName" v:"required#检验报告编号不能为空" dc:"检验报告编号"`
InspectionReportUrl []*comModel.UpFile `p:"inspectionReportUrl" dc:"检验报告编号文件" `
//ReexamineReportName string `p:"reexamineReportName" v:"required#复试报告编号不能为空" dc:"复试报告编号"`
ReexamineReportUrl []*comModel.UpFile `p:"reexamineReportUrl" dc:"复试报告编号文件"`
UsePart string `p:"usePart" dc:"使用部位"`
WeightId string `p:"weightId" v:"required#计量单位不能为空" dc:"计量单位"`
Remark string `p:"remark" dc:"备注"`
QuantityCount string `p:"quantityCount" dc:"材料数量"`
//Status string `p:"status" dc:"状态0正常 1停用"`
}
// BusEquipmentMaterialsAddRes 添加操作返回结果
type BusEquipmentMaterialsAddRes struct {
commonApi.EmptyRes
}
// BusEquipmentMaterialsEditReq 修改操作请求参数
type BusEquipmentMaterialsEditReq struct {
g.Meta `path:"/edit" tags:"材料/设备名称" method:"put" summary:"材料/设备名称修改"`
commonApi.Author
EquipmentMaterialsId string `p:"equipmentMaterialsId" v:"required#主键ID不能为空" dc:"ID"`
EquipmentMaterialsName string `p:"equipmentMaterialsName" v:"required#材料/设备不能为空" dc:"材料/设备"`
CompanyId int64 `p:"companyId" v:"required#公司不能为空" dc:"公司ID"`
ProjectId int64 `p:"projectId" v:"required#项目不能为空" dc:"项目ID"`
TypeSpecificationName string `p:"typeSpecificationName" v:"required#规格型号不能为空" dc:"规格型号"`
//TypeSpecificationUrl []*comModel.UpFile `p:"typeSpecificationUrl" dc:"规格型号文件"`
//CertificateConformityName string `p:"certificateConformityName" v:"required#合格证编号不能为空" dc:"合格证编号"`
CertificateConformityUrl []*comModel.UpFile `p:"certificateConformityUrl" dc:"合格证编号文件"`
//QualityName string `p:"qualityName" v:"required#质量说明书编号不能为空" dc:"质量说明书编号"`
QualityUrl []*comModel.UpFile `p:"qualityUrl" dc:"质量说明书编号文件"`
//InspectionReportName string `p:"inspectionReportName" v:"required#检验报告编号不能为空" dc:"检验报告编号"`
InspectionReportUrl []*comModel.UpFile `p:"inspectionReportUrl" dc:"检验报告编号文件"`
//ReexamineReportName string `p:"reexamineReportName" v:"required#复试报告编号不能为空" dc:"复试报告编号"`
ReexamineReportUrl []*comModel.UpFile `p:"reexamineReportUrl" dc:"复试报告编号文件"`
UsePart string `p:"usePart" dc:"使用部位"`
WeightId string `p:"weightId" v:"required#计量单位不能为空" dc:"计量单位"`
Remark string `p:"remark" dc:"备注"`
QuantityCount string `p:"quantityCount" dc:"材料数量"`
Status string `p:"status" dc:"状态0正常 1停用"`
}
// BusEquipmentMaterialsEditRes 修改操作返回结果
type BusEquipmentMaterialsEditRes struct {
commonApi.EmptyRes
}
// BusEquipmentMaterialsGetReq 获取一条数据请求
type BusEquipmentMaterialsGetReq struct {
g.Meta `path:"/get" tags:"材料/设备名称" method:"get" summary:"获取材料/设备名称信息"`
commonApi.Author
EquipmentMaterialsId int64 `p:"equipmentMaterialsId" v:"required#主键必须"` //通过主键获取
}
// BusEquipmentMaterialsGetRes 获取一条数据结果
type BusEquipmentMaterialsGetRes struct {
g.Meta `mime:"application/json"`
*model.BusEquipmentMaterialsInfoRes
}
// BusEquipmentMaterialsDeleteReq 删除数据请求
type BusEquipmentMaterialsDeleteReq struct {
g.Meta `path:"/delete" tags:"材料/设备名称" method:"delete" summary:"删除材料/设备名称"`
commonApi.Author
EquipmentMaterialsIds []int64 `p:"equipmentMaterialsIds" v:"required#主键必须"` //通过主键删除
}
// BusEquipmentMaterialsDeleteRes 删除数据返回
type BusEquipmentMaterialsDeleteRes struct {
commonApi.EmptyRes
}
//App
// BusEquipmentMaterialsAppAddReq 添加操作请求参数
type BusEquipmentMaterialsAppAddReq struct {
g.Meta `path:"/appadd" tags:"材料设备App" method:"post" summary:"材料设备App添加"`
commonApi.Author
EquipmentMaterialsName string `p:"equipmentMaterialsName" v:"required#材料/设备不能为空" dc:"材料/设备"`
CompanyId int64 `p:"companyId" v:"required#公司不能为空" dc:"公司ID"`
ProjectId int64 `p:"projectId" v:"required#项目不能为空" dc:"项目ID"`
TypeSpecificationName string `p:"typeSpecificationName" v:"required#规格型号不能为空" dc:"规格型号"`
CertificateConformityUrl []*comModel.UpFile `p:"certificateConformityUrl" dc:"合格证编号文件" `
QualityUrl []*comModel.UpFile `p:"qualityUrl" dc:"质量说明书编号文件"`
InspectionReportUrl []*comModel.UpFile `p:"inspectionReportUrl" dc:"检验报告编号文件" `
ReexamineReportUrl []*comModel.UpFile `p:"reexamineReportUrl" dc:"复试报告编号文件"`
UsePart string `p:"usePart" dc:"使用部位"`
WeightId string `p:"weightId" v:"required#计量单位不能为空" dc:"计量单位"`
Remark string `p:"remark" dc:"备注"`
QuantityCount string `p:"quantityCount" dc:"材料数量"`
}
// BusEquipmentMaterialsAppAddRes 添加操作返回结果
type BusEquipmentMaterialsAppAddRes struct {
commonApi.EmptyRes
}
// BusEquipmentMaterialsAppEditReq 修改操作请求参数
type BusEquipmentMaterialsAppEditReq struct {
g.Meta `path:"/appedit" tags:"材料设备App" method:"put" summary:"材料设备App修改"`
commonApi.Author
EquipmentMaterialsId string `p:"equipmentMaterialsId" v:"required#主键ID不能为空" dc:"ID"`
EquipmentMaterialsName string `p:"equipmentMaterialsName" v:"required#材料/设备不能为空" dc:"材料/设备"`
CompanyId int64 `p:"companyId" v:"required#公司不能为空" dc:"公司ID"`
ProjectId int64 `p:"projectId" v:"required#项目不能为空" dc:"项目ID"`
TypeSpecificationName string `p:"typeSpecificationName" v:"required#规格型号不能为空" dc:"规格型号"`
CertificateConformityUrl []*comModel.UpFile `p:"certificateConformityUrl" dc:"合格证编号文件"`
QualityUrl []*comModel.UpFile `p:"qualityUrl" dc:"质量说明书编号文件"`
InspectionReportUrl []*comModel.UpFile `p:"inspectionReportUrl" dc:"检验报告编号文件"`
ReexamineReportUrl []*comModel.UpFile `p:"reexamineReportUrl" dc:"复试报告编号文件"`
UsePart string `p:"usePart" dc:"使用部位"`
WeightId string `p:"weightId" v:"required#计量单位不能为空" dc:"计量单位"`
Remark string `p:"remark" dc:"备注"`
QuantityCount string `p:"quantityCount" dc:"材料数量"`
Status string `p:"status" dc:"状态0正常 1停用"`
}
// BusEquipmentMaterialsAppEditRes 修改操作返回结果
type BusEquipmentMaterialsAppEditRes struct {
commonApi.EmptyRes
}
// BusEquipmentMaterialsAppSearchReq 分页请求参数
type BusEquipmentMaterialsAppSearchReq struct {
g.Meta `path:"/applist" tags:"材料设备App" method:"get" summary:"材料设备App列表"`
EquipmentMaterialsName string `p:"equipmentMaterialsName" dc:"材料/设备"`
CompanyId string `p:"companyId" v:"companyId@integer#公司需为整数" dc:"公司"`
ProjectId string `p:"projectId" v:"required#项目不能为空" dc:"项目ID"`
commonApi.PageReq
commonApi.Author
}
// BusEquipmentMaterialsAppSearchRes 列表返回结果
type BusEquipmentMaterialsAppSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.BusEquipmentMaterialsAppListRes `json:"list"`
}
// BusEquipmentMaterialsAppGetReq 获取一条数据请求
type BusEquipmentMaterialsAppGetReq struct {
g.Meta `path:"/appget" tags:"材料设备App" method:"get" summary:"材料设备App信息"`
commonApi.Author
EquipmentMaterialsId int64 `p:"equipmentMaterialsId" v:"required#主键必须"` //通过主键获取
}
// BusEquipmentMaterialsAppGetRes 获取一条数据结果
type BusEquipmentMaterialsAppGetRes struct {
g.Meta `mime:"application/json"`
*model.BusEquipmentMaterialsAppFileInfoRes
}

View File

@ -0,0 +1,49 @@
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// BusEquipmentMaterialsExcelIndexReq 修改操作请求参数
type BusEquipmentMaterialsExcelIndexReq struct {
g.Meta `path:"/excelindex" tags:"设备材料入库" method:"get" summary:"设备材料入库首页"`
ProjectId string `json:"projectId"`
commonApi.Author
}
// BusEquipmentMaterialsExcelIndexRes 修改操作返回结果
type BusEquipmentMaterialsExcelIndexRes struct {
commonApi.EmptyRes
List []*model.BusEquimentIndexRes `json:"list"`
}
// BusEquipmentMaterialsExcelSearchReq 分页请求参数
type BusEquipmentMaterialsExcelSearchReq struct {
g.Meta `path:"/excellist" tags:"设备材料入库" method:"get" summary:"excel表格设备材料入库列表"`
ProjectId int `p:"projectId" dc:"项目id"`
EquipmentMaterialsName string `p:"equipmentMaterialsName" dc:"设备/材料名称"`
commonApi.PageReq
commonApi.Author
}
// BusEquipmentMaterialsExcelSearchRes 列表返回结果
type BusEquipmentMaterialsExcelSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.BusEquipmentMaterialsExcelListRes `json:"list"`
}
// BusEquipmentMaterialsExcelEditReq 修改操作请求参数
type BusEquipmentMaterialsExcelEditReq struct {
g.Meta `path:"/exceledit" tags:"设备材料入库" method:"put" summary:"excel表格设备材料入库修改"`
commonApi.Author
Id int64 `p:"id" v:"required#主键ID不能为空"`
Disposition string `p:"disposition" dc:"处理方式"`
}
// BusEquipmentMaterialsExcelEditRes 修改操作返回结果
type BusEquipmentMaterialsExcelEditRes struct {
commonApi.EmptyRes
}

View File

@ -0,0 +1,175 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2023-09-13 14:21:30
// 生成路径: api/v1/system/bus_equipment_materials_inventory.go
// 生成人gfast
// desc:设备材料入库相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/net/ghttp"
"github.com/gogf/gf/v2/os/gtime"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// BusEquipmentMaterialsInventorySearchReq 分页请求参数
type BusEquipmentMaterialsInventorySearchReq struct {
g.Meta `path:"/list" tags:"设备材料入库" method:"get" summary:"设备材料入库列表"`
CreatedAt string `p:"createdAt" v:"createdAt@datetime#创建时间需为YYYY-MM-DD hh:mm:ss格式"` //创建时间
EquipmentMaterialsId string `p:"equipmentMaterialsId" v:"required#材料ID不能为空"`
commonApi.PageReq
commonApi.Author
}
// BusEquipmentMaterialsInventorySearchRes 列表返回结果
type BusEquipmentMaterialsInventorySearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.BusEquipmentMaterialsInventoryListRes `json:"list"`
}
// BusEquipmentMaterialsInventoryAddReq 添加操作请求参数
type BusEquipmentMaterialsInventoryAddReq struct {
g.Meta `path:"/add" tags:"设备材料入库" method:"post" summary:"设备材料入库添加"`
commonApi.Author
Recipient string `p:"recipient" dc:"交接单位"`
Shipper string `p:"shipper" dc:"领用人"`
EquipmentMaterialsId int64 `p:"equipmentMaterialsId" v:"required#材料ID不能为空"`
OutPut string `p:"outPut" v:"required#出入状态不能为空"`
Number int `p:"number" v:"required#出入库数量不能为空"`
Operator string `p:"operator" v:"required#出入库负责人不能为空"`
OutPutTime *gtime.Time `p:"outPutTime" dc:"操作时间" v:"outPutTime@datetime#操作时间需为YYYY-MM-DD hh:mm:ss格式"`
Remark string `p:"remark" dc:"备注"`
File []*ghttp.UploadFile `p:"file" dc:"支持多个图片或PDF"`
}
// BusEquipmentMaterialsInventoryAddRes 添加操作返回结果
type BusEquipmentMaterialsInventoryAddRes struct {
commonApi.EmptyRes
}
// BusEquipmentMaterialsInventoryEditReq 修改操作请求参数
type BusEquipmentMaterialsInventoryEditReq struct {
g.Meta `path:"/edit" tags:"设备材料入库" method:"put" summary:"设备材料入库修改"`
commonApi.Author
Id int64 `p:"id" v:"required#主键ID不能为空"`
Remark string `p:"remark" dc:"备注"`
Recipient string `p:"recipient" dc:"交接单位"`
Shipper string `p:"shipper" dc:"领用人"`
Path string `json:"path" dc:"上传字符"`
File []*ghttp.UploadFile `p:"file" dc:"支持多个图片或PDF"`
}
// BusEquipmentMaterialsInventoryEditRes 修改操作返回结果
type BusEquipmentMaterialsInventoryEditRes struct {
commonApi.EmptyRes
}
// BusEquipmentMaterialsInventoryGetReq 获取一条数据请求
type BusEquipmentMaterialsInventoryGetReq struct {
g.Meta `path:"/get" tags:"设备材料入库" method:"get" summary:"获取设备材料入库信息"`
commonApi.Author
Id int64 `p:"id" v:"required#主键必须"` //通过主键获取
}
// BusEquipmentMaterialsInventoryGetRes 获取一条数据结果
type BusEquipmentMaterialsInventoryGetRes struct {
g.Meta `mime:"application/json"`
*model.BusEquipmentMaterialsInventoryInfoRes
}
// BusEquipmentMaterialsInventoryDeleteReq 删除数据请求
type BusEquipmentMaterialsInventoryDeleteReq struct {
g.Meta `path:"/delete" tags:"设备材料入库" method:"delete" summary:"删除设备材料入库"`
commonApi.Author
Ids []int64 `p:"ids" v:"required#主键必须"` //通过主键删除
}
// BusEquipmentMaterialsInventoryDeleteRes 删除数据返回
type BusEquipmentMaterialsInventoryDeleteRes struct {
commonApi.EmptyRes
}
//app
// BusEquipmentMaterialsInventoryAppAddReq 添加操作请求参数
type BusEquipmentMaterialsInventoryAppAddReq struct {
g.Meta `path:"/appadd" tags:"材料设备App" method:"post" summary:"设备材料入库App添加"`
commonApi.Author
Recipient string `p:"recipient" dc:"交接单位"`
Shipper string `p:"shipper" dc:"领用人"`
EquipmentMaterialsId int64 `p:"equipmentMaterialsId" v:"required#材料ID不能为空"`
OutPut string `p:"outPut" v:"required#出入状态不能为空"`
Number int `p:"number" v:"required#出入库数量不能为空"`
Operator string `p:"operator" v:"required#出入库负责人不能为空"`
OutPutTime *gtime.Time `p:"outPutTime" dc:"操作时间" `
Remark string `p:"remark" dc:"备注"`
File []model.MaterialsInventoryFileAddApp `p:"file" dc:"支持多个图片或PDF"`
}
// BusEquipmentMaterialsInventoryAppAddRes 添加操作返回结果
type BusEquipmentMaterialsInventoryAppAddRes struct {
commonApi.EmptyRes
}
// BusEquipmentMaterialsInventoryAppEditReq 修改操作请求参数
type BusEquipmentMaterialsInventoryAppEditReq struct {
g.Meta `path:"/appedit" tags:"材料设备App" method:"put" summary:"设备材料入库App修改"`
commonApi.Author
Id int64 `p:"id" v:"required#主键ID不能为空"`
Remark string `p:"remark" dc:"备注"`
Recipient string `p:"recipient" dc:"交接单位"`
Shipper string `p:"shipper" dc:"领用人"`
File []model.MaterialsInventoryFileEditApp `p:"file" dc:"支持多个图片或PDF"`
DelFile []model.MaterialsInventoryFileEditApp `p:"delFile" dc:"删除文件"`
}
// BusEquipmentMaterialsInventoryAppEditRes 修改操作返回结果
type BusEquipmentMaterialsInventoryAppEditRes struct {
commonApi.EmptyRes
}
// BusEquipmentMaterialsInventoryAppSearchReq 分页请求参数
type BusEquipmentMaterialsInventoryAppSearchReq struct {
g.Meta `path:"/applist" tags:"材料设备App" method:"get" summary:"设备材料入库App列表"`
EquipmentMaterialsId string `p:"equipmentMaterialsId" v:"required#材料ID不能为空"`
commonApi.PageReq
commonApi.Author
}
// BusEquipmentMaterialsInventoryAppSearchRes 列表返回结果
type BusEquipmentMaterialsInventoryAppSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.BusEquipmentMaterialsInventoryAppListRes `json:"list"`
}
// BusEquipmentMaterialsInventoryAppGetReq 获取一条数据请求
type BusEquipmentMaterialsInventoryAppGetReq struct {
g.Meta `path:"/appget" tags:"材料设备App" method:"get" summary:"获取设备材料入库App信息"`
commonApi.Author
Id int64 `p:"id" v:"required#主键必须"` //通过主键获取
}
// BusEquipmentMaterialsInventoryAppGetRes 获取一条数据结果
type BusEquipmentMaterialsInventoryAppGetRes struct {
g.Meta `mime:"application/json"`
*model.BusEquipmentMaterialsInventoryAppInfoRes
}
// BusEquipmentMaterialsInventoryAppDeleteReq 删除数据请求
type BusEquipmentMaterialsInventoryAppDeleteReq struct {
g.Meta `path:"/appdelete" tags:"材料设备App" method:"delete" summary:"删除设备材料入库App"`
commonApi.Author
Ids []int64 `p:"ids" v:"required#主键必须"` //通过主键删除
}
// BusEquipmentMaterialsInventoryAppDeleteRes 删除数据返回
type BusEquipmentMaterialsInventoryAppDeleteRes struct {
commonApi.EmptyRes
}

View File

@ -0,0 +1,85 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2023-07-28 15:27:53
// 生成路径: api/v1/system/bus_equipment_materials_weight.go
// 生成人gfast
// desc:计量单位相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// BusEquipmentMaterialsWeightSearchReq 分页请求参数
type BusEquipmentMaterialsWeightSearchReq struct {
g.Meta `path:"/list" tags:"计量单位" method:"get" summary:"计量单位列表"`
Weight string `p:"weight"` //计量单位名称
Status string `p:"status"` //状态
CreatedAt string `p:"createdAt" v:"createdAt@datetime#创建时间需为YYYY-MM-DD hh:mm:ss格式"` //创建时间
commonApi.PageReq
commonApi.Author
}
// BusEquipmentMaterialsWeightSearchRes 列表返回结果
type BusEquipmentMaterialsWeightSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.BusEquipmentMaterialsWeightListRes `json:"list"`
}
// BusEquipmentMaterialsWeightAddReq 添加操作请求参数
type BusEquipmentMaterialsWeightAddReq struct {
g.Meta `path:"/add" tags:"计量单位" method:"post" summary:"计量单位添加"`
commonApi.Author
Weight string `p:"weight" v:"required#计量单位名称不能为空"`
Status string `p:"status" v:"required#状态不能为空"`
}
// BusEquipmentMaterialsWeightAddRes 添加操作返回结果
type BusEquipmentMaterialsWeightAddRes struct {
commonApi.EmptyRes
}
// BusEquipmentMaterialsWeightEditReq 修改操作请求参数
type BusEquipmentMaterialsWeightEditReq struct {
g.Meta `path:"/edit" tags:"计量单位" method:"put" summary:"计量单位修改"`
commonApi.Author
WeightId int64 `p:"weightId" v:"required#主键ID不能为空"`
Weight string `p:"weight" v:"required#计量单位名称不能为空"`
Status string `p:"status" v:"required#状态不能为空"`
}
// BusEquipmentMaterialsWeightEditRes 修改操作返回结果
type BusEquipmentMaterialsWeightEditRes struct {
commonApi.EmptyRes
}
// BusEquipmentMaterialsWeightGetReq 获取一条数据请求
type BusEquipmentMaterialsWeightGetReq struct {
g.Meta `path:"/get" tags:"计量单位" method:"get" summary:"获取计量单位信息"`
commonApi.Author
WeightId int64 `p:"weightId" v:"required#主键必须"` //通过主键获取
}
// BusEquipmentMaterialsWeightGetRes 获取一条数据结果
type BusEquipmentMaterialsWeightGetRes struct {
g.Meta `mime:"application/json"`
*model.BusEquipmentMaterialsWeightInfoRes
}
// BusEquipmentMaterialsWeightDeleteReq 删除数据请求
type BusEquipmentMaterialsWeightDeleteReq struct {
g.Meta `path:"/delete" tags:"计量单位" method:"delete" summary:"删除计量单位"`
commonApi.Author
WeightIds []int64 `p:"weightIds" v:"required#主键必须"` //通过主键删除
}
// BusEquipmentMaterialsWeightDeleteRes 删除数据返回
type BusEquipmentMaterialsWeightDeleteRes struct {
commonApi.EmptyRes
}

View File

@ -0,0 +1,94 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2024-03-20 19:38:54
// 生成路径: api/v1/system/bus_essential_information.go
// 生成人gfast
// desc:项目基本信息相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// BusEssentialInformationSearchReq 分页请求参数
type BusEssentialInformationSearchReq struct {
g.Meta `path:"/list" tags:"项目基本信息" method:"get" summary:"项目基本信息列表"`
Id string `p:"id"` //主键ID
One string `p:"one"` //发电量
Two string `p:"two"` //年发电量
Three string `p:"three"` //当前发电量
Four string `p:"four"` //减排量
Five string `p:"five"` //预估发电量
commonApi.PageReq
commonApi.Author
}
// BusEssentialInformationSearchRes 列表返回结果
type BusEssentialInformationSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.BusEssentialInformationListRes `json:"list"`
}
// BusEssentialInformationAddReq 添加操作请求参数
type BusEssentialInformationAddReq struct {
g.Meta `path:"/add" tags:"项目基本信息" method:"post" summary:"项目基本信息添加"`
commonApi.Author
One string `p:"one" `
Two string `p:"two" `
Three string `p:"three" `
Four string `p:"four" `
Five string `p:"five" `
}
// BusEssentialInformationAddRes 添加操作返回结果
type BusEssentialInformationAddRes struct {
commonApi.EmptyRes
}
// BusEssentialInformationEditReq 修改操作请求参数
type BusEssentialInformationEditReq struct {
g.Meta `path:"/edit" tags:"项目基本信息" method:"put" summary:"项目基本信息修改"`
commonApi.Author
Id int64 `p:"id" v:"required#主键ID不能为空"`
One string `p:"one" `
Two string `p:"two" `
Three string `p:"three" `
Four string `p:"four" `
Five string `p:"five" `
}
// BusEssentialInformationEditRes 修改操作返回结果
type BusEssentialInformationEditRes struct {
commonApi.EmptyRes
}
// BusEssentialInformationGetReq 获取一条数据请求
type BusEssentialInformationGetReq struct {
g.Meta `path:"/get" tags:"项目基本信息" method:"get" summary:"获取项目基本信息信息"`
commonApi.Author
Id int64 `p:"id" v:"required#主键必须"` //通过主键获取
}
// BusEssentialInformationGetRes 获取一条数据结果
type BusEssentialInformationGetRes struct {
g.Meta `mime:"application/json"`
*model.BusEssentialInformationInfoRes
}
// BusEssentialInformationDeleteReq 删除数据请求
type BusEssentialInformationDeleteReq struct {
g.Meta `path:"/delete" tags:"项目基本信息" method:"delete" summary:"删除项目基本信息"`
commonApi.Author
Ids []int64 `p:"ids" v:"required#主键必须"` //通过主键删除
}
// BusEssentialInformationDeleteRes 删除数据返回
type BusEssentialInformationDeleteRes struct {
commonApi.EmptyRes
}

104
api/v1/system/bus_folder.go Normal file
View File

@ -0,0 +1,104 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2023-09-15 17:15:59
// 生成路径: api/v1/system/bus_folder.go
// 生成人gfast
// desc:文件夹相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// BusFolderSearchReq 分页请求参数
type BusFolderSearchReq struct {
g.Meta `path:"/list" tags:"文件夹" method:"get" summary:"文件夹列表"`
TypeNum int64 `p:"typeNum" dc:"类型:1查所有父文件夹 2查询子文件夹" v:"between:1,2#参数范围为1~2"`
FatherId string `p:"fatherId" dc:"typeNum为2此字段不能为空" v:"required-if:typeNum,2#typeNum为2fatherId不能为空"`
Name string `p:"name"` //文件夹名称
ProjectId string `p:"projectId" v:"required#项目id不能为空"`
CreatedAt string `p:"createdAt" v:"createdAt@datetime#创建时间需为YYYY-MM-DD hh:mm:ss格式"` //创建时间
commonApi.PageReq
commonApi.Author
}
// BusFolderSearchRes 列表返回结果
type BusFolderSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.BusFolderListRes `json:"list"`
}
// TreeFormListFuncReq 树形文件夹列表
type TreeFormListFuncReq struct {
g.Meta `path:"/treeFormListFunc" tags:"文件夹" method:"get" summary:"系统文件夹的虚拟树形结构"`
ProjectId string `p:"projectId" v:"required#项目id不能为空"`
CreatedAt string `p:"createdAt" v:"createdAt@datetime#创建时间需为YYYY-MM-DD hh:mm:ss格式""` //创建时间
commonApi.Author
}
// TreeFormListFuncRes 列表返回结果
type TreeFormListFuncRes struct {
g.Meta `mime:"application/json"`
List []*model.BusFolderListRes `json:"list"`
}
// BusFolderAddReq 添加操作请求参数
type BusFolderAddReq struct {
g.Meta `path:"/add" tags:"文件夹" method:"post" summary:"文件夹添加"`
commonApi.Author
Icon string `p:"icon" `
Name string `p:"name" v:"required#文件夹名称不能为空"`
Remark string `p:"remark" `
ProjectId string `p:"projectId" v:"required#项目id不能为空"`
}
// BusFolderAddRes 添加操作返回结果
type BusFolderAddRes struct {
commonApi.EmptyRes
}
// BusFolderEditReq 修改操作请求参数
type BusFolderEditReq struct {
g.Meta `path:"/edit" tags:"文件夹" method:"put" summary:"文件夹修改"`
commonApi.Author
Id int64 `p:"id" v:"required#主键ID不能为空"`
Icon string `p:"icon" `
Name string `p:"name" v:"required#文件夹名称不能为空"`
Remark string `p:"remark" `
}
// BusFolderEditRes 修改操作返回结果
type BusFolderEditRes struct {
commonApi.EmptyRes
}
// BusFolderGetReq 获取一条数据请求
type BusFolderGetReq struct {
g.Meta `path:"/get" tags:"文件夹" method:"get" summary:"获取文件夹信息"`
commonApi.Author
Id int64 `p:"id" v:"required#主键必须"` //通过主键获取
}
// BusFolderGetRes 获取一条数据结果
type BusFolderGetRes struct {
g.Meta `mime:"application/json"`
*model.BusFolderInfoRes
}
// BusFolderDeleteReq 删除数据请求
type BusFolderDeleteReq struct {
g.Meta `path:"/delete" tags:"文件夹" method:"delete" summary:"删除文件夹"`
commonApi.Author
Ids []int64 `p:"ids" v:"required#主键必须"` //通过主键删除
}
// BusFolderDeleteRes 删除数据返回
type BusFolderDeleteRes struct {
commonApi.EmptyRes
}

View File

@ -0,0 +1,96 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2023-09-15 17:16:00
// 生成路径: api/v1/system/bus_folder_file.go
// 生成人gfast
// desc:文件相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// BusFolderFileSearchReq 分页请求参数
type BusFolderFileSearchReq struct {
g.Meta `path:"/list" tags:"文件" method:"get" summary:"文件列表1"`
FolderId string `p:"folderId"` //文件ID
Name string `p:"name"` //文件名称
Size string `p:"size"` //文件大小
Suffix string `p:"suffix"` //文件后缀
CreatedAt string `p:"createdAt" v:"createdAt@datetime#创建时间需为YYYY-MM-DD hh:mm:ss格式" dc:"创建时间-格式为:年月日时分秒"` //创建时间
CreateAt string `p:"createAt" v:"createAt@date-format:Y-m#创建时间需为YYYY-MM" dc:"创建时间-格式为:年月"` //创建时间
ProjectId string `p:"projectId" v:"required#项目id不能为空"`
commonApi.PageReq
commonApi.Author
}
// BusFolderFileSearchRes 列表返回结果
type BusFolderFileSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.BusFolderFileListRes `json:"list"`
}
// BusFolderFileAddReq 添加操作请求参数
type BusFolderFileAddReq struct {
g.Meta `path:"/add" tags:"文件" method:"post" summary:"文件添加"`
commonApi.Author
ProjectId string `p:"projectId" v:"required#项目id不能为空"`
FolderId int64 `p:"folderId" dc:"所属文件夹" v:"required#所属文件夹不能为空"`
Name string `p:"name" dc:"文件名" v:"required#文件名称不能为空"`
Size string `p:"size" dc:"文件大小" v:"required#文件大小不能为空"`
Suffix string `p:"suffix" dc:"文件后缀" v:"required#文件后缀不能为空"`
Path string `p:"path" dc:"文件路径" v:"required#文件路径不能为空"`
Remark string `p:"remark" dc:"备注" `
}
// BusFolderFileAddRes 添加操作返回结果
type BusFolderFileAddRes struct {
commonApi.EmptyRes
}
// BusFolderFileEditReq 修改操作请求参数
type BusFolderFileEditReq struct {
g.Meta `path:"/edit" tags:"文件" method:"put" summary:"文件修改"`
commonApi.Author
Id int64 `p:"id" v:"required#主键ID不能为空"`
FolderId int64 `p:"folderId" `
FileType string `p:"fileType" `
Name string `p:"name" v:"required#文件名称不能为空"`
Remark string `p:"remark" `
}
// BusFolderFileEditRes 修改操作返回结果
type BusFolderFileEditRes struct {
commonApi.EmptyRes
}
// BusFolderFileGetReq 获取一条数据请求
type BusFolderFileGetReq struct {
g.Meta `path:"/get" tags:"文件" method:"get" summary:"获取文件信息"`
commonApi.Author
Id int64 `p:"id" v:"required#主键必须"` //通过主键获取
}
// BusFolderFileGetRes 获取一条数据结果
type BusFolderFileGetRes struct {
g.Meta `mime:"application/json"`
*model.BusFolderFileInfoRes
}
// BusFolderFileDeleteReq 删除数据请求
type BusFolderFileDeleteReq struct {
g.Meta `path:"/delete" tags:"文件" method:"delete" summary:"删除文件"`
commonApi.Author
Ids []int64 `p:"ids" v:"required#主键必须"` //通过主键删除
}
// BusFolderFileDeleteRes 删除数据返回
type BusFolderFileDeleteRes struct {
commonApi.EmptyRes
}

View File

@ -0,0 +1,111 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2024-03-28 14:53:05
// 生成路径: api/v1/system/bus_hse_management.go
// 生成人gfast
// desc:HSE-巡检工单相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/net/ghttp"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
comModel "github.com/tiger1103/gfast/v3/internal/app/common/model"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// BusHseManagementSearchReq 分页请求参数
type BusHseManagementSearchReq struct {
g.Meta `path:"/list" tags:"HSE-巡检工单" method:"get" summary:"HSE-巡检工单列表"`
ProjectId string `p:"projectId" v:"projectId@integer#项目ID需为整数"`
StudyType string `p:"studyType" dc:"检查类型"`
TourType string `p:"tourType" dc:"违章类型"`
Fill string `p:"fill" dc:"检查人"`
Abarbeitung string `p:"abarbeitung" dc:"整改人"`
commonApi.PageReq
commonApi.Author
}
// BusHseManagementSearchRes 列表返回结果
type BusHseManagementSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.BusHseManagementInfoTwoRes `json:"list"`
}
// BusHseManagementAddReq 添加操作请求参数
type BusHseManagementAddReq struct {
g.Meta `path:"/add" tags:"HSE-巡检工单" method:"post" summary:"HSE-巡检工单添加"`
commonApi.Author
ProjectId int64 `p:"projectId" dc:"项目ID"`
StudyType string `p:"studyType" dc:"检查类型"`
TourType string `p:"tourType" dc:"违章类型"`
InspectionResult string `p:"inspectionResult" dc:"巡检结果"`
TeamName string `p:"teamName" v:"required#名称(班组/部门)不能为空"`
Corrector string `p:"corrector" dc:"整改人"`
ReplyDate string `p:"replyDate" dc:"回复日期"`
HseManagementAdd int `p:"hseManagementAdd" dc:"0使用file 1使用fileTwo"`
File []*ghttp.UploadFile `p:"file" dc:"附件"`
FileTwo []*comModel.UpFile `p:"fileTwo" dc:"附件"`
}
// BusHseManagementAddRes 添加操作返回结果
type BusHseManagementAddRes struct {
commonApi.EmptyRes
}
// BusHseManagementEditReq 修改操作请求参数
type BusHseManagementEditReq struct {
g.Meta `path:"/edit" tags:"HSE-巡检工单" method:"put" summary:"HSE-巡检工单整改"`
commonApi.Author
Id int64 `p:"id" v:"required#主键ID不能为空"`
File []*ghttp.UploadFile `p:"file" dc:"附件"`
}
// BusHseManagementEditRes 修改操作返回结果
type BusHseManagementEditRes struct {
commonApi.EmptyRes
}
// EditReviewReq 修改操作请求参数
type EditReviewReq struct {
g.Meta `path:"/editReview" tags:"HSE-巡检工单" method:"put" summary:"HSE-巡检工单复查"`
commonApi.Author
Id int64 `p:"id" v:"required#主键ID不能为空"`
ReviewType string `p:"reviewType" dc:"复查状态1通过 2未通过" v:"required#主键ID不能为空"`
Review string `p:"review" dc:"复查情况" v:"required#复查情况不能为空"`
//Review string `p:"review" dc:"复查情况" v:"required-if:reviewType,2#状态为未通过,需填写复查"`
}
// EditReviewRes 修改操作返回结果
type EditReviewRes struct {
commonApi.EmptyRes
}
// BusHseManagementGetReq 获取一条数据请求
type BusHseManagementGetReq struct {
g.Meta `path:"/get" tags:"HSE-巡检工单" method:"get" summary:"获取HSE-巡检工单信息"`
commonApi.Author
Id int64 `p:"id" v:"required#主键必须"` // 通过主键获取
}
// BusHseManagementGetRes 获取一条数据结果
type BusHseManagementGetRes struct {
g.Meta `mime:"application/json"`
*model.BusHseManagementDetailsRes
}
// BusHseManagementDeleteReq 删除数据请求
type BusHseManagementDeleteReq struct {
g.Meta `path:"/delete" tags:"HSE-巡检工单" method:"delete" summary:"删除HSE-巡检工单"`
commonApi.Author
Ids []int64 `p:"ids" v:"required#主键必须"` // 通过主键删除
}
// BusHseManagementDeleteRes 删除数据返回
type BusHseManagementDeleteRes struct {
commonApi.EmptyRes
}

View File

@ -0,0 +1,128 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2024-04-07 17:00:45
// 生成路径: api/v1/system/bus_hse_security_log.go
// 生成人gfast
// desc:HSE安全日志相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/net/ghttp"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// BusHseSecurityLogSearchReq 分页请求参数
type BusHseSecurityLogSearchReq struct {
g.Meta `path:"/list" tags:"HSE安全日志" method:"get" summary:"HSE安全日志列表"`
ProjectId string `p:"projectId" dc:"项目id" v:"required#项目ID不能为空"`
DateOfOccurrence []string `p:"dateOfOccurrence" dc:"发生日期(只要年月日)" v:"date-format:Y-m-d#格式为2023-10-12"`
Fill string `p:"fill" dc:"录入人"`
commonApi.PageReq
commonApi.Author
}
// BusHseSecurityLogSearchRes 列表返回结果
type BusHseSecurityLogSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.BusHseSecurityLogInfoTwoRes `json:"list"`
}
// BusHseSecurityLogAddTxetReq 添加操作请求参数
type BusHseSecurityLogAddTxetReq struct {
g.Meta `path:"/addText" tags:"HSE安全日志" method:"post" summary:"HSE安全日志添加文字"`
commonApi.Author
ProjectId int64 `p:"projectId" v:"required#项目ID不能为空"`
DateOfOccurrence string `p:"dateOfOccurrence" dc:"发生日期"`
AirTemperatureMax float64 `p:"airTemperatureMax" dc:"最高气温"`
AirTemperatureMin float64 `p:"airTemperatureMin" dc:"最低气温"`
Climate string `p:"climate" dc:"气候"`
Progress string `p:"progress" dc:"进展情况" v:"max-length:300#最大输入字数为300"`
JobContent string `p:"jobContent" dc:"作业内容" v:"max-length:300#最大输入字数为300"`
DiscloseTheFacts string `p:"discloseTheFacts" dc:"交底情况" v:"max-length:300#最大输入字数为300"`
ProgressOfActivity string `p:"progressOfActivity" dc:"活动情况" v:"max-length:300#最大输入字数为300"`
Examine string `p:"examine" dc:"检查情况" v:"max-length:300#最大输入字数为300"`
Implementation string `p:"implementation" dc:"实施情况" v:"max-length:300#最大输入字数为300"`
SafetyInspectionSituation string `p:"safetyInspectionSituation" dc:"安全检查情况" v:"max-length:300#最大输入字数为300"`
StoppageOrOvertime string `p:"stoppageOrOvertime" dc:"停工或加班情况" v:"max-length:300#最大输入字数为300"`
OtherRecords string `p:"otherRecords" dc:"其他情况" v:"max-length:300#最大输入字数为300"`
Remark string `p:"remark" dc:"备注"`
}
// BusHseSecurityLogAddTxetRes 添加操作返回结果
type BusHseSecurityLogAddTxetRes struct {
commonApi.EmptyRes
}
// BusHseSecurityLogAddFileReq 添加操作请求参数
type BusHseSecurityLogAddFileReq struct {
g.Meta `path:"/addFile" tags:"HSE安全日志" method:"post" summary:"HSE安全日志添加附件"`
commonApi.Author
ProjectId int64 `p:"projectId" v:"required#项目ID不能为空"`
DateOfOccurrence string `p:"dateOfOccurrence" dc:"发生日期"`
File []*ghttp.UploadFile `p:"file" dc:"附件"`
Remark string `p:"remark" dc:"备注"`
}
// BusHseSecurityLogAddFileRes 添加操作返回结果
type BusHseSecurityLogAddFileRes struct {
commonApi.EmptyRes
}
// BusHseSecurityLogEditReq 修改操作请求参数
type BusHseSecurityLogEditReq struct {
g.Meta `path:"/edit" tags:"HSE安全日志" method:"put" summary:"HSE安全日志修改"`
commonApi.Author
Id int64 `p:"id" v:"required#主键ID不能为空"`
ProjectId int64 `p:"projectId" v:"required#项目ID不能为空"`
DateOfOccurrence string `p:"dateOfOccurrence" `
AirTemperatureMax float64 `p:"airTemperatureMax" `
AirTemperatureMin float64 `p:"airTemperatureMin" `
Climate string `p:"climate" `
Progress string `p:"progress" `
JobContent string `p:"jobContent" `
DiscloseTheFacts string `p:"discloseTheFacts" `
ProgressOfActivity string `p:"progressOfActivity" `
Examine string `p:"examine" `
Implementation string `p:"implementation" `
SafetyInspectionSituation string `p:"safetyInspectionSituation" `
StoppageOrOvertime string `p:"stoppageOrOvertime" `
OtherRecords string `p:"otherRecords" `
Remark string `p:"remark" `
UpdatedBy uint64
}
// BusHseSecurityLogEditRes 修改操作返回结果
type BusHseSecurityLogEditRes struct {
commonApi.EmptyRes
}
// BusHseSecurityLogGetReq 获取一条数据请求
type BusHseSecurityLogGetReq struct {
g.Meta `path:"/get" tags:"HSE安全日志" method:"get" summary:"获取HSE安全日志信息"`
commonApi.Author
Id int64 `p:"id" v:"required#主键必须"` //通过主键获取
}
// BusHseSecurityLogGetRes 获取一条数据结果
type BusHseSecurityLogGetRes struct {
g.Meta `mime:"application/json"`
*model.BusHseSecurityLogInfoTwoRes
}
// BusHseSecurityLogDeleteReq 删除数据请求
type BusHseSecurityLogDeleteReq struct {
g.Meta `path:"/delete" tags:"HSE安全日志" method:"delete" summary:"删除HSE安全日志"`
commonApi.Author
Ids []int64 `p:"ids" v:"required#主键必须"` //通过主键删除
}
// BusHseSecurityLogDeleteRes 删除数据返回
type BusHseSecurityLogDeleteRes struct {
commonApi.EmptyRes
}

View File

@ -0,0 +1,120 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2024-03-21 15:23:58
// 生成路径: api/v1/system/bus_inspection_ticket.go
// 生成人gfast
// desc:质量工单相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/net/ghttp"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
comModel "github.com/tiger1103/gfast/v3/internal/app/common/model"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
type UpdataCorrectorReq struct {
g.Meta `path:"/updataCorrector" tags:"质量工单" method:"put" summary:"质量工单变更整改人"`
commonApi.Author
Id int64 `p:"id" v:"required#主键ID不能为空"`
Corrector string `p:"corrector" dc:"整改人"`
}
type UpdataCorrectorRes struct {
commonApi.EmptyRes
}
// BusInspectionTicketSearchReq 分页请求参数
type BusInspectionTicketSearchReq struct {
g.Meta `path:"/list" tags:"质量工单" method:"get" summary:"质量工单列表"`
ProjectId string `p:"projectId" dc:"项目ID" v:"required#项目id不能为空"` //项目ID
InspectionType string `p:"inspectionType" dc:"巡检类型"` //巡检类型(关联字典)
Status string `p:"工单状态1通知 2整改 3验证" dc:"工单状态"` //巡检类型(关联字典)
CreatedAt string `p:"createdAt" dc:"填报时间" v:"createdAt@date#创建时间需为YYYY-MM-DD格式"` //填报时间
commonApi.PageReq
commonApi.Author
}
// BusInspectionTicketSearchRes 列表返回结果
type BusInspectionTicketSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.PcListRes `json:"list"`
}
// BusInspectionTicketAddReq 添加操作请求参数
type BusInspectionTicketAddReq struct {
g.Meta `path:"/add" tags:"质量工单" method:"post" summary:"质量工单添加"`
commonApi.Author
ProjectId int64 `p:"projectId" dc:"项目id" v:"required#项目ID不能为空"`
InspectionType string `p:"inspectionType" dc:"巡检类型" v:"required#巡检类型不能为空"`
InspectionHeadline string `p:"inspectionHeadline" dc:"巡检标题" v:"required#巡检标题不能为空"`
InspectionResult string `p:"inspectionResult" dc:"巡检结果" v:"required#巡检结果不能为空"`
IsReply string `p:"isReply" dc:"是否回复1回复 2不回复" `
ReplyDate string `p:"replyDate" dc:"回复日期" `
Corrector string `p:"corrector" dc:"整改人"`
CreatedBy int64 `p:"createdBy" dc:"填报人"`
HseManagementAdd int `p:"hseManagementAdd" dc:"0使用file 1使用fileTwo"`
File []*ghttp.UploadFile `p:"file" dc:"附件"`
FileTwo []*comModel.UpFile `p:"fileTwo" dc:"附件"`
}
// BusInspectionTicketAddRes 添加操作返回结果
type BusInspectionTicketAddRes struct {
commonApi.EmptyRes
}
// BusInspectionTicketAbarbeitungReq 整改操作请求参数
type BusInspectionTicketAbarbeitungReq struct {
g.Meta `path:"/editAbarbeitung" tags:"质量工单" method:"put" summary:"质量工单整改"`
commonApi.Author
Id int64 `p:"id" v:"required#主键ID不能为空"`
File []*ghttp.UploadFile `p:"file" dc:"附件"`
}
// BusInspectionTicketAbarbeitungRes 整改操作返回结果
type BusInspectionTicketAbarbeitungRes struct {
commonApi.EmptyRes
}
// BusInspectionTicketVerificationReq 验证操作请求参数
type BusInspectionTicketVerificationReq struct {
g.Meta `path:"/editVerification" tags:"质量工单" method:"put" summary:"质量工单验证"`
commonApi.Author
Id int64 `p:"id" v:"required#主键ID不能为空"`
VerificationType string `p:"verificationType" dc:"验证状态1通过 2未通过"`
VerificationResult string `p:"verificationResult" dc:"结论"`
}
// BusInspectionTicketVerificationRes 验证操作返回结果
type BusInspectionTicketVerificationRes struct {
commonApi.EmptyRes
}
// BusInspectionTicketGetReq 获取一条数据请求
type BusInspectionTicketGetReq struct {
g.Meta `path:"/get" tags:"质量工单" method:"get" summary:"获取质量工单信息"`
commonApi.Author
Id int64 `p:"id" v:"required#主键必须"` //通过主键获取
}
// BusInspectionTicketGetRes 获取一条数据结果
type BusInspectionTicketGetRes struct {
g.Meta `mime:"application/json"`
Details *model.AppletDetailsRes `json:"details"`
}
// BusInspectionTicketDeleteReq 删除数据请求
type BusInspectionTicketDeleteReq struct {
g.Meta `path:"/delete" tags:"质量工单" method:"delete" summary:"删除质量工单"`
commonApi.Author
Ids []int64 `p:"ids" v:"required#主键必须"` //通过主键删除
}
// BusInspectionTicketDeleteRes 删除数据返回
type BusInspectionTicketDeleteRes struct {
commonApi.EmptyRes
}

View File

@ -0,0 +1,120 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2023-07-29 14:02:01
// 生成路径: api/v1/system/bus_machinery.go
// 生成人gfast
// desc:机械相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// BusMachinerySearchReq 分页请求参数
type BusMachinerySearchReq struct {
g.Meta `path:"/list" tags:"机械" method:"get" summary:"机械列表"`
MachineryName string `p:"machineryName"` //机械名称
ProjectId string `p:"projectId"` //项目id
Status string `p:"status"` //施工类型状态
CreatedAt string `p:"createdAt" v:"createdAt@datetime#创建时间需为YYYY-MM-DD hh:mm:ss格式"` //创建时间
commonApi.PageReq
commonApi.Author
}
// BusMachinerySearchRes 列表返回结果
type BusMachinerySearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.BusMachineryListRes `json:"list"`
}
// BusMachineryAddReq 添加操作请求参数
type BusMachineryAddReq struct {
g.Meta `path:"/add" tags:"机械" method:"post" summary:"机械添加"`
commonApi.Author
MachineryName string `p:"machineryName" v:"required#机械名称不能为空"`
MachineryNumber string `p:"machineryNumber" `
ProjectId int64 `p:"projectId" `
CheckoutNumber string `p:"checkoutNumber" `
CheckoutUnit string `p:"checkoutUnit" `
CheckoutDate string `p:"checkoutDate" `
//Number int `p:"number"`
EntryTime *gtime.Time `p:"entryTime" v:"createdAt@datetime#创建时间需为YYYY-MM-DD hh:mm:ss格式"`
//Principal string `p:"principal" dc:"图片url"`
Remark string `p:"remark"`
}
// BusMachineryAddRes 添加操作返回结果
type BusMachineryAddRes struct {
commonApi.EmptyRes
}
// BusMachineryEditReq 修改操作请求参数
type BusMachineryEditReq struct {
g.Meta `path:"/edit" tags:"机械" method:"put" summary:"机械修改"`
commonApi.Author
Id uint64 `p:"id" v:"required#主键ID不能为空"`
MachineryName string `p:"machineryName" v:"required#机械名称不能为空"`
MachineryNumber string `p:"machineryNumber" `
CheckoutNumber string `p:"checkoutNumber" `
CheckoutUnit string `p:"checkoutUnit" `
CheckoutDate string `p:"checkoutDate" `
Status string `p:"status" `
//Number int `p:"number"`
EntryTime *gtime.Time `p:"entryTime"`
//Principal string `p:"principal"`
Remark string `p:"remark"`
}
// BusMachineryEditRes 修改操作返回结果
type BusMachineryEditRes struct {
commonApi.EmptyRes
}
// BusMachineryGetReq 获取一条数据请求
type BusMachineryGetReq struct {
g.Meta `path:"/get" tags:"机械" method:"get" summary:"获取机械信息"`
commonApi.Author
Id uint64 `p:"id" v:"required#主键必须"` //通过主键获取
}
// BusMachineryGetRes 获取一条数据结果
type BusMachineryGetRes struct {
g.Meta `mime:"application/json"`
*model.BusMachineryInfoRes
}
// BusMachineryDeleteReq 删除数据请求
type BusMachineryDeleteReq struct {
g.Meta `path:"/delete" tags:"机械" method:"delete" summary:"删除机械"`
commonApi.Author
Ids []uint64 `p:"ids" v:"required#主键必须"` //通过主键删除
}
// BusMachineryDeleteRes 删除数据返回
type BusMachineryDeleteRes struct {
commonApi.EmptyRes
}
// app BusMachineryAppSearchReq 分页请求参数
type BusMachineryAppSearchReq struct {
g.Meta `path:"/applist" tags:"机械" method:"get" summary:"App机械列表"`
ThreeSreach string `p:"threeSearch" dc:"机械名称|编号|负责人"`
ProjectId string `p:"projectId" dc:"项目id"` //项目id
AppStatus int `p:"appStatus" dc:"0 全部 1入场 2停用 3出场 "` //施工类型状态
commonApi.PageReq
commonApi.Author
}
// BusMachineryAppSearchRes 列表返回结果
type BusMachineryAppSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.BusMachineryAppListRes `json:"list"`
}

View File

@ -0,0 +1,212 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2023-10-12 11:41:31
// 生成路径: api/v1/system/bus_machinery_detail.go
// 生成人gfast
// desc:机械详情相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// BusMachineryDetailSearchReq 分页请求参数
type BusMachineryDetailSearchReq struct {
g.Meta `path:"/list" tags:"机械详情" method:"get" summary:"机械详情列表"`
MachineryId string `p:"machineryId" dc:"机械主键ID"`
CheckoutNumber string `p:"checkoutNumber"` //检验证编号
Status string `p:"status"` //施工类型状态
EntryTime string `p:"entryTime" v:"entryTime@datetime#入场时间需为YYYY-MM-DD hh:mm:ss格式"` //入场时间
commonApi.PageReq
commonApi.Author
}
// BusMachineryDetailSearchRes 列表返回结果
type BusMachineryDetailSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.BusMachineryDetailListRes `json:"list"`
}
// BusMachineryDetailAddReq 添加操作请求参数
type BusMachineryDetailAddReq struct {
g.Meta `path:"/add" tags:"机械详情" method:"post" summary:"机械详情添加"`
commonApi.Author
Type int `p:"type" dc:"1出场 2入场" v:"between:1,2"`
CheckoutNumber string `p:"checkoutNumber" dc:"检验证编号" v:"required#检验证编号不能为空"`
CheckoutUnit string `p:"checkoutUnit" dc:"检验单位&生产厂家" v:"required#检验单位不能为空"`
CheckoutDate string `p:"checkoutDate" dc:"检定日期/有效期" v:"required#检定日期不能为空"`
Picture string `p:"picture" dc:"多个图片用逗号分隔"`
EntryTime string `p:"entryTime"dc:"入场时间"`
Remark string `p:"remark" dc:"备注"`
MachineryId string `p:"machineryId" dc:"机械主键ID"`
Principal string `p:"principal" dc:"负责人" v:"required#负责人不能为空"`
}
// BusMachineryDetailAddRes 添加操作返回结果
type BusMachineryDetailAddRes struct {
commonApi.EmptyRes
}
// BusMachineryDetailEditReq 修改操作请求参数
type BusMachineryDetailEditReq struct {
g.Meta `path:"/edit" tags:"机械详情" method:"put" summary:"机械详情修改"`
commonApi.Author
Id int64 `p:"id" v:"required#主键ID不能为空"`
Type int `p:"type" dc:"1出场 2入场" v:"between:1,2"`
CheckoutNumber string `p:"checkoutNumber" dc:"检验证编号" v:"required#检验证编号不能为空"`
CheckoutUnit string `p:"checkoutUnit" dc:"检验单位" v:"required#检验单位不能为空"`
CheckoutDate string `p:"checkoutDate" dc:"检定日期/有效期" v:"required#检定日期不能为空"`
EntryTime string `p:"entryTime"dc:"入场时间"`
Status string `p:"status" dc:"施工类型状态0正常 1停用" v:"required#施工类型状态不能为空"`
Picture string `p:"picture" dc:"多个图片用逗号分隔"`
Remark string `p:"remark" dc:"备注"`
Principal string `p:"principal" dc:"负责人" v:"required#负责人不能为空"`
}
// BusMachineryDetailEditRes 修改操作返回结果
type BusMachineryDetailEditRes struct {
commonApi.EmptyRes
}
// BusMachineryDetailGetReq 获取一条数据请求
type BusMachineryDetailGetReq struct {
g.Meta `path:"/get" tags:"机械详情" method:"get" summary:"获取机械详情信息"`
commonApi.Author
Id int64 `p:"id" v:"required#主键必须"` //通过主键获取
}
// BusMachineryDetailGetRes 获取一条数据结果
type BusMachineryDetailGetRes struct {
g.Meta `mime:"application/json"`
*model.BusMachineryDetailGetIdInfoRes
}
// BusMachineryDetailDeleteReq 删除数据请求
type BusMachineryDetailDeleteReq struct {
g.Meta `path:"/delete" tags:"机械详情" method:"delete" summary:"删除机械详情"`
commonApi.Author
Ids []int64 `p:"ids" v:"required#主键必须"` //通过主键删除
}
// BusMachineryDetailDeleteRes 删除数据返回
type BusMachineryDetailDeleteRes struct {
commonApi.EmptyRes
}
//详情记录
// BusMachineryDetailRecordReq 删除数据请求
type BusMachineryDetailRecordReq struct {
g.Meta `path:"/recordlist" tags:"机械详情" method:"get" summary:"机械详情记录"`
commonApi.Author
Id int64 `p:"id" v:"required#主键必须"` //通过主键获取
}
// BusMachineryDetailRecordRes 删除数据返回
type BusMachineryDetailRecordRes struct {
commonApi.EmptyRes
}
// app
// BusMachineryDetailSearchReq 分页请求参数
type BusMachineryDetailAppSearchReq struct {
g.Meta `path:"/applist" tags:"机械详情" method:"get" summary:"App机械详情列表"`
MachineryId string `p:"machineryId" dc:"机械主键ID"`
AppStatus int `p:"appStatus" dc:"0 全部 1入场 2停用 3出场"` //施工类型状态
commonApi.PageReq
commonApi.Author
}
// BusMachineryDetailSearchRes 列表返回结果
type BusMachineryDetailAppSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.BusMachineryDetailAppListRes `json:"list"`
}
// BusMachineryDetailAppAddReq 添加操作请求参数
type BusMachineryDetailAppAddReq struct {
g.Meta `path:"/appadd" tags:"机械详情" method:"post" summary:"App机械详情添加"`
commonApi.Author
//Type int `p:"type" dc:"1出场 2入场" v:"between:1,2"`
CheckoutNumber string `p:"checkoutNumber" dc:"检验证编号" v:"required#检验证编号不能为空"`
CheckoutUnit string `p:"checkoutUnit" dc:"检验单位&生产厂家" v:"required#检验单位不能为空"`
CheckoutDate string `p:"checkoutDate" dc:"检定日期/有效期" v:"required#检定日期不能为空"`
Picture string `p:"picture" dc:"多个图片用逗号分隔"`
EntryTime string `p:"entryTime" dc:"入场时间"` //入场时间
Status string `p:"status" dc:"施工类型状态0正常 1停用" v:"required#施工类型状态不能为空"`
InspectionFile []model.BusMachineryDetailAddFile `json:"inspectionFile" dc:"上传设备合格校验单"`
LeaseFile []model.BusMachineryDetailAddFile `json:"leaseFile"dc:"上传设备租赁合同"`
Remark string `p:"remark" dc:"备注"`
MachineryId string `p:"machineryId" dc:"机械主键ID"`
}
// BusMachineryDetailAppAddRes 添加操作返回结果
type BusMachineryDetailAppAddRes struct {
commonApi.EmptyRes
}
// BusMachineryDetailAppEditReq 修改操作请求参数
type BusMachineryDetailAppEditReq struct {
g.Meta `path:"/appedit" tags:"机械详情" method:"put" summary:"App机械详情修改"`
commonApi.Author
Id int64 `p:"id" v:"required#主键ID不能为空"`
Type int `p:"type" dc:"1出场 2入场" v:"between:1,2"`
CheckoutNumber string `p:"checkoutNumber" dc:"检验证编号" v:"required#检验证编号不能为空"`
CheckoutUnit string `p:"checkoutUnit" dc:"检验单位" v:"required#检验单位不能为空"`
CheckoutDate string `p:"checkoutDate" dc:"检定日期/有效期" v:"required#检定日期不能为空"`
Status string `p:"status" dc:"施工类型状态0正常 1停用" v:"required#施工类型状态不能为空"`
Picture string `p:"picture" dc:"多个图片用逗号分隔"`
InspectionFile []model.BusMachineryDetailFile `json:"inspectionFile" dc:"上传设备合格校验单"`
LeaseFile []model.BusMachineryDetailFile `json:"leaseFile"dc:"上传设备租赁合同"`
DelFile []model.BusMachineryDetailFile `p:"delFile"dc:"删除文件"`
EntryTime string `p:"entryTime" dc:"入场时间"` //入场时间
Remark string `p:"remark" dc:"备注"`
}
// BusMachineryDetailAppEditRes 修改操作返回结果
type BusMachineryDetailAppEditRes struct {
commonApi.EmptyRes
}
// BusMachineryDetailAppGetReq 获取一条数据请求
type BusMachineryDetailAppGetReq struct {
g.Meta `path:"/appget" tags:"机械详情" method:"get" summary:"App获取机械详情信息"`
commonApi.Author
Id int64 `p:"id" v:"required#主键必须"` //通过主键获取
}
// BusMachineryDetailAppGetRes 获取一条数据结果
type BusMachineryDetailAppGetRes struct {
g.Meta `mime:"application/json"`
*model.BusMachineryDetailAppGetIdInfoRes
}
// app退场接口
type BusMachineryDetailAppExitReq struct {
g.Meta `path:"/appexit" tags:"机械详情" method:"get" summary:"App一键退场"`
commonApi.Author
Id int64 `p:"id" v:"required#主键必须"` //通过主键获取
}
type BusMachineryDetailAppExitRes struct {
g.Meta `mime:"application/json"`
}
// app入场
type BusMachineryDetailAppEntranceReq struct {
g.Meta `path:"/appentrance" tags:"机械详情" method:"get" summary:"App一键入场"`
commonApi.Author
Id int64 `p:"id" v:"required#主键必须"` //通过主键获取
}
type BusMachineryDetailAppEntranceRes struct {
g.Meta `mime:"application/json"`
}

View File

@ -0,0 +1,125 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2024-11-20 13:51:38
// 生成路径: api/v1/system/bus_payroll_list.go
// 生成人gfast
// desc:工资excel导入形成的相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
type ImportExcelPaySheetReq struct {
g.Meta `path:"/importExcelPaySheet" tags:"工资表" method:"post" summary:"导入excel工资表"`
YearToDate string `p:"yearToDate" dc:"年月日+农民工工资表" v:"required#yearToDate必须"`
ExcelPath string `p:"excelPath" dc:"excel资源路径" v:"required#excelPath必须"`
Name string `p:"name" dc:"源文件名" v:"required#name必须"`
Suffix string `p:"suffix" dc:"后缀名" v:"required#suffix必须"`
commonApi.Author
}
type ImportExcelPaySheetRes struct {
commonApi.EmptyRes
}
type ReadAllImportedListDataReq struct {
g.Meta `path:"/readAllImportedListData" tags:"工资表" method:"get" summary:"读取所有导入列表数据(汇总)"`
commonApi.Author
}
type ReadAllImportedListDataRes struct {
g.Meta `mime:"application/json"`
List []*model.BusPayrollRes `json:"list"`
}
type GetTheSourceExcelAccordingToTheIdOfThePayrollReq struct {
g.Meta `path:"/getTheSourceExcelAccordingToTheIdOfThePayroll" tags:"工资表" method:"get" summary:"根据工资表的id获取到源excel只允许查看"`
commonApi.Author
Id int64 `p:"id" v:"required#主键必须"` //通过主键获取
}
type GetTheSourceExcelAccordingToTheIdOfThePayrollRes struct {
g.Meta `mime:"application/json"`
Path string `p:"path" dc:"源excel路径"`
Name string `p:"name" dc:"源文件名称"`
Suffix string `p:"suffix" dc:"源后缀名"`
}
type BusPayrollListSearchReq struct {
g.Meta `path:"/list" tags:"工资表" method:"get" summary:"工资excel导入形成的列表"`
Pid int64 `p:"id" dc:"上级主键ID"`
LabourService int64 `p:"labourService" dc:"劳务公司(字符串名称)"`
GroupID int64 `p:"groupID" dc:"班组(字符串名称)"`
//commonApi.PageReq
commonApi.Author
}
type BusPayrollListSearchRes struct {
g.Meta `mime:"application/json"`
Money string `json:"money" dc:"金额"`
Lw []int64 `json:"lw" dc:"劳务主键ID"`
Bz []int64 `json:"bz" dc:"班组主键ID"`
List []*model.BusPayrollListListRes `json:"list"`
}
type BusDeletePayrollReq struct {
g.Meta `path:"/deletePayroll" tags:"工资表" method:"delete" summary:"删除工资目录"`
commonApi.Author
Ids []int64 `p:"ids" v:"required#主键必须"` //通过主键删除
}
type BusDeletePayrollRes struct {
commonApi.EmptyRes
}
// BusPayrollListAddReq 添加操作请求参数
type BusPayrollListAddReq struct {
g.Meta `path:"/add" tags:"工资excel导入形成的" method:"post" summary:"工资excel导入形成的添加"`
commonApi.Author
}
// BusPayrollListAddRes 添加操作返回结果
type BusPayrollListAddRes struct {
commonApi.EmptyRes
}
// BusPayrollListEditReq 修改操作请求参数
type BusPayrollListEditReq struct {
g.Meta `path:"/edit" tags:"工资excel导入形成的" method:"put" summary:"工资excel导入形成的修改"`
commonApi.Author
Id int64 `p:"id" v:"required#主键ID不能为空"`
}
// BusPayrollListEditRes 修改操作返回结果
type BusPayrollListEditRes struct {
commonApi.EmptyRes
}
// BusPayrollListGetReq 获取一条数据请求
type BusPayrollListGetReq struct {
g.Meta `path:"/get" tags:"工资excel导入形成的" method:"get" summary:"获取工资excel导入形成的信息"`
commonApi.Author
Id int64 `p:"id" v:"required#主键必须"` //通过主键获取
}
// BusPayrollListGetRes 获取一条数据结果
type BusPayrollListGetRes struct {
g.Meta `mime:"application/json"`
*model.BusPayrollListInfoRes
}
// BusPayrollListDeleteReq 删除数据请求
type BusPayrollListDeleteReq struct {
g.Meta `path:"/delete" tags:"工资excel导入形成的" method:"delete" summary:"删除工资excel导入形成的"`
commonApi.Author
Ids []int64 `p:"ids" v:"required#主键必须"` //通过主键删除
}
// BusPayrollListDeleteRes 删除数据返回
type BusPayrollListDeleteRes struct {
commonApi.EmptyRes
}

View File

@ -0,0 +1,100 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2024-03-20 19:45:19
// 生成路径: api/v1/system/bus_projectin_progress.go
// 生成人gfast
// desc:在建项目相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// BusProjectinProgressSearchReq 分页请求参数
type BusProjectinProgressSearchReq struct {
g.Meta `path:"/list" tags:"在建项目" method:"get" summary:"在建项目列表"`
Id string `p:"id"` //主键ID
ProjectId string `p:"projectId" v:"projectId@integer#项目ID需为整数"` //项目ID
ParallelIn string `p:"parallelIn" v:"parallelIn@integer#并网容量需为整数"` //并网容量
CreatedBy string `p:"createdBy" v:"createdBy@datetime#创建时间需为YYYY-MM-DD hh:mm:ss格式"` //创建时间
commonApi.PageReq
commonApi.Author
}
// BusProjectinProgressSearchRes 列表返回结果
type BusProjectinProgressSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.BusProjectinProgressListRes `json:"list"`
}
// BusProjectinProgressAddReq 添加操作请求参数
type BusProjectinProgressAddReq struct {
g.Meta `path:"/add" tags:"在建项目" method:"post" summary:"在建项目添加"`
commonApi.Author
ProjectId int64 `p:"projectId" `
ParallelIn float64 `p:"parallelIn" `
CreatedBy uint64
}
// BusProjectinProgressAddRes 添加操作返回结果
type BusProjectinProgressAddRes struct {
commonApi.EmptyRes
}
// BusProjectinProgressEditReq 修改操作请求参数
type BusProjectinProgressEditReq struct {
g.Meta `path:"/edit" tags:"在建项目" method:"put" summary:"在建项目修改"`
commonApi.Author
Id int64 `p:"id" v:"required#主键ID不能为空"`
ProjectId int64 `p:"projectId" `
ParallelIn float64 `p:"parallelIn" `
}
// BusProjectinProgressEditRes 修改操作返回结果
type BusProjectinProgressEditRes struct {
commonApi.EmptyRes
}
// BusProjectinProgressGetReq 获取一条数据请求
type BusProjectinProgressGetReq struct {
g.Meta `path:"/get" tags:"在建项目" method:"get" summary:"获取在建项目信息"`
commonApi.Author
Id int64 `p:"id" v:"required#主键必须"` //通过主键获取
}
// BusProjectinProgressGetRes 获取一条数据结果
type BusProjectinProgressGetRes struct {
g.Meta `mime:"application/json"`
*model.BusProjectinProgressInfoRes
}
// BusProjectinProgressDeleteReq 删除数据请求
type BusProjectinProgressDeleteReq struct {
g.Meta `path:"/delete" tags:"在建项目" method:"delete" summary:"删除在建项目"`
commonApi.Author
Ids []int64 `p:"ids" v:"required#主键必须"` //通过主键删除
}
// BusProjectinProgressDeleteRes 删除数据返回
type BusProjectinProgressDeleteRes struct {
commonApi.EmptyRes
}
type BusProjectinProgressSearchAllReq struct {
g.Meta `path:"/listAll" tags:"在建项目" method:"get" summary:"GIS在建项目"`
commonApi.Author
}
type BusProjectinProgressSearchAllRes struct {
g.Meta `mime:"application/json"`
SumNum int `p:"ids" dc:"项目总数" `
WindPower int `p:"windPower" dc:"风电项目" `
Photovoltaic int `p:"photovoltaic" dc:"光伏项目"`
ParallelIn float64 `p:"parallelIn" dc:"并网容量"`
}

View File

@ -0,0 +1,158 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2023-08-02 17:11:39
// 生成路径: api/v1/system/bus_quality.go
// 生成人gfast
// desc:质量文档管理相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
comModel "github.com/tiger1103/gfast/v3/internal/app/common/model"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// BusQualitySearchReq 分页请求参数
type BusQualitySearchReq struct {
g.Meta `path:"/list" tags:"质量文档管理" method:"get" summary:"质量文档管理列表"`
QualityName string `p:"qualityName"` //质量检查名称
QualityType string `p:"qualityType"` //质量类型
Status string `p:"status"` //帐号状态
ProjectId string `p:"projectId"` //项目id
CreatedAt string `p:"createdAt" v:"createdAt@datetime#创建时间需为YYYY-MM-DD hh:mm:ss格式"` //创建时间
commonApi.PageReq
commonApi.Author
}
// BusQualitySearchRes 列表返回结果
type BusQualitySearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.BusQualityListRes `json:"list"`
}
// BusQualityAddReq 添加操作请求参数
type BusQualityAddReq struct {
g.Meta `path:"/add" tags:"质量文档管理" method:"post" summary:"质量文档管理添加"`
commonApi.Author
WxOrPc string `p:"wxOrPc" dc:"参数为1表示pc添加 否则为小程序添加" v:"required#wxOrPc不能为空"`
Openid string `p:"openid" v:"required-unless:WxOrPc,1#需要填写小程序的openid"`
QualityName string `p:"qualityName" v:"required#质量检查名称不能为空"`
QualityExplain string `p:"qualityExplain" `
QualityDocument []*comModel.UpFile `p:"qualityDocument" `
QualityType string `p:"qualityType" `
ProjectId int64 `p:"projectId" `
}
// BusQualityAddRes 添加操作返回结果
type BusQualityAddRes struct {
commonApi.EmptyRes
}
// BusQualityEditReq 修改操作请求参数
type BusQualityEditReq struct {
g.Meta `path:"/edit" tags:"质量文档管理" method:"put" summary:"质量文档管理修改"`
commonApi.Author
WxOrPc string `p:"wxOrPc" dc:"参数为1表示pc添加 否则为小程序添加" v:"required#wxOrPc不能为空"`
Openid string `p:"openid" v:"required-unless:WxOrPc,1#需要填写小程序的openid"`
Id uint64 `p:"id" v:"required#主键ID不能为空"`
QualityName string `p:"qualityName" v:"required#质量检查名称不能为空"`
QualityExplain string `p:"qualityExplain" `
QualityDocument []*comModel.UpFile `p:"qualityDocument" `
QualityType string `p:"qualityType" `
ProjectId int64 `p:"projectId" `
Status string `p:"status" v:"required#帐号状态不能为空"`
}
// BusQualityEditRes 修改操作返回结果
type BusQualityEditRes struct {
commonApi.EmptyRes
}
// BusQualityGetReq 获取一条数据请求
type BusQualityGetReq struct {
g.Meta `path:"/get" tags:"质量文档管理" method:"get" summary:"获取质量文档管理信息"`
commonApi.Author
Id uint64 `p:"id" v:"required#主键必须"` //通过主键获取
}
// BusQualityGetRes 获取一条数据结果
type BusQualityGetRes struct {
g.Meta `mime:"application/json"`
*model.BusQualityInfoRes
}
// BusQualityDeleteReq 删除数据请求
type BusQualityDeleteReq struct {
g.Meta `path:"/delete" tags:"质量文档管理" method:"delete" summary:"删除质量文档管理"`
commonApi.Author
Ids []uint64 `p:"ids" v:"required#主键必须"` //通过主键删除
}
// BusQualityDeleteRes 删除数据返回
type BusQualityDeleteRes struct {
commonApi.EmptyRes
}
// GraphReq 图标统计
type GraphReq struct {
g.Meta `path:"/graph" tags:"质量文档管理" method:"get" summary:"安全情况-图标统计"`
ProjectId string `json:"projectId" v:"required#项目ID必须"`
commonApi.Author
}
// GraphRes 图标统计
type GraphRes struct {
g.Meta `mime:"application/json"`
GraphList []*GraphListRes `json:"list"`
}
type GraphListRes struct {
GraphStatus string `p:"graphStatus" dc:"类型 0表示站班会"`
GraphName string `p:"graphName" dc:"名称"`
GraphNumber int `p:"graphNumber" dc:"数量"`
}
// GraphDataListReq 图标统计列表
type GraphDataListReq struct {
g.Meta `path:"/graphDataList" tags:"质量文档管理" method:"get" summary:"安全情况-图标统计列表"`
GraphStatus string `json:"graphStatus" v:"required#类型必须"`
ProjectId string `json:"projectId" v:"required#项目ID必须"`
commonApi.Author
commonApi.PageReq
}
// GraphDataListRes 图标统计列表
type GraphDataListRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
GraphDataList []*GraphDataListTwoRes `json:"list"`
}
type GraphDataListTwoRes struct {
Id int64 `p:"id" dc:"主键ID"`
Name string `p:"name" dc:"名称"`
DateTime *gtime.Time `p:"dateTime" dc:"时间"`
Type string `p:"type" dc:"类型 0站班会 1案例"`
}
// WxBusQualityAddReq 添加操作请求参数
type WxBusQualityAddReq struct {
g.Meta `path:"/wxAdd" tags:"质量文档管理" method:"post" summary:"微信小程序-质量文档管理添加"`
commonApi.Author
QualityName string `p:"qualityName" v:"required#质量检查名称不能为空"`
QualityExplain string `p:"qualityExplain" `
QualityDocument []*comModel.UpFile `p:"qualityDocument" `
QualityType string `p:"qualityType" `
ProjectId int64 `p:"projectId" `
}
// WxBusQualityAddRes 添加操作返回结果
type WxBusQualityAddRes struct {
commonApi.EmptyRes
}

View File

@ -0,0 +1,124 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2023-10-07 15:52:18
// 生成路径: api/v1/system/bus_question_bank.go
// 生成人gfast
// desc:题库相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// BusQuestionBankSearchReq 分页请求参数
type BusQuestionBankSearchReq struct {
g.Meta `path:"/list" tags:"题库" method:"get" summary:"题库列表"`
CategoryId string `p:"categoryId" v:"categoryId@integer#题目类别需为整数"` //题目类别
QuestionType string `p:"questionType"` //题目类型1单选、2多选、3判断、4填空、5问答
QuestionText string `p:"questionText"` //题目内容
CreatedAt string `p:"createdAt" v:"createdAt@datetime#创建时间需为YYYY-MM-DD hh:mm:ss格式"` //创建时间
commonApi.PageReq
commonApi.Author
}
// BusQuestionBankSearchRes 列表返回结果
type BusQuestionBankSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.BusQuestionBankListRes `json:"list"`
}
// BusQuestionBankAddReq 添加操作请求参数
type BusQuestionBankAddReq struct {
g.Meta `path:"/add" tags:"题库" method:"post" summary:"题库添加"`
commonApi.Author
CategoryId int64 `p:"categoryId" v:"required#题目类别不能为空"`
QuestionType string `p:"questionType" v:"required#题目类型1单选、2多选、3判断、4填空、5问答不能为空"`
QuestionText string `p:"questionText" `
Options string `p:"options" `
CorrectAnswer string `p:"correctAnswer" `
//Score float64 `p:"score" `
WxOrPc string `p:"wxOrPc" v:"required#创建人类型1pc、2小程序不能为空"`
}
// BusQuestionBankAddRes 添加操作返回结果
type BusQuestionBankAddRes struct {
commonApi.EmptyRes
}
// BusQuestionBankEditReq 修改操作请求参数
type BusQuestionBankEditReq struct {
g.Meta `path:"/edit" tags:"题库" method:"put" summary:"题库修改"`
commonApi.Author
Id int64 `p:"id" v:"required#主键ID不能为空"`
CategoryId int64 `p:"categoryId" v:"required#题目类别不能为空"`
QuestionType string `p:"questionType" v:"required#题目类型1单选、2多选、3判断、4填空、5问答不能为空"`
QuestionText string `p:"questionText" `
Options string `p:"options" `
CorrectAnswer string `p:"correctAnswer" `
//Score float64 `p:"score" `
WxOrPc string `p:"wxOrPc" v:"required#创建人类型1pc、2小程序不能为空"`
}
// BusQuestionBankEditRes 修改操作返回结果
type BusQuestionBankEditRes struct {
commonApi.EmptyRes
}
// BusQuestionBankGetReq 获取一条数据请求
type BusQuestionBankGetReq struct {
g.Meta `path:"/get" tags:"题库" method:"get" summary:"获取题库信息"`
commonApi.Author
Id int64 `p:"id" v:"required#主键必须"` //通过主键获取
}
// BusQuestionBankGetRes 获取一条数据结果
type BusQuestionBankGetRes struct {
g.Meta `mime:"application/json"`
*model.BusQuestionBankInfoRes
}
// BusQuestionBankDeleteReq 删除数据请求
type BusQuestionBankDeleteReq struct {
g.Meta `path:"/delete" tags:"题库" method:"delete" summary:"删除题库"`
commonApi.Author
Ids []int64 `p:"ids" v:"required#主键必须"` //通过主键删除
}
// BusQuestionBankDeleteRes 删除数据返回
type BusQuestionBankDeleteRes struct {
commonApi.EmptyRes
}
// ExaminationPaperReq 生成试卷
type ExaminationPaperReq struct {
g.Meta `path:"/examinationPaper" tags:"题库" method:"get" summary:"生成试卷"`
commonApi.Author
}
// ExaminationPaperRes 生成试卷返回结果
type ExaminationPaperRes struct {
g.Meta `mime:"application/json"`
Maximum int `p:"最大考试时间(分钟)"`
Single *ExaminationPaperOne `json:"singleList" dc:"单选题"`
Multiple *ExaminationPaperOne `json:"multipleList" dc:"多选题"`
Estimate *ExaminationPaperOne `json:"estimateList" dc:"判断题"`
}
type ExaminationPaperOne struct {
Topic string `p:"categoryId" dc:"题目+分数"`
List []*ExaminationPaperTwo `json:"list"`
}
type ExaminationPaperTwo struct {
Id int64 `json:"id" dc:"题库id"`
QuestionType string `json:"questionType" dc:"题类型"`
QuestionText string `json:"questionText" dc:"题内容"`
Options string `json:"options" dc:"题选项"`
Score float64 `json:"score" dc:"题分数"`
}

View File

@ -0,0 +1,155 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2023-11-01 17:33:04
// 生成路径: api/v1/system/bus_question_save.go
// 生成人gfast
// desc:用户试卷存储相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// BusQuestionSaveSearchReq 分页请求参数
type BusQuestionSaveSearchReq struct {
g.Meta `path:"/list" tags:"用户试卷存储" method:"get" summary:"用户试卷存储列表"`
Id string `p:"id"` //主键ID
Openid string `p:"openid"` //openid
BankId string `p:"bankId" v:"bankId@integer#题库ID需为整数"` //题库ID
Answer string `p:"answer"` //答案
Correct string `p:"correct"` //答题是否正确1正确 2错误
Score string `p:"score" v:"score@float#得分(当前题)需为浮点数"` //得分(当前题)
Sign string `p:"sign"` //签名路径
TakeTime string `p:"takeTime" v:"takeTime@integer#用时时间(时间戳/秒)需为整数"` //用时时间(时间戳/秒)
TimeOut string `p:"timeOut" v:"timeOut@integer#最大超时时间(单位/分钟)需为整数"` //最大超时时间(单位/分钟)
Pass string `p:"pass"` //及格线/总分格式60,100
CreatedAt string `p:"createdAt" v:"createdAt@datetime#创建时间需为YYYY-MM-DD hh:mm:ss格式"` //创建时间
commonApi.PageReq
commonApi.Author
}
// BusQuestionSaveSearchRes 列表返回结果
type BusQuestionSaveSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.BusQuestionSaveListRes `json:"list"`
}
// BusQuestionSaveAddReq 添加操作请求参数
type BusQuestionSaveAddReq struct {
g.Meta `path:"/add" tags:"用户试卷存储" method:"post" summary:"用户试卷存储添加"`
commonApi.Author
Openid string `p:"openid" dc:"openid"`
//Sign *ghttp.UploadFile `p:"sign" dc:"签名http图上传"`
TakeTime int64 `p:"takeTime" dc:"用时时间(时间戳/秒)"`
List []*BusQuestionSaveAddEntity `json:"list"`
}
// BusQuestionSaveAddRes 添加操作返回结果
type BusQuestionSaveAddRes struct {
commonApi.EmptyRes
AnswerTime int `p:"answerTime" dc:"总考试时间(分钟)"`
TakeTime int64 `p:"takeTime" dc:"用时时间(时间戳/秒)"`
FullMark float64 `json:"fullMark" dc:"满分"`
PassingScore float64 `json:"passingScore" dc:"及格分"`
Score float64 `json:"score" dc:"当前分"`
Number int `json:"number" dc:"答对题数"`
PdfStr string `json:"pdfStr" dc:"试卷"`
}
type BusQuestionSaveAddEntity struct {
BankId int64 `json:"bankId" dc:"题库ID"`
Answer string `json:"answer" dc:"答案"`
Score float64 `json:"score" dc:"当前题分数"`
}
// BusQuestionSaveGetReq 获取一条数据请求
type BusQuestionSaveGetReq struct {
g.Meta `path:"/get" tags:"用户试卷存储" method:"get" summary:"获取用户试卷存储信息"`
commonApi.Author
Id int64 `p:"id" v:"required#主键必须"` //通过主键获取
}
// BusQuestionSaveGetRes 获取一条数据结果
type BusQuestionSaveGetRes struct {
g.Meta `mime:"application/json"`
*model.BusQuestionSaveInfoRes
}
// BusQuestionSaveDeleteReq 删除数据请求
type BusQuestionSaveDeleteReq struct {
g.Meta `path:"/delete" tags:"用户试卷存储" method:"delete" summary:"删除用户试卷存储"`
commonApi.Author
Ids []int64 `p:"ids" v:"required#主键必须"` //通过主键删除
}
// BusQuestionSaveDeleteRes 删除数据返回
type BusQuestionSaveDeleteRes struct {
commonApi.EmptyRes
}
// PassOrNotReq 查询用户的考试是否已达到及格线
type PassOrNotReq struct {
g.Meta `path:"/passOrNot" tags:"用户试卷存储" method:"get" summary:"查询用户的考试是否已达到及格线"`
commonApi.Author
Openid string `p:"openid" v:"required#openid必须"`
}
// PassOrNotRes 查询用户的考试是否已达到及格线
type PassOrNotRes struct {
g.Meta `mime:"application/json"`
IsPass string `json:"isPass" dc:"成绩是否合格1及格 2不及格 3暂无记录"`
PdfStr string `json:"pdfStr" dc:"上次考试的试卷PDF格式"`
Type string `json:"type" dc:"1pdf 2图片"`
}
// WeChatPdfWoReq 根据项目id+班组id 查询到当前用户的考试信息
type WeChatPdfWoReq struct {
g.Meta `path:"/weChatPdfWo" tags:"用户试卷存储" method:"get" summary:"根据项目id或者加班组id 查询到当前用户的考试信息(安全考试)"`
ProjectId int64 `p:"projectId" dc:"项目id" v:"required#项目ID必须"`
TeamId int64 `p:"teamId" dc:"班组id"`
Name string `p:"name" dc:"名称"`
commonApi.PageReq
commonApi.Author
//commonApi.Paging
}
// WeChatPdfWoRes 根据项目id+班组id 查询到当前用户的考试信息
type WeChatPdfWoRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.ModelWeChatPdfWoRes `json:"list"`
}
// MultifileDownloadReq 批量下载用户试卷
type MultifileDownloadReq struct {
g.Meta `path:"/multifileDownload" tags:"用户试卷存储" method:"get" summary:"批量下载用户试卷"`
//ProjectId int64 `p:"projectId" dc:"项目id" `
//TeamId int64 `p:"teamId" dc:"班组id" `
Openids []string `p:"openids" dc:"openid传入openid就不需要项目和班组id" v:"required#班组ID必须"`
commonApi.Author
}
// MultifileDownloadRes 批量下载用户试卷
type MultifileDownloadRes struct {
g.Meta `mime:"application/json"`
Path string `json:"path"`
}
// UploadZipFileReq 上传施工人员线下安全考试上传压缩zip文件
type UploadZipFileReq struct {
g.Meta `path:"/uploadZipFile" tags:"用户试卷存储" method:"post" summary:"上传施工人员线下安全考试上传压缩zip文件"`
//File *ghttp.UploadFile `p:"file" `
FilePath string `p:"filePath" `
commonApi.Author
}
// UploadZipFileRes 上传施工人员线下安全考试上传压缩zip文件
type UploadZipFileRes struct {
g.Meta `mime:"application/json"`
}

View File

@ -0,0 +1,96 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2023-10-07 17:11:20
// 生成路径: api/v1/system/bus_questions_configuration.go
// 生成人gfast
// desc:题库配置相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// BusQuestionsConfigurationSearchReq 分页请求参数
type BusQuestionsConfigurationSearchReq struct {
g.Meta `path:"/list" tags:"题库配置" method:"get" summary:"题库配置列表"`
commonApi.PageReq
commonApi.Author
}
// BusQuestionsConfigurationSearchRes 列表返回结果
type BusQuestionsConfigurationSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.BusQuestionsConfigurationListRes `json:"list"`
}
// BusQuestionsConfigurationAddReq 添加操作请求参数
type BusQuestionsConfigurationAddReq struct {
g.Meta `path:"/add" tags:"题库配置" method:"post" summary:"题库配置添加"`
commonApi.Author
SingleChoice int `p:"singleChoice" dc:"单选题(单位/道)" v:"required#单选题(单位/道)不能为空"`
SingleScore float64 `p:"singleScore" dc:"单选分数" v:"required#单选分数不能为空"`
MultipleChoice int `p:"multipleChoice" dc:"多选题(单位/道)" v:"required#多选题(单位/道)不能为空"`
MultipleScore float64 `p:"multipleScore" dc:"多选分数" v:"required#多选分数不能为空"`
Estimate int `p:"estimate" dc:"判断题(单位/道)" v:"required#判断题(单位/道)不能为空"`
EstimateScore float64 `p:"estimateScore" dc:"判断分数" v:"required#判断分数不能为空"`
FullMark float64 `p:"fullMark" dc:"满分" v:"required#满分不能为空"`
PassingScore float64 `p:"passingScore" dc:"及格线" v:"required#及格线不能为空"`
AnswerTime float64 `p:"answerTime" dc:"答题最大超时时间" v:"min:0#及格线不能为空"`
}
// BusQuestionsConfigurationAddRes 添加操作返回结果
type BusQuestionsConfigurationAddRes struct {
commonApi.EmptyRes
}
// BusQuestionsConfigurationEditReq 修改操作请求参数
type BusQuestionsConfigurationEditReq struct {
g.Meta `path:"/edit" tags:"题库配置" method:"put" summary:"题库配置修改"`
commonApi.Author
Id int64 `p:"id" v:"required#主键ID不能为空"`
SingleChoice int `p:"singleChoice" dc:"单选题(单位/道)" v:"required#单选题(单位/道)不能为空"`
SingleScore float64 `p:"singleScore" dc:"单选分数" v:"required#单选分数不能为空"`
MultipleChoice int `p:"multipleChoice" dc:"多选题(单位/道)" v:"required#多选题(单位/道)不能为空"`
MultipleScore float64 `p:"multipleScore" dc:"多选分数" v:"required#多选分数不能为空"`
Estimate int `p:"estimate" dc:"判断题(单位/道)" v:"required#判断题(单位/道)不能为空"`
EstimateScore float64 `p:"estimateScore" dc:"判断分数" v:"required#判断分数不能为空"`
FullMark float64 `p:"fullMark" dc:"满分" v:"required#满分不能为空"`
PassingScore float64 `p:"passingScore" dc:"及格线" v:"required#及格线不能为空"`
AnswerTime float64 `p:"answerTime" dc:"答题最大超时时间" v:"min:0#及格线不能为空"`
}
// BusQuestionsConfigurationEditRes 修改操作返回结果
type BusQuestionsConfigurationEditRes struct {
commonApi.EmptyRes
}
// BusQuestionsConfigurationGetReq 获取一条数据请求
type BusQuestionsConfigurationGetReq struct {
g.Meta `path:"/get" tags:"题库配置" method:"get" summary:"获取题库配置信息"`
commonApi.Author
Id int64 `p:"id" v:"required#主键必须"` //通过主键获取
}
// BusQuestionsConfigurationGetRes 获取一条数据结果
type BusQuestionsConfigurationGetRes struct {
g.Meta `mime:"application/json"`
*model.BusQuestionsConfigurationInfoRes
}
// BusQuestionsConfigurationDeleteReq 删除数据请求
type BusQuestionsConfigurationDeleteReq struct {
g.Meta `path:"/delete" tags:"题库配置" method:"delete" summary:"删除题库配置"`
commonApi.Author
Ids []int64 `p:"ids" v:"required#主键必须"` //通过主键删除
}
// BusQuestionsConfigurationDeleteRes 删除数据返回
type BusQuestionsConfigurationDeleteRes struct {
commonApi.EmptyRes
}

View File

@ -0,0 +1,94 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2024-02-02 15:18:48
// 生成路径: api/v1/system/bus_reissue_a_card.go
// 生成人gfast
// desc:施工人员补卡申请相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// BusReissueACardSearchReq 分页请求参数
type BusReissueACardSearchReq struct {
g.Meta `path:"/list" tags:"施工人员补卡申请" method:"get" summary:"施工人员补卡申请列表"`
Name string `p:"name" dc:"根据名称模糊查询"`
ProjectId int64 `p:"projectId" dc:"项目id"`
TeamId int64 `p:"teamId" dc:"班组id"`
ManagerOpinion string `p:"managerOpinion" dc:"管理员意见1未读 2同意 3拒绝"`
commonApi.PageReq
commonApi.Author
}
// BusReissueACardSearchRes 列表返回结果
type BusReissueACardSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.BusReissueACardListRes `json:"list"`
}
// BusReissueACardAddReq 添加操作请求参数
type BusReissueACardAddReq struct {
g.Meta `path:"/add" tags:"施工人员补卡申请" method:"post" summary:"施工人员补卡申请添加"`
commonApi.Author
Openid string `p:"openid" `
Scope string `p:"scope" `
Explain string `p:"explain" `
Ganger string `p:"ganger" `
GangerOpinion string `p:"gangerOpinion" `
GangerExplain string `p:"gangerExplain" `
GangerTime *gtime.Time `p:"gangerTime" `
ManagerOpinion string `p:"managerOpinion" `
ManagerExplain string `p:"managerExplain" `
}
// BusReissueACardAddRes 添加操作返回结果
type BusReissueACardAddRes struct {
commonApi.EmptyRes
}
// BusReissueACardEditReq 修改操作请求参数
type BusReissueACardEditReq struct {
g.Meta `path:"/edit" tags:"施工人员补卡申请" method:"put" summary:"施工人员补卡申请修改"`
commonApi.Author
Id int64 `p:"id" v:"required#主键ID不能为空"`
ManagerOpinion string `p:"managerOpinion" dc:"管理员意见1未读 2同意 3拒绝"`
ManagerExplain string `p:"managerExplain" dc:"拒绝说明" v:"required-if:managerOpinion,3#请填写拒绝说明"`
}
// BusReissueACardEditRes 修改操作返回结果
type BusReissueACardEditRes struct {
commonApi.EmptyRes
}
// BusReissueACardGetReq 获取一条数据请求
type BusReissueACardGetReq struct {
g.Meta `path:"/get" tags:"施工人员补卡申请" method:"get" summary:"获取施工人员补卡申请信息"`
commonApi.Author
Id int64 `p:"id" v:"required#主键必须"` //通过主键获取
}
// BusReissueACardGetRes 获取一条数据结果
type BusReissueACardGetRes struct {
g.Meta `mime:"application/json"`
*model.BusReissueACardInfoRes
}
// BusReissueACardDeleteReq 删除数据请求
type BusReissueACardDeleteReq struct {
g.Meta `path:"/delete" tags:"施工人员补卡申请" method:"delete" summary:"删除施工人员补卡申请"`
commonApi.Author
Ids []int64 `p:"ids" v:"required#主键必须"` //通过主键删除
}
// BusReissueACardDeleteRes 删除数据返回
type BusReissueACardDeleteRes struct {
commonApi.EmptyRes
}

View File

@ -0,0 +1,94 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2023-07-29 16:04:06
// 生成路径: api/v1/system/bus_research_document.go
// 生成人gfast
// desc:科研文档相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
comModel "github.com/tiger1103/gfast/v3/internal/app/common/model"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// BusResearchDocumentSearchReq 分页请求参数
type BusResearchDocumentSearchReq struct {
g.Meta `path:"/list" tags:"科研文档" method:"get" summary:"科研文档列表"`
FileId string `p:"fileId" `
ProjectId string `p:"projectId" `
DocumenName string `p:"documenName"` //文档名称
CreatedAt string `p:"createdAt" v:"createdAt@datetime#上传时间需为YYYY-MM-DD hh:mm:ss格式"` //上传时间
commonApi.PageReq
commonApi.Author
}
// BusResearchDocumentSearchRes 列表返回结果
type BusResearchDocumentSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.BusResearchDocumentListRes `json:"list"`
}
// BusResearchDocumentAddReq 添加操作请求参数
type BusResearchDocumentAddReq struct {
g.Meta `path:"/add" tags:"科研文档" method:"post" summary:"科研文档添加"`
commonApi.Author
//DocumenName string `p:"documenName" v:"required#文档名称不能为空"`
//DocumentUrl string `p:"documentUrl" `
FileId int64 `p:"fileId" `
ProjectId int64 `p:"projectId" `
FileUrl []*comModel.UpFile `p:"fileUrl" `
}
// BusResearchDocumentAddRes 添加操作返回结果
type BusResearchDocumentAddRes struct {
commonApi.EmptyRes
}
// BusResearchDocumentEditReq 修改操作请求参数
type BusResearchDocumentEditReq struct {
g.Meta `path:"/edit" tags:"科研文档" method:"put" summary:"科研文档修改"`
commonApi.Author
Id int64 `p:"id" v:"required#主键ID不能为空"`
FileUrl []*comModel.UpFile `p:"fileUrl" `
Remark string `p:"remark" `
FileId int64 `p:"fileId" `
ProjectId int64 `p:"projectId" `
//DocumenName string `p:"documenName" v:"required#文档名称不能为空"`
//DocumentUrl string `p:"documentUrl" `
}
// BusResearchDocumentEditRes 修改操作返回结果
type BusResearchDocumentEditRes struct {
commonApi.EmptyRes
}
// BusResearchDocumentGetReq 获取一条数据请求
type BusResearchDocumentGetReq struct {
g.Meta `path:"/get" tags:"科研文档" method:"get" summary:"获取科研文档信息"`
commonApi.Author
Id int64 `p:"id" v:"required#主键必须"` //通过主键获取
}
// BusResearchDocumentGetRes 获取一条数据结果
type BusResearchDocumentGetRes struct {
g.Meta `mime:"application/json"`
*model.BusResearchDocumentInfoRes
}
// BusResearchDocumentDeleteReq 删除数据请求
type BusResearchDocumentDeleteReq struct {
g.Meta `path:"/delete" tags:"科研文档" method:"delete" summary:"删除科研文档"`
commonApi.Author
Ids []int64 `p:"ids" v:"required#主键必须"` //通过主键删除
}
// BusResearchDocumentDeleteRes 删除数据返回
type BusResearchDocumentDeleteRes struct {
commonApi.EmptyRes
}

126
api/v1/system/bus_safety.go Normal file
View File

@ -0,0 +1,126 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2023-08-02 15:40:48
// 生成路径: api/v1/system/bus_safety.go
// 生成人gfast
// desc:安全例会管理相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
comModel "github.com/tiger1103/gfast/v3/internal/app/common/model"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// BusSafetySearchReq 分页请求参数
type BusSafetySearchReq struct {
g.Meta `path:"/list" tags:"安全例会管理" method:"get" summary:"安全例会管理列表"`
SafetyName string `p:"safetyName"` //安全检查名称
SafetyExplain string `p:"safetyExplain"` //安全说明
SafetyDocument string `p:"safetyDocument"` //安全检查文件
SafetyType string `p:"safetyType"` //安全类型
ProjectId string `p:"projectId" v:"projectId@integer#项目id需为整数"` //项目id
Status string `p:"status"` //帐号状态
CreateBy string `p:"createBy"` //创建者
UpdateAt string `p:"updateAt"` //更新者
CreatedAt string `p:"createdAt" v:"createdAt@datetime#创建时间需为YYYY-MM-DD hh:mm:ss格式"` //创建时间
commonApi.PageReq
commonApi.Author
}
// BusSafetySearchRes 列表返回结果
type BusSafetySearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.BusSafetyListRes `json:"list"`
}
// BusSafetyAddReq 添加操作请求参数
type BusSafetyAddReq struct {
g.Meta `path:"/add" tags:"安全例会管理" method:"post" summary:"安全例会管理添加"`
commonApi.Author
WxOrPc string `p:"wxOrPc" dc:"参数为1表示pc添加 否则为小程序添加" v:"required#wxOrPc不能为空"`
Openid string `p:"openid" v:"required-unless:WxOrPc,1#需要填写小程序的openid"`
SafetyName string `p:"safetyName" v:"required#安全检查名称不能为空"`
SafetyExplain string `p:"safetyExplain" `
SafetyDocument []*comModel.UpFile `p:"safetyDocument" `
SafetyType string `p:"safetyType" v:"required#安全类型不能为空"`
ProjectId int64 `p:"projectId" v:"required#项目id不能为空"`
SafetyGrade int64 `p:"safetyGrade" `
StartDate *gtime.Time `p:"startDate" `
}
// BusSafetyAddRes 添加操作返回结果
type BusSafetyAddRes struct {
commonApi.EmptyRes
}
// BusSafetyEditReq 修改操作请求参数
type BusSafetyEditReq struct {
g.Meta `path:"/edit" tags:"安全例会管理" method:"put" summary:"安全例会管理修改"`
commonApi.Author
WxOrPc string `p:"wxOrPc" dc:"参数为1表示pc添加 否则为小程序添加" v:"required#wxOrPc不能为空"`
Openid string `p:"openid" v:"required-unless:WxOrPc,1#需要填写小程序的openid"`
Id int64 `p:"id" v:"required#主键ID不能为空"`
SafetyName string `p:"safetyName" v:"required#安全检查名称不能为空"`
SafetyExplain string `p:"safetyExplain" `
SafetyDocument []*comModel.UpFile `p:"safetyDocument" `
SafetyType string `p:"safetyType" v:"required#安全类型不能为空"`
//ProjectId int64 `p:"projectId" `
Status string `p:"status" v:"required#帐号状态不能为空"`
SafetyGrade int64 `p:"safetyGrade" `
}
// BusSafetyEditRes 修改操作返回结果
type BusSafetyEditRes struct {
commonApi.EmptyRes
}
// BusSafetyGetReq 获取一条数据请求
type BusSafetyGetReq struct {
g.Meta `path:"/get" tags:"安全例会管理" method:"get" summary:"获取安全例会管理信息"`
commonApi.Author
Id int64 `p:"id" v:"required#主键必须"` //通过主键获取
}
// BusSafetyGetRes 获取一条数据结果
type BusSafetyGetRes struct {
g.Meta `mime:"application/json"`
*model.BusSafetyInfoRes
}
// BusSafetyDeleteReq 删除数据请求
type BusSafetyDeleteReq struct {
g.Meta `path:"/delete" tags:"安全例会管理" method:"delete" summary:"删除安全例会管理"`
commonApi.Author
Ids []int64 `p:"ids" v:"required#主键必须"` //通过主键删除
}
// BusSafetyDeleteRes 删除数据返回
type BusSafetyDeleteRes struct {
commonApi.EmptyRes
}
// WxBusSafetyAddReq 添加操作请求参数
type WxBusSafetyAddReq struct {
g.Meta `path:"/wxAdd" tags:"安全例会管理" method:"post" summary:"微信小程序-安全例会管理添加"`
commonApi.Author
SafetyName string `p:"safetyName" v:"required#安全检查名称不能为空"`
Openid string `p:"openid" v:"required#小程序openid不能为空"`
SafetyExplain string `p:"safetyExplain" `
SafetyDocument []*comModel.UpFile `p:"safetyDocument" `
SafetyType string `p:"safetyType" v:"required#安全类型不能为空"`
ProjectId int64 `p:"projectId" `
SafetyGrade string `p:"safetyGrade" `
StartDate *gtime.Time `p:"startDate" `
}
// WxBusSafetyAddRes 添加操作返回结果
type WxBusSafetyAddRes struct {
commonApi.EmptyRes
}

View File

@ -0,0 +1,116 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2024-02-01 16:39:01
// 生成路径: api/v1/system/bus_salary_details.go
// 生成人gfast
// desc:员工工资考核记录相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// BusSalaryDetailsSearchReq 分页请求参数
type BusSalaryDetailsSearchReq struct {
g.Meta `path:"/list" tags:"员工工资考核记录" method:"get" summary:"员工工资考核记录列表"`
Id string `p:"id"` //主键ID
SfzNumber string `p:"sfzNumber"` //身份证
ProjectId string `p:"projectId" v:"projectId@integer#项目id需为整数"` //项目id
TeamId string `p:"teamId" v:"teamId@integer#班组id需为整数"` //班组id
DateOfIssue string `p:"dateOfIssue" dc:"工作年月" v:"date-format:Y-m#格式为2024-02"`
commonApi.PageReq
commonApi.Author
}
// BusSalaryDetailsSearchRes 列表返回结果
type BusSalaryDetailsSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.BusSalaryDetailsListRes `json:"list"`
}
// BusSalaryDetailsAddReq 添加操作请求参数
type BusSalaryDetailsAddReq struct {
g.Meta `path:"/add" tags:"员工工资考核记录" method:"post" summary:"员工工资考核记录添加"`
commonApi.Author
DataList []model.AttendanceImportRes `p:"dataList" dc:"考勤信息"`
}
// BusSalaryDetailsAddRes 添加操作返回结果
type BusSalaryDetailsAddRes struct {
commonApi.EmptyRes
}
// BusSalaryDetailsEditReq 修改操作请求参数
type BusSalaryDetailsEditReq struct {
g.Meta `path:"/edit" tags:"员工工资考核记录" method:"put" summary:"员工工资考核记录修改"`
commonApi.Author
Id int64 `p:"id" v:"required#主键ID不能为空"`
}
// BusSalaryDetailsEditRes 修改操作返回结果
type BusSalaryDetailsEditRes struct {
commonApi.EmptyRes
}
// BusSalaryDetailsGetReq 获取一条数据请求
type BusSalaryDetailsGetReq struct {
g.Meta `path:"/get" tags:"员工工资考核记录" method:"get" summary:"获取员工工资考核记录信息"`
commonApi.Author
Id int64 `p:"id" v:"required#主键必须"` //通过主键获取
}
// BusSalaryDetailsGetRes 获取一条数据结果
type BusSalaryDetailsGetRes struct {
g.Meta `mime:"application/json"`
*model.BusSalaryDetailsInfoRes
}
// BusSalaryDetailsDeleteReq 删除数据请求
type BusSalaryDetailsDeleteReq struct {
g.Meta `path:"/delete" tags:"员工工资考核记录" method:"delete" summary:"删除员工工资考核记录"`
commonApi.Author
Ids []int64 `p:"ids" v:"required#主键必须"` //通过主键删除
}
// BusSalaryDetailsDeleteRes 删除数据返回
type BusSalaryDetailsDeleteRes struct {
commonApi.EmptyRes
}
// GetByIdDetailFuncReq 根据ID获取当前考勤记录明细
type GetByIdDetailFuncReq struct {
g.Meta `path:"/getByIdDetail" tags:"员工工资考核记录" method:"get" summary:"根据身份证获取当前考勤记录明细"`
commonApi.Author
commonApi.PageReq
SfzNumber string `p:"sfzNumber" dc:"身份证号码" v:"required#身份证号码必须"`
DateOfIssue string `p:"dateOfIssue" dc:"工作年月" v:"date-format:Y-m#格式为2024-02"`
}
// GetByIdDetailFuncRes 根据ID获取当前考勤记录明细
type GetByIdDetailFuncRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.DateTwoRes `json:"list"`
}
// SalarySheetFuncReq 工资条获取(可根据项目or班组or施工人员)
type SalarySheetFuncReq struct {
g.Meta `path:"/salarySheet" tags:"员工工资考核记录" method:"get" summary:"工资条获取(可根据项目or班组or施工人员)"`
commonApi.Author
DateOfIssue string `p:"dateOfIssue" dc:"工作年月" v:"date-format:Y-m#格式为2024-02"`
Project int64 `p:"project" dc:"项目ID" v:"required#主键必须"`
Team int64 `p:"team" dc:"班组ID" `
SfzNumber string `p:"sfzNumber" dc:"施工人员身份证" `
}
// SalarySheetFuncRes 工资条获取(可根据项目or班组or施工人员)
type SalarySheetFuncRes struct {
g.Meta `mime:"application/json"`
List []model.SalarySheetRes `json:"list"`
}

View File

@ -0,0 +1,116 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2023-07-29 17:39:12
// 生成路径: api/v1/system/bus_scheduled_plan_type.go
// 生成人gfast
// desc:施工进度分类相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// BusScheduledPlanTypeSearchReq 分页请求参数
type BusScheduledPlanTypeSearchReq struct {
g.Meta `path:"/list" tags:"施工进度分类" method:"get" summary:"施工进度分类列表"`
PlanTypeId string `p:"planTypeId"` //施工类型id
ParentId string `p:"parentId" v:"parentId@integer#父文件id需为整数"` //父文件id
Ancestors string `p:"ancestors"` //祖级列表
PlanTypeName string `p:"planTypeName"` //施工类型名称
PlannedTime string `p:"plannedTime" v:"plannedTime@integer#计划施工持续时间需为整数"` //计划施工持续时间
PlanStartTime string `p:"planStartTime"` //计划工期开始时间
PlanEndTime string `p:"planEndTime"` //计划工期结束时间
OrderNum string `p:"orderNum" v:"orderNum@integer#显示顺序需为整数"` //显示顺序
ProjectId string `p:"projectId" v:"projectId@integer#项目id需为整数"` //项目id
Leader string `p:"leader"` //负责人
Status string `p:"status"` //施工类型状态
CreateBy string `p:"createBy"` //创建者
UpdateBy string `p:"updateBy"` //更新者
CreatedAt string `p:"createdAt" v:"createdAt@datetime#创建时间需为YYYY-MM-DD hh:mm:ss格式"` //创建时间
commonApi.PageReq
commonApi.Author
}
// BusScheduledPlanTypeSearchRes 列表返回结果
type BusScheduledPlanTypeSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.BusScheduledPlanTypeListRes `json:"list"`
}
// BusScheduledPlanTypeAddReq 添加操作请求参数
type BusScheduledPlanTypeAddReq struct {
g.Meta `path:"/add" tags:"施工进度分类" method:"post" summary:"施工进度分类添加"`
commonApi.Author
ParentId int `p:"parentId" `
Ancestors string `p:"ancestors" `
PlanTypeName string `p:"planTypeName" v:"required#施工类型名称不能为空"`
PlannedTime int64 `p:"plannedTime" `
PlanStartTime string `p:"planStartTime" `
PlanEndTime string `p:"planEndTime" `
OrderNum int `p:"orderNum" `
ProjectId int64 `p:"projectId" `
Leader string `p:"leader" `
Status string `p:"status" v:"required#施工类型状态不能为空"`
CreateBy string `p:"createBy" `
UpdateBy string `p:"updateBy" `
}
// BusScheduledPlanTypeAddRes 添加操作返回结果
type BusScheduledPlanTypeAddRes struct {
commonApi.EmptyRes
}
// BusScheduledPlanTypeEditReq 修改操作请求参数
type BusScheduledPlanTypeEditReq struct {
g.Meta `path:"/edit" tags:"施工进度分类" method:"put" summary:"施工进度分类修改"`
commonApi.Author
PlanTypeId int `p:"planTypeId" v:"required#主键ID不能为空"`
ParentId int `p:"parentId" `
Ancestors string `p:"ancestors" `
PlanTypeName string `p:"planTypeName" v:"required#施工类型名称不能为空"`
PlannedTime int64 `p:"plannedTime" `
PlanStartTime string `p:"planStartTime" `
PlanEndTime string `p:"planEndTime" `
OrderNum int `p:"orderNum" `
ProjectId int64 `p:"projectId" `
Leader string `p:"leader" `
Status string `p:"status" v:"required#施工类型状态不能为空"`
CreateBy string `p:"createBy" `
UpdateBy string `p:"updateBy" `
}
// BusScheduledPlanTypeEditRes 修改操作返回结果
type BusScheduledPlanTypeEditRes struct {
commonApi.EmptyRes
}
// BusScheduledPlanTypeGetReq 获取一条数据请求
type BusScheduledPlanTypeGetReq struct {
g.Meta `path:"/get" tags:"施工进度分类" method:"get" summary:"获取施工进度分类信息"`
commonApi.Author
PlanTypeId int `p:"planTypeId" v:"required#主键必须"` //通过主键获取
}
// BusScheduledPlanTypeGetRes 获取一条数据结果
type BusScheduledPlanTypeGetRes struct {
g.Meta `mime:"application/json"`
*model.BusScheduledPlanTypeInfoRes
}
// BusScheduledPlanTypeDeleteReq 删除数据请求
type BusScheduledPlanTypeDeleteReq struct {
g.Meta `path:"/delete" tags:"施工进度分类" method:"delete" summary:"删除施工进度分类"`
commonApi.Author
PlanTypeIds []int `p:"planTypeIds" v:"required#主键必须"` //通过主键删除
}
// BusScheduledPlanTypeDeleteRes 删除数据返回
type BusScheduledPlanTypeDeleteRes struct {
commonApi.EmptyRes
}

View File

@ -0,0 +1,105 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2023-07-29 17:15:27
// 生成路径: api/v1/system/bus_scheduled_plan_type_detail.go
// 生成人gfast
// desc:施工进度月报,年报分类相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// BusScheduledPlanTypeDetailSearchReq 分页请求参数
type BusScheduledPlanTypeDetailSearchReq struct {
g.Meta `path:"/list" tags:"施工进度月报,年报分类" method:"get" summary:"施工进度月报,年报分类列表"`
PlanTypeName string `p:"planTypeName"` //施工类型名称
ProjectId string `p:"projectId" v:"projectId@integer#项目id需为整数"` //项目id
CreatedAt string `p:"createdAt" v:"createdAt@datetime#创建时间需为YYYY-MM-DD hh:mm:ss格式"` //创建时间
commonApi.PageReq
commonApi.Author
}
// BusScheduledPlanTypeDetailSearchRes 列表返回结果
type BusScheduledPlanTypeDetailSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.BusScheduledPlanTypeDetailListRes `json:"list"`
}
// BusScheduledPlanTypeDetailAddReq 添加操作请求参数
type BusScheduledPlanTypeDetailAddReq struct {
g.Meta `path:"/add" tags:"施工进度月报,年报分类" method:"post" summary:"施工进度月报,年报分类添加"`
commonApi.Author
ParentId int `p:"parentId" `
Ancestors string `p:"ancestors" `
PlanTypeName string `p:"planTypeName" v:"required#施工类型名称不能为空"`
PlannedTime int64 `p:"plannedTime" `
PlanStartTime string `p:"planStartTime" `
PlanEndTime string `p:"planEndTime" `
OrderNum int `p:"orderNum" `
DateValue string `p:"dateValue" `
DateType string `p:"dateType" `
ProjectId int64 `p:"projectId" `
Leader string `p:"leader" `
Status string `p:"status" `
}
// BusScheduledPlanTypeDetailAddRes 添加操作返回结果
type BusScheduledPlanTypeDetailAddRes struct {
commonApi.EmptyRes
}
// BusScheduledPlanTypeDetailEditReq 修改操作请求参数
type BusScheduledPlanTypeDetailEditReq struct {
g.Meta `path:"/edit" tags:"施工进度月报,年报分类" method:"put" summary:"施工进度月报,年报分类修改"`
commonApi.Author
PlanTypeDetailId int `p:"planTypeDetailId" v:"required#主键ID不能为空"`
ParentId int `p:"parentId" `
Ancestors string `p:"ancestors" `
PlanTypeName string `p:"planTypeName" v:"required#施工类型名称不能为空"`
PlannedTime int64 `p:"plannedTime" `
PlanStartTime string `p:"planStartTime" `
PlanEndTime string `p:"planEndTime" `
OrderNum int `p:"orderNum" `
DateValue string `p:"dateValue" `
DateType string `p:"dateType" `
ProjectId int64 `p:"projectId" `
Leader string `p:"leader" `
Status string `p:"status" `
}
// BusScheduledPlanTypeDetailEditRes 修改操作返回结果
type BusScheduledPlanTypeDetailEditRes struct {
commonApi.EmptyRes
}
// BusScheduledPlanTypeDetailGetReq 获取一条数据请求
type BusScheduledPlanTypeDetailGetReq struct {
g.Meta `path:"/get" tags:"施工进度月报,年报分类" method:"get" summary:"获取施工进度月报,年报分类信息"`
commonApi.Author
PlanTypeDetailId int `p:"planTypeDetailId" v:"required#主键必须"` //通过主键获取
}
// BusScheduledPlanTypeDetailGetRes 获取一条数据结果
type BusScheduledPlanTypeDetailGetRes struct {
g.Meta `mime:"application/json"`
*model.BusScheduledPlanTypeDetailInfoRes
}
// BusScheduledPlanTypeDetailDeleteReq 删除数据请求
type BusScheduledPlanTypeDetailDeleteReq struct {
g.Meta `path:"/delete" tags:"施工进度月报,年报分类" method:"delete" summary:"删除施工进度月报,年报分类"`
commonApi.Author
PlanTypeDetailIds []int `p:"planTypeDetailIds" v:"required#主键必须"` //通过主键删除
}
// BusScheduledPlanTypeDetailDeleteRes 删除数据返回
type BusScheduledPlanTypeDetailDeleteRes struct {
commonApi.EmptyRes
}

View File

@ -0,0 +1,104 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2023-08-02 15:28:49
// 生成路径: api/v1/system/bus_scheduled_weekly.go
// 生成人gfast
// desc:周报相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// BusScheduledWeeklySearchReq 分页请求参数
type BusScheduledWeeklySearchReq struct {
g.Meta `path:"/list" tags:"周报" method:"get" summary:"周报列表"`
Status string `p:"status"` //施工类型状态
CreatedAt string `p:"createdAt" v:"createdAt@datetime#创建时间需为YYYY-MM-DD hh:mm:ss格式"` //创建时间
commonApi.PageReq
commonApi.Author
}
// BusScheduledWeeklySearchRes 列表返回结果
type BusScheduledWeeklySearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.BusScheduledWeeklyListRes `json:"list"`
}
// BusScheduledWeeklyAddReq 添加操作请求参数
type BusScheduledWeeklyAddReq struct {
g.Meta `path:"/add" tags:"周报" method:"post" summary:"周报添加"`
commonApi.Author
PlanPeriodId int64 `p:"planPeriodId" `
WeeklyPlanName string `p:"weeklyPlanName" v:"required#施工分类下第几周不能为空"`
WeeklyStartTime string `p:"weeklyStartTime" `
WeeklyEndTime string `p:"weeklyEndTime" `
WeeklyPlanFinish string `p:"weeklyPlanFinish" `
WeeklyRealityFinish string `p:"weeklyRealityFinish" `
WeekyAccumulativeFinish string `p:"weekyAccumulativeFinish" `
WeekyAccumulativeTotal string `p:"weekyAccumulativeTotal" `
CompletionRate string `p:"completionRate" `
Leader string `p:"leader" `
Status string `p:"status" v:"required#施工类型状态不能为空"`
WeeklyDocumentUrl string `p:"weeklyDocumentUrl" `
}
// BusScheduledWeeklyAddRes 添加操作返回结果
type BusScheduledWeeklyAddRes struct {
commonApi.EmptyRes
}
// BusScheduledWeeklyEditReq 修改操作请求参数
type BusScheduledWeeklyEditReq struct {
g.Meta `path:"/edit" tags:"周报" method:"put" summary:"周报修改"`
commonApi.Author
PlanWeeklyId int64 `p:"planWeeklyId" v:"required#主键ID不能为空"`
PlanPeriodId int64 `p:"planPeriodId" `
WeeklyPlanName string `p:"weeklyPlanName" v:"required#施工分类下第几周不能为空"`
WeeklyStartTime string `p:"weeklyStartTime" `
WeeklyEndTime string `p:"weeklyEndTime" `
WeeklyPlanFinish string `p:"weeklyPlanFinish" `
WeeklyRealityFinish string `p:"weeklyRealityFinish" `
WeekyAccumulativeFinish string `p:"weekyAccumulativeFinish" `
WeekyAccumulativeTotal string `p:"weekyAccumulativeTotal" `
CompletionRate string `p:"completionRate" `
Leader string `p:"leader" `
Status string `p:"status" v:"required#施工类型状态不能为空"`
WeeklyDocumentUrl string `p:"weeklyDocumentUrl" `
}
// BusScheduledWeeklyEditRes 修改操作返回结果
type BusScheduledWeeklyEditRes struct {
commonApi.EmptyRes
}
// BusScheduledWeeklyGetReq 获取一条数据请求
type BusScheduledWeeklyGetReq struct {
g.Meta `path:"/get" tags:"周报" method:"get" summary:"获取周报信息"`
commonApi.Author
PlanWeeklyId int64 `p:"planWeeklyId" v:"required#主键必须"` //通过主键获取
}
// BusScheduledWeeklyGetRes 获取一条数据结果
type BusScheduledWeeklyGetRes struct {
g.Meta `mime:"application/json"`
*model.BusScheduledWeeklyInfoRes
}
// BusScheduledWeeklyDeleteReq 删除数据请求
type BusScheduledWeeklyDeleteReq struct {
g.Meta `path:"/delete" tags:"周报" method:"delete" summary:"删除周报"`
commonApi.Author
PlanWeeklyIds []int64 `p:"planWeeklyIds" v:"required#主键必须"` //通过主键删除
}
// BusScheduledWeeklyDeleteRes 删除数据返回
type BusScheduledWeeklyDeleteRes struct {
commonApi.EmptyRes
}

View File

@ -0,0 +1,93 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2023-08-02 15:21:55
// 生成路径: api/v1/system/bus_scheduled_weekly_photovoltaic.go
// 生成人gfast
// desc:周报-光伏板相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// BusScheduledWeeklyPhotovoltaicSearchReq 分页请求参数
type BusScheduledWeeklyPhotovoltaicSearchReq struct {
g.Meta `path:"/list" tags:"周报-光伏板" method:"get" summary:"周报-光伏板列表"`
PhotovoltaicNumber string `p:"photovoltaicNumber"` //光伏板编号
InstallNot string `p:"installNot"` //是否安装
Status string `p:"status"` //光伏板状态
CreatedAt string `p:"createdAt" v:"createdAt@datetime#创建时间需为YYYY-MM-DD hh:mm:ss格式"` //创建时间
commonApi.PageReq
commonApi.Author
}
// BusScheduledWeeklyPhotovoltaicSearchRes 列表返回结果
type BusScheduledWeeklyPhotovoltaicSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.BusScheduledWeeklyPhotovoltaicListRes `json:"list"`
}
// BusScheduledWeeklyPhotovoltaicAddReq 添加操作请求参数
type BusScheduledWeeklyPhotovoltaicAddReq struct {
g.Meta `path:"/add" tags:"周报-光伏板" method:"post" summary:"周报-光伏板添加"`
commonApi.Author
PlanWeeklyId int64 `p:"planWeeklyId" `
PhotovoltaicNumber string `p:"photovoltaicNumber" `
PhotovoltaicNumberGis string `p:"photovoltaicNumberGis" `
ProjectId string `p:"projectId" `
}
// BusScheduledWeeklyPhotovoltaicAddRes 添加操作返回结果
type BusScheduledWeeklyPhotovoltaicAddRes struct {
commonApi.EmptyRes
}
// BusScheduledWeeklyPhotovoltaicEditReq 修改操作请求参数
type BusScheduledWeeklyPhotovoltaicEditReq struct {
g.Meta `path:"/edit" tags:"周报-光伏板" method:"put" summary:"周报-光伏板修改"`
commonApi.Author
PhotovoltaicId int64 `p:"photovoltaicId" v:"required#主键ID不能为空"`
PlanWeeklyId int64 `p:"planWeeklyId" `
PhotovoltaicNumber string `p:"photovoltaicNumber" `
PhotovoltaicNumberGis string `p:"photovoltaicNumberGis" `
InstallNot string `p:"installNot" v:"required#是否安装不能为空"`
InstallCreateTime string `p:"installCreateTime" `
Status string `p:"status" v:"required#光伏板状态不能为空"`
ProjectId string `p:"projectId" `
}
// BusScheduledWeeklyPhotovoltaicEditRes 修改操作返回结果
type BusScheduledWeeklyPhotovoltaicEditRes struct {
commonApi.EmptyRes
}
// BusScheduledWeeklyPhotovoltaicGetReq 获取一条数据请求
type BusScheduledWeeklyPhotovoltaicGetReq struct {
g.Meta `path:"/get" tags:"周报-光伏板" method:"get" summary:"获取周报-光伏板信息"`
commonApi.Author
PhotovoltaicId int64 `p:"photovoltaicId" v:"required#主键必须"` //通过主键获取
}
// BusScheduledWeeklyPhotovoltaicGetRes 获取一条数据结果
type BusScheduledWeeklyPhotovoltaicGetRes struct {
g.Meta `mime:"application/json"`
*model.BusScheduledWeeklyPhotovoltaicInfoRes
}
// BusScheduledWeeklyPhotovoltaicDeleteReq 删除数据请求
type BusScheduledWeeklyPhotovoltaicDeleteReq struct {
g.Meta `path:"/delete" tags:"周报-光伏板" method:"delete" summary:"删除周报-光伏板"`
commonApi.Author
PhotovoltaicIds []int64 `p:"photovoltaicIds" v:"required#主键必须"` //通过主键删除
}
// BusScheduledWeeklyPhotovoltaicDeleteRes 删除数据返回
type BusScheduledWeeklyPhotovoltaicDeleteRes struct {
commonApi.EmptyRes
}

View File

@ -0,0 +1,93 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2023-07-29 11:36:04
// 生成路径: api/v1/system/bus_standing_book.go
// 生成人gfast
// desc:台账相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// BusStandingBookSearchReq 分页请求参数
type BusStandingBookSearchReq struct {
g.Meta `path:"/list" tags:"台账" method:"get" summary:"台账列表"`
EquipmentMaterialsId string `p:"equipmentMaterialsId" v:"equipmentMaterialsId@integer#材料/设备需为整数"` //材料/设备
StandingBookType string `p:"standingBookType"` //台账类型
CreatedAt string `p:"createdAt" v:"createdAt@date#创建时间需为YYYY-MM-DD"` //创建时间
commonApi.PageReq
commonApi.Author
}
// BusStandingBookSearchRes 列表返回结果
type BusStandingBookSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.BusStandingBookListRes `json:"list"`
}
// BusStandingBookAddReq 添加操作请求参数
type BusStandingBookAddReq struct {
g.Meta `path:"/add" tags:"台账" method:"post" summary:"台账添加"`
commonApi.Author
EquipmentMaterialsId int64 `p:"equipmentMaterialsId" `
ProjectId int64 `p:"projectId" `
StandingBookType string `p:"standingBookType" `
ApproachTime string `p:"approachTime" `
Quantity string `p:"quantity" `
SignerRecipient string `p:"signerRecipient" `
}
// BusStandingBookAddRes 添加操作返回结果
type BusStandingBookAddRes struct {
commonApi.EmptyRes
}
// BusStandingBookEditReq 修改操作请求参数
type BusStandingBookEditReq struct {
g.Meta `path:"/edit" tags:"台账" method:"put" summary:"台账修改"`
commonApi.Author
StandingBookId int64 `p:"standingBookId" v:"required#主键ID不能为空"`
EquipmentMaterialsId int64 `p:"equipmentMaterialsId" `
StandingBookType string `p:"standingBookType" `
ApproachTime string `p:"approachTime" `
Quantity string `p:"quantity" `
SignerRecipient string `p:"signerRecipient" `
Status string `p:"status" `
}
// BusStandingBookEditRes 修改操作返回结果
type BusStandingBookEditRes struct {
commonApi.EmptyRes
}
// BusStandingBookGetReq 获取一条数据请求
type BusStandingBookGetReq struct {
g.Meta `path:"/get" tags:"台账" method:"get" summary:"获取台账信息"`
commonApi.Author
StandingBookId int64 `p:"standingBookId" v:"required#主键必须"` //通过主键获取
}
// BusStandingBookGetRes 获取一条数据结果
type BusStandingBookGetRes struct {
g.Meta `mime:"application/json"`
*model.BusStandingBookInfoRes
}
// BusStandingBookDeleteReq 删除数据请求
type BusStandingBookDeleteReq struct {
g.Meta `path:"/delete" tags:"台账" method:"delete" summary:"删除台账"`
commonApi.Author
StandingBookIds []int64 `p:"standingBookIds" v:"required#主键必须"` //通过主键删除
}
// BusStandingBookDeleteRes 删除数据返回
type BusStandingBookDeleteRes struct {
commonApi.EmptyRes
}

93
api/v1/system/bus_tour.go Normal file
View File

@ -0,0 +1,93 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2023-10-10 12:11:05
// 生成路径: api/v1/system/bus_tour.go
// 生成人gfast
// desc:煤科巡视-故障记录相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// BusTourSearchReq 分页请求参数
type BusTourSearchReq struct {
g.Meta `path:"/list" tags:"煤科巡视-故障记录" method:"get" summary:"煤科巡视-故障记录列表"`
ProjectId string `p:"projectId"` //項目id
TourCategory string `p:"tourCategory"` //类别字典
TourType string `p:"tourType"` //类型字典
Describe string `p:"describe"` //故障描述
CreatedAt string `p:"createdAt" v:"createdAt@datetime#创建时间需为YYYY-MM-DD hh:mm:ss格式"` //创建时间
commonApi.PageReq
commonApi.Author
}
// BusTourSearchRes 列表返回结果
type BusTourSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.BusTourListRes `json:"list"`
}
// BusTourAddReq 添加操作请求参数
type BusTourAddReq struct {
g.Meta `path:"/add" tags:"煤科巡视-故障记录" method:"post" summary:"煤科巡视-故障记录添加"`
commonApi.Author
Id int64 `p:"id" v:"required#主键ID不能为空"`
ProjectId int64 `p:"projectId" v:"required#项目ID不能为空"`
TourCategory string `p:"tourCategory" `
TourType string `p:"tourType" `
Picture string `p:"picture" `
Describe string `p:"describe"`
Num int `p:"describe"`
TableName string `p:"tableName"`
TableId int64 `p:"tableId"`
SxtName interface{} `p:"sxtName"`
}
// BusTourAddRes 添加操作返回结果
type BusTourAddRes struct {
commonApi.EmptyRes
}
// BusTourEditReq 修改操作请求参数
type BusTourEditReq struct {
g.Meta `path:"/edit" tags:"煤科巡视-故障记录" method:"put" summary:"煤科巡视-故障记录修改"`
commonApi.Author
Id int64 `p:"id" v:"required#主键ID不能为空"`
}
// BusTourEditRes 修改操作返回结果
type BusTourEditRes struct {
commonApi.EmptyRes
}
// BusTourGetReq 获取一条数据请求
type BusTourGetReq struct {
g.Meta `path:"/get" tags:"煤科巡视-故障记录" method:"get" summary:"获取煤科巡视-故障记录信息"`
commonApi.Author
Id int64 `p:"id" v:"required#主键必须"` //通过主键获取
}
// BusTourGetRes 获取一条数据结果
type BusTourGetRes struct {
g.Meta `mime:"application/json"`
*model.BusTourInfoRes
}
// BusTourDeleteReq 删除数据请求
type BusTourDeleteReq struct {
g.Meta `path:"/delete" tags:"煤科巡视-故障记录" method:"delete" summary:"删除煤科巡视-故障记录"`
commonApi.Author
Ids []int64 `p:"ids" v:"required#主键必须"` //通过主键删除
}
// BusTourDeleteRes 删除数据返回
type BusTourDeleteRes struct {
commonApi.EmptyRes
}

View File

@ -0,0 +1,87 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2023-09-05 10:07:11
// 生成路径: api/v1/system/bus_type_of_wage.go
// 生成人gfast
// desc:工种薪水相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// BusTypeOfWageSearchReq 分页请求参数
type BusTypeOfWageSearchReq struct {
g.Meta `path:"/list" tags:"工种薪水" method:"get" summary:"工种薪水列表"`
Id string `p:"id"` //主键ID
TypeOfWork string `p:"typeOfWork"` //工种字典
CreatedAt string `p:"createdAt" v:"createdAt@datetime#创建时间需为YYYY-MM-DD hh:mm:ss格式"` //创建时间
commonApi.PageReq
commonApi.Author
}
// BusTypeOfWageSearchRes 列表返回结果
type BusTypeOfWageSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.BusTypeOfWageListRes `json:"list"`
}
// BusTypeOfWageAddReq 添加操作请求参数
type BusTypeOfWageAddReq struct {
g.Meta `path:"/add" tags:"工种薪水" method:"post" summary:"工种薪水添加"`
commonApi.Author
TypeOfWork string `p:"typeOfWork" `
IsSpecialType string `p:"isSpecialType" `
Standard float64 `p:"standard" `
}
// BusTypeOfWageAddRes 添加操作返回结果
type BusTypeOfWageAddRes struct {
commonApi.EmptyRes
}
// BusTypeOfWageEditReq 修改操作请求参数
type BusTypeOfWageEditReq struct {
g.Meta `path:"/edit" tags:"工种薪水" method:"put" summary:"工种薪水修改"`
commonApi.Author
Id int64 `p:"id" v:"required#主键ID不能为空"`
TypeOfWork string `p:"typeOfWork" `
IsSpecialType string `p:"isSpecialType" `
Standard float64 `p:"standard"`
}
// BusTypeOfWageEditRes 修改操作返回结果
type BusTypeOfWageEditRes struct {
commonApi.EmptyRes
}
// BusTypeOfWageGetReq 获取一条数据请求
type BusTypeOfWageGetReq struct {
g.Meta `path:"/get" tags:"工种薪水" method:"get" summary:"获取工种薪水信息"`
commonApi.Author
Id int64 `p:"id" v:"required#主键必须"` //通过主键获取
}
// BusTypeOfWageGetRes 获取一条数据结果
type BusTypeOfWageGetRes struct {
g.Meta `mime:"application/json"`
*model.BusTypeOfWageInfoRes
}
// BusTypeOfWageDeleteReq 删除数据请求
type BusTypeOfWageDeleteReq struct {
g.Meta `path:"/delete" tags:"工种薪水" method:"delete" summary:"删除工种薪水"`
commonApi.Author
Ids []int64 `p:"ids" v:"required#主键必须"` //通过主键删除
}
// BusTypeOfWageDeleteRes 删除数据返回
type BusTypeOfWageDeleteRes struct {
commonApi.EmptyRes
}

View File

@ -0,0 +1,91 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2023-11-20 11:18:36
// 生成路径: api/v1/system/bus_violation_level.go
// 生成人gfast
// desc:违章等级相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// BusViolationLevelSearchReq 分页请求参数
type BusViolationLevelSearchReq struct {
g.Meta `path:"/list" tags:"违章等级" method:"get" summary:"违章等级列表"`
TourType string `p:"tourType"` //违章类型
CreatedAt string `p:"createdAt" v:"createdAt@datetime#创建时间需为YYYY-MM-DD hh:mm:ss格式"` //创建时间
commonApi.PageReq
commonApi.Author
}
// BusViolationLevelSearchRes 列表返回结果
type BusViolationLevelSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.BusViolationLevelListRes `json:"list"`
}
// BusViolationLevelAddReq 添加操作请求参数
type BusViolationLevelAddReq struct {
g.Meta `path:"/add" tags:"违章等级" method:"post" summary:"违章等级添加"`
commonApi.Author
ProjectId string `p:"projectId" dc:"项目id" v:"required" `
Grade string `p:"grade" dc:"26字母中的任意大写" v:"regex:^[A-Z]$#请输入A~Z的任意大写字母"`
Color string `p:"color" dc:"颜色格式rgba(252, 5, 5, 1)"`
TourType string `p:"tourType" dc:"类型,多个用逗号分隔"`
Risx string `p:"risx" dc:"风险等级"`
Posts []int64 `p:"posts" dc:"岗位主键ID"`
}
// BusViolationLevelAddRes 添加操作返回结果
type BusViolationLevelAddRes struct {
commonApi.EmptyRes
}
// BusViolationLevelEditReq 修改操作请求参数
type BusViolationLevelEditReq struct {
g.Meta `path:"/edit" tags:"违章等级" method:"put" summary:"违章等级修改"`
commonApi.Author
Id int64 `p:"id" v:"required#主键ID不能为空"`
Grade string `p:"grade" dc:"26字母中的任意大写" v:"regex:^[A-Z]$"`
Color string `p:"color" dc:"颜色格式rgba(252, 5, 5, 1)"`
TourType string `p:"tourType" dc:"类型,多个用逗号分隔"`
Risx string `p:"risx" dc:"风险等级"`
Posts []int64 `p:"posts" dc:"岗位主键ID"`
}
// BusViolationLevelEditRes 修改操作返回结果
type BusViolationLevelEditRes struct {
commonApi.EmptyRes
}
// BusViolationLevelGetReq 获取一条数据请求
type BusViolationLevelGetReq struct {
g.Meta `path:"/get" tags:"违章等级" method:"get" summary:"获取违章等级信息"`
commonApi.Author
Id int64 `p:"id" v:"required#主键必须"` //通过主键获取
}
// BusViolationLevelGetRes 获取一条数据结果
type BusViolationLevelGetRes struct {
g.Meta `mime:"application/json"`
*model.BusViolationLevelInfoRes
}
// BusViolationLevelDeleteReq 删除数据请求
type BusViolationLevelDeleteReq struct {
g.Meta `path:"/delete" tags:"违章等级" method:"delete" summary:"删除违章等级"`
commonApi.Author
Ids []int64 `p:"ids" v:"required#主键必须"` //通过主键删除
}
// BusViolationLevelDeleteRes 删除数据返回
type BusViolationLevelDeleteRes struct {
commonApi.EmptyRes
}

View File

@ -0,0 +1,121 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2023-11-20 11:18:37
// 生成路径: api/v1/system/bus_violation_record.go
// 生成人gfast
// desc:违章记录相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// BusViolationRecordSearchReq 分页请求参数
type BusViolationRecordSearchReq struct {
g.Meta `path:"/list" tags:"违章记录" method:"get" summary:"违章记录列表"`
ProjectId string `p:"projectId" dc:"项目id" v:"required#项目id不能为空"`
Id int64 `p:"id" dc:"工单号"`
TourType string `p:"tourType" dc:"违章类型"`
IsDispose string `p:"isDispose" dc:"是否处理1待处理 2已处理"`
CreatedAt string `p:"createdAt" v:"createdAt@datetime#创建时间需为YYYY-MM-DD hh:mm:ss格式"` //创建时间
commonApi.PageReq
commonApi.Author
}
// BusViolationRecordSearchRes 列表返回结果
type BusViolationRecordSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.BusViolationRecordListRes `json:"list"`
}
// BusViolationRecordAddReq 添加操作请求参数
type BusViolationRecordAddReq struct {
g.Meta `path:"/add" tags:"违章记录" method:"post" summary:"违章记录添加"`
commonApi.Author
//WxOrPc string `p:"wxOrPc" dc:"参数为1表示pc添加 否则为小程序添加" v:"required#wxOrPc不能为空"`
//ByOpenid string `p:"byOpenid" v:"required-unless:WxOrPc,1#需要填写小程序的openid"`
ProjectId string `p:"projectId" dc:"项目id" v:"required#项目id不能为空"`
DataSource string `p:"dataSource" dc:"数据来源字典violation_record_data_source" v:"required#数据来源不能为空"`
TourType string `p:"tourType" dc:"违章类型字典tour_type" v:"required#违章类型不能为空"`
LaborDate string `p:"laborDate" dc:"人工日期" v:"required#人工日期不能为空"`
Conductor string `p:"conductor" dc:"处理人openid" v:"required#处理人openid不能为空"`
Picture string `p:"picture" dc:"单图上传" `
Remark string `p:"remark" dc:"备注" v:"max-length:512#最大输入字数为512"`
//LevelId string `p:"levelId" dc:"违章等级ID" v:"required#违章等级ID不能为空"`
//Level string `p:"level" dc:"违章等级" v:"required#违章等级不能为空"`
}
// BusViolationRecordAddRes 添加操作返回结果
type BusViolationRecordAddRes struct {
commonApi.EmptyRes
}
//// BusViolationRecordEditReq 修改操作请求参数
//type BusViolationRecordEditReq struct {
// g.Meta `path:"/edit" tags:"违章记录" method:"put" summary:"违章记录修改"`
// commonApi.Author
// WxOrPc string `p:"wxOrPc" dc:"参数为1表示pc添加 2为小程序添加" v:"required#wxOrPc不能为空"`
// Id int64 `p:"id" v:"required#主键ID不能为空"`
// //Openid string `p:"openid" `
// //TourType string `p:"tourType" `
// IsDispose string `p:"isDispose" `
//}
//
//// BusViolationRecordEditRes 修改操作返回结果
//type BusViolationRecordEditRes struct {
// commonApi.EmptyRes
//}
// BusViolationRecordGetReq 获取一条数据请求
type BusViolationRecordGetReq struct {
g.Meta `path:"/get" tags:"违章记录" method:"get" summary:"获取违章记录信息"`
commonApi.Author
Id int64 `p:"id" v:"required#主键必须"` //通过主键获取
}
// BusViolationRecordGetRes 获取一条数据结果
type BusViolationRecordGetRes struct {
g.Meta `mime:"application/json"`
//*model.AppProjectOverviewRes
}
// BusViolationRecordDeleteReq 删除数据请求
type BusViolationRecordDeleteReq struct {
g.Meta `path:"/delete" tags:"违章记录" method:"delete" summary:"删除违章记录"`
commonApi.Author
Ids []int64 `p:"ids" v:"required#主键必须"` //通过主键删除
}
// BusViolationRecordDeleteRes 删除数据返回
type BusViolationRecordDeleteRes struct {
commonApi.EmptyRes
}
// BSelectTheViolatorReq 选择违章处理人
type BSelectTheViolatorReq struct {
g.Meta `path:"/selectTheViolator" tags:"违章记录" method:"post" summary:"选择违章处理人"`
commonApi.Author
Id string `p:"id" dc:"主键ID" v:"required#主键id不能为空"`
ProcessingPeriod string `json:"processingPeriod" dc:"要求处理期限格式2023-10-12" v:"required|date-format:Y-m-d#格式为2023-10-12"`
Openid string `p:"openid" dc:"处理人" v:"required#openId不能为空"`
Remark string `p:"remark" dc:"备注" v:"max-length:512#最大输入字数为512"`
}
// SelectTheViolatorRes 选择违章处理人
type SelectTheViolatorRes struct {
commonApi.EmptyRes
}
type ReviewReq struct {
g.Meta `path:"/reviewReq" tags:"违章记录" method:"put" summary:"复查"`
commonApi.Author
Id int64 `p:"id" v:"required#主键ID不能为空"`
ReviewType string `p:"reviewType" dc:"复查状态1通过 2未通过" v:"required#主键ID不能为空"`
Review string `p:"review" dc:"复查情况" v:"max-length:300#最大输入字数为300"`
}

View File

@ -0,0 +1,153 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2024-04-02 18:03:23
// 生成路径: api/v1/system/bus_weekly_security_report.go
// 生成人gfast
// desc:安全周期相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// BusWeeklySecurityReportSearchReq 分页请求参数
type BusWeeklySecurityReportSearchReq struct {
g.Meta `path:"/list" tags:"安全周期" method:"get" summary:"安全周期列表"`
ProjectId string `p:"projectId" v:"projectId@integer#项目ID需为整数"` //项目ID
ScopeDate string `p:"scopeDate" dc:"时间范围用逗号分割"`
//Scope string `p:"scope" v:"date-format:Y-m-d#格式为2023-10-12"` //周期范围
//ScopeEnd string `p:"scopeEnd" v:"date-format:Y-m-d#格式为2023-10-12"` //周期范围结束
commonApi.PageReq
commonApi.Author
}
// BusWeeklySecurityReportSearchRes 列表返回结果
type BusWeeklySecurityReportSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.BusWeeklySecurityReportListRes `json:"list"`
}
// BusWeeklySecurityReportAddReq 添加操作请求参数
type BusWeeklySecurityReportAddReq struct {
g.Meta `path:"/add" tags:"安全周期" method:"post" summary:"安全周期添加"`
commonApi.Author
ProjectId int64 `p:"projectId" `
TimeRange string `p:"timeRange" dc:"时间范围筛选操作(时间用,分割)" v:"required#时间范围筛选操作(时间用,分割)必须"`
}
// BusWeeklySecurityReportAddRes 添加操作返回结果
type BusWeeklySecurityReportAddRes struct {
commonApi.EmptyRes
}
// BusWeeklySecurityReportEditReq 修改操作请求参数
type BusWeeklySecurityReportEditReq struct {
g.Meta `path:"/edit" tags:"安全周期" method:"put" summary:"安全周期修改"`
commonApi.Author
Id int64 `p:"id" v:"required#主键ID不能为空"`
ProjectId int64 `p:"projectId" `
ProjectName string `p:"projectName" v:"required#项目名称不能为空"`
Scope string `p:"scope" `
ScopeEnd string `p:"scopeEnd" `
Path string `p:"path" `
CreateBy string `p:"createBy" `
UpdateBy string `p:"updateBy" `
}
// BusWeeklySecurityReportEditRes 修改操作返回结果
type BusWeeklySecurityReportEditRes struct {
commonApi.EmptyRes
}
// BusWeeklySecurityReportGetReq 获取一条数据请求
type BusWeeklySecurityReportGetReq struct {
g.Meta `path:"/get" tags:"安全周期" method:"get" summary:"获取安全周期信息"`
commonApi.Author
Id int64 `p:"id" v:"required#主键必须"` //通过主键获取
}
// BusWeeklySecurityReportGetRes 获取一条数据结果
type BusWeeklySecurityReportGetRes struct {
g.Meta `mime:"application/json"`
*model.BusWeeklySecurityReportInfoRes
}
// BusWeeklySecurityReportDeleteReq 删除数据请求
type BusWeeklySecurityReportDeleteReq struct {
g.Meta `path:"/delete" tags:"安全周期" method:"delete" summary:"删除安全周期"`
commonApi.Author
Ids []int64 `p:"ids" v:"required#主键必须"` //通过主键删除
}
// BusWeeklySecurityReportDeleteRes 删除数据返回
type BusWeeklySecurityReportDeleteRes struct {
commonApi.EmptyRes
}
type WeeklySecurityReportRes struct {
commonApi.EmptyRes
FilePath string `json:"filePath" dc:"项目ID"`
WeeklySecurityReport []*WeeklySecurityReportEntity `json:"weeklySecurityReportList"`
}
type WeeklySecurityReportEntity struct {
ProjectId int64 `json:"projectId" dc:"项目ID"`
Begin string `json:"begin" dc:"开始时间"`
End string `json:"end" dc:"结束时间"`
ProjectName string `json:"projectName" dc:"项目名称"`
Builders int `json:"builders" dc:"施工人员"`
Attendance int `json:"attendance" dc:"入场人数"`
Education int `json:"education" dc:"教育人数"`
LargeScaleList []*LargeScaleEntity `json:"largeScaleList" dc:"大型设备"`
SecurityCheckList []*SecurityCheckEntity `json:"securityCheckList" dc:"安全检查记录"`
AbarbeitungList []*AbarbeitungEntity `json:"abarbeitungList" dc:"安全整改情况"`
ImgList []*ImgEntity `json:"imgList" dc:"可视化"`
}
type LargeScaleEntity struct {
Num int `json:"num" dc:"序号"`
Machine string `json:"machine" dc:"机械名称"`
Numnber int `json:"numnber" dc:"进场数量"`
AddUp int `json:"addUp" dc:"累计数量"`
}
type LargeScaleTwoEntity struct {
MachineName string `json:"machineName" dc:"机械名称"`
MachineType string `json:"machineType" dc:"机械类型"`
Enter int `json:"enter" dc:"本周进场数量(入场)"`
Quit int `json:"quit" dc:"本周进场数量(退场)"`
AddUp int `json:"addUp" dc:"累计数量"`
}
type SecurityCheckEntity struct {
Num int `json:"num" dc:"序号"`
Time string `json:"time" dc:"时间"`
RiskGrade string `json:"riskGrade" dc:"风险等级"`
ProblemDescription string `json:"problemDescription" dc:"问题描述"`
}
type AbarbeitungEntity struct {
Num int `json:"num" dc:"序号"`
InspectionResult string `json:"inspectionResult" dc:"问题"`
Tiem string `json:"tiem" dc:"整改情况"`
Condition string `json:"condition" dc:"工单状态1通知 2整改 3复查"`
}
type AbarbeitungTwoEntity struct {
InspectionResult string `json:"inspectionResult" dc:"问题"`
Tiem string `json:"tiem" dc:"时间"`
Status string `json:"status" dc:"工单状态1通知 2整改 3复查"`
ReviewType string `json:"reviewType" dc:"复查状态1通过 2未通过"`
}
type ImgEntity struct {
Num int `json:"num" dc:"序号"`
Path string `json:"path" dc:"图片路径"`
Text string `json:"text" dc:"文字描述"`
}
type SecurityReportReq struct {
g.Meta `path:"/securityReportAdd" tags:"安全周期" method:"post" summary:"畅写回调保存"`
Path string `p:"path" dc:"路径" v:"required#文件保存路径不能为空"`
}

22
api/v1/system/cache.go Normal file
View File

@ -0,0 +1,22 @@
/*
* @desc:缓存处理
* @company:云南奇讯科技有限公司
* @Author: yixiaohu<yxh669@qq.com>
* @Date: 2023/2/1 18:12
*/
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
)
type CacheRemoveReq struct {
g.Meta `path:"/cache/remove" tags:"缓存管理" method:"delete" summary:"清除缓存"`
commonApi.Author
}
type CacheRemoveRes struct {
commonApi.EmptyRes
}

View File

@ -0,0 +1,120 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2024-05-14 10:21:06
// 生成路径: api/v1/system/comment_list.go
// 生成人gfast
// desc:App消息-评论相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// 获取自己的评论列表
type CommentListSelfReq struct {
g.Meta `path:"/self" tags:"App消息-评论" method:"get" summary:"获取自己的评论列表"`
commonApi.PageReq
commonApi.Author
ProjectId int `p:"projectId" v:"projectId@integer#项目ID需为整数"` // 项目ID
}
// 评论列表信息
type CommentListInfo struct {
// 评论ID
Id uint `json:"id"`
// 标题
Title string `json:"title"`
// 项目名称
ProjectName string `json:"projectName"`
// 评论内容
Content string `json:"content"`
// 评论时间
CreatedAt string `json:"createdAt"`
}
type CommentListSelfRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*CommentListInfo `json:"list"`
}
// CommentListSearchReq 分页请求参数
type CommentListSearchReq struct {
g.Meta `path:"/list" tags:"App消息-评论" method:"get" summary:"App消息-评论列表"`
Id string `p:"id"` //
ProjectId string `p:"projectId" v:"projectId@integer#项目ID需为整数"` // 项目ID
Receiver string `p:"receiver" v:"receiver@integer#消息接收者需为整数"` // 消息接收者
Content string `p:"content"` // 评论内容
CreatedAt string `p:"createdAt" v:"createdAt@datetime#创建时间需为YYYY-MM-DD hh:mm:ss格式"` // 创建时间
Sender string `p:"sender" v:"sender@integer#消息的发起人需为整数"` // 消息的发起人
commonApi.PageReq
commonApi.Author
}
// CommentListSearchRes 列表返回结果
type CommentListSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.CommentListListRes `json:"list"`
}
// CommentListAddReq 添加操作请求参数
type CommentListAddReq struct {
g.Meta `path:"/add" tags:"App消息-评论" method:"post" summary:"App消息-评论添加"`
commonApi.Author
ProjectId int `p:"projectId" `
Receiver int `p:"receiver" `
Content string `p:"content" `
Sender int `p:"sender" `
}
// CommentListAddRes 添加操作返回结果
type CommentListAddRes struct {
commonApi.EmptyRes
}
// CommentListEditReq 修改操作请求参数
type CommentListEditReq struct {
g.Meta `path:"/edit" tags:"App消息-评论" method:"put" summary:"App消息-评论修改"`
commonApi.Author
Id uint `p:"id" v:"required#主键ID不能为空"`
ProjectId int `p:"projectId" `
Receiver int `p:"receiver" `
Content string `p:"content" `
Sender int `p:"sender" `
}
// CommentListEditRes 修改操作返回结果
type CommentListEditRes struct {
commonApi.EmptyRes
}
// CommentListGetReq 获取一条数据请求
type CommentListGetReq struct {
g.Meta `path:"/get" tags:"App消息-评论" method:"get" summary:"获取App消息-评论信息"`
commonApi.Author
Id uint `p:"id" v:"required#主键必须"` // 通过主键获取
}
// CommentListGetRes 获取一条数据结果
type CommentListGetRes struct {
g.Meta `mime:"application/json"`
*model.CommentListInfoRes
}
// CommentListDeleteReq 删除数据请求
type CommentListDeleteReq struct {
g.Meta `path:"/delete" tags:"App消息-评论" method:"delete" summary:"删除App消息-评论"`
commonApi.Author
Ids []uint `p:"ids" v:"required#主键必须"` // 通过主键删除
}
// CommentListDeleteRes 删除数据返回
type CommentListDeleteRes struct {
commonApi.EmptyRes
}

115
api/v1/system/comments.go Normal file
View File

@ -0,0 +1,115 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2024-04-23 14:47:24
// 生成路径: api/v1/system/comments.go
// 生成人gfast
// desc:App通知公告评论相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// CommentsSearchReq 分页请求参数
type CommentsSearchReq struct {
g.Meta `path:"/list" tags:"App通知公告评论" method:"get" summary:"App通知公告评论列表"`
Id string `p:"id"` // 主键
NotificationId string `p:"notificationId" v:"notificationId@integer#关联的通知ID需为整数"` // 关联的通知ID
CommentText string `p:"commentText"` // 评论内容
CommentId string `p:"commentId"` // 用户ID
CreatedAt string `p:"createdAt" v:"createdAt@datetime#需为YYYY-MM-DD hh:mm:ss格式"` //
commonApi.PageReq
commonApi.Author
}
// CommentsSearchRes 列表返回结果
type CommentsSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.CommentsInfoRes `json:"list"`
}
// CommentsAddReq 添加操作请求参数
type CommentsAddReq struct {
g.Meta `path:"/add" tags:"App通知公告评论" method:"post" summary:"App通知公告评论添加"`
commonApi.Author
NotificationId int `p:"notificationId" `
CommentText string `p:"commentText" `
CommentId string `p:"commentId" `
}
// CommentsAddRes 添加操作返回结果
type CommentsAddRes struct {
commonApi.EmptyRes
}
// CommentsEditReq 修改操作请求参数
type CommentsEditReq struct {
g.Meta `path:"/edit" tags:"App通知公告评论" method:"put" summary:"App通知公告评论修改"`
commonApi.Author
Id uint `p:"id" v:"required#主键ID不能为空"`
NotificationId int `p:"notificationId" `
CommentText string `p:"commentText" `
CommentId string `p:"commentId" `
}
// CommentsEditRes 修改操作返回结果
type CommentsEditRes struct {
commonApi.EmptyRes
}
// CommentsGetReq 获取一条数据请求
type CommentsGetReq struct {
g.Meta `path:"/get" tags:"App通知公告评论" method:"get" summary:"获取App通知公告评论信息"`
commonApi.Author
Id uint `p:"id" v:"required#主键必须"` // 通过主键获取
}
// CommentsGetRes 获取一条数据结果
type CommentsGetRes struct {
g.Meta `mime:"application/json"`
*model.CommentsInfoRes
}
// CommentsDeleteReq 删除数据请求
type CommentsDeleteReq struct {
g.Meta `path:"/delete" tags:"App通知公告评论" method:"delete" summary:"删除App通知公告评论"`
commonApi.Author
Ids []uint `p:"ids" v:"required#主键必须"` // 通过主键删除
}
// CommentsDeleteRes 删除数据返回
type CommentsDeleteRes struct {
commonApi.EmptyRes
}
// CommentsPublishReq 发布一条评论
type CommentsPublishReq struct {
g.Meta `path:"/publish" tags:"App" method:"post" summary:"发布App通知公告评论"`
commonApi.Author
NotificationId int `p:"notificationId" v:"required#公告ID不能为空" dc:"通知的ID"` // 通知ID
CommentText string `p:"commentText" dc:"评论的正文内容"` // 评论内容
}
type CommentsPublishRes struct {
commonApi.EmptyRes
}
// 获取一个指定通知公告的评论列表
type CommentsGetListByNotificationIdReq struct {
g.Meta `path:"/getByNotificationId" tags:"App" method:"get" summary:"获取指定通知公告下的评论列表"`
commonApi.Author
commonApi.PageReq
NotificationId int `p:"notificationId" v:"required#通知ID不能为空" dc:"通知公告的ID"` // 通知ID
}
type CommentsGetListByNotificationIdRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.CommentsListRes `json:"list"`
}

View File

@ -0,0 +1,12 @@
package system
import "github.com/gogf/gf/v2/os/gtime"
// App 通知公告评论列表
type CommentList struct {
Id uint `json:"id"`
CommentId string `json:"commentId" dc:"用户id"`
Name string `json:"name" dc:"用户名"`
CommentText string `json:"commentText" dc:"评论内容"`
CreatedAt *gtime.Time `json:"createdAt" dc:"评论时间"`
}

View File

@ -0,0 +1,170 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2024-03-13 18:10:56
// 生成路径: api/v1/system/construction_details.go
// 生成人gfast
// desc:施工类别详情相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// ConstructionDetailsSearchReq 分页请求参数
type ConstructionDetailsSearchReq struct {
g.Meta `path:"/list" tags:"施工类别详情" method:"get" summary:"施工类别详情列表"`
Id string `p:"id"` //
CreatedBy string `p:"createdBy" v:"createdBy@integer#需为整数"` //
CreatedAt string `p:"createdAt" v:"createdAt@datetime#需为YYYY-MM-DD hh:mm:ss格式"` //
Name string `p:"name"` // 施工名称
Types string `p:"types"` // 施工类别
Total string `p:"total" v:"total@integer#总量需为整数"` // 总量
ConstructionId string `p:"constructionId" v:"constructionId@integer#施工id父级id需为整数"` // 施工id父级id
IsPercentage string `p:"isPercentage" v:"isPercentage@integer#数据类型是否为百分比需为整数"` // 数据类型是否为百分比
StartTime string `p:"startTime" v:"startTime@datetime#开始时间需为YYYY-MM-DD hh:mm:ss格式"` // 开始时间
EndTime string `p:"endTime" v:"endTime@datetime#结束时间需为YYYY-MM-DD hh:mm:ss格式"` // 结束时间
Completed string `p:"completed" v:"completed@integer#完成量需为整数"` // 完成量
Selectable string `p:"selectable" v:"selectable@integer#可选择余量需为整数"` // 可选择余量
Overall string `p:"overall" v:"overall@integer#总余量需为整数"` // 总余量
commonApi.PageReq
commonApi.Author
}
// ConstructionDetailsSearchRes 列表返回结果
type ConstructionDetailsSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.ConstructionDetailsListRes `json:"list"`
}
// ConstructionDetailsAddReq 添加操作请求参数
type ConstructionDetailsAddReq struct {
g.Meta `path:"/add" tags:"施工类别详情" method:"post" summary:"施工类别详情添加"`
commonApi.Author
Name string `p:"name" v:"required#施工名称不能为空"`
Types string `p:"types" `
Total int `p:"total" `
ConstructionId int `p:"constructionId" `
Remark string `p:"remark" `
IsPercentage int `p:"isPercentage" `
StartTime *gtime.Time `p:"startTime" `
EndTime *gtime.Time `p:"endTime" `
Completed int `p:"completed" `
Selectable int `p:"selectable" `
Overall int `p:"overall" `
CreatedBy uint64
}
// ConstructionDetailsAddRes 添加操作返回结果
type ConstructionDetailsAddRes struct {
commonApi.EmptyRes
}
// ConstructionDetailsEditReq 修改操作请求参数
type ConstructionDetailsEditReq struct {
g.Meta `path:"/edit" tags:"施工类别详情" method:"put" summary:"施工类别详情修改"`
commonApi.Author
Id uint64 `p:"id" v:"required#主键ID不能为空"`
Name string `p:"name" v:"required#施工名称不能为空"`
Types string `p:"types" `
Total int `p:"total" `
ConstructionId int `p:"constructionId" `
Remark string `p:"remark" `
IsPercentage int `p:"isPercentage" `
StartTime *gtime.Time `p:"startTime" `
EndTime *gtime.Time `p:"endTime" `
Completed int `p:"completed" `
Selectable int `p:"selectable" `
Overall int `p:"overall" `
UpdatedBy uint64
}
// ConstructionDetailsEditRes 修改操作返回结果
type ConstructionDetailsEditRes struct {
commonApi.EmptyRes
}
// ConstructionDetailsGetReq 获取一条数据请求
type ConstructionDetailsGetReq struct {
g.Meta `path:"/get" tags:"施工类别详情" method:"get" summary:"获取施工类别详情信息"`
commonApi.Author
Id uint64 `p:"id" v:"required#主键必须"` // 通过主键获取
}
// ConstructionDetailsGetRes 获取一条数据结果
type ConstructionDetailsGetRes struct {
g.Meta `mime:"application/json"`
*model.ConstructionDetailsInfoRes
}
// ConstructionDetailsDeleteReq 删除数据请求
type ConstructionDetailsDeleteReq struct {
g.Meta `path:"/delete" tags:"施工类别详情" method:"delete" summary:"删除施工类别详情"`
commonApi.Author
Ids []uint64 `p:"ids" v:"required#主键必须"` // 通过主键删除
}
// ConstructionDetailsDeleteRes 删除数据返回
type ConstructionDetailsDeleteRes struct {
commonApi.EmptyRes
}
// 查询指定方阵下、指定施工类别下的可选择余量
type ConstructionDetailsListReq struct {
g.Meta `path:"/list" tags:"施工类别详情" method:"get" summary:"施工类别详情列表"`
commonApi.Author
// 方阵id
ConstructionId int `p:"constructionId"`
// 设施名称
ConstructionName string `p:"constructionName"`
// 施工名称
ConstructionDetailsName string `p:"constructionDetailsName"`
}
// ConstructionDetailsListRes 列表返回结果
type ConstructionDetailsListRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.ConstructionDetailsListRes `json:"list"`
}
// 返回指定方阵下的 gannt json
type GanntJsonReq struct {
g.Meta `path:"/gannt" tags:"施工类别详情" method:"get" summary:"施工类别详情列表"`
commonApi.Author
// 方阵id
FangzhenID int `p:"FangzhenID"`
}
type GanntJsonRes struct {
g.Meta `mime:"application/json"`
List []Gantt
}
type Gantt struct {
Id int64 `json:"id"`
// 开始时间
StartDate string `json:"start_date"`
// 结束时间
EndDate string `json:"end_date,omitempty"`
// 持续时间
Duration int `json:"duration"`
// 任务名称
Text string `json:"text"`
// 子项目标识
ConstructionId int `json:"construction_id,omitempty"`
// 进度
Progress float64 `json:"progress,omitempty"`
// 父任务
Parent int64 `json:"parent"`
// 计划中颜色标识
// PlanColor bo `json:"plan_color,omitempty"`
// 是否展开
Open bool `json:"open"`
}

View File

@ -0,0 +1,104 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2024-03-13 17:36:45
// 生成路径: api/v1/system/construction_project.go
// 生成人gfast
// desc:施工项目相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// ConstructionProjectSearchReq 分页请求参数
type ConstructionProjectSearchReq struct {
g.Meta `path:"/list" tags:"施工项目" method:"get" summary:"施工项目列表"`
ConstructionId string `p:"constructionId"` //主键id
CreatedBy string `p:"createdBy" v:"createdBy@integer#需为整数"` //
CreatedAt string `p:"createdAt" v:"createdAt@datetime#需为YYYY-MM-DD hh:mm:ss格式"` //
FangzhenId string `p:"fangzhenId" v:"fangzhenId@integer#方阵id需为整数"` //方阵id
ConstructionName string `p:"constructionName"` //施工名称
Total string `p:"total" v:"total@integer#总量需为整数"` //总量
IsPercentage string `p:"isPercentage" v:"isPercentage@integer#数据类型是否为百分比需为整数"` //数据类型是否为百分比
EndTime string `p:"endTime" v:"endTime@datetime#结束时间需为YYYY-MM-DD hh:mm:ss格式"` //结束时间
StartTime string `p:"startTime" v:"startTime@datetime#开始时间需为YYYY-MM-DD hh:mm:ss格式"` //开始时间
commonApi.PageReq
commonApi.Author
}
// ConstructionProjectSearchRes 列表返回结果
type ConstructionProjectSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.ConstructionProjectListRes `json:"list"`
}
// ConstructionProjectAddReq 添加操作请求参数
type ConstructionProjectAddReq struct {
g.Meta `path:"/add" tags:"施工项目" method:"post" summary:"施工项目添加"`
commonApi.Author
FangzhenId int `p:"fangzhenId" `
ConstructionName string `p:"constructionName" v:"required#施工名称不能为空"`
Total int `p:"total" `
Remark string `p:"remark" `
IsPercentage int `p:"isPercentage" `
EndTime *gtime.Time `p:"endTime" `
StartTime *gtime.Time `p:"startTime" `
CreatedBy uint64
}
// ConstructionProjectAddRes 添加操作返回结果
type ConstructionProjectAddRes struct {
commonApi.EmptyRes
}
// ConstructionProjectEditReq 修改操作请求参数
type ConstructionProjectEditReq struct {
g.Meta `path:"/edit" tags:"施工项目" method:"put" summary:"施工项目修改"`
commonApi.Author
ConstructionId uint64 `p:"constructionId" v:"required#主键ID不能为空"`
FangzhenId int `p:"fangzhenId" `
ConstructionName string `p:"constructionName" v:"required#施工名称不能为空"`
Total int `p:"total" `
Remark string `p:"remark" `
IsPercentage int `p:"isPercentage" `
EndTime *gtime.Time `p:"endTime" `
StartTime *gtime.Time `p:"startTime" `
UpdatedBy uint64
}
// ConstructionProjectEditRes 修改操作返回结果
type ConstructionProjectEditRes struct {
commonApi.EmptyRes
}
// ConstructionProjectGetReq 获取一条数据请求
type ConstructionProjectGetReq struct {
g.Meta `path:"/get" tags:"施工项目" method:"get" summary:"获取施工项目信息"`
commonApi.Author
ConstructionId uint64 `p:"constructionId" v:"required#主键必须"` //通过主键获取
}
// ConstructionProjectGetRes 获取一条数据结果
type ConstructionProjectGetRes struct {
g.Meta `mime:"application/json"`
*model.ConstructionProjectInfoRes
}
// ConstructionProjectDeleteReq 删除数据请求
type ConstructionProjectDeleteReq struct {
g.Meta `path:"/delete" tags:"施工项目" method:"delete" summary:"删除施工项目"`
commonApi.Author
ConstructionIds []uint64 `p:"constructionIds" v:"required#主键必须"` //通过主键删除
}
// ConstructionProjectDeleteRes 删除数据返回
type ConstructionProjectDeleteRes struct {
commonApi.EmptyRes
}

149
api/v1/system/device.go Normal file
View File

@ -0,0 +1,149 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2023-11-24 09:57:07
// 生成路径: api/v1/system/device.go
// 生成人gfast
// desc:安全帽设备java相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// DeviceSearchReq 分页请求参数
type DeviceSearchReq struct {
g.Meta `path:"/list" tags:"安全帽设备java" method:"get" summary:"安全帽设备java列表"`
ProjectId int64 `p:"projectId" v:"required#项目ID不能为空"`
DevNum string `p:"devNum"` //设备编号
DevName string `p:"devName"` //设备名称
Status string `p:"status" v:"status@integer#状态需为整数"` //状态
commonApi.PageReq
commonApi.Author
}
// DeviceSearchRes 列表返回结果
type DeviceSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.DeviceListRes `json:"list"`
}
// DeviceSearchAllReq 分页请求参数
type DeviceSearchAllReq struct {
g.Meta `path:"/allList" tags:"安全帽设备java" method:"get" summary:"GIS云图树上数据返回当前项目下。设备和用户关联到的所有设备"`
ProjectId int64 `p:"projectId" v:"required#项目ID不能为空"`
commonApi.Author
}
// DeviceSearchAllRes 列表返回结果
type DeviceSearchAllRes struct {
g.Meta `mime:"application/json"`
List []*model.DeviceListRes `json:"list"`
}
// HelmetListReq 分页请求参数
type HelmetListReq struct {
g.Meta `path:"/helmetList" tags:"安全帽设备java" method:"get" summary:"安全帽列表(设备名和设备标识)"`
ProjectId int64 `p:"projectId" v:"required#项目ID不能为空"`
DevNum string `p:"devNum"` //设备编号
DevName string `p:"devName"` //设备名称
commonApi.PageReq
commonApi.Author
}
// HelmetListRes 列表返回结果
type HelmetListRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.DeviceListRes `json:"list"`
}
// DeviceAddReq 添加操作请求参数
type DeviceAddReq struct {
g.Meta `path:"/add" tags:"安全帽设备java" method:"post" summary:"安全帽设备java添加"`
commonApi.Author
DevNum string `p:"devNum" v:"required#主键ID不能为空"`
DevName string `p:"devName" `
Status int `p:"status" dc:"状态0下线 1上线 v:"required#状态不能为空"`
ProjectId int `p:"project_id" v:"required#项目id不能为空"`
}
// DeviceAddRes 添加操作返回结果
type DeviceAddRes struct {
commonApi.EmptyRes
}
// RemoveRelationReq 移除当前人员与安全帽的佩戴关系
type RemoveRelationReq struct {
g.Meta `path:"/removeRelation" tags:"安全帽设备java" method:"put" summary:"移除当前人员与安全帽的佩戴关系"`
commonApi.Author
Openid string `p:"openid" v:"required#openid不能为空"`
}
// RemoveRelationRes 移除当前人员与安全帽的佩戴关系
type RemoveRelationRes struct {
commonApi.EmptyRes
}
// DeviceGetReq 获取一条数据请求
type DeviceGetReq struct {
g.Meta `path:"/get" tags:"安全帽设备java" method:"get" summary:"获取安全帽设备java信息"`
commonApi.Author
DateRange []string `p:"dateRange" dc:"日期范围"`
DevNum string `p:"devNum" v:"required#主键必须"` //通过主键获取
}
// DeviceGetRes 获取一条数据结果
type DeviceGetRes struct {
g.Meta `mime:"application/json"`
*model.DeviceInfoRes
LatAndLonList []*ActionPathLatAndLonActionPathLatAndLon `json:"latAndLonList" dc:"足迹列表"`
}
type ActionPathLatAndLonActionPathLatAndLon struct {
Latitude float64 `p:"latitude" dc:"纬度" `
Longitude float64 `p:"longitude" dc:"经度" `
}
// DeviceDeleteReq 删除数据请求
type DeviceDeleteReq struct {
g.Meta `path:"/delete" tags:"安全帽设备java" method:"delete" summary:"删除安全帽设备java"`
commonApi.Author
DevNums []string `p:"devNums" v:"required#主键必须"` //通过主键删除
}
// DeviceDeleteRes 删除数据返回
type DeviceDeleteRes struct {
commonApi.EmptyRes
}
// ScheduleTimeReq 根据指定时间段去查询有足迹的日期
type ScheduleTimeReq struct {
g.Meta `path:"scheduleTime" tags:"安全帽设备java" method:"get" summary:"根据指定时间段去查询有足迹的日期"`
DevNum string `p:"devNum" dc:"设备编号" v:"required#设备编号必须"`
DateRange []string `p:"dateRange" dc:"日期范围" v:"required|array#日期范围必须"`
commonApi.Author
}
// ScheduleTimeRes 根据指定时间段去查询有足迹的日期
type ScheduleTimeRes struct {
g.Meta `mime:"application/json"`
List []string `json:"list"`
}
// WebsocketReq 服务
type WebsocketReq struct {
g.Meta `path:"/websocketReq" tags:"安全帽设备java" method:"get" summary:"WebSocket服务"`
commonApi.Author
ProjectId string `p:"projectId" v:"required#项目ID必须" dc:"项目ID"` //通过主键删除
}
// WebsocketRes 服务
type WebsocketRes struct {
commonApi.EmptyRes
}

View File

@ -0,0 +1,101 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2024-03-01 12:50:08
// 生成路径: api/v1/system/device_preset.go
// 生成人gfast
// desc:预置位相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// DevicePresetSearchReq 分页请求参数
type DevicePresetSearchReq struct {
g.Meta `path:"/list" tags:"预置位" method:"get" summary:"预置位列表"`
Id string `p:"id"` // 主键ID
CreatedAt string `p:"createdAt" v:"createdAt@datetime#创建时间需为YYYY-MM-DD hh:mm:ss格式"` // 创建时间
DeviceSerial string `p:"deviceSerial"` // 设备序列号
ChannelNo string `p:"channelNo" d:"1"` // 通道号
commonApi.PageReq
commonApi.Author
}
// DevicePresetSearchRes 列表返回结果
type DevicePresetSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.DevicePresetListRes `json:"list"`
}
// DevicePresetAddReq 添加操作请求参数
type DevicePresetAddReq struct {
g.Meta `path:"/add" tags:"预置位" method:"post" summary:"预置位添加"`
commonApi.Author
DeviceSerial string `p:"deviceSerial" dc:"设备穿号"`
PresetName string `p:"presetName" dc:"预置位点名"`
ChannelNo string `p:"channelNo" dc:"频道号默认为1" d:"1"`
}
// DevicePresetAddRes 添加操作返回结果
type DevicePresetAddRes struct {
commonApi.EmptyRes
}
// DevicePresetEditReq 修改操作请求参数
type DevicePresetEditReq struct {
g.Meta `path:"/edit" tags:"预置位" method:"put" summary:"预置位修改"`
commonApi.Author
DeviceSerial string `p:"deviceSerial" dc:"设备编号"`
Id int `p:"id" dc:"需要被修改的主键id"`
NewName string `p:"newName" dc:"新名字"`
}
// DevicePresetEditRes 修改操作返回结果
type DevicePresetEditRes struct {
commonApi.EmptyRes
}
// DevicePresetGetReq 获取一条数据请求
type DevicePresetGetReq struct {
g.Meta `path:"/get" tags:"预置位" method:"get" summary:"获取预置位信息"`
commonApi.Author
Id uint `p:"id" v:"required#主键必须"` // 通过主键获取
}
// DevicePresetGetRes 获取一条数据结果
type DevicePresetGetRes struct {
g.Meta `mime:"application/json"`
*model.DevicePresetInfoRes
}
// DevicePresetDeleteReq 删除数据请求
type DevicePresetDeleteReq struct {
g.Meta `path:"/delete" tags:"预置位" method:"delete" summary:"删除预置位"`
commonApi.Author
DeviceSerial string `p:"deviceSerial" v:"required#设备序列号不能为空"` // 设备序列号
Ids []int `p:"ids" v:"required#通道号必须"` // 通过主键删除
}
// DevicePresetDeleteRes 删除数据返回
type DevicePresetDeleteRes struct {
commonApi.EmptyRes
}
// DevicePresetCallReq 调用预置点
type DevicePresetCallReq struct {
g.Meta `path:"/call" tags:"预置位" method:"post" summary:"调用预置位"`
DeviceSerial string `p:"deviceSerial" v:"required#设备序列号不能为空"` // 设备序列号
Index int `p:"index" v:"required#预置点位不能为空"`
commonApi.Author
}
// DevicePresetCallRes 调用预置点返回
type DevicePresetCallRes struct {
commonApi.EmptyRes
}

201
api/v1/system/document.go Normal file
View File

@ -0,0 +1,201 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2023-09-16 10:32:04
// 生成路径: api/v1/system/document.go
// 生成人gfast
// desc:母板相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
comModel "github.com/tiger1103/gfast/v3/internal/app/common/model"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
type SendFileReq struct {
g.Meta `path:"/sendFile" tags:"工程资料>模板" method:"post" summary:"获取web365的在线阅读"`
commonApi.Author
FilePath string `p:"filePath" dc:"文件相对路径" v:"required#文件相对路径不能为空"`
FileType string `p:"fileType" dc:"文件类型1word 2excel 3ppt" v:"required#文件类型不能为空"`
}
type SendFileRes struct {
commonApi.EmptyRes
FilePath string `p:"filePath" dc:"文件相对路径"`
}
// DocumentSearchReq 分页请求参数
type DocumentSearchReq struct {
g.Meta `path:"/list" tags:"工程资料>模板" method:"get" summary:"母板列表"`
Switch string `p:"switch" dc:"当前文件夹及以下1/当前文件夹2" v:"between:1,2#仅支持传递1~2"`
IdStr string `p:"idStr" dc:"模板标识" v:"required#模板标识不能为空"`
Name string `p:"name" dc:"模板名称"`
commonApi.Paging
commonApi.PageReq
commonApi.Author
}
// DocumentSearchRes 列表返回结果
type DocumentSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.DocumentListRes `json:"list"`
}
// AllDocumentSearchReq 获取所有数据
type AllDocumentSearchReq struct {
g.Meta `path:"/allList" tags:"工程资料>模板" method:"get" summary:"获取所有数据"`
Type string `p:"type" dc:"1未删除的全部 2删除的全部 3全部删除+未删除)" v:"between:1,2#范围值为1~2"`
commonApi.Author
}
// AllDocumentSearchRes 获取所有数据
type AllDocumentSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.DocumentInfoRes `json:"list"`
}
// DocumentAddReq 添加操作请求参数
type DocumentAddReq struct {
g.Meta `path:"/add" tags:"工程资料>模板" method:"post" summary:"本地导入(文件/压缩文件夹)"`
commonApi.Author
Pid string `p:"pid" dc:"父级文件夹(如果需要在某个文件夹下导入,那么需要有此参数)" `
FileType string `p:"fileType" dc:"1上传压缩文件夹 2上传文件" v:"between:1,2#范围值为1~2"`
FilePath *comModel.UpFile `p:"filePath" dc:"fileType为1上传压缩文件夹 2文件" v:"required-if:fileType,1#需要上传压缩文件夹"`
FileName string `p:"fileName" dc:"fileType为3填写文件夹名" v:"required-if:fileType,3#需要填写文件夹名称"`
}
// DocumentAddRes 添加操作返回结果
type DocumentAddRes struct {
commonApi.EmptyRes
}
// NewFolderReq 添加操作请求参数
type NewFolderReq struct {
g.Meta `path:"/newFolder" tags:"工程资料>模板" method:"post" summary:"新建文件夹"`
commonApi.Author
Pid string `p:"pid" dc:"父级文件夹(如果需要在某个文件夹下导入,那么需要有此参数)" `
//FileType string `p:"fileType" dc:"1上传压缩文件夹 2上传文件 3新建文件夹" v:"between:1,3#范围值为1~3"`
FilePath *comModel.UpFile `p:"filePath" dc:"fileType为1上传压缩文件夹 2文件" v:"required-if:fileType,1#需要上传压缩文件夹"`
FileName string `p:"fileName" dc:"fileType为3填写文件夹名" v:"required-if:fileType,3#需要填写文件夹名称"`
}
// NewFolderRes 添加操作返回结果
type NewFolderRes struct {
commonApi.EmptyRes
}
// DocumentEditReq 修改操作请求参数
type DocumentEditReq struct {
g.Meta `path:"/edit" tags:"工程资料>模板" method:"put" summary:"母板修改"`
commonApi.Author
Id int64 `p:"id" v:"required#主键ID不能为空"`
Name string `p:"name" dc:"名" v:"required#模板名称不能为空"`
Type string `p:"type" dc:"1文件 2文件夹" v:"between:1,2#范围值为1~2"`
}
// DocumentEditRes 修改操作返回结果
type DocumentEditRes struct {
commonApi.EmptyRes
}
// DocumentGetReq 获取一条数据请求
type DocumentGetReq struct {
g.Meta `path:"/get" tags:"工程资料>模板" method:"get" summary:"获取母板信息"`
commonApi.Author
Id int `p:"id" v:"required#主键必须"` //通过主键获取
}
// DocumentGetRes 获取一条数据结果
type DocumentGetRes struct {
g.Meta `mime:"application/json"`
*model.DocumentInfoRes
}
// GetFileNameByDateReq 获取一条数据请求
type GetFileNameByDateReq struct {
g.Meta `path:"/getFileNameByDate" tags:"工程资料>模板" method:"get" summary:"废弃"`
commonApi.Author
FileName string `p:"fileName" dc:"文件名称" v:"required#文件名称为必须"`
Id int64 `p:"id" dc:"文件名称" v:"required#文件名称为必须"`
}
// DocumentDeleteReq 删除数据请求
type DocumentDeleteReq struct {
g.Meta `path:"/delete" tags:"工程资料>模板" method:"delete" summary:"删除母板"`
commonApi.Author
Ids []int `p:"ids" v:"required#主键必须"` //通过主键删除
}
// DocumentDeleteRes 删除数据返回
type DocumentDeleteRes struct {
commonApi.EmptyRes
}
// TreeStructureReq 树形结构文件夹目录
type TreeStructureReq struct {
g.Meta `path:"/treeStructure" tags:"工程资料>模板" method:"get" summary:"树形结构文件夹目录"`
//ProjectId string `p:"projectId" dc:"项目id" v:"required#项目ID不能为空"`
//IdStr string `p:"idStr" dc:"父级标识" v:"required#父级标识不能为空"`
commonApi.Author
}
// TreeStructureRes 树形结构文件夹目录
type TreeStructureRes struct {
g.Meta `mime:"application/json"`
List []*model.TreeStructureRes `json:"list"`
}
// CompressedDownloadReq 根据文件夹路径(相对路径)下载当前目录及以下文件、文件夹
type CompressedDownloadReq struct {
g.Meta `path:"/compressedDownload" tags:"工程资料>模板" method:"get" summary:"根据文件夹路径(相对路径)下载当前目录及以下文件、文件夹"`
RelativePath string `p:"relativePath" dc:"相对路径" v:"required#相对路径不能为空"`
commonApi.Author
}
// CompressedDownloadRes 根据文件夹路径(相对路径)下载当前目录及以下文件、文件夹
type CompressedDownloadRes struct {
commonApi.EmptyRes
RelativePath string `p:"relativePath" dc:"相对路径" v:"required#相对路径不能为空"`
}
// TemplateRecycleBinReq 模板回收站
type TemplateRecycleBinReq struct {
g.Meta `path:"/templateRecycleBin" tags:"工程资料>模板" method:"put" summary:"模板回收站"`
commonApi.Author
Ids []int64 `p:"ids" v:"required#主键ID不能为空"`
Type string `p:"type" dc:"1恢复 2删除" v:"between:1,2#范围值为1~2"`
}
// TemplateRecycleBinRes 模板回收站
type TemplateRecycleBinRes struct {
commonApi.EmptyRes
}
// WriteFreelyReq a
type WriteFreelyReq struct {
g.Meta `path:"/complaintBoxAddTwo" tags:"工程资料>模板" method:"post" summary:"畅写回调保存"`
Path string `p:"path" dc:"路径" v:"required#文件保存路径不能为空"`
}
// WriteFreelyRes a
type WriteFreelyRes struct {
commonApi.EmptyRes
}
// UniFileDownloadReq 单文件下载
type UniFileDownloadReq struct {
g.Meta `path:"/uniFileDownload" tags:"工程资料>模板" method:"get" summary:"单文件下载"`
RelativePath string `p:"relativePath" dc:"相对路径" v:"required#相对路径不能为空"`
commonApi.Author
}
// UniFileDownloadRes 单文件下载
type UniFileDownloadRes struct {
commonApi.EmptyRes
}

View File

@ -0,0 +1,202 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2024-03-15 10:25:00
// 生成路径: api/v1/system/document_completion.go
// 生成人gfast
// desc:竣工图相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
comModel "github.com/tiger1103/gfast/v3/internal/app/common/model"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// qSearchReq 分页请求参数
type DocumentCompletionSearchReq struct {
g.Meta `path:"/list" tags:"竣工图" method:"get" summary:"竣工图列表"`
Id string `p:"id"` //
IdStr string `p:"idStr"` //模板id
Pid string `p:"pid"` //父级0代表顶级
Name string `p:"name"` //模板名称
FilenPath string `p:"filenPath"` //模板文件名
Type string `p:"type"` //类型1文件-2文件夹
Suffix string `p:"suffix"` //后缀
CreateBy string `p:"createBy"` //创建人
UpdateBy string `p:"updateBy"` //更新人
CreatedAt string `p:"createdAt" v:"createdAt@datetime#创建时间需为YYYY-MM-DD hh:mm:ss格式"` //创建时间
ProjectId string `p:"projectId" v:"projectId@integer#项目id需为整数"` //项目id
commonApi.PageReq
commonApi.Author
}
// DocumentCompletionSearchRes 列表返回结果
type DocumentCompletionSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.DocumentCompletionListRes `json:"list"`
}
// DocumentCompletionAddReq 添加操作请求参数
type DocumentCompletionAddReq struct {
g.Meta `path:"/add" tags:"竣工图" method:"post" summary:"竣工图添加"`
commonApi.Author
ProjectId int64 `p:"projectId" v:"required#项目ID不能为空"`
Pid string `p:"pid" dc:"父级文件夹(如果需要在某个文件夹下导入,那么需要有此参数)" `
FileType string `p:"fileType" dc:"1上传压缩文件夹 2上传文件" v:"between:1,2#范围值为1~2"`
FilePath *comModel.UpFile `p:"filePath" dc:"fileType为1上传压缩文件夹 2文件" v:"required-if:fileType,1#需要上传压缩文件夹"`
//FileName string `p:"fileName" dc:"fileType为3填写文件夹名" v:"required-if:fileType,3#需要填写文件夹名称"`
}
// DocumentCompletionAddRes 添加操作返回结果
type DocumentCompletionAddRes struct {
commonApi.EmptyRes
}
// DocumentCompletionEditReq 修改操作请求参数
type DocumentCompletionEditReq struct {
g.Meta `path:"/edit" tags:"竣工图" method:"put" summary:"重命名(文件/文件夹)"`
commonApi.Author
Id int64 `p:"id" v:"required#主键ID不能为空"`
Name string `p:"name" dc:"名" v:"required#模板名称不能为空"`
Type string `p:"type" dc:"1文件 2文件夹" v:"between:1,2#范围值为1~2"`
}
// DocumentCompletionEditRes 修改操作返回结果
type DocumentCompletionEditRes struct {
commonApi.EmptyRes
}
// DocumentCompletionGetReq 获取一条数据请求
type DocumentCompletionGetReq struct {
g.Meta `path:"/get" tags:"竣工图" method:"get" summary:"获取竣工图信息"`
commonApi.Author
Id int64 `p:"id" v:"required#主键必须"` //通过主键获取
}
// DocumentCompletionGetRes 获取一条数据结果
type DocumentCompletionGetRes struct {
g.Meta `mime:"application/json"`
List []*model.SelectTabNameAndTabIdByDateRes `p:"list"`
}
// DocumentCompletionDeleteReq 删除数据请求
type DocumentCompletionDeleteReq struct {
g.Meta `path:"/delete" tags:"竣工图" method:"delete" summary:"删除竣工图"`
commonApi.Author
Ids []int64 `p:"ids" v:"required#主键必须"` //通过主键删除
}
// DocumentCompletionDeleteRes 删除数据返回
type DocumentCompletionDeleteRes struct {
commonApi.EmptyRes
}
// CompletionNewFolderDataReq 新建文件夹
type CompletionNewFolderDataReq struct {
g.Meta `path:"/newFolder" tags:"竣工图" method:"post" summary:"新建文件夹"`
commonApi.Author
ProjectId int64 `p:"projectId" v:"required#项目ID不能为空"`
Pid string `p:"pid" dc:"父级文件夹(如果需要在某个文件夹下导入,那么需要有此参数)" `
//FileType string `p:"fileType" dc:"1上传压缩文件夹 2上传文件 3新建文件夹" v:"between:1,3#范围值为1~3"`
FilePath *comModel.UpFile `p:"filePath" dc:"fileType为1上传压缩文件夹 2文件" v:"required-if:fileType,1#需要上传压缩文件夹"`
FileName string `p:"fileName" dc:"fileType为3填写文件夹名" v:"required-if:fileType,3#需要填写文件夹名称"`
}
// CompletionNewFolderDataRes 新建文件夹
type CompletionNewFolderDataRes struct {
commonApi.EmptyRes
}
// CompletionDataUniFileDownloadReq 单文件下载
type CompletionDataUniFileDownloadReq struct {
g.Meta `path:"/uniFileDownload" tags:"竣工图" method:"get" summary:"单文件下载"`
RelativePath string `p:"relativePath" dc:"相对路径" v:"required#相对路径不能为空"`
Type string `p:"type" dc:"1文件下载 2文件夹下载" v:"required#type不能为空"`
TableName string `p:"tableName" dc:"1竣工 2施工 3可研" v:"between:1,3#取值范围为1~3"`
TableId int64 `p:"tableId" dc:"对应TableName的主键ID" v:"required#tableId不能为空"`
ProjectId int64 `p:"projectId" dc:"项目ID" v:"required#projectId不能为空"`
commonApi.Author
}
// CompletionDataUniFileDownloadRes 单文件下载
type CompletionDataUniFileDownloadRes struct {
commonApi.EmptyRes
Path string `p:"path" dc:"文件夹压缩包下载路径"`
}
// DocumentTreeStructureReq 树形结构
type DocumentTreeStructureReq struct {
g.Meta `path:"/treeStructure" tags:"竣工图" method:"get" summary:"树形结构"`
ProjectId string `p:"projectId" v:"projectId@integer#项目id需为整数"` //项目id
Pid string `p:"pid"` //父级0代表顶级
//Name string `p:"name"` //模板名称
//Suffix string `p:"suffix"` //后缀
commonApi.Author
}
// DocumentTreeStructureRes 树形结构
type DocumentTreeStructureRes struct {
g.Meta `mime:"application/json"`
List []*model.DocumentCompletionListRes `json:"list"`
}
// SelectByPidReq 获取pid
type SelectByPidReq struct {
g.Meta `path:"/selectByPid" tags:"竣工图" method:"get" summary:"获取pid"`
ProjectId string `p:"projectId" v:"projectId@integer#项目id需为整数"`
PathName string `p:"pathName" dc:"路径地址(例子:/xxxx/xxxx" v:"required#路径地址不能为空"`
commonApi.Author
}
// SelectByPidRes 获取pid
type SelectByPidRes struct {
g.Meta `mime:"application/json"`
Pid string `p:"pid" dc:"pid"`
}
// CompletionDataRecyclingStationReq 回收站
type CompletionDataRecyclingStationReq struct {
g.Meta `path:"/completionDataRecyclingStation" tags:"竣工图" method:"put" summary:"回收站恢复及删除(删除已被注释)"`
commonApi.Author
Ids []int64 `p:"ids" v:"required#主键ID不能为空"`
//Type string `p:"type" dc:"1恢复 2删除" v:"between:1,1#范围值为1"`
Type string `p:"type" dc:"1恢复" `
}
// CompletionDataRecyclingStationRes 回收站
type CompletionDataRecyclingStationRes struct {
commonApi.EmptyRes
}
// RecycleBinListReq 不分页请求参数
type RecycleBinListReq struct {
g.Meta `path:"/recycleBinList" tags:"竣工图" method:"get" summary:"回收站数据加载"`
ProjectId int64 `p:"projectId" v:"required#项目ID不能为空"`
Type string `p:"type" dc:"1未删除的全部 2删除的全部 3全部删除+未删除)" v:"between:1,3#范围值为1~3"`
commonApi.Author
}
// RecycleBinListRes 不分页请求参数
type RecycleBinListRes struct {
g.Meta `mime:"application/json"`
List []*model.DocumentCompletionInfoRes `json:"list"`
}
// AuditDataListReq 审核数据列表
type AuditDataListReq struct {
g.Meta `path:"/auditDataList" tags:"竣工图" method:"get" summary:"审核数据列表"`
ProjectId int64 `p:"projectId" v:"required#项目ID不能为空"`
Type string `p:"type" dc:"1未删除的全部 2删除的全部 3全部删除+未删除)" v:"between:1,3#范围值为1~3"`
commonApi.Author
}
// AuditDataListRes 审核数据列表
type AuditDataListRes struct {
g.Meta `mime:"application/json"`
List []*model.DocumentCompletionInfoRes `json:"list"`
}

View File

@ -0,0 +1,231 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2023-12-27 09:30:03
// 生成路径: api/v1/system/document_data.go
// 生成人gfast
// desc:工程资料>资料相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
comModel "github.com/tiger1103/gfast/v3/internal/app/common/model"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// DocumentDataSearchReq 分页请求参数
type DocumentDataSearchReq struct {
g.Meta `path:"/list" tags:"工程资料>资料" method:"get" summary:"工程资料>资料列表"`
ProjectId int64 `p:"projectId" v:"required#项目ID不能为空"`
Switch string `p:"switch" dc:"当前文件夹及以下1/当前文件夹2" v:"between:1,2#仅支持传递1~2"`
IdStr string `p:"idStr" dc:"模板标识" v:"required#模板标识不能为空"`
Name string `p:"name" dc:"模板名称"`
commonApi.Paging
commonApi.PageReq
commonApi.Author
}
// DocumentDataSearchRes 列表返回结果
type DocumentDataSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.DocumentDataListRes `json:"list"`
}
// AllDocumentDataSearchReq 不分页请求参数
type AllDocumentDataSearchReq struct {
g.Meta `path:"/allList" tags:"工程资料>资料" method:"get" summary:"回收站数据加载"`
ProjectId int64 `p:"projectId" v:"required#项目ID不能为空"`
Type string `p:"type" dc:"1未删除的全部 2删除的全部 3全部删除+未删除)" v:"between:1,3#范围值为1~3"`
commonApi.Author
}
// AllDocumentDataSearchRes 不分页请求参数
type AllDocumentDataSearchRes struct {
g.Meta `mime:"application/json"`
List []*model.DocumentDataInfoRes `json:"list"`
}
// DocumentDataAddReq 本地导入(文件/压缩文件夹)
type DocumentDataAddReq struct {
g.Meta `path:"/add" tags:"工程资料>资料" method:"post" summary:"本地导入(文件/压缩文件夹)"`
commonApi.Author
ProjectId int64 `p:"projectId" v:"required#项目ID不能为空"`
Pid string `p:"pid" dc:"父级文件夹(如果需要在某个文件夹下导入,那么需要有此参数)" `
FileType string `p:"fileType" dc:"1上传压缩文件夹 2上传文件" v:"between:1,2#范围值为1~2"`
FilePath *comModel.UpFile `p:"filePath" dc:"fileType为1上传压缩文件夹 2文件" v:"required-if:fileType,1#需要上传压缩文件夹"`
//FileName string `p:"fileName" dc:"fileType为3填写文件夹名" v:"required-if:fileType,3#需要填写文件夹名称"`
}
// DocumentDataAddRes 本地导入(文件/压缩文件夹)
type DocumentDataAddRes struct {
commonApi.EmptyRes
}
// NewFolderDataReq 新建文件夹
type NewFolderDataReq struct {
g.Meta `path:"/newFolder" tags:"工程资料>资料" method:"post" summary:"新建文件夹"`
commonApi.Author
ProjectId int64 `p:"projectId" v:"required#项目ID不能为空"`
Pid string `p:"pid" dc:"父级文件夹(如果需要在某个文件夹下导入,那么需要有此参数)" `
//FileType string `p:"fileType" dc:"1上传压缩文件夹 2上传文件 3新建文件夹" v:"between:1,3#范围值为1~3"`
FilePath *comModel.UpFile `p:"filePath" dc:"fileType为1上传压缩文件夹 2文件" v:"required-if:fileType,1#需要上传压缩文件夹"`
FileName string `p:"fileName" dc:"fileType为3填写文件夹名" v:"required-if:fileType,3#需要填写文件夹名称"`
}
// NewFolderDataRes 新建文件夹
type NewFolderDataRes struct {
commonApi.EmptyRes
}
// DocumentDataEditReq 修改操作请求参数
type DocumentDataEditReq struct {
g.Meta `path:"/edit" tags:"工程资料>资料" method:"put" summary:"重命名(文件/文件夹)"`
commonApi.Author
Id int64 `p:"id" v:"required#主键ID不能为空"`
Name string `p:"name" dc:"名" v:"required#模板名称不能为空"`
Type string `p:"type" dc:"1文件 2文件夹" v:"between:1,2#范围值为1~2"`
}
// DocumentDataEditRes 修改操作返回结果
type DocumentDataEditRes struct {
commonApi.EmptyRes
}
// DocumentDataGetReq 获取一条数据请求
type DocumentDataGetReq struct {
g.Meta `path:"/get" tags:"工程资料>资料" method:"get" summary:"获取工程资料>资料信息"`
commonApi.Author
Id int64 `p:"id" v:"required#主键必须"` //通过主键获取
}
// DocumentDataGetRes 获取一条数据结果
type DocumentDataGetRes struct {
g.Meta `mime:"application/json"`
*model.DocumentDataInfoRes
}
// DocumentDataDeleteReq 删除数据请求
type DocumentDataDeleteReq struct {
g.Meta `path:"/delete" tags:"工程资料>资料" method:"delete" summary:"删除工程资料>资料"`
commonApi.Author
Ids []int64 `p:"ids" v:"required#主键必须"` //通过主键删除
}
// DocumentDataDeleteRes 删除数据返回
type DocumentDataDeleteRes struct {
commonApi.EmptyRes
}
// TreeStructureDataReq 树形结构文件夹目录
type TreeStructureDataReq struct {
g.Meta `path:"/treeStructureData" tags:"工程资料>资料" method:"get" summary:"树形结构文件夹目录"`
ProjectId int64 `p:"projectId" v:"required#项目ID不能为空"`
commonApi.Author
}
// TreeStructureDataRes 树形结构文件夹目录
type TreeStructureDataRes struct {
g.Meta `mime:"application/json"`
List []*model.TreeStructureDataRes `json:"list"`
}
// OnlineImportReq 在线模板导入|复制(复制文件或文件夹)
type OnlineImportReq struct {
g.Meta `path:"/onlineImport" tags:"工程资料>资料" method:"put" summary:"在线模板导入|复制(复制文件或文件夹)"`
commonApi.Author
ProjectId int64 `p:"projectId" v:"required#项目ID不能为空"`
Type string `p:"type" dc:"1模板文件 2模板文件夹" v:"between:1,4#范围值为1~4"`
TemplateId []string `p:"TemplateId" dc:"模板主键ID" v:"required#模板主键ID不能为空"`
DataId string `p:"DataId" dc:"资料主键ID" v:"required#资料主键ID不能为空"`
}
// OnlineImportRes 在线模板导入|复制(复制文件或文件夹)
type OnlineImportRes struct {
commonApi.EmptyRes
}
// OnlineMobileReq 在线资料导入|移动(移动文件或文件夹)
type OnlineMobileReq struct {
g.Meta `path:"/onlineMobile" tags:"工程资料>资料" method:"put" summary:"在线资料导入|移动(移动文件或文件夹)"`
commonApi.Author
ProjectId int64 `p:"projectId" v:"required#项目ID不能为空"`
Type string `p:"type" dc:"1资料文件 2资料文件夹" v:"between:1,2#范围值为1~2"`
TemplateId string `p:"TemplateId" dc:"被移动文件/文件夹主键ID" v:"required#模板主键ID不能为空"`
DataId string `p:"DataId" dc:"移动到哪儿主键ID" v:"required#资料主键ID不能为空"`
}
// OnlineMobileRes 在线资料导入|移动(移动文件或文件夹)
type OnlineMobileRes struct {
commonApi.EmptyRes
}
// DataRecyclingStationReq 资料回收站
type DataRecyclingStationReq struct {
g.Meta `path:"/dataRecyclingStation" tags:"工程资料>资料" method:"put" summary:"资料回收站恢复及删除(删除已被注释)"`
commonApi.Author
Ids []int64 `p:"ids" v:"required#主键ID不能为空"`
//Type string `p:"type" dc:"1恢复 2删除" v:"between:1,1#范围值为1"`
Type string `p:"type" dc:"1恢复" `
}
// DataRecyclingStationRes 资料回收站
type DataRecyclingStationRes struct {
commonApi.EmptyRes
}
// DataWriteFreelyReq 畅写回调保存
type DataWriteFreelyReq struct {
g.Meta `path:"/complaintBoxAdd" tags:"工程资料>资料" method:"post" summary:"畅写回调保存"`
Path string `p:"path" dc:"路径" v:"required#文件保存路径不能为空"`
}
// DataFileQueryReq 资料查询查询资料里面的所有文件限制格式为ppt、excel、word
type DataFileQueryReq struct {
g.Meta `path:"/dataFileQuery" tags:"工程资料>资料" method:"get" summary:"资料文件模糊查询查询资料里面的所有文件限制文件为ppt、excel、word"`
Project int64 `p:"project" dc:"项目id" `
FileName string `p:"fileName" dc:"文件名称查询(模糊查询)"`
commonApi.Author
}
// DataFileQueryRes 资料查询查询资料里面的所有文件限制格式为ppt、excel、word
type DataFileQueryRes struct {
commonApi.EmptyRes
List []*model.DocumentDataListTwoRes `json:"list"`
}
// DataCompressedDownloadReq 根据文件夹路径(相对路径)下载当前目录及以下文件、文件夹
type DataCompressedDownloadReq struct {
g.Meta `path:"/dataCompressedDownload" tags:"工程资料>资料" method:"get" summary:"根据文件夹路径(相对路径)下载当前目录及以下文件、文件夹"`
RelativePath string `p:"relativePath" dc:"相对路径" v:"required#相对路径不能为空"`
commonApi.Author
}
// DataUniFileDownloadReq 单文件下载
type DataUniFileDownloadReq struct {
g.Meta `path:"/uniFileDownload" tags:"工程资料>资料" method:"get" summary:"单文件下载"`
RelativePath string `p:"relativePath" dc:"相对路径" v:"required#相对路径不能为空"`
commonApi.Author
}
// DataUniFileDownloadRes 单文件下载
type DataUniFileDownloadRes struct {
commonApi.EmptyRes
}
// SonFileReq 获取文件夹下的子文件
type SonFileReq struct {
g.Meta `path:"/sonFile" tags:"工程资料>资料" method:"get" summary:"获取文件夹下的子文件"`
Project int64 `p:"project" dc:"项目id" `
IdStr string `p:"idStr" dc:"父文件夹唯一标识" v:"required#父文件夹唯一标识不能为空"`
commonApi.Author
}
// SonFileRes 获取文件夹下的子文件
type SonFileRes struct {
g.Meta `mime:"application/json"`
List []*model.DocumentDataInfoRes `json:"list"`
}

View File

@ -0,0 +1,188 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2024-03-15 10:24:54
// 生成路径: api/v1/system/document_production_drawing.go
// 生成人gfast
// desc:施工图相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
comModel "github.com/tiger1103/gfast/v3/internal/app/common/model"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// DocumentProductionDrawingSearchReq 分页请求参数
type DocumentProductionDrawingSearchReq struct {
g.Meta `path:"/list" tags:"施工图" method:"get" summary:"施工图列表"`
Id string `p:"id"` //
IdStr string `p:"idStr"` //模板id
Pid string `p:"pid"` //父级0代表顶级
Name string `p:"name"` //模板名称
FilenPath string `p:"filenPath"` //模板文件名
Type string `p:"type"` //类型1文件-2文件夹
Suffix string `p:"suffix"` //后缀
CreateBy string `p:"createBy"` //创建人
UpdateBy string `p:"updateBy"` //更新人
CreatedAt string `p:"createdAt" v:"createdAt@datetime#创建时间需为YYYY-MM-DD hh:mm:ss格式"` //创建时间
ProjectId string `p:"projectId" v:"projectId@integer#项目id需为整数"` //项目id
commonApi.PageReq
commonApi.Author
}
// DocumentProductionDrawingSearchRes 列表返回结果
type DocumentProductionDrawingSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.DocumentProductionDrawingListRes `json:"list"`
}
// DocumentProductionDrawingAddReq 添加操作请求参数
type DocumentProductionDrawingAddReq struct {
g.Meta `path:"/add" tags:"施工图" method:"post" summary:"施工图添加"`
commonApi.Author
ProjectId int64 `p:"projectId" v:"required#项目ID不能为空"`
Pid string `p:"pid" dc:"父级文件夹(如果需要在某个文件夹下导入,那么需要有此参数)" `
FileType string `p:"fileType" dc:"1上传压缩文件夹 2上传文件" v:"between:1,2#范围值为1~2"`
FilePath *comModel.UpFile `p:"filePath" dc:"fileType为1上传压缩文件夹 2文件" v:"required-if:fileType,1#需要上传压缩文件夹"`
//FileName string `p:"fileName" dc:"fileType为3填写文件夹名" v:"required-if:fileType,3#需要填写文件夹名称"`
}
// DocumentProductionDrawingAddRes 添加操作返回结果
type DocumentProductionDrawingAddRes struct {
commonApi.EmptyRes
}
// DocumentProductionDrawingEditReq 修改操作请求参数
type DocumentProductionDrawingEditReq struct {
g.Meta `path:"/edit" tags:"施工图" method:"put" summary:"重命名(文件/文件夹)"`
commonApi.Author
Id int64 `p:"id" v:"required#主键ID不能为空"`
Name string `p:"name" dc:"名" v:"required#模板名称不能为空"`
Type string `p:"type" dc:"1文件 2文件夹" v:"between:1,2#范围值为1~2"`
}
// DocumentProductionDrawingEditRes 修改操作返回结果
type DocumentProductionDrawingEditRes struct {
commonApi.EmptyRes
}
// DocumentProductionDrawingGetReq 获取一条数据请求
type DocumentProductionDrawingGetReq struct {
g.Meta `path:"/get" tags:"施工图" method:"get" summary:"获取施工图信息"`
commonApi.Author
Id int64 `p:"id" v:"required#主键必须"` //通过主键获取
}
// DocumentProductionDrawingGetRes 获取一条数据结果
type DocumentProductionDrawingGetRes struct {
g.Meta `mime:"application/json"`
List []*model.SelectTabNameAndTabIdByDateRes `p:"list"`
}
// DocumentProductionDrawingDeleteReq 删除数据请求
type DocumentProductionDrawingDeleteReq struct {
g.Meta `path:"/delete" tags:"施工图" method:"delete" summary:"删除施工图"`
commonApi.Author
Ids []int64 `p:"ids" v:"required#主键必须"` //通过主键删除
}
// DocumentProductionDrawingDeleteRes 删除数据返回
type DocumentProductionDrawingDeleteRes struct {
commonApi.EmptyRes
}
// ProductionDrawingNewFolderDataReq 新建文件夹
type ProductionDrawingNewFolderDataReq struct {
g.Meta `path:"/productionDrawingNewFolderData" tags:"施工图" method:"post" summary:"新建文件夹"`
commonApi.Author
ProjectId int64 `p:"projectId" v:"required#项目ID不能为空"`
Pid string `p:"pid" dc:"父级文件夹(如果需要在某个文件夹下导入,那么需要有此参数)" `
//FileType string `p:"fileType" dc:"1上传压缩文件夹 2上传文件 3新建文件夹" v:"between:1,3#范围值为1~3"`
FilePath *comModel.UpFile `p:"filePath" dc:"fileType为1上传压缩文件夹 2文件" v:"required-if:fileType,1#需要上传压缩文件夹"`
FileName string `p:"fileName" dc:"fileType为3填写文件夹名" v:"required-if:fileType,3#需要填写文件夹名称"`
}
// ProductionDrawingNewFolderDataRes 新建文件夹
type ProductionDrawingNewFolderDataRes struct {
commonApi.EmptyRes
}
// ProductionDrawingDataUniFileDownloadReq 单文件下载
type ProductionDrawingDataUniFileDownloadReq struct {
g.Meta `path:"/productionDrawingDataUniFileDownload" tags:"施工图" method:"get" summary:"单文件下载"`
RelativePath string `p:"relativePath" dc:"相对路径" v:"required#相对路径不能为空"`
Type string `p:"type" dc:"1文件下载 2文件夹下载" v:"required#相对路径不能为空"`
TableName string `p:"tableName" dc:"1竣工 2施工 3可研" v:"between:1,3#取值范围为1~3"`
TableId int64 `p:"tableId" dc:"对应TableName的主键ID" v:"required#tableId不能为空"`
ProjectId int64 `p:"projectId" dc:"项目ID" v:"required#projectId不能为空"`
commonApi.Author
}
// ProductionDrawingDataUniFileDownloadRes 单文件下载
type ProductionDrawingDataUniFileDownloadRes struct {
commonApi.EmptyRes
Path string `p:"path" dc:"文件夹压缩包下载路径"`
}
// ProductionDrawingTreeStructureReq 树形结构
type ProductionDrawingTreeStructureReq struct {
g.Meta `path:"/productionDrawingTreeStructure" tags:"施工图" method:"get" summary:"树形结构"`
ProjectId string `p:"projectId" v:"projectId@integer#项目id需为整数"` //项目id
Pid string `p:"pid"` //父级0代表顶级
//Name string `p:"name"` //模板名称
//Suffix string `p:"suffix"` //后缀
commonApi.Author
}
// ProductionDrawingTreeStructureRes 树形结构
type ProductionDrawingTreeStructureRes struct {
g.Meta `mime:"application/json"`
List []*model.DocumentProductionDrawingListRes `json:"list"`
}
// ProductionDrawingSelectByPidReq 获取pid
type ProductionDrawingSelectByPidReq struct {
g.Meta `path:"/productionDrawingSelectByPid" tags:"施工图" method:"get" summary:"获取pid"`
ProjectId string `p:"projectId" v:"projectId@integer#项目id需为整数"`
PathName string `p:"pathName" dc:"路径地址(例子:/xxxx/xxxx" v:"required#路径地址不能为空"`
commonApi.Author
}
// ProductionDrawingSelectByPidRes 获取pid
type ProductionDrawingSelectByPidRes struct {
g.Meta `mime:"application/json"`
Pid string `p:"pid" dc:"pid"`
}
// ProductionDrawingDataRecyclingStationReq 回收站
type ProductionDrawingDataRecyclingStationReq struct {
g.Meta `path:"/productionDrawingDataRecyclingStation" tags:"施工图" method:"put" summary:"回收站恢复及删除(删除已被注释)"`
commonApi.Author
Ids []int64 `p:"ids" v:"required#主键ID不能为空"`
//Type string `p:"type" dc:"1恢复 2删除" v:"between:1,1#范围值为1"`
Type string `p:"type" dc:"1恢复" `
}
// ProductionDrawingDataRecyclingStationRes 回收站
type ProductionDrawingDataRecyclingStationRes struct {
commonApi.EmptyRes
}
// ProductionDrawingRecycleBinListReq 不分页请求参数
type ProductionDrawingRecycleBinListReq struct {
g.Meta `path:"/productionDrawingRecycleBin" tags:"施工图" method:"get" summary:"回收站数据加载"`
ProjectId int64 `p:"projectId" v:"required#项目ID不能为空"`
Type string `p:"type" dc:"1未删除的全部 2删除的全部 3全部删除+未删除)" v:"between:1,3#范围值为1~3"`
commonApi.Author
}
// ProductionDrawingRecycleBinListRes 不分页请求参数
type ProductionDrawingRecycleBinListRes struct {
g.Meta `mime:"application/json"`
List []*model.DocumentProductionDrawingInfoRes `json:"list"`
}

View File

@ -0,0 +1,193 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2024-03-25 16:43:56
// 生成路径: api/v1/system/document_quality_meeting.go
// 生成人gfast
// desc:质量会议相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
comModel "github.com/tiger1103/gfast/v3/internal/app/common/model"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// DocumentQualityMeetingSearchReq 分页请求参数
type DocumentQualityMeetingSearchReq struct {
g.Meta `path:"/list" tags:"质量会议" method:"get" summary:"质量会议列表"`
Id string `p:"id"` //
IdStr string `p:"idStr"` // 模板id
Pid string `p:"pid"` // 父级0代表顶级
Name string `p:"name"` // 模板名称
FilenPath string `p:"filenPath"` // 模板文件名
Type string `p:"type"` // 类型1文件-2文件夹
Suffix string `p:"suffix"` // 后缀
CreateBy string `p:"createBy"` // 创建人
UpdateBy string `p:"updateBy"` // 更新人
CreatedAt string `p:"createdAt" v:"createdAt@datetime#创建时间需为YYYY-MM-DD hh:mm:ss格式"` // 创建时间
ProjectId string `p:"projectId" v:"projectId@integer#项目id需为整数"` // 项目id
commonApi.PageReq
commonApi.Author
}
// DocumentQualityMeetingSearchRes 列表返回结果
type DocumentQualityMeetingSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.DocumentQualityMeetingListRes `json:"list"`
}
// DocumentQualityMeetingAddReq 添加操作请求参数
type DocumentQualityMeetingAddReq struct {
g.Meta `path:"/add" tags:"质量会议" method:"post" summary:"质量会议添加"`
commonApi.Author
ProjectId int64 `p:"projectId" v:"required#项目ID不能为空"`
Pid string `p:"pid" dc:"父级文件夹(如果需要在某个文件夹下导入,那么需要有此参数)" `
FileType string `p:"fileType" dc:"1上传压缩文件夹 2上传文件" v:"between:1,2#范围值为1~2"`
FilePath *comModel.UpFile `p:"filePath" dc:"fileType为1上传压缩文件夹 2文件" v:"required-if:fileType,1#需要上传压缩文件夹"`
// FileName string `p:"fileName" dc:"fileType为3填写文件夹名" v:"required-if:fileType,3#需要填写文件夹名称"`
}
// DocumentQualityMeetingAddRes 添加操作返回结果
type DocumentQualityMeetingAddRes struct {
commonApi.EmptyRes
}
// DocumentQualityMeetingEditReq 修改操作请求参数
type DocumentQualityMeetingEditReq struct {
g.Meta `path:"/edit" tags:"质量会议" method:"put" summary:"质量会议修改"`
commonApi.Author
Id int64 `p:"id" v:"required#主键ID不能为空"`
IdStr string `p:"idStr" `
Pid string `p:"pid" `
Name string `p:"name" v:"required#模板名称不能为空"`
FilenPath string `p:"filenPath" `
Type string `p:"type" `
Suffix string `p:"suffix" `
CreateBy string `p:"createBy" `
UpdateBy string `p:"updateBy" `
ProjectId int64 `p:"projectId" `
}
// DocumentQualityMeetingEditRes 修改操作返回结果
type DocumentQualityMeetingEditRes struct {
commonApi.EmptyRes
}
// DocumentQualityMeetingGetReq 获取一条数据请求
type DocumentQualityMeetingGetReq struct {
g.Meta `path:"/get" tags:"质量会议" method:"get" summary:"获取质量会议信息"`
commonApi.Author
Id int64 `p:"id" v:"required#主键必须"` // 通过主键获取
}
// DocumentQualityMeetingGetRes 获取一条数据结果
type DocumentQualityMeetingGetRes struct {
g.Meta `mime:"application/json"`
List []*model.SelectTabNameAndTabIdByDateRes `p:"list"`
}
// DocumentQualityMeetingDeleteReq 删除数据请求
type DocumentQualityMeetingDeleteReq struct {
g.Meta `path:"/delete" tags:"质量会议" method:"delete" summary:"删除质量会议"`
commonApi.Author
Ids []int64 `p:"ids" v:"required#主键必须"` // 通过主键删除
}
// DocumentQualityMeetingDeleteRes 删除数据返回
type DocumentQualityMeetingDeleteRes struct {
commonApi.EmptyRes
}
// DocumentQualityNewFolderDataReq 新建文件夹
type DocumentQualityNewFolderDataReq struct {
g.Meta `path:"/qualityNewFolderData" tags:"质量会议" method:"post" summary:"新建文件夹"`
commonApi.Author
ProjectId int64 `p:"projectId" v:"required#项目ID不能为空"`
Pid string `p:"pid" dc:"父级文件夹(如果需要在某个文件夹下导入,那么需要有此参数)" `
// FileType string `p:"fileType" dc:"1上传压缩文件夹 2上传文件 3新建文件夹" v:"between:1,3#范围值为1~3"`
FilePath *comModel.UpFile `p:"filePath" dc:"fileType为1上传压缩文件夹 2文件" v:"required-if:fileType,1#需要上传压缩文件夹"`
FileName string `p:"fileName" dc:"fileType为3填写文件夹名" v:"required-if:fileType,3#需要填写文件夹名称"`
}
// DocumentQualityNewFolderDataRes 新建文件夹
type DocumentQualityNewFolderDataRes struct {
commonApi.EmptyRes
}
// DocumentQualityDataUniFileDownloadReq 单文件下载
type DocumentQualityDataUniFileDownloadReq struct {
g.Meta `path:"/qualityDataUniFileDownload" tags:"质量会议" method:"get" summary:"单文件下载"`
RelativePath string `p:"relativePath" dc:"相对路径" v:"required#相对路径不能为空"`
Type string `p:"type" dc:"1文件下载 2文件夹下载" v:"required#相对路径不能为空"`
commonApi.Author
}
// DocumentQualityDataUniFileDownloadRes 单文件下载
type DocumentQualityDataUniFileDownloadRes struct {
commonApi.EmptyRes
Path string `p:"path" dc:"文件夹压缩包下载路径"`
}
// DocumentQualityTreeStructureReq 树形结构
type DocumentQualityTreeStructureReq struct {
g.Meta `path:"/qualityTreeStructure" tags:"质量会议" method:"get" summary:"树形结构"`
ProjectId string `p:"projectId" v:"projectId@integer#项目id需为整数"` // 项目id
Pid string `p:"pid"` // 父级0代表顶级
// Name string `p:"name"` //模板名称
// Suffix string `p:"suffix"` //后缀
commonApi.Author
}
// DocumentQualityTreeStructureRes 树形结构
type DocumentQualityTreeStructureRes struct {
g.Meta `mime:"application/json"`
List []*model.DocumentQualityMeetingListRes `json:"list"`
}
// DocumentQualitySelectByPidReq 获取pid
type DocumentQualitySelectByPidReq struct {
g.Meta `path:"/qualitySelectByPid" tags:"质量会议" method:"get" summary:"获取pid"`
ProjectId string `p:"projectId" v:"projectId@integer#项目id需为整数"`
PathName string `p:"pathName" dc:"路径地址(例子:/xxxx/xxxx" v:"required#路径地址不能为空"`
commonApi.Author
}
// DocumentQualitySelectByPidRes 获取pid
type DocumentQualitySelectByPidRes struct {
g.Meta `mime:"application/json"`
Pid string `p:"pid" dc:"pid"`
}
// DocumentQualityDataRecyclingStationReq 回收站
type DocumentQualityDataRecyclingStationReq struct {
g.Meta `path:"/qualityDataRecyclingStation" tags:"质量会议" method:"put" summary:"回收站恢复及删除(删除已被注释)"`
commonApi.Author
Ids []int64 `p:"ids" v:"required#主键ID不能为空"`
// Type string `p:"type" dc:"1恢复 2删除" v:"between:1,1#范围值为1"`
Type string `p:"type" dc:"1恢复" `
}
// DocumentQualityDataRecyclingStationRes 回收站
type DocumentQualityDataRecyclingStationRes struct {
commonApi.EmptyRes
}
// DocumentQualityRecycleBinListReq 不分页请求参数
type DocumentQualityRecycleBinListReq struct {
g.Meta `path:"/qualityRecycleBinList" tags:"质量会议" method:"get" summary:"回收站数据加载"`
ProjectId int64 `p:"projectId" v:"required#项目ID不能为空"`
Type string `p:"type" dc:"1未删除的全部 2删除的全部 3全部删除+未删除)" v:"between:1,3#范围值为1~3"`
commonApi.Author
}
// DocumentQualityRecycleBinListRes 不分页请求参数
type DocumentQualityRecycleBinListRes struct {
g.Meta `mime:"application/json"`
List []*model.DocumentQualityMeetingInfoRes `json:"list"`
}

View File

@ -0,0 +1,195 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2024-03-15 10:24:21
// 生成路径: api/v1/system/document_report.go
// 生成人gfast
// desc:科研及专题报告相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
comModel "github.com/tiger1103/gfast/v3/internal/app/common/model"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// DocumentReportSearchReq 分页请求参数
type DocumentReportSearchReq struct {
g.Meta `path:"/list" tags:"科研及专题报告" method:"get" summary:"科研及专题报告列表"`
Id string `p:"id"` //
IdStr string `p:"idStr"` //模板id
Pid string `p:"pid"` //父级0代表顶级
Name string `p:"name"` //模板名称
FilenPath string `p:"filenPath"` //模板文件名
Type string `p:"type"` //类型1文件-2文件夹
Suffix string `p:"suffix"` //后缀
CreateBy string `p:"createBy"` //创建人
UpdateBy string `p:"updateBy"` //更新人
CreatedAt string `p:"createdAt" v:"createdAt@datetime#创建时间需为YYYY-MM-DD hh:mm:ss格式"` //创建时间
ProjectId string `p:"projectId" v:"projectId@integer#项目id需为整数"` //项目id
commonApi.PageReq
commonApi.Author
}
// DocumentReportSearchRes 列表返回结果
type DocumentReportSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.DocumentReportListRes `json:"list"`
}
// DocumentReportAddReq 添加操作请求参数
type DocumentReportAddReq struct {
g.Meta `path:"/add" tags:"科研及专题报告" method:"post" summary:"科研及专题报告添加"`
commonApi.Author
ProjectId int64 `p:"projectId" v:"required#项目ID不能为空"`
Pid string `p:"pid" dc:"父级文件夹(如果需要在某个文件夹下导入,那么需要有此参数)" `
FileType string `p:"fileType" dc:"1上传压缩文件夹 2上传文件" v:"between:1,2#范围值为1~2"`
FilePath *comModel.UpFile `p:"filePath" dc:"fileType为1上传压缩文件夹 2文件" v:"required-if:fileType,1#需要上传压缩文件夹"`
//FileName string `p:"fileName" dc:"fileType为3填写文件夹名" v:"required-if:fileType,3#需要填写文件夹名称"`
}
// DocumentReportAddRes 添加操作返回结果
type DocumentReportAddRes struct {
commonApi.EmptyRes
}
// DocumentReportEditReq 修改操作请求参数
type DocumentReportEditReq struct {
g.Meta `path:"/edit" tags:"科研及专题报告" method:"put" summary:"科研及专题报告修改"`
commonApi.Author
Id int64 `p:"id" v:"required#主键ID不能为空"`
IdStr string `p:"idStr" `
Pid string `p:"pid" `
Name string `p:"name" v:"required#模板名称不能为空"`
FilenPath string `p:"filenPath" `
Type string `p:"type" `
Suffix string `p:"suffix" `
CreateBy string `p:"createBy" `
UpdateBy string `p:"updateBy" `
ProjectId int64 `p:"projectId" `
}
// DocumentReportEditRes 修改操作返回结果
type DocumentReportEditRes struct {
commonApi.EmptyRes
}
// DocumentReportGetReq 获取一条数据请求
type DocumentReportGetReq struct {
g.Meta `path:"/get" tags:"科研及专题报告" method:"get" summary:"获取科研及专题报告信息"`
commonApi.Author
Id int64 `p:"id" v:"required#主键必须"` //通过主键获取
}
// DocumentReportGetRes 获取一条数据结果
type DocumentReportGetRes struct {
g.Meta `mime:"application/json"`
*model.DocumentReportInfoRes
}
// DocumentReportDeleteReq 删除数据请求
type DocumentReportDeleteReq struct {
g.Meta `path:"/delete" tags:"科研及专题报告" method:"delete" summary:"删除科研及专题报告"`
commonApi.Author
Ids []int64 `p:"ids" v:"required#主键必须"` //通过主键删除
}
// DocumentReportDeleteRes 删除数据返回
type DocumentReportDeleteRes struct {
commonApi.EmptyRes
}
// ReportNewFolderDataReq 新建文件夹
type ReportNewFolderDataReq struct {
g.Meta `path:"/reportNewFolderData" tags:"科研及专题报告" method:"post" summary:"新建文件夹"`
commonApi.Author
ProjectId int64 `p:"projectId" v:"required#项目ID不能为空"`
Pid string `p:"pid" dc:"父级文件夹(如果需要在某个文件夹下导入,那么需要有此参数)" `
//FileType string `p:"fileType" dc:"1上传压缩文件夹 2上传文件 3新建文件夹" v:"between:1,3#范围值为1~3"`
FilePath *comModel.UpFile `p:"filePath" dc:"fileType为1上传压缩文件夹 2文件" v:"required-if:fileType,1#需要上传压缩文件夹"`
FileName string `p:"fileName" dc:"fileType为3填写文件夹名" v:"required-if:fileType,3#需要填写文件夹名称"`
}
// ReportNewFolderDataRes 新建文件夹
type ReportNewFolderDataRes struct {
commonApi.EmptyRes
}
// ReportDataUniFileDownloadReq 单文件下载
type ReportDataUniFileDownloadReq struct {
g.Meta `path:"/reportDataUniFileDownload" tags:"科研及专题报告" method:"get" summary:"单文件下载"`
RelativePath string `p:"relativePath" dc:"相对路径" v:"required#相对路径不能为空"`
Type string `p:"type" dc:"1文件下载 2文件夹下载" v:"required#相对路径不能为空"`
TableName string `p:"tableName" dc:"1竣工 2施工 3可研" v:"between:1,3#取值范围为1~3"`
TableId int64 `p:"tableId" dc:"对应TableName的主键ID" v:"required#tableId不能为空"`
ProjectId int64 `p:"projectId" dc:"项目ID" v:"required#projectId不能为空"`
commonApi.Author
}
// ReportDataUniFileDownloadRes 单文件下载
type ReportDataUniFileDownloadRes struct {
commonApi.EmptyRes
Path string `p:"path" dc:"文件夹压缩包下载路径"`
}
// ReportTreeStructureReq 树形结构
type ReportTreeStructureReq struct {
g.Meta `path:"/reportTreeStructure" tags:"科研及专题报告" method:"get" summary:"树形结构"`
ProjectId string `p:"projectId" v:"projectId@integer#项目id需为整数"` //项目id
Pid string `p:"pid"` //父级0代表顶级
//Name string `p:"name"` //模板名称
//Suffix string `p:"suffix"` //后缀
commonApi.Author
}
// ReportTreeStructureRes 树形结构
type ReportTreeStructureRes struct {
g.Meta `mime:"application/json"`
List []*model.DocumentReportListRes `json:"list"`
}
// ReportSelectByPidReq 获取pid
type ReportSelectByPidReq struct {
g.Meta `path:"/reportSelectByPid" tags:"科研及专题报告" method:"get" summary:"获取pid"`
ProjectId string `p:"projectId" v:"projectId@integer#项目id需为整数"`
PathName string `p:"pathName" dc:"路径地址(例子:/xxxx/xxxx" v:"required#路径地址不能为空"`
commonApi.Author
}
// ReportSelectByPidRes 获取pid
type ReportSelectByPidRes struct {
g.Meta `mime:"application/json"`
Pid string `p:"pid" dc:"pid"`
}
// ReportDataRecyclingStationReq 回收站
type ReportDataRecyclingStationReq struct {
g.Meta `path:"/reportDataRecyclingStation" tags:"科研及专题报告" method:"put" summary:"回收站恢复及删除(删除已被注释)"`
commonApi.Author
Ids []int64 `p:"ids" v:"required#主键ID不能为空"`
//Type string `p:"type" dc:"1恢复 2删除" v:"between:1,1#范围值为1"`
Type string `p:"type" dc:"1恢复" `
}
// ReportDataRecyclingStationRes 回收站
type ReportDataRecyclingStationRes struct {
commonApi.EmptyRes
}
// ReportRecycleBinListReq 不分页请求参数
type ReportRecycleBinListReq struct {
g.Meta `path:"/reportRecycleBinList" tags:"科研及专题报告" method:"get" summary:"回收站数据加载"`
ProjectId int64 `p:"projectId" v:"required#项目ID不能为空"`
Type string `p:"type" dc:"1未删除的全部 2删除的全部 3全部删除+未删除)" v:"between:1,3#范围值为1~3"`
commonApi.Author
}
// ReportRecycleBinListRes 不分页请求参数
type ReportRecycleBinListRes struct {
g.Meta `mime:"application/json"`
List []*model.DocumentReportInfoRes `json:"list"`
}

View File

@ -0,0 +1,154 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2024-04-09 11:40:20
// 生成路径: api/v1/system/document_safety_meeting.go
// 生成人gfast
// desc:安全会议相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
comModel "github.com/tiger1103/gfast/v3/internal/app/common/model"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// DocumentSafetyMeetingSearchReq 分页请求参数
type DocumentSafetyMeetingSearchReq struct {
g.Meta `path:"/list" tags:"安全会议" method:"get" summary:"安全会议列表"`
Id string `p:"id"` //
IdStr string `p:"idStr"` // 模板id
Pid string `p:"pid"` // 父级0代表顶级
Name string `p:"name"` // 模板名称
FilenPath string `p:"filenPath"` // 模板文件名
Type string `p:"type"` // 类型1文件-2文件夹
Suffix string `p:"suffix"` // 后缀
CreateBy string `p:"createBy"` // 创建人
UpdateBy string `p:"updateBy"` // 更新人
CreatedAt string `p:"createdAt" v:"createdAt@datetime#创建时间需为YYYY-MM-DD hh:mm:ss格式"` // 创建时间
ProjectId string `p:"projectId" v:"projectId@integer#项目id需为整数"` // 项目id
commonApi.PageReq
commonApi.Author
}
// DocumentSafetyMeetingSearchRes 列表返回结果
type DocumentSafetyMeetingSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.DocumentSafetyMeetingListRes `json:"list"`
}
// DocumentSafetyMeetingAddReq 添加操作请求参数
type DocumentSafetyMeetingAddReq struct {
g.Meta `path:"/add" tags:"安全会议" method:"post" summary:"安全会议添加"`
commonApi.Author
ProjectId int64 `p:"projectId" v:"required#项目ID不能为空"`
Pid string `p:"pid" dc:"父级文件夹(如果需要在某个文件夹下导入,那么需要有此参数)" `
FileType string `p:"fileType" dc:"1上传压缩文件夹 2上传文件" v:"between:1,2#范围值为1~2"`
FilePath *comModel.UpFile `p:"filePath" dc:"fileType为1上传压缩文件夹 2文件" v:"required-if:fileType,1#需要上传压缩文件夹"`
}
// DocumentSafetyMeetingAddRes 添加操作返回结果
type DocumentSafetyMeetingAddRes struct {
commonApi.EmptyRes
}
// DocumentSafetyMeetingEditReq 修改操作请求参数
type DocumentSafetyMeetingEditReq struct {
g.Meta `path:"/edit" tags:"安全会议" method:"put" summary:"安全会议修改"`
commonApi.Author
Id int64 `p:"id" v:"required#主键ID不能为空"`
IdStr string `p:"idStr" `
Pid string `p:"pid" `
Name string `p:"name" v:"required#模板名称不能为空"`
FilenPath string `p:"filenPath" `
Type string `p:"type" `
Suffix string `p:"suffix" `
CreateBy string `p:"createBy" `
UpdateBy string `p:"updateBy" `
ProjectId int64 `p:"projectId" `
}
// DocumentSafetyMeetingEditRes 修改操作返回结果
type DocumentSafetyMeetingEditRes struct {
commonApi.EmptyRes
}
// DocumentSafetyMeetingGetReq 获取一条数据请求
type DocumentSafetyMeetingGetReq struct {
g.Meta `path:"/get" tags:"安全会议" method:"get" summary:"获取安全会议信息"`
commonApi.Author
Id int64 `p:"id" v:"required#主键必须"` // 通过主键获取
}
// DocumentSafetyMeetingGetRes 获取一条数据结果
type DocumentSafetyMeetingGetRes struct {
g.Meta `mime:"application/json"`
*model.DocumentSafetyMeetingInfoRes
}
// DocumentSafetyMeetingDeleteReq 删除数据请求
type DocumentSafetyMeetingDeleteReq struct {
g.Meta `path:"/delete" tags:"安全会议" method:"delete" summary:"删除安全会议"`
commonApi.Author
Ids []int64 `p:"ids" v:"required#主键必须"` // 通过主键删除
}
// DocumentSafetyMeetingDeleteRes 删除数据返回
type DocumentSafetyMeetingDeleteRes struct {
commonApi.EmptyRes
}
// DocumentsafetyTreeStructureReq 树形结构
type DocumentSafetyTreeStructureReq struct {
g.Meta `path:"/safetyTreeStructure" tags:"安全会议" method:"get" summary:"树形结构"`
ProjectId string `p:"projectId" v:"projectId@integer#项目id需为整数"` // 项目id
Pid string `p:"pid"` // 父级0代表顶级
// Name string `p:"name"` //模板名称
// Suffix string `p:"suffix"` //后缀
commonApi.Author
}
// 新建文件夹
type DocumentSafetyNewFolderDataReq struct {
g.Meta `path:"/safetyNewFolderData" tags:"安全会议" method:"post" summary:"新建文件夹"`
commonApi.Author
ProjectId int64 `p:"projectId" v:"required#项目ID不能为空"`
Pid string `p:"pid" dc:"父级文件夹(如果需要在某个文件夹下导入,那么需要有此参数)" `
// FileType string `p:"fileType" dc:"1上传压缩文件夹 2上传文件 3新建文件夹" v:"between:1,3#范围值为1~3"`
FilePath *comModel.UpFile `p:"filePath" dc:"fileType为1上传压缩文件夹 2文件" v:"required-if:fileType,1#需要上传压缩文件夹"`
FileName string `p:"fileName" dc:"fileType为3填写文件夹名" v:"required-if:fileType,3#需要填写文件夹名称"`
}
// DocumentsafetySelectByPidReq 获取pid
type DocumentSafetySelectByPidReq struct {
g.Meta `path:"/safetySelectByPid" tags:"安全会议" method:"get" summary:"获取pid"`
ProjectId string `p:"projectId" v:"projectId@integer#项目id需为整数"`
PathName string `p:"pathName" dc:"路径地址(例子:/xxxx/xxxx" v:"required#路径地址不能为空"`
commonApi.Author
}
type DocumentSafetyDataRecyclingStationReq struct {
g.Meta `path:"/safetyDataRecyclingStation" tags:"安全会议" method:"put" summary:"回收站恢复及删除(删除已被注释)"`
commonApi.Author
Ids []int64 `p:"ids" v:"required#主键ID不能为空"`
// Type string `p:"type" dc:"1恢复 2删除" v:"between:1,1#范围值为1"`
Type string `p:"type" dc:"1恢复" `
}
type DocumentSafetyRecycleBinListReq struct {
g.Meta `path:"/safetyRecycleBinList" tags:"安全会议" method:"get" summary:"回收站数据加载"`
ProjectId int64 `p:"projectId" v:"required#项目ID不能为空"`
Type string `p:"type" dc:"1未删除的全部 2删除的全部 3全部删除+未删除)" v:"between:1,3#范围值为1~3"`
commonApi.Author
}
type DocumentSafetyDataUniFileDownloadReq struct {
g.Meta `path:"/safetyDataUniFileDownload" tags:"安全会议" method:"get" summary:"单文件下载"`
RelativePath string `p:"relativePath" dc:"相对路径" v:"required#相对路径不能为空"`
Type string `p:"type" dc:"1文件下载 2文件夹下载" v:"required#相对路径不能为空"`
commonApi.Author
}

410
api/v1/system/homePage.go Normal file
View File

@ -0,0 +1,410 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2023-08-02 17:11:39
// 生成路径: api/v1/system/bus_quality.go
// 生成人gfast
// desc:质量文档管理相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
controllerModel "github.com/tiger1103/gfast/v3/internal/app/system/model"
)
type Paging struct {
IsPaging string `json:"isPaging" dc:"是否开启分页功能 YES开启 NO不开启空字符串也不开启分页默认"` //是否开启分页功能 YES开启 NO不开启空字符串也不开启分页默认
}
// ParticipantNumberReq 参与人员数量
type ParticipantNumberReq struct {
g.Meta `path:"/countProject" tags:"GIS云图" method:"get" summary:"参与人员数量"`
Paging
commonApi.PageReq
commonApi.Author
}
// ParticipantNumberRes 参与人员数量
type ParticipantNumberRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*ParticipantNumberEntity `json:"list"`
}
type ParticipantNumberEntity struct {
ProjectId int64 `json:"projectId" dc:"项目id"`
ProjectName string `json:"projectName" dc:"项目名称"`
ShortName string `json:"shortName" dc:"项目简称"`
Number int `json:"number" dc:"人员数量"`
WorkList []*TypeOfWork `json:"workList"`
}
type ParticipantNumberTwoEntity struct {
ProjectId int64 `json:"projectId" dc:"项目id"`
ProjectName string `json:"projectName" dc:"项目名称"`
ShortName string `json:"shortName" dc:"项目简称"`
WorkName string `json:"workName" dc:"工种名称"`
WorkNumber int `json:"workNumber" dc:"工种数量"`
}
type TypeOfWork struct {
WorkName string `json:"workName" dc:"工种名称"`
WorkNumber int `json:"workNumber" dc:"工种数量"`
}
// MachineNumberReq 机械数量
type MachineNumberReq struct {
g.Meta `path:"/machineProject" tags:"GIS云图" method:"get" summary:"机械数量"`
Paging
commonApi.PageReq
commonApi.Author
}
// MachineNumberRes 机械数量
type MachineNumberRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*MachineNumberEntity `json:"list"`
}
type MachineNumberEntity struct {
ProjectId int64 `json:"projectId" dc:"项目id"`
ProjectName string `json:"projectName" dc:"项目名称"`
StatusList []*AccountStatus `json:"statusList"`
}
type AccountStatus struct {
StatusName string `json:"statusName" dc:"机械名称"`
StatusNumber int `json:"statusNumber" dc:"机械数量"`
}
// MaterialsReq 材料数量
type MaterialsReq struct {
g.Meta `path:"/materials" tags:"GIS云图" method:"get" summary:"材料数量"`
Paging
commonApi.PageReq
commonApi.Author
}
// MaterialsRes 材料数量
type MaterialsRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*MaterialsNumberEntity `json:"list"`
}
type MaterialsNumberEntity struct {
ProjectId int64 `json:"projectId" dc:"项目id"`
ProjectName string `json:"projectName" dc:"项目名称"`
MaterialsList []*Materials `json:"materialsList"`
}
type Materials struct {
StatusName string `json:"statusName" dc:"材料名称"`
Predict int `json:"predict" dc:"预计使用数量"`
Practical int `json:"practical" dc:"实际使用数量"`
}
// ProgressOfWorksReq 合同容量
type ProgressOfWorksReq struct {
g.Meta `path:"/progressOfWorks" tags:"GIS云图" method:"get" summary:"合同容量"`
Paging
commonApi.PageReq
commonApi.Author
}
// ProgressOfWorksRes 合同容量
type ProgressOfWorksRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*ProgressOfWorksNumberEntity `json:"list"`
}
type ProgressOfWorksNumberEntity struct {
ProjectId int64 `json:"projectId" dc:"项目id"`
ProjectName string `json:"projectName" dc:"项目名称"`
Plan string `json:"plan" dc:"预计容量"`
Actual string `json:"actual" dc:"实际容量"`
}
// ProjectCapacityReq 项目容量
type ProjectCapacityReq struct {
g.Meta `path:"/projectCapacity" tags:"GIS云图" method:"get" summary:"项目容量"`
commonApi.Author
}
// ProjectCapacityRes 项目容量
type ProjectCapacityRes struct {
g.Meta `mime:"application/json"`
SumPlan string `json:"sumPlan" dc:"总预计容量"`
SumActual string `json:"sumActual" dc:"总实际容量"`
List []*ProjectCapacityTwoRes `json:"list" dc:"项目列表数据"`
}
// ProjectCapacityTwoReq 项目容量
type ProjectCapacityTwoReq struct {
g.Meta `path:"/projectCapacityTwo" tags:"GIS云图" method:"get" summary:"项目容量Two"`
commonApi.Author
}
// ProjectCapacityTwoRes 项目容量
type ProjectCapacityTwoRes struct {
g.Meta `mime:"application/json"`
SumPlan string `json:"sumPlan" dc:"总预计容量"`
SumActual string `json:"sumActual" dc:"总实际容量"`
List []*ProjectCapacityTwoTwoRes `json:"list" dc:"项目列表数据"`
}
type ProjectCapacityTwoTwoRes struct {
ProjectName string `json:"projectName" dc:"项目名称"`
ShortName string `json:"shortName" dc:"项目简称"`
Plan string `json:"plan" dc:"预计容量"`
Actual string `json:"actual" dc:"实际容量"`
}
// MechanicalConditionReq 机械情况
type MechanicalConditionReq struct {
g.Meta `path:"/mechanicalCondition" tags:"GIS云图" method:"get" summary:"机械情况"`
Paging
commonApi.PageReq
commonApi.Author
ProjectId string `p:"projectId" dc:"项目id" `
}
// MechanicalConditionRes 机械情况
type MechanicalConditionRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*MechanicalConditionListRes `json:"list"`
}
type MechanicalConditionListRes struct {
StatusName string `json:"statusName" dc:"机械名称"`
StatusNumber int `json:"statusNumber" dc:"机械数量"`
}
// OneProjectReq 项目进度
type OneProjectReq struct {
g.Meta `path:"/mechanicalCondition" tags:"GIS云图" method:"get" summary:"项目进度"`
commonApi.Author
ProjectId string `p:"projectId" dc:"项目id" `
}
// OneProjectRes 项目进度
type OneProjectRes struct {
g.Meta `mime:"application/json"`
PlanPercentage string `json:"planPercentage" dc:"预计(百分比)"`
ActualPercentage string `json:"actualPercentage" dc:"实际(百分比)"`
}
// SafetyReq 安全生产天数
type SafetyReq struct {
g.Meta `path:"/safety" tags:"GIS云图" method:"get" summary:"安全生产天数"`
commonApi.Author
ProjectId string `p:"projectId" dc:"项目id" `
}
// SafetyRes 安全生产天数
type SafetyRes struct {
g.Meta `mime:"application/json"`
Day int `json:"day" dc:"天数"`
}
// QualityReq 质量监控统计
type QualityReq struct {
g.Meta `path:"/quality" tags:"GIS云图" method:"get" summary:"质量监控统计"`
ProjectId string `json:"projectId" v:"required#项目ID必须"`
commonApi.Author
}
// QualityRes 质量监控统计
type QualityRes struct {
g.Meta `mime:"application/json"`
List []*QualityListRes `json:"list"`
}
type QualityListRes struct {
QualityType string `json:"qualityType" dc:"类型"`
QualityName string `json:"qualityName" dc:"名称"`
QualityNumber int `json:"qualityNumber" dc:"数量"`
Proportion string `json:"proportion" dc:"百分比(%"`
}
// QualityDataListReq 质量监控统计列表
type QualityDataListReq struct {
g.Meta `path:"/qualityDataList" tags:"GIS云图" method:"get" summary:"质量监控统计列表"`
QualityType string `json:"qualityType" v:"required#类型不能为空"`
ProjectId string `json:"projectId" v:"required#项目id不能为空"`
Paging
commonApi.PageReq
commonApi.Author
}
// QualityDataListRes 质量监控统计列表
type QualityDataListRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.BusQualityListRes `json:"list"`
}
// ConditionReq 材料情况
type ConditionReq struct {
g.Meta `path:"/condition" tags:"GIS云图" method:"get" summary:"材料情况"`
ProjectId string `json:"projectId" v:"required#项目ID必须"`
Paging
commonApi.PageReq
commonApi.Author
}
// ConditionRes 材料情况
type ConditionRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*ConditionListRes `json:"list"`
}
type ConditionListRes struct {
Id int64 `json:"id" dc:"主键ID"`
Name string `json:"name" dc:"名称"`
Number int `json:"number" dc:"数量"`
}
//// ConditionReq 材料情况
//type ConditionReq struct {
// g.Meta `path:"/condition" tags:"GIS云图" method:"get" summary:"材料情况"`
// ProjectId string `json:"projectId" v:"required#项目ID必须"`
// Paging
// commonApi.PageReq
// commonApi.Author
//}
//
//// ConditionRes 材料情况
//type ConditionRes struct {
// g.Meta `mime:"application/json"`
// commonApi.ListRes
// List []*DateListRes `json:"list"`
//}
//type DateListRes struct {
// DateStr string `json:"dateStr" dc:"时间"`
// List []*ConditionListRes `json:"list"`
//}
//
//type ConditionListRes struct {
// Id int64 `json:"id" dc:"主键ID"`
// Name string `json:"name" dc:"名称"`
// Number int `json:"number" dc:"数量"`
//}
type GisQualityManagementReq struct {
g.Meta `path:"/gisQualityManagement" tags:"GIS云图" method:"get" summary:"质量管理统计"`
ProjectId string `json:"projectId" v:"required#项目id不能为空"`
commonApi.Author
}
type GisQualityManagementRes struct {
g.Meta `mime:"application/json"`
InspectionRecord int `json:"inspectionRecord" dc:"巡检记录"`
ReorganizeTheSituation float64 `json:"reorganizeTheSituation" dc:"整改情况"`
}
type GisQualityManagementListReq struct {
g.Meta `path:"/gisQualityManagementList" tags:"GIS云图" method:"get" summary:"质量管理列表"`
ProjectId string `json:"projectId" v:"required#项目id不能为空"`
Type string `json:"type" dc:"1整改情况 2巡检记录" v:"between:1,2#取值范围为1~2"`
commonApi.Author
commonApi.PageReq
}
type GisQualityManagementListRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*GisQualityManagementListEntityRes `json:"list"`
}
type GisQualityManagementListEntityRes struct {
Id string `json:"id" dc:"主键ID"`
DictLabel string `json:"dictLabel" dc:"工单类型"`
InspectionHeadline string `json:"inspectionHeadline" dc:"主题"`
Status string `json:"status" dc:"工单状态"`
VerificationType string `json:"verificationType" dc:"验证状态1通过 2未通过"`
CreatedAt string `json:"createdAt" dc:"创建时间"`
}
// BusTourSearchAllReq 分页请求参数
type BusTourSearchAllReq struct {
g.Meta `path:"/tourSearchAllList" tags:"GIS云图" method:"get" summary:"GIS大屏展示所有ai"`
ProjectId string `p:"projectId"`
commonApi.Author
}
// BusTourSearchAllRes 列表返回结果
type BusTourSearchAllRes struct {
g.Meta `mime:"application/json"`
List []*model.BusTourListRes `json:"list"`
}
type GisSafetyManagementReq struct {
g.Meta `path:"/gisSafetyManagement" tags:"GIS云图" method:"get" summary:"安全管理统计"`
ProjectId string `json:"projectId" v:"required#项目id不能为空"`
commonApi.Author
}
type GisSafetyManagementRes struct {
g.Meta `mime:"application/json"`
TeamMeeting int `json:"teamMeeting" dc:"站班会"`
InspectionRecord int `json:"inspectionRecord" dc:"巡检记录"`
ReorganizeTheSituation float64 `json:"reorganizeTheSituation" dc:"整改情况"`
}
type GisSafetyManagementListReq struct {
g.Meta `path:"/gisSafetyManagementList" tags:"GIS云图" method:"get" summary:"安全管理列表"`
ProjectId string `json:"projectId" v:"required#项目id不能为空"`
Type string `json:"type" dc:"1站班会 2整改情况 3巡检记录" v:"between:1,3#取值范围为1~3"`
commonApi.Author
commonApi.PageReq
}
type GisSafetyManagementListRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*GisSafetyManagementListEntityRes `json:"list"`
}
type GisSafetyManagementListEntityRes struct {
Id string `json:"id" dc:"主键ID"`
StudyTypeDictLabel string `json:"studyTypeName" dc:"检查类型or班组"`
TourTypeDictLabel string `json:"tourTypeName" dc:"违章类型or站班会"`
TeamName string `json:"teamName" dc:"班组"`
InspectionResult string `json:"inspectionResult" dc:"内容"`
Status string `json:"status" dc:"工单状态"`
VerificationType string `json:"verificationType" dc:"验证状态1通过 2未通过"`
CreatedAt string `json:"createdAt" dc:"创建时间or站班时间"`
}
type LargeScreenDetailsReq struct {
g.Meta `path:"/argeScreenDetails" tags:"GIS云图" method:"get" summary:"大屏-质量管理"`
Id string `json:"id" dc:"主键ID"`
Type string `json:"type" dc:"1通知 2整改" v:"between:1,2#取值范围为1~2"`
commonApi.Author
}
type LargeScreenDetailsRes struct {
g.Meta `mime:"application/json"`
*model.LargeScreenDetailsEntityRes
}
type SafetyLargeScreenDetailsReq struct {
g.Meta `path:"/safetyLargeScreenDetails" tags:"GIS云图" method:"get" summary:"大屏-安全管理"`
Id string `json:"id" dc:"主键ID"`
Type string `json:"type" dc:"1巡检 2整改" v:"between:1,2#取值范围为1~2"`
commonApi.Author
}
type SafetyLargeScreenDetailsRes struct {
g.Meta `mime:"application/json"`
*controllerModel.BusHseManagementDetailsRes
}

View File

@ -0,0 +1,121 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2023-12-11 16:10:18
// 生成路径: api/v1/system/manage_airline.go
// 生成人gfast
// desc:航线相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/net/ghttp"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// ManageAirlineSearchReq 分页请求参数
type ManageAirlineSearchReq struct {
g.Meta `path:"/list" tags:"航线" method:"get" summary:"航线列表"`
ProjectId string `p:"projectId" dc:"項目id" v:"projectId@integer#项目id需为整数"` //项目id
MqClientId string `p:"mqClientId" dc:"关联机场"` //关联机场
AirLine string `p:"airLine"` //航线名称
CreatedAt string `p:"createdAt" v:"createdAt@datetime#创建时间需为YYYY-MM-DD hh:mm:ss格式"` //创建时间
commonApi.PageReq
commonApi.Author
}
// ManageAirlineSearchRes 列表返回结果
type ManageAirlineSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.ManageAirlineListRes `json:"list"`
}
// ManageAirlineAddReq 添加操作请求参数
type ManageAirlineAddReq struct {
g.Meta `path:"/add" tags:"航线" method:"post" summary:"航线添加"`
commonApi.Author
ProjectId int64 `p:"projectId" dc:"项目id" v:"required#项目id必须"`
AirLine string `p:"airLine" dc:"航线名称" v:"required#航线名称必须"`
StrId string `p:"strId" dc:"航线ID" v:"required#航线ID必须"`
Speed int `p:"speed" dc:"航线速度" v:"required#航线速度必须"`
Height int `p:"height" dc:"航线高度" v:"required#航线高度必须"`
Gap int `p:"gap" dc:"航线间距" v:"required#航线间距必须"`
MqClientId string `p:"mqClientId" dc:"关联机场" v:"required#mq客户端id必须"`
Remark string `p:"remark" dc:"备注"`
TakeOffSecurityHeight float64 `p:"takeOffSecurityHeight" dc:"安全起飞高度" `
GlobalTransitionalSpeed float64 `p:"globalTransitionalSpeed" dc:"飞向首航点速度"`
Air *model.AirlineEntity `p:"air" dc:"航线生成信息"`
Positions []model.PositionsEntity `p:"positions" dc:"航线生成信息"`
LngAndLatAndHeight string `p:"lngAndLatAndHeight" dc:"经度维度高度" v:"required#经度维度高度必须"`
}
// ManageAirlineAddRes 添加操作返回结果
type ManageAirlineAddRes struct {
commonApi.EmptyRes
}
// ManageAirlineEditReq 修改操作请求参数
type ManageAirlineEditReq struct {
g.Meta `path:"/edit" tags:"航线" method:"put" summary:"航线修改"`
commonApi.Author
Id int64 `p:"id" v:"required#主键ID不能为空"`
AirLine string `p:"airLine" dc:"航线名称" v:"required#航线名称必须"`
Speed int `p:"speed" dc:"航线速度" `
Height int `p:"height" dc:"航线高度" `
Gap int `p:"gap" dc:"航线间距" `
Remark string `p:"remark" dc:"备注"`
Air *model.AirlineEntity `p:"air" dc:"航线生成信息"`
TakeOffSecurityHeight float64 `p:"takeOffSecurityHeight" dc:"安全起飞高度" `
GlobalTransitionalSpeed float64 `p:"globalTransitionalSpeed" dc:"飞向首航点速度"`
Positions []model.PositionsEntity `p:"positions" dc:"航线生成信息"`
LngAndLatAndHeight string `p:"lngAndLatAndHeight" dc:"经度维度高度" v:"required#经度维度高度必须"`
}
// ManageAirlineEditRes 修改操作返回结果
type ManageAirlineEditRes struct {
commonApi.EmptyRes
}
// ManageAirlineGetReq 获取一条数据请求
type ManageAirlineGetReq struct {
g.Meta `path:"/get" tags:"航线" method:"get" summary:"获取航线信息"`
commonApi.Author
Id int64 `p:"id" v:"required#主键必须"` //通过主键获取
}
// ManageAirlineGetRes 获取一条数据结果
type ManageAirlineGetRes struct {
g.Meta `mime:"application/json"`
*model.ManageAirlineInfoRes
}
// ManageAirlineDeleteReq 删除数据请求
type ManageAirlineDeleteReq struct {
g.Meta `path:"/delete" tags:"航线" method:"delete" summary:"删除航线"`
commonApi.Author
Ids []int64 `p:"ids" v:"required#主键必须"` //通过主键删除
}
// ManageAirlineDeleteRes 删除数据返回
type ManageAirlineDeleteRes struct {
commonApi.EmptyRes
}
// RouteUploadReq 航线上传
type RouteUploadReq struct {
g.Meta `path:"/routeUpload" tags:"航线" method:"post" summary:"航线上传"`
commonApi.Author
ProjectId int64 `p:"projectId" dc:"航线文件"`
MqClientId string `p:"mqClientId" dc:"无人机snmq客户端id)"`
File *ghttp.UploadFile `p:"file" dc:"航线文件"`
Remark string `p:"remark" dc:"备注"`
}
// RouteUploadRes 航线上传
type RouteUploadRes struct {
commonApi.EmptyRes
}

View File

@ -0,0 +1,167 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2023-11-14 10:53:21
// 生成路径: api/v1/system/manage_device.go
// 生成人gfast
// desc:设备信息相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// ManageDeviceSearchReq 分页请求参数
type ManageDeviceSearchReq struct {
g.Meta `path:"/list" tags:"设备信息" method:"get" summary:"设备信息列表"`
Domain string `p:"domain" dc:"产品类型"`
DeviceSn string `p:"deviceSn" dc:"产品序列号"`
ProjectId string `p:"projectId" dc:"项目id" v:"required#项目id不能为空"`
commonApi.PageReq
commonApi.Author
}
// ManageDeviceSearchRes 列表返回结果
type ManageDeviceSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.ManageDeviceListRes `json:"list"`
}
// NoPageListSearchReq 不分页请求参数
type NoPageListSearchReq struct {
g.Meta `path:"/noPageList" tags:"设备信息" method:"get" summary:"设备信息列表(不分页 "`
Domain string `p:"domain" dc:"产品类型"`
DeviceSn string `p:"deviceSn" dc:"产品序列号"`
ProjectId string `p:"projectId" dc:"项目id" v:"required#项目id不能为空"`
commonApi.Author
}
// NoPageListSearchRes 不分页请求参数
type NoPageListSearchRes struct {
g.Meta `mime:"application/json"`
List []*model.ManageDeviceListRes `json:"list"`
}
// ManageDeviceAddReq 添加操作请求参数
type ManageDeviceAddReq struct {
g.Meta `path:"/add" tags:"设备信息" method:"post" summary:"设备信息添加"`
ProjectId string `p:"projectId" dc:"项目id" v:"required#项目id不能为空"`
DictionaryId string `p:"dictionaryId" dc:"产品ID" v:"required#产品ID不能为空"`
DeviceSn string `p:"deviceSn" dc:"设备序列号" v:"required#设备序列号不能为空"`
Nickname string `p:"nickname" dc:"设备自定义名称" v:"required#设备自定义名称不能为空"`
MqClientId string `p:"mqClientId" dc:"客户端id" v:"required#客户端id不能为空"`
WorkspaceId string `p:"workspaceId" dc:"工作区" `
//FirmwareVersion string `p:"firmwareVersion" dc:"固件版本" v:"required#固件版本不能为空"`
//CompatibleStatus string `p:"compatibleStatus" dc:"固件版本是否一致1一致 0不一致" v:"between:0,1#参数范围为0~1"`
//ChildSn string `p:"childSn" dc:"由网关控制的设备"`
commonApi.Author
}
// ManageDeviceAddRes 添加操作返回结果
type ManageDeviceAddRes struct {
commonApi.EmptyRes
}
// ManageDeviceEditReq 修改操作请求参数
type ManageDeviceEditReq struct {
g.Meta `path:"/edit" tags:"设备信息" method:"put" summary:"设备信息修改"`
commonApi.Author
Id uint64 `p:"id" v:"required#主键ID不能为空"`
DictionaryId string `p:"dictionaryId" dc:"产品ID" v:"required#产品ID不能为空"`
DeviceSn string `p:"deviceSn" dc:"设备序列号" v:"required#设备序列号不能为空"`
Nickname string `p:"nickname" dc:"设备自定义名称" v:"required#设备自定义名称不能为空"`
MqClientId string `p:"mqClientId" dc:"客户端id" v:"required#设备自定义名称不能为空"`
WorkspaceId string `p:"workspaceId" dc:"工作区"`
//FirmwareVersion string `p:"firmwareVersion" dc:"固件版本" v:"required#固件版本不能为空"`
//CompatibleStatus string `p:"compatibleStatus" dc:"固件版本是否一致1一致 0不一致" v:"between:0,1#参数范围为0~1"`
//ChildSn string `p:"childSn" dc:"由网关控制的设备"`
}
// ManageDeviceEditRes 修改操作返回结果
type ManageDeviceEditRes struct {
commonApi.EmptyRes
}
// ManageDeviceGetReq 获取一条数据请求
type ManageDeviceGetReq struct {
g.Meta `path:"/get" tags:"设备信息" method:"get" summary:"获取设备信息信息"`
commonApi.Author
Id uint64 `p:"id" v:"required#主键必须"` //通过主键获取
}
// ManageDeviceGetRes 获取一条数据结果
type ManageDeviceGetRes struct {
g.Meta `mime:"application/json"`
*model.ManageDeviceInfoRes
}
// ManageDeviceDeleteReq 删除数据请求
type ManageDeviceDeleteReq struct {
g.Meta `path:"/delete" tags:"设备信息" method:"delete" summary:"删除设备信息"`
commonApi.Author
Ids []uint64 `p:"ids" v:"required#主键必须"` //通过主键删除
}
// ManageDeviceDeleteRes 删除数据返回
type ManageDeviceDeleteRes struct {
commonApi.EmptyRes
}
// ProductEnumerationFuncReq 设备产品枚举
type ProductEnumerationFuncReq struct {
g.Meta `path:"/productEnumerationList" tags:"设备信息" method:"get" summary:"设备产品枚举"`
commonApi.Author
}
// ProductEnumerationFuncRes 设备产品枚举
type ProductEnumerationFuncRes struct {
g.Meta `mime:"application/json"`
List []*model.ManageDeviceDictionaryInfo `json:"list"`
}
// CameraPhotoTakeFuncReq 无人机抓拍
type CameraPhotoTakeFuncReq struct {
g.Meta `path:"/cameraPhotoTake" tags:"设备信息" method:"get" summary:"无人机抓拍"`
TrackId string `p:"trackId" dc:"航迹ID" v:"required#航迹ID必须"`
GatewaySn string `p:"gatewaySn" dc:"网关SN" v:"required#网关SN必须"`
PayloadIndex string `p:"payloadIndex" dc:"摄像机编号" v:"required#摄像机编号必须"`
commonApi.Author
}
// CameraPhotoTakeFuncRes 无人机抓拍
type CameraPhotoTakeFuncRes struct {
g.Meta `mime:"application/json"`
}
// LiveSetQualityReq 设置直播清晰度
type LiveSetQualityReq struct {
g.Meta `path:"/liveSetQuality" tags:"设备信息" method:"put" summary:"设置直播清晰度"`
GatewaySn string `p:"gatewaySn" dc:"网关SN" v:"required#网关SN必须"`
Two string `p:"two" dc:"飞机sn" v:"required#飞机sn必须"`
PayloadIndex string `p:"payloadIndex" dc:"摄像机编号" v:"required#摄像机编号必须"`
Enum int `p:"enum" dc:"0自适应,1流畅,2标清,3高清,4超清" v:"required#摄像机编号必须"`
commonApi.Author
}
// LiveSetQualityRes 设置直播清晰度
type LiveSetQualityRes struct {
g.Meta `mime:"application/json"`
}
// ButtonStateReq 调试模式按钮状态
type ButtonStateReq struct {
g.Meta `path:"/buttonState" tags:"设备信息" method:"get" summary:"调试模式按钮状态"`
MqClientId string `p:"mqClientId" dc:"mq_client_id" v:"required#mq_client_id必须"`
commonApi.Author
}
// ButtonStateRes 调试模式按钮状态
type ButtonStateRes struct {
g.Meta `mime:"application/json"`
*model.ButtonEntity
}

View File

@ -0,0 +1,94 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2024-06-21 15:23:29
// 生成路径: api/v1/system/manage_operation_log.go
// 生成人gfast
// desc:无人机指令日志相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// ManageOperationLogSearchReq 分页请求参数
type ManageOperationLogSearchReq struct {
g.Meta `path:"/list" tags:"无人机指令日志" method:"get" summary:"无人机指令日志列表"`
Id string `p:"id"` //主键ID
Sn string `p:"sn"` //sn
Method string `p:"method"` //方法名
Direction string `p:"direction"` //上发/下发命令
Code string `p:"code" v:"code@integer#状态码需为整数"` //状态码
Operator string `p:"operator" v:"operator@integer#操作人ID默认为0表示系统操作需为整数"` //操作人ID默认为0表示系统操作
commonApi.PageReq
commonApi.Author
}
// ManageOperationLogSearchRes 列表返回结果
type ManageOperationLogSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.ManageOperationLogListRes `json:"list"`
}
// ManageOperationLogAddReq 添加操作请求参数
type ManageOperationLogAddReq struct {
g.Meta `path:"/add" tags:"无人机指令日志" method:"post" summary:"无人机指令日志添加"`
commonApi.Author
Sn string `p:"sn" v:"required#sn不能为空"`
Method string `p:"method" v:"required#方法名不能为空"`
Direction string `p:"direction" v:"required#上发/下发命令不能为空"`
Code int `p:"code" `
Operator int64 `p:"operator" `
}
// ManageOperationLogAddRes 添加操作返回结果
type ManageOperationLogAddRes struct {
commonApi.EmptyRes
}
// ManageOperationLogEditReq 修改操作请求参数
type ManageOperationLogEditReq struct {
g.Meta `path:"/edit" tags:"无人机指令日志" method:"put" summary:"无人机指令日志修改"`
commonApi.Author
Id int64 `p:"id" v:"required#主键ID不能为空"`
Sn string `p:"sn" v:"required#sn不能为空"`
Method string `p:"method" v:"required#方法名不能为空"`
Direction string `p:"direction" v:"required#上发/下发命令不能为空"`
Code int `p:"code" `
Operator int64 `p:"operator" `
}
// ManageOperationLogEditRes 修改操作返回结果
type ManageOperationLogEditRes struct {
commonApi.EmptyRes
}
// ManageOperationLogGetReq 获取一条数据请求
type ManageOperationLogGetReq struct {
g.Meta `path:"/get" tags:"无人机指令日志" method:"get" summary:"获取无人机指令日志信息"`
commonApi.Author
Id int64 `p:"id" v:"required#主键必须"` //通过主键获取
}
// ManageOperationLogGetRes 获取一条数据结果
type ManageOperationLogGetRes struct {
g.Meta `mime:"application/json"`
*model.ManageOperationLogInfoRes
}
// ManageOperationLogDeleteReq 删除数据请求
type ManageOperationLogDeleteReq struct {
g.Meta `path:"/delete" tags:"无人机指令日志" method:"delete" summary:"删除无人机指令日志"`
commonApi.Author
Ids []int64 `p:"ids" v:"required#主键必须"` //通过主键删除
}
// ManageOperationLogDeleteRes 删除数据返回
type ManageOperationLogDeleteRes struct {
commonApi.EmptyRes
}

View File

@ -0,0 +1,143 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2023-12-12 15:21:22
// 生成路径: api/v1/system/manage_task.go
// 生成人gfast
// desc:航线任务下发相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// ManageTaskSearchReq 分页请求参数
type ManageTaskSearchReq struct {
g.Meta `path:"/list" tags:"航线任务下发" method:"get" summary:"航线任务下发列表"`
Id string `p:"id"` //主键ID
TaskName string `p:"taskName"` //任务名称 //任务开始执行时间毫秒时间戳 //0普通航线
MqClientId string `p:"mqClientId" dc:"关联机场"` //关联机场
AirLine string `p:"airLine" v:"airLine@integer#关联航线需为整数"` //关联航线
ProjectId string `p:"projectId" v:"projectId@integer#关联项目需为整数"` //关联项目
CreatedAt string `p:"createdAt" v:"createdAt@datetime#创建时间需为YYYY-MM-DD hh:mm:ss格式"` //创建时间
commonApi.PageReq
commonApi.Author
}
// ManageTaskSearchRes 列表返回结果
type ManageTaskSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.ManageTaskListRes `json:"list"`
}
type T struct {
Field1 string `json:"0"`
Field2 string `json:"1"`
Field3 string `json:"2"`
}
// ManageTaskAddReq 添加操作请求参数
type ManageTaskAddReq struct {
g.Meta `path:"/add" tags:"航线任务下发" method:"post" summary:"航线任务下发添加"`
commonApi.Author
TaskName string `p:"taskName" v:"required#任务名称不能为空"`
//TaskType string `p:"taskType" dc:"0立即任务 1定时任务 2条件任务" v:"between:0,2#设置值的范围为0~2"`
//ExecuteTime int64 `p:"executeTime" dc:"任务开始执行时间毫秒时间戳。可选字段。当 task_type 为 0 或 1 时必填,为 2 时非必填。" v:"required-unless:taskType,2#taskType不为2时必须不为空" `
WaylineType int `p:"waylineType" dc:"0普通航点航线" v:"in:0#设置值为0"`
Airport int64 `p:"airport" dc:"机场ID" v:"required#机场ID不能为空"`
AirLine int64 `p:"airLine" dc:"航线ID" v:"required#航线ID不能为空"`
ProjectId int64 `p:"projectId" dc:"项目ID" v:"required#项目ID不能为空"`
MqClientId string `p:"mqClientId" dc:"关联机场" v:"required#mq客户端id必须"`
RthAltitude int `p:"rthAltitude" dc:"返航高度 单位米" v:"between:20,1500#取值范围为20~1500"`
RthMode int `p:"rthMode" dc:"0智能高度 1设定高度默认为0" `
OutOfControlAction int `p:"outOfControlAction" dc:"0返航 1悬停 2降落默认为0"`
ExitWaylineWhenRcLost int `p:"exitWaylineWhenRcLost" dc:"0继续执行航线任务 1退出航线任务,执行遥控器失控动作默认为0"`
Remark string `p:"remark" `
}
// ManageTaskAddRes 添加操作返回结果
type ManageTaskAddRes struct {
commonApi.EmptyRes
}
// ManageTaskEditReq 修改操作请求参数
type ManageTaskEditReq struct {
g.Meta `path:"/edit" tags:"航线任务下发" method:"put" summary:"航线任务下发修改"`
commonApi.Author
Id int64 `p:"id" v:"required#主键ID不能为空"`
TaskName string `p:"taskName" v:"required#任务名称不能为空"`
TaskType string `p:"taskType" dc:"0立即任务 1定时任务 2条件任务" v:"between:0,2#设置值的范围为0~2"`
ExecuteTime int64 `p:"executeTime" dc:"任务开始执行时间毫秒时间戳。可选字段。当 task_type 为 0 或 1 时必填,为 2 时非必填。" v:"required-unless:taskType,2#taskType不为2时必须不为空" `
WaylineType int `p:"waylineType" dc:"0普通航点航线" v:"in:0#设置值为0"`
Airport int64 `p:"airport" dc:"机场ID" v:"required#机场ID不能为空"`
AirLine int64 `p:"airLine" dc:"航线ID" v:"required#航线ID不能为空"`
ProjectId int64 `p:"projectId" dc:"项目ID" v:"required#项目ID不能为空"`
RthAltitude int `p:"rthAltitude" dc:"返航高度 单位米" v:"between:20,1500#取值范围为20~1500"`
RthMode int `p:"rthMode" dc:"0智能高度 1设定高度默认为0" `
OutOfControlAction int `p:"outOfControlAction" dc:"0返航 1悬停 2降落默认为0"`
ExitWaylineWhenRcLost int `p:"exitWaylineWhenRcLost" dc:"0继续执行航线任务 1退出航线任务,执行遥控器失控动作默认为0"`
Remark string `p:"remark" `
}
// ManageTaskEditRes 修改操作返回结果
type ManageTaskEditRes struct {
commonApi.EmptyRes
}
// ManageTaskGetReq 获取一条数据请求
type ManageTaskGetReq struct {
g.Meta `path:"/get" tags:"航线任务下发" method:"get" summary:"获取航线任务下发信息"`
commonApi.Author
Id int64 `p:"id" v:"required#主键必须"` //通过主键获取
}
// ManageTaskGetRes 获取一条数据结果
type ManageTaskGetRes struct {
g.Meta `mime:"application/json"`
*model.ManageTaskInfoRes
}
// ManageTaskDeleteReq 删除数据请求
type ManageTaskDeleteReq struct {
g.Meta `path:"/delete" tags:"航线任务下发" method:"delete" summary:"删除航线任务下发"`
commonApi.Author
Ids int64 `p:"ids" v:"required#主键必须"` //通过主键删除
}
// ManageTaskDeleteRes 删除数据返回
type ManageTaskDeleteRes struct {
commonApi.EmptyRes
}
// FlighttaskPrepareReq 航线任务下发
type FlighttaskPrepareReq struct {
g.Meta `path:"/FlighttaskPrepare" tags:"航线任务下发" method:"post" summary:"航线任务下发"`
commonApi.Author
Id string `p:"id" dc:"主键ID" v:"required#id不能为空"`
GatewaySn string `p:"gatewaySn" dc:"网关SN" v:"required#网关SN必须"`
TaskType string `p:"taskType" dc:"0立即任务 1定时任务 2条件任务" v:"between:0,2#设置值的范围为0~2"`
ExecuteTime int64 `p:"executeTime" dc:"任务开始执行时间毫秒时间戳。可选字段。当 task_type 为 0 或 1 时必填,为 2 时非必填。" v:"required-unless:taskType,2#taskType不为2时必须不为空" `
Remark string `p:"remark"`
TimedFlight string `p:"timedFlight" dc:"有值代表自动飞行(比如:'ok',后端传值"`
//Airport s `p:"airport" `
BreakPoint *BreakPointReq `json:"breakPoint" dc:"断点信息"`
BreakpointRenewalUUID string `json:"breakpointRenewalUUID" dc:"断点续飞ID计划UUID"`
}
type BreakPointReq struct {
Index int `json:"index" dc:"断点状态"`
State int `json:"state" dc:"返航高度模式"`
Progress float32 `json:"progress" dc:"遥控器失控动作"`
WaylineId int `json:"wayline_id" dc:"航线失控动作"`
}
// FlighttaskPrepareRes 航线任务下发
type FlighttaskPrepareRes struct {
commonApi.EmptyRes
Id string `p:"id" `
}

View File

@ -0,0 +1,87 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2024-06-04 14:33:05
// 生成路径: api/v1/system/manage_task_cron.go
// 生成人gfast
// desc:航线任务定时飞行相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// ManageTaskCronSearchReq 分页请求参数
type ManageTaskCronSearchReq struct {
g.Meta `path:"/list" tags:"航线任务定时飞行" method:"get" summary:"航线任务定时飞行列表"`
Id string `p:"id"` //主键ID
MqClientId string `p:"mqClientId"` //sn
TaskId string `p:"taskId" v:"taskId@integer#任务模板ID需为整数"` //任务模板ID
Cron string `p:"cron"` //表达式
CronId string `p:"cronId" v:"cronId@integer#cronID需为整数"` //cronID
commonApi.PageReq
commonApi.Author
}
// ManageTaskCronSearchRes 列表返回结果
type ManageTaskCronSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.ManageTaskCronListRes `json:"list"`
}
// ManageTaskCronAddReq 添加操作请求参数
type ManageTaskCronAddReq struct {
g.Meta `path:"/add" tags:"航线任务定时飞行" method:"post" summary:"航线任务定时飞行添加"`
commonApi.Author
MqClientId string `p:"mqClientId" v:"required#sn不能为空"`
TaskId int64 `p:"taskId" v:"required#任务模板ID不能为空"`
Cron string `p:"cron" v:"required#表达式不能为空"`
}
// ManageTaskCronAddRes 添加操作返回结果
type ManageTaskCronAddRes struct {
commonApi.EmptyRes
}
// ManageTaskCronEditReq 修改操作请求参数
type ManageTaskCronEditReq struct {
g.Meta `path:"/edit" tags:"航线任务定时飞行" method:"put" summary:"航线任务定时飞行修改"`
commonApi.Author
MqClientId string `p:"mqClientId" v:"required#mqClientId必须"` //通过主键获取
Cron string `p:"cron" v:"required#表达式不能为空"`
}
// ManageTaskCronEditRes 修改操作返回结果
type ManageTaskCronEditRes struct {
commonApi.EmptyRes
}
// ManageTaskCronGetReq 获取一条数据请求
type ManageTaskCronGetReq struct {
g.Meta `path:"/get" tags:"航线任务定时飞行" method:"get" summary:"获取航线任务定时飞行信息"`
commonApi.Author
MqClientId string `p:"mqClientId" v:"required#mqClientId必须"` //通过主键获取
}
// ManageTaskCronGetRes 获取一条数据结果
type ManageTaskCronGetRes struct {
g.Meta `mime:"application/json"`
*model.ManageTaskCronInfoRes
}
// ManageTaskCronDeleteReq 删除数据请求
type ManageTaskCronDeleteReq struct {
g.Meta `path:"/delete" tags:"航线任务定时飞行" method:"delete" summary:"删除航线任务定时飞行"`
commonApi.Author
MqClientId []string `p:"mqClientId" v:"required#mqClientId必须"` //通过主键获取
}
// ManageTaskCronDeleteRes 删除数据返回
type ManageTaskCronDeleteRes struct {
commonApi.EmptyRes
}

View File

@ -0,0 +1,164 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2023-12-12 17:56:19
// 生成路径: api/v1/system/manage_task_record.go
// 生成人gfast
// desc:航线任务下发-记录相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// ManageTaskRecordSearchReq 分页请求参数
type ManageTaskRecordSearchReq struct {
g.Meta `path:"/list" tags:"航线任务下发-记录" method:"get" summary:"航线任务下发-记录列表"`
ProjectId string `p:"projectId" dc:"项目id" v:"projectId@integer#关联项目需为整数"`
MqClientId string `p:"mqClientId" dc:"关联机场"`
TaskType string `p:"taskType" dc:"任务类型0立即任务 1定时任务 2条件任务" `
IsVoluntarily string `p:"isVoluntarily" dc:"0自动飞行 1手动飞行"`
CreatedAt string `p:"createdAt" v:"createdAt@datetime#创建时间需为YYYY-MM-DD hh:mm:ss格式"`
commonApi.PageReq
commonApi.Author
}
// ManageTaskRecordSearchRes 列表返回结果
type ManageTaskRecordSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.PcListOfRoutesRes `json:"list"`
}
type UpDataResourceReq struct {
g.Meta `path:"/upDataResource" tags:"航线任务下发-记录" method:"put" summary:"上传资源文件"`
commonApi.Author
Id int64 `p:"id" v:"required#主键必须"`
MergeProjectId string `p:"mergeProjectId" v:"required#wImg必须" dc:"合并项目ID"`
MergeId string `p:"mergeId" v:"required#wTif必须" dc:"合并任务ID"`
WImg string `p:"wImg" v:"required#wImg必须" dc:"大图"`
WTif string `p:"wTif" v:"required#wTif必须" dc:"资源tif"`
ProjectId string `p:"projectId" v:"required#projectId必须" dc:"中煤项目ID"`
// WImg *ghttp.UploadFile `p:"wImg" v:"required#wImg必须" dc:"大图"`
// WTif *ghttp.UploadFile `p:"wTif" v:"required#wTif必须" dc:"资源tif"`
}
type UpDataResourceRes struct {
g.Meta `mime:"application/json"`
}
// 根据任务ID 获取本次AI识别的结果
type GetAiResultReq struct {
g.Meta `path:"/getAiResult" tags:"航线任务下发-记录" method:"get" summary:"获取AI识别结果"`
commonApi.Author
commonApi.PageReq
Id int64 `p:"id" v:"required#主键必须" dc:"任务的ID"` // 通过主键获取
Type string `p:"type" dc:"类型 15光伏板 14支架 13桩基 12钻孔" d:"15"`
}
type GetAiResultRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []model.AiResultRes `json:"list"`
}
// ConfirmAiResultReq 确认AI识别结果
type ConfirmAiResultReq struct {
g.Meta `path:"/confirmAiResult" tags:"航线任务下发-记录" method:"put" summary:"提交AI识别结果"`
commonApi.Author
TaskId int `p:"taskId" v:"required#任务ID必须" dc:"任务ID"`
}
// ConfirmAiResultRes 确认AI识别结果返回
type ConfirmAiResultRes struct {
g.Meta `mime:"application/json"`
}
// ManageTaskRecordGetReq 获取一条数据请求
type ManageTaskRecordGetReq struct {
g.Meta `path:"/get" tags:"航线任务下发-记录" method:"get" summary:"获取航线任务下发-记录信息"`
commonApi.Author
Id int64 `p:"id" v:"required#主键必须"` // 通过主键获取
}
// ManageTaskRecordGetRes 获取一条数据结果
type ManageTaskRecordGetRes struct {
g.Meta `mime:"application/json"`
*model.ManageTaskRecordInfoRes
}
// PerformATaskReq 执行任务
type PerformATaskReq struct {
g.Meta `path:"/performATask" tags:"航线任务下发-记录" method:"post" summary:"执行任务"`
commonApi.Author
Id int64 `p:"id" dc:"主键ID"`
GatewaySn string `p:"gatewaySn" dc:"网关SN" v:"required#网关SN必须"`
}
// CancelATaskReq 取消任务
type CancelATaskReq struct {
g.Meta `path:"/cancelATask" tags:"航线任务下发-记录" method:"post" summary:"取消任务"`
commonApi.Author
Id int64 `p:"id" dc:"主键ID"`
GatewaySn string `p:"gatewaySn" dc:"网关SN" v:"required#网关SN必须"`
}
// RouteSuspensionReq 航线暂停
type RouteSuspensionReq struct {
g.Meta `path:"/routeSuspension" tags:"航线任务下发-记录" method:"post" summary:"航线暂停"`
commonApi.Author
Id int64 `p:"id" dc:"主键ID"`
GatewaySn string `p:"gatewaySn" dc:"网关SN" v:"required#网关SN必须"`
}
// CourseResumptionReq 航线恢复
type CourseResumptionReq struct {
g.Meta `path:"/courseResumption" tags:"航线任务下发-记录" method:"post" summary:"航线恢复"`
commonApi.Author
Id int64 `p:"id" dc:"主键ID"`
GatewaySn string `p:"gatewaySn" dc:"网关SN" v:"required#网关SN必须"`
}
// OneClickBackReq 一键返航
type OneClickBackReq struct {
g.Meta `path:"/oneClickBack" tags:"航线任务下发-记录" method:"post" summary:"一键返航"`
commonApi.Author
Id int64 `p:"id" dc:"主键ID"`
GatewaySn string `p:"gatewaySn" dc:"网关SN" v:"required#网关SN必须"`
}
// CancelHomingReq 取消返航
type CancelHomingReq struct {
g.Meta `path:"/cancelHoming" tags:"航线任务下发-记录" method:"post" summary:"取消返航"`
commonApi.Author
Id int64 `p:"id" dc:"主键ID"`
GatewaySn string `p:"gatewaySn" dc:"网关SN" v:"required#网关SN必须"`
}
// BreakpointContinuationReq 断点续飞
type BreakpointContinuationReq struct {
g.Meta `path:"/breakpointContinuation" tags:"航线任务下发-记录" method:"post" summary:"断点续飞"`
commonApi.Author
Id int64 `p:"id" dc:"主键ID"`
GatewaySn string `p:"gatewaySn" dc:"网关SN" v:"required#网关SN必须"`
}
type PerformATaskRes struct {
commonApi.EmptyRes
}
// ManageTaskRecordDeleteReq 删除数据请求
type ManageTaskRecordDeleteReq struct {
g.Meta `path:"/delete" tags:"航线任务下发-记录" method:"delete" summary:"删除记录"`
commonApi.Author
Ids []int64 `p:"ids" v:"required#主键必须"` // 通过主键删除
}
// ManageTaskRecordDeleteRes 删除数据返回
type ManageTaskRecordDeleteRes struct {
commonApi.EmptyRes
}

View File

@ -0,0 +1,159 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2024-05-30 17:07:01
// 生成路径: api/v1/system/manage_task_record_resource.go
// 生成人gfast
// desc:下发记录回传的媒体文件相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// ManageTaskRecordResourceSearchReq 分页请求参数
type ManageTaskRecordResourceSearchReq struct {
g.Meta `path:"/list" tags:"下发记录回传的媒体文件" method:"get" summary:"下发记录回传的媒体文件列表"`
FlightId string `p:"flightId"` //计划ID
commonApi.PageReq
commonApi.Author
}
type ManageTaskRecordResourceSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.ManageTaskRecordResourceListRes `json:"list"`
}
type ObtainResourcesAccordingToFlightIdReq struct {
g.Meta `path:"/obtainResourcesAccordingToFlightId" tags:"下发记录回传的媒体文件" method:"get" summary:"根据flightId获取资源"`
FlightId string `p:"flightId"` //计划ID
commonApi.Author
}
type ObtainResourcesAccordingToFlightIdRes struct {
g.Meta `mime:"application/json"`
List []string `json:"list"`
}
type ManageTaskRecordResourceAddReq struct {
g.Meta `path:"/add" tags:"下发记录回传的媒体文件" method:"post" summary:"下发记录回传的媒体文件添加"`
commonApi.Author
FlightId string `p:"flightId" v:"required#主键ID不能为空"`
FileName string `p:"fileName" v:"required#文件名称不能为空"`
ObjectKey string `p:"objectKey" `
Path string `p:"path" `
DroneModelKey string `p:"droneModelKey" `
PayloadModelKey string `p:"payloadModelKey" `
AbsoluteAltitude float64 `p:"absoluteAltitude" `
RelativeAltitude float64 `p:"relativeAltitude" `
CreateTime *gtime.Time `p:"createTime" `
ShootPosition string `p:"shootPosition" `
Lat string `p:"lat" `
Lng string `p:"lng" `
Img string `p:"img" `
ImgSize string `p:"imgSize" `
}
type ManageTaskRecordResourceAddRes struct {
commonApi.EmptyRes
}
type ManageTaskRecordResourceEditReq struct {
g.Meta `path:"/edit" tags:"下发记录回传的媒体文件" method:"put" summary:"下发记录回传的媒体文件修改"`
commonApi.Author
FlightId string `p:"flightId" v:"required#主键ID不能为空"`
FileName string `p:"fileName" v:"required#文件名称不能为空"`
ObjectKey string `p:"objectKey" `
Path string `p:"path" `
DroneModelKey string `p:"droneModelKey" `
PayloadModelKey string `p:"payloadModelKey" `
AbsoluteAltitude float64 `p:"absoluteAltitude" `
RelativeAltitude float64 `p:"relativeAltitude" `
CreateTime *gtime.Time `p:"createTime" `
ShootPosition string `p:"shootPosition" `
Lat string `p:"lat" `
Lng string `p:"lng" `
Img string `p:"img" `
ImgSize string `p:"imgSize" `
}
// ManageTaskRecordResourceEditRes 修改操作返回结果
type ManageTaskRecordResourceEditRes struct {
commonApi.EmptyRes
}
type ManageTaskRecordResourceGetReq struct {
g.Meta `path:"/get" tags:"下发记录回传的媒体文件" method:"get" summary:"获取下发记录回传的媒体文件信息"`
commonApi.Author
FlightId string `p:"flightId" v:"required#主键必须"` //通过主键获取
}
type ManageTaskRecordResourceGetRes struct {
g.Meta `mime:"application/json"`
*model.ManageTaskRecordResourceInfoRes
}
// ManageTaskRecordResourceDeleteReq 删除数据请求
type ManageTaskRecordResourceDeleteReq struct {
g.Meta `path:"/delete" tags:"下发记录回传的媒体文件" method:"delete" summary:"删除下发记录回传的媒体文件"`
commonApi.Author
FlightIds []string `p:"flightIds" v:"required#主键必须"` //通过主键删除
}
// ManageTaskRecordResourceDeleteRes 删除数据返回
type ManageTaskRecordResourceDeleteRes struct {
commonApi.EmptyRes
}
type DownloadAccordingToMysqlReq struct {
g.Meta `path:"/downloadAccordingToMysql" tags:"下发记录回传的媒体文件" method:"post" summary:"根据计划ID批量下载准备数据图片"`
commonApi.Author
FlightId string `p:"flightId" v:"required#主键必须"` //通过主键获取
}
// DownloadAccordingToMysqlRes 获取一条数据结果
type DownloadAccordingToMysqlRes struct {
commonApi.EmptyRes
}
type FlightIdByProgressQueryReq struct {
g.Meta `path:"/flightIdByProgressQueryFunc" tags:"下发记录回传的媒体文件" method:"post" summary:"根据计划ID查询下载准备数据图片进度"`
commonApi.Author
FlightId string `p:"flightId" v:"required#主键必须"` //通过主键获取
}
type FlightIdByProgressQueryRes struct {
commonApi.EmptyRes
Percentage string `p:"percentage" dc:"下载(准备)进度"`
}
type VoluntarilyReq struct {
g.Meta `path:"/voluntarilyReq" tags:"下发记录回传的媒体文件" method:"post" summary:"下载合并大图"`
commonApi.Author
Id int64 `p:"id" v:"required#flightId必须" dc:"当前航线飞行主键ID"`
FlightId string `p:"flightId" v:"required#flightId必须" dc:"当前航线飞行任务ID"`
ProjectId string `p:"projectId" v:"required#projectId必须" dc:"当前媒科能管项目ID"`
}
type VoluntarilyRes struct {
commonApi.EmptyRes
TaskId string `json:"taskId" dc:"任务ID"`
ProjectId string `json:"projectId" dc:"项目ID"`
}
type DownLoadImgReq struct {
g.Meta `path:"/uavDownLoadImgReq" tags:"下发记录回传的媒体文件" method:"post" summary:"下载回传图片"`
commonApi.Author
ObjectKey string `p:"objectKey" v:"required#objectKey必须" dc:"资源路径消息"`
}
type DownLoadImgRes struct {
commonApi.EmptyRes
Path string `json:"path" dc:"资源下载路径"`
}

View File

@ -0,0 +1,86 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2024-10-21 11:29:13
// 生成路径: api/v1/system/manage_task_result.go
// 生成人gfast
// desc:AI识别到的数据相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// ManageTaskResultSearchReq 分页请求参数
type ManageTaskResultSearchReq struct {
g.Meta `path:"/list" tags:"AI识别到的数据" method:"get" summary:"AI识别到的数据列表"`
Id string `p:"id"` //
TaskId string `p:"taskId" v:"taskId@integer#航线任务ID需为整数"` // 航线任务ID
PvId string `p:"pvId" v:"pvId@integer#pv_module 的主键需为整数"` // pv_module 的主键
CreatedAt string `p:"createdAt" v:"createdAt@datetime#需为YYYY-MM-DD hh:mm:ss格式"` //
commonApi.PageReq
commonApi.Author
}
// ManageTaskResultSearchRes 列表返回结果
type ManageTaskResultSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.ManageTaskResultListRes `json:"list"`
}
// ManageTaskResultAddReq 添加操作请求参数
type ManageTaskResultAddReq struct {
g.Meta `path:"/add" tags:"AI识别到的数据" method:"post" summary:"AI识别到的数据添加"`
commonApi.Author
TaskId int `p:"taskId" `
PvId []int `p:"pvIds" `
}
// ManageTaskResultAddRes 添加操作返回结果
type ManageTaskResultAddRes struct {
commonApi.EmptyRes
}
// ManageTaskResultEditReq 修改操作请求参数
type ManageTaskResultEditReq struct {
g.Meta `path:"/edit" tags:"AI识别到的数据" method:"put" summary:"AI识别到的数据修改"`
commonApi.Author
Id uint `p:"id" v:"required#主键ID不能为空"`
TaskId int `p:"taskId" `
PvId int `p:"pvId" `
}
// ManageTaskResultEditRes 修改操作返回结果
type ManageTaskResultEditRes struct {
commonApi.EmptyRes
}
// ManageTaskResultGetReq 获取一条数据请求
type ManageTaskResultGetReq struct {
g.Meta `path:"/get" tags:"AI识别到的数据" method:"get" summary:"获取AI识别到的数据信息"`
commonApi.Author
Id uint `p:"id" v:"required#主键必须"` // 通过主键获取
}
// ManageTaskResultGetRes 获取一条数据结果
type ManageTaskResultGetRes struct {
g.Meta `mime:"application/json"`
*model.ManageTaskResultInfoRes
}
// ManageTaskResultDeleteReq 删除数据请求
type ManageTaskResultDeleteReq struct {
g.Meta `path:"/delete" tags:"AI识别到的数据" method:"delete" summary:"删除AI识别到的数据"`
commonApi.Author
Ids []uint `p:"ids" v:"required#主键必须"` // 通过主键删除
}
// ManageTaskResultDeleteRes 删除数据返回
type ManageTaskResultDeleteRes struct {
commonApi.EmptyRes
}

View File

@ -0,0 +1,92 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2023-11-14 10:53:20
// 生成路径: api/v1/system/manage_workspace.go
// 生成人gfast
// desc:工作空间相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// ManageWorkspaceSearchReq 分页请求参数
type ManageWorkspaceSearchReq struct {
g.Meta `path:"/list" tags:"工作空间" method:"get" summary:"工作空间列表"`
ProjectId string `p:"projectId" dc:"项目id"`
BindCode string `p:"bindCode" dc:"绑定码"`
WorkspaceName string `p:"workspaceName" dc:"工作空间名称"`
commonApi.PageReq
commonApi.Author
}
// ManageWorkspaceSearchRes 列表返回结果
type ManageWorkspaceSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.ManageWorkspaceListRes `json:"list"`
}
// ManageWorkspaceAddReq 添加操作请求参数
type ManageWorkspaceAddReq struct {
g.Meta `path:"/add" tags:"工作空间" method:"post" summary:"工作空间添加"`
commonApi.Author
WorkspaceName string `p:"workspaceName" dc:"工作区名称" v:"required#工作区的名称不能为空"`
WorkspaceDesc string `p:"workspaceDesc" dc:"工作区描述" v:"required#工作区描述不能为空"`
PlatformName string `p:"platformName" dc:"工作区平台名称" v:"required#工作区的平台名称不能为空"`
BindCode string `p:"bindCode" dc:"工作区绑定码" v:"required#工作区绑定码不能为空"`
ProjectId int64 `p:"projectId" dc:"项目ID" v:"required#项目ID必须"`
}
// ManageWorkspaceAddRes 添加操作返回结果
type ManageWorkspaceAddRes struct {
commonApi.EmptyRes
}
// ManageWorkspaceEditReq 修改操作请求参数
type ManageWorkspaceEditReq struct {
g.Meta `path:"/edit" tags:"工作空间" method:"put" summary:"工作空间修改"`
commonApi.Author
Id uint64 `p:"id" v:"required#主键ID不能为空"`
//WorkspaceId string `p:"workspaceId" `
WorkspaceName string `p:"workspaceName" dc:"工作区名称" v:"required#工作区的名称不能为空"`
WorkspaceDesc string `p:"workspaceDesc" dc:"工作区描述" v:"required#工作区描述不能为空"`
PlatformName string `p:"platformName" dc:"工作区平台名称" v:"required#工作区的平台名称不能为空"`
//BindCode string `p:"bindCode" dc:"工作区绑定码" v:"required#工作区绑定码不能为空"`
//ProjectId int64 `p:"projectId" dc:"项目ID" v:"required#项目ID必须"`
}
// ManageWorkspaceEditRes 修改操作返回结果
type ManageWorkspaceEditRes struct {
commonApi.EmptyRes
}
// ManageWorkspaceGetReq 获取一条数据请求
type ManageWorkspaceGetReq struct {
g.Meta `path:"/get" tags:"工作空间" method:"get" summary:"获取工作空间信息"`
commonApi.Author
Id uint64 `p:"id" v:"required#主键必须"` //通过主键获取
}
// ManageWorkspaceGetRes 获取一条数据结果
type ManageWorkspaceGetRes struct {
g.Meta `mime:"application/json"`
*model.ManageWorkspaceInfoRes
}
// ManageWorkspaceDeleteReq 删除数据请求
type ManageWorkspaceDeleteReq struct {
g.Meta `path:"/delete" tags:"工作空间" method:"delete" summary:"删除工作空间"`
commonApi.Author
Ids []uint64 `p:"ids" v:"required#主键必须"` //通过主键删除
}
// ManageWorkspaceDeleteRes 删除数据返回
type ManageWorkspaceDeleteRes struct {
commonApi.EmptyRes
}

View File

@ -0,0 +1,105 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2023-10-08 09:38:35
// 生成路径: api/v1/system/master_schedule.go
// 生成人gfast
// desc:总进度计划相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// MasterScheduleSearchReq 分页请求参数
type MasterScheduleSearchReq struct {
g.Meta `path:"/list" tags:"总进度计划" method:"get" summary:"总进度计划列表"`
Id string `p:"id"` //
ProjectId string `p:"projectId" v:"projectId@integer#项目id需为整数"` //项目id
Name string `p:"name"` //工作名称
Start string `p:"start"` //开始时间
End string `p:"end"` //结束时间
Content string `p:"content"` //备注
CreateBy string `p:"createBy"` //创建人
UpdateBy string `p:"updateBy"` //更新人
CreatedAt string `p:"createdAt" v:"createdAt@datetime#创建时间需为YYYY-MM-DD hh:mm:ss格式"` //创建时间
Sequence string `p:"sequence" v:"sequence@integer#顺序编号需为整数"` //顺序编号
commonApi.PageReq
commonApi.Author
commonApi.Paging
}
// MasterScheduleSearchRes 列表返回结果
type MasterScheduleSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.MasterScheduleListRes `json:"list"`
}
// MasterScheduleAddReq 添加操作请求参数
type MasterScheduleAddReq struct {
g.Meta `path:"/add" tags:"总进度计划" method:"post" summary:"总进度计划添加"`
commonApi.Author
ProjectId int `p:"projectId" `
Name string `p:"name" v:"required#工作名称不能为空"`
Start string `p:"start" `
End string `p:"end" `
Content string `p:"content" `
CreateBy string `p:"createBy" `
UpdateBy string `p:"updateBy" `
Sequence int `p:"sequence" `
}
// MasterScheduleAddRes 添加操作返回结果
type MasterScheduleAddRes struct {
commonApi.EmptyRes
}
// MasterScheduleEditReq 修改操作请求参数
type MasterScheduleEditReq struct {
g.Meta `path:"/edit" tags:"总进度计划" method:"put" summary:"总进度计划修改"`
commonApi.Author
Id int `p:"id" v:"required#主键ID不能为空"`
ProjectId int `p:"projectId" `
Name string `p:"name" v:"required#工作名称不能为空"`
Start string `p:"start" `
End string `p:"end" `
Content string `p:"content" `
CreateBy string `p:"createBy" `
UpdateBy string `p:"updateBy" `
Sequence int `p:"sequence" `
}
// MasterScheduleEditRes 修改操作返回结果
type MasterScheduleEditRes struct {
commonApi.EmptyRes
}
// MasterScheduleGetReq 获取一条数据请求
type MasterScheduleGetReq struct {
g.Meta `path:"/get" tags:"总进度计划" method:"get" summary:"获取总进度计划信息"`
commonApi.Author
Id int `p:"id" v:"required#主键必须"` //通过主键获取
}
// MasterScheduleGetRes 获取一条数据结果
type MasterScheduleGetRes struct {
g.Meta `mime:"application/json"`
*model.MasterScheduleInfoRes
}
// MasterScheduleDeleteReq 删除数据请求
type MasterScheduleDeleteReq struct {
g.Meta `path:"/delete" tags:"总进度计划" method:"delete" summary:"删除总进度计划"`
commonApi.Author
Ids []int `p:"ids" v:"required#主键必须"` //通过主键删除
}
// MasterScheduleDeleteRes 删除数据返回
type MasterScheduleDeleteRes struct {
commonApi.EmptyRes
}

View File

@ -0,0 +1,92 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2024-04-11 16:58:12
// 生成路径: api/v1/system/notification_recipients.go
// 生成人gfast
// desc:通知接收相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// NotificationRecipientsSearchReq 分页请求参数
type NotificationRecipientsSearchReq struct {
g.Meta `path:"/list" tags:"通知接收" method:"get" summary:"通知接收列表"`
Id string `p:"id"` //
CreatedAt string `p:"createdAt" v:"createdAt@datetime#需为YYYY-MM-DD hh:mm:ss格式"` //
NotificationId string `p:"notificationId" v:"notificationId@integer#关联的通知ID需为整数"` //关联的通知ID
RecipientId string `p:"recipientId" v:"recipientId@integer#接收者ID需为整数"` //接收者ID
RecipientRole string `p:"recipientRole"` //接收者权限
NotificationStatus string `p:"notificationStatus" v:"notificationStatus@integer#0 未读 | 1 已读需为整数"` //0 未读 | 1 已读
commonApi.PageReq
commonApi.Author
}
// NotificationRecipientsSearchRes 列表返回结果
type NotificationRecipientsSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.NotificationRecipientsListRes `json:"list"`
}
// NotificationRecipientsAddReq 添加操作请求参数
type NotificationRecipientsAddReq struct {
g.Meta `path:"/add" tags:"通知接收" method:"post" summary:"通知接收添加"`
commonApi.Author
NotificationId int `p:"notificationId" `
RecipientId int `p:"recipientId" `
RecipientRole string `p:"recipientRole" `
NotificationStatus int `p:"notificationStatus" v:"required#0 未读 | 1 已读不能为空"`
}
// NotificationRecipientsAddRes 添加操作返回结果
type NotificationRecipientsAddRes struct {
commonApi.EmptyRes
}
// NotificationRecipientsEditReq 修改操作请求参数
type NotificationRecipientsEditReq struct {
g.Meta `path:"/edit" tags:"通知接收" method:"put" summary:"通知接收修改"`
commonApi.Author
Id uint `p:"id" v:"required#主键ID不能为空"`
NotificationId int `p:"notificationId" `
RecipientId int `p:"recipientId" `
RecipientRole string `p:"recipientRole" `
NotificationStatus int `p:"notificationStatus" v:"required#0 未读 | 1 已读不能为空"`
}
// NotificationRecipientsEditRes 修改操作返回结果
type NotificationRecipientsEditRes struct {
commonApi.EmptyRes
}
// NotificationRecipientsGetReq 获取一条数据请求
type NotificationRecipientsGetReq struct {
g.Meta `path:"/get" tags:"通知接收" method:"get" summary:"获取通知接收信息"`
commonApi.Author
Id uint `p:"id" v:"required#主键必须"` //通过主键获取
}
// NotificationRecipientsGetRes 获取一条数据结果
type NotificationRecipientsGetRes struct {
g.Meta `mime:"application/json"`
*model.NotificationRecipientsInfoRes
}
// NotificationRecipientsDeleteReq 删除数据请求
type NotificationRecipientsDeleteReq struct {
g.Meta `path:"/delete" tags:"通知接收" method:"delete" summary:"删除通知接收"`
commonApi.Author
Ids []uint `p:"ids" v:"required#主键必须"` //通过主键删除
}
// NotificationRecipientsDeleteRes 删除数据返回
type NotificationRecipientsDeleteRes struct {
commonApi.EmptyRes
}

View File

@ -0,0 +1,218 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2024-04-11 16:56:36
// 生成路径: api/v1/system/notifications.go
// 生成人gfast
// desc:通知信息相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
comModel "github.com/tiger1103/gfast/v3/internal/app/common/model"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// NotificationsSearchReq 分页请求参数
type NotificationsSearchReq struct {
g.Meta `path:"/list" tags:"通知信息" method:"get" summary:"通知信息列表"`
Id string `p:"id"` //
CreatedAt string `p:"createdAt" v:"createdAt@datetime#需为YYYY-MM-DD hh:mm:ss格式"` //
NotificationText string `p:"notificationText"` // 通知正文
Route string `p:"route"` // 跳转的路由
NotificationTime string `p:"notificationTime"` // 通知时间
Initiator string `p:"initiator" v:"initiator@integer#发起人需为整数"` // 发起人
ProjectId string `p:"projectId" v:"projectId@integer#项目ID需为整数"` // 项目ID
Type string `p:"type"` // 0 未读 | 1 已读
Title string `p:"title"` // 标题
IsApp string `p:"isApp"` // 0 PC | 1 App 公告通知 | 2 公告新闻
commonApi.PageReq
commonApi.Author
}
// NotificationsSearchRes 列表返回结果
type NotificationsSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.NotificationsListRes `json:"list"`
}
// NotificationsAddReq 添加操作请求参数
type NotificationsAddReq struct {
g.Meta `path:"/add" tags:"通知信息" method:"post" summary:"通知信息添加"`
commonApi.Author
NotificationText string `p:"notificationText" `
Route string `p:"route" `
NotificationTime string `p:"notificationTime" `
Initiator int `p:"initiator" `
ProjectId int `p:"projectId" `
}
// NotificationsAddRes 添加操作返回结果
type NotificationsAddRes struct {
commonApi.EmptyRes
}
// NotificationsEditReq 修改操作请求参数
type NotificationsEditReq struct {
g.Meta `path:"/edit" tags:"通知信息" method:"put" summary:"通知信息修改"`
commonApi.Author
Id uint `p:"id" v:"required#主键ID不能为空"`
Title string `p:"title"`
NotificationText string `p:"text" `
Route string `p:"route" `
NotificationTime string `p:"notificationTime" `
Initiator int `p:"initiator" `
ProjectId int `p:"projectId" `
}
// NotificationsEditRes 修改操作返回结果
type NotificationsEditRes struct {
commonApi.EmptyRes
}
// NotificationsGetReq 获取一条数据请求
type NotificationsGetReq struct {
g.Meta `path:"/get" tags:"通知信息" method:"get" summary:"获取通知信息信息"`
commonApi.Author
Id uint `p:"id" v:"required#主键必须"` // 通过主键获取
}
// NotificationsGetRes 获取一条数据结果
type NotificationsGetRes struct {
g.Meta `mime:"application/json"`
*model.NotificationsInfoRes
}
// NotificationsDeleteReq 删除数据请求
type NotificationsDeleteReq struct {
g.Meta `path:"/delete" tags:"通知信息" method:"delete" summary:"删除通知信息"`
commonApi.Author
Ids []uint `p:"ids" v:"required#主键必须"` // 通过主键删除
}
// NotificationsDeleteRes 删除数据返回
type NotificationsDeleteRes struct {
commonApi.EmptyRes
}
// NotificationsPublishReq 发布一条通知
type NotificationsPublishReq struct {
g.Meta `path:"/publish" tags:"通知信息" method:"post" summary:"发布通知"`
commonApi.Author
// 通知标题
NotificationTitle string `p:"title" v:"required#通知标题不能为空|max-length:50#最大输入字数为50" dc:"通知标题"`
// 消息正文
NotificationText string `p:"text" v:"required#消息正文不能为空|max-length:300#最大输入字数为255" dc:"通知正文"`
// 跳转路由
Route string `p:"route" dc:"消息需要跳转的路由"`
// 通知人员
Users []int `p:"users" dc:"消息接收人员"`
// 通知岗位下的人员
Positions []int `p:"positions" dc:"通知该岗位下的人员"`
// 附件
Files []*comModel.UpFile `p:"files" dc:"消息附件"` // 需事先通过 pload/singleFile 上传
// 通知类型
IsApp int `p:"isApp" dc:" 0 PC | 1 App 公告通知 | 2 公告新闻"`
// 关联的 PC 端项目新闻ID
ProjectNewsId int64 `p:"projectNewsId" dc:"关联的 PC 端项目新闻ID"`
// 项目ID
ProjectId int `p:"projectId" v:"required#项目ID不能为空" dc:"项目ID"`
}
// NotificationsPublishRes 发布一条通知返回
type NotificationsPublishRes struct {
commonApi.EmptyRes
}
// NotificationsGetUserReq 获取当前用户的通知信息
type NotificationsGetUserReq struct {
g.Meta `path:"/getNotify" tags:"App" method:"get" summary:"获取当前用户的通知信息"`
commonApi.Author
commonApi.PageReq
ProjectId int `p:"projectId" v:"required#项目ID不能为空" dc:"项目ID"` // 项目ID
IsApp int `p:"isApp" d:"0" dc:"App 获取通知公告时为 1 | App 获取新闻时为 2"` // 是否是 App
}
// NotificationsGetUserRes 获取当前用户的通知信息返回
type NotificationsGetUserRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []Notifications
}
type Notifications struct {
Id string `p:"id" orm:"id" dc:"通知ID"` // 消息ID
NotificationTitle string `p:"title" orm:"title" dc:"公告标题"` // 标题
NotificationText string `p:"notificationText" orm:"notification_text" dc:"公告正文"` // 通知正文
NotificationTime string `p:"notificationTime" orm:"notification_time" dc:"通知时间"` // 通知时间
NotificationStatus string `p:"notification_status" orm:"notification_status" dc:"0 未读 | 1 已读"` // 通知状态
Initiator string `p:"initiator" orm:"initiator" dc:"发起人"` // 发起人
}
// NotificationsReadReq 标记消息为已读
type NotificationsReadReq struct {
g.Meta `path:"/read" tags:"通知信息" method:"post" summary:"标记消息为已读"`
commonApi.Author
// 项目ID
ProjectId int `p:"projectId" v:"required#项目ID不能为空" dc:"项目ID"`
}
// NotificationsReadRes 标记消息为已读返回
type NotificationsReadRes struct {
commonApi.EmptyRes
}
// NotificationsDetailReq 查看通知公告详情
type NotificationsDetailReq struct {
g.Meta `path:"/detail" tags:"App" method:"get" summary:"查看一个通知公告详情"`
commonApi.Author
Id int `p:"id" v:"required#消息ID不能为空" dc:"通知公告的ID"` // 消息ID
}
// NotificationsDetailRes 查看通知公告详情返回
type NotificationsDetailRes struct {
g.Meta `mime:"application/json"`
List NotificationsDetail
}
// 查看通知公告的详细数据
type NotificationsDetail struct {
NotificationTitle string `json:"title" dc:"标题"` // 标题
NotificationText string `json:"text" dc:"通知正文"` // 通知正文
NotificationTime string `json:"time" dc:"发布时间"` // 发布时间
ReadNum int `json:"readNum" dc:"总阅读数"` // 总阅读数
ReadPeople int `json:"readPeople" dc:"已读人数"` // 已读人数
UnreadPeople int `json:"unreadPeople" dc:"未读人数"` // 未读人数
Files []model.FileInfo `json:"files" dc:"附件"` // 附件
}
// NotificationsGetPeopleReq 获取通知公告的未读人员或已读人员
type NotificationsGetPeopleReq struct {
g.Meta `path:"/getPeople" tags:"App" method:"get" summary:"获取通知公告的未读人员或已读人员"`
commonApi.Author
commonApi.PageReq
Id int `p:"id" v:"required#消息ID不能为空" dc:"通知公告的ID"` // 消息ID
Status int `p:"status" v:"required#状态不能为空" dc:"0 未读 | 1 已读"` // 0 未读 | 1 已读
}
// NotificationsGetPeopleRes 获取通知公告的未读人员或已读人员返回
type NotificationsGetPeopleRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []AppUserInfo
}
// 用户详情
type AppUserInfo struct {
Id uint `json:"id" dc:"用户ID"` // 用户ID
// 头像
Avatars string `json:"avatar" dc:"头像"`
// 用户名
Username string `json:"username" dc:"用户名"`
// 已读时间
ReadTime string `json:"readTime" dc:"已读时间"`
}

61
api/v1/system/personal.go Normal file
View File

@ -0,0 +1,61 @@
/*
* @desc:xxxx功能描述
* @company:云南奇讯科技有限公司
* @Author: yixiaohu<yxh669@qq.com>
* @Date: 2022/11/3 10:04
*/
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
"github.com/tiger1103/gfast/v3/internal/app/system/model/entity"
)
type PersonalInfoReq struct {
g.Meta `path:"/personal/getPersonalInfo" tags:"用户管理" method:"get" summary:"登录用户信息"`
commonApi.Author
}
type PersonalInfoRes struct {
g.Meta `mime:"application/json"`
User *entity.SysUser `json:"user"`
Roles []string `json:"roles"`
DeptName string `json:"deptName"`
}
// SetPersonalReq 添加修改用户公用请求字段
type SetPersonalReq struct {
Nickname string `p:"nickname" v:"required#用户昵称不能为空"`
Mobile string `p:"mobile" v:"required|phone#手机号不能为空|手机号格式错误"`
Remark string `p:"remark"`
Sex int `p:"sex"`
UserEmail string `p:"userEmail" v:"required|email#邮箱不能为空|邮箱格式错误"`
Describe string `p:"describe"` //签名
Avatar string `p:"avatar"` //签名
}
// PersonalEditReq 修改个人
type PersonalEditReq struct {
g.Meta `path:"/personal/edit" tags:"用户管理" method:"put" summary:"修改个人资料"`
*SetPersonalReq
commonApi.Author
}
type PersonalEditRes struct {
commonApi.EmptyRes
UserInfo *model.LoginUserRes `json:"userInfo"`
Token string `json:"token"`
}
type PersonalResetPwdReq struct {
g.Meta `path:"/personal/resetPwd" tags:"用户管理" method:"put" summary:"重置个人密码"`
Password string `p:"password" v:"required|password#密码不能为空|密码以字母开头只能包含字母、数字和下划线长度在6~18之间"`
commonApi.Author
}
type PersonalResetPwdRes struct {
}

View File

@ -0,0 +1,96 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2023-09-26 14:31:07
// 生成路径: api/v1/system/plan_daily.go
// 生成人gfast
// desc:日报相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// PlanDailySearchReq 分页请求参数
type PlanDailySearchReq struct {
g.Meta `path:"/list" tags:"日报" method:"get" summary:"日报列表"`
ProjectId string `p:"projectId"` //项目id
SourceId string `p:"sourceId"` //资源id
Name string `p:"name"` //资源名称
CreatedAt string `p:"createdAt" v:"createdAt@datetime#需为YYYY-MM-DD hh:mm:ss格式"` //
commonApi.PageReq
commonApi.Author
}
// PlanDailySearchRes 列表返回结果
type PlanDailySearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.PlanDailyListRes `json:"list"`
}
// PlanDailyAddReq 添加操作请求参数
type PlanDailyAddReq struct {
g.Meta `path:"/add" tags:"日报" method:"post" summary:"日报添加"`
commonApi.Author
ProjectId string `p:"projectId" `
SourceId string `p:"sourceId" `
Name string `p:"name" `
SourceType string `p:"sourceType" `
Cnt int `p:"cnt" `
DataTime string `p:"dataTime" `
Status int `p:"status" `
}
// PlanDailyAddRes 添加操作返回结果
type PlanDailyAddRes struct {
commonApi.EmptyRes
}
// PlanDailyEditReq 修改操作请求参数
type PlanDailyEditReq struct {
g.Meta `path:"/edit" tags:"日报" method:"put" summary:"日报修改"`
commonApi.Author
Id int64 `p:"id" v:"required#主键ID不能为空"`
ProjectId string `p:"projectId" `
SourceId string `p:"sourceId" `
Name string `p:"name" `
SourceType string `p:"sourceType" `
Cnt int `p:"cnt" `
DataTime string `p:"dataTime" `
Status int `p:"status" `
}
// PlanDailyEditRes 修改操作返回结果
type PlanDailyEditRes struct {
commonApi.EmptyRes
}
// PlanDailyGetReq 获取一条数据请求
type PlanDailyGetReq struct {
g.Meta `path:"/get" tags:"日报" method:"get" summary:"获取日报信息"`
commonApi.Author
Id int64 `p:"id" v:"required#主键必须"` //通过主键获取
}
// PlanDailyGetRes 获取一条数据结果
type PlanDailyGetRes struct {
g.Meta `mime:"application/json"`
*model.PlanDailyInfoRes
}
// PlanDailyDeleteReq 删除数据请求
type PlanDailyDeleteReq struct {
g.Meta `path:"/delete" tags:"日报" method:"delete" summary:"删除日报"`
commonApi.Author
Ids []int64 `p:"ids" v:"required#主键必须"` //通过主键删除
}
// PlanDailyDeleteRes 删除数据返回
type PlanDailyDeleteRes struct {
commonApi.EmptyRes
}

154
api/v1/system/plan_week.go Normal file
View File

@ -0,0 +1,154 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2023-08-04 17:26:59
// 生成路径: api/v1/system/plan_week.go
// 生成人gfast
// desc:周计划相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// PlanWeekSearchReq 分页请求参数
type PlanWeekSearchReq struct {
g.Meta `path:"/list" tags:"周计划" method:"get" summary:"周计划列表"`
//Id string `p:"id"` //
ProjectId string `p:"projectId" v:"required#项目id不能为空"` //项目id
DateRange []string `p:"dateRange" dc:"时间范围格式为2023-08-08"` //日期范围
//SourceId string `p:"sourceId"` //资源id
//Name string `p:"name"` //资源名称
//Start string `p:"start"` //开始时间
//End string `p:"end"` //结束时间
//PlanName string `p:"planName"` //计划名称
//PlanId string `p:"planId"` //周id
//CreateBy string `p:"createBy"` //
//UpdateBy string `p:"updateBy"` //
//CreateAt string `p:"createAt" v:"createAt@datetime#需为YYYY-MM-DD hh:mm:ss格式"` //
//UpdateAt string `p:"updateAt" v:"updateAt@datetime#需为YYYY-MM-DD hh:mm:ss格式"` //
//Table string `p:"table"` //source_id的数据对应的数据表
//Status string `p:"status" v:"status@integer#工作状态0未开始1进行中2已完成需为整数"` //工作状态0未开始1进行中2已完成
//commonApi.PageReq
commonApi.Author
}
// PlanWeekSearchRes 列表返回结果
type PlanWeekSearchRes struct {
g.Meta `mime:"application/json"`
List []*model.PlanWeekListRes `json:"list"`
}
type task struct {
SourceId string `p:"sourceId" v:"required#资源id不能为空"`
Name string `p:"name" v:"required#资源名称不能为空"`
SourceType string `p:"source_type" v:"required#资源类型不能为空"`
Cnt int `p:"cnt" `
//Table string `p:"table" v:"source_id的数据对应的数据表不能为空"`
//Status int `p:"status" v:"工作状态0未开始1进行中2已完成不能为空"`
}
// PlanWeekAddReq 添加操作请求参数
type PlanWeekAddReq struct {
g.Meta `path:"/add" tags:"周计划" method:"post" summary:"周计划添加"`
commonApi.Author
ProjectId string `p:"projectId" v:"required#项目id不能为空"`
Start string `p:"start" v:"required#开始时间不能为空"`
End string `p:"end" v:"required#结束时间不能为空"`
PlanName string `p:"planName" v:"required#计划名称不能为空"`
Tasks []task `p:"tasks" `
}
// PlanWeekAddRes 添加操作返回结果
type PlanWeekAddRes struct {
commonApi.EmptyRes
}
// PlanWeekEditReq 修改操作请求参数
type PlanWeekEditReq struct {
g.Meta `path:"/edit" tags:"周计划" method:"put" summary:"周计划修改"`
commonApi.Author
ProjectId string `p:"projectId" v:"required#项目id不能为空"`
PlanID string `p:"planId" v:"required#计划id不能为空"`
Start string `p:"start" v:"required#开始时间不能为空"`
End string `p:"end" v:"required#结束时间不能为空"`
PlanName string `p:"planName" v:"required#计划名称不能为空"`
Tasks []task `p:"tasks"`
}
// PlanWeekEditRes 修改操作返回结果
type PlanWeekEditRes struct {
commonApi.EmptyRes
}
// PlanWeekGetReq 获取一条数据请求
type PlanWeekGetReq struct {
g.Meta `path:"/get" tags:"周计划" method:"get" summary:"获取周计划信息"`
commonApi.Author
Id int `p:"id" v:"required#主键必须"` //通过主键获取
}
// PlanWeekGetRes 获取一条数据结果
type PlanWeekGetRes struct {
g.Meta `mime:"application/json"`
*model.PlanWeekInfoRes
}
// PlanWeekDeleteReq 删除数据请求
type PlanWeekDeleteReq struct {
g.Meta `path:"/delete" tags:"周计划" method:"delete" summary:"删除周计划"`
commonApi.Author
PlanID string `p:"planId" v:"required"` //通过主键删除
}
// PlanWeekDeleteRes 删除数据返回
type PlanWeekDeleteRes struct {
commonApi.EmptyRes
}
// PlanWeekGetInfoByPlanIDReq 根据计划id获取计划的详情类型
type PlanWeekGetInfoByPlanIDReq struct {
g.Meta `path:"/getInfoByPlanID" tags:"周计划" method:"get" summary:"根据计划id获取计划的详情类型"`
commonApi.Author
PlanID string `json:"planId" v:"required"` //通过主键删除
SourceType string `json:"source_type" ` //通过主键删除
PlanWeekReality bool `json:"plan_week_reality" ` //是否获取实际的
}
type PlanWeekGetInfoByPlanIDRes struct {
g.Meta `mime:"application/json"`
List []*model.Task `json:"list"`
}
// WeekAndWeekRealityListReq 根据条件获取到计划于实际的数据
type WeekAndWeekRealityListReq struct {
g.Meta `path:"/weekAndWeekRealityList" tags:"周计划" method:"get" summary:"总计划、周计划、月计划(根据条件获取到计划于实际的数据)"`
ProjectId string `p:"projectId" dc:"项目id" v:"required#项目id不能为空"` //项目id
DateRange []string `p:"dateRange" dc:"数组string 时间范围格式为2023-08-08"` //日期范围
commonApi.Author
}
// WeekAndWeekRealityListRes 列表返回结果
type WeekAndWeekRealityListRes struct {
g.Meta `mime:"application/json"`
WeekList []*model.PlanWeekListRes `json:"weekList"`
WeekRealityList []*model.PlanWeekRealityListRes `json:"weekRealityList"`
}
// WeeklyAndMonthlyReportDataGenerationReq 周报/月报数据生成周报生成word月报生成压缩包文件夹
type WeeklyAndMonthlyReportDataGenerationReq struct {
g.Meta `path:"/weeklyAndMonthlyReportDataGeneration" tags:"周计划" method:"get" summary:"周报/月报数据生成周报生成word月报生成压缩包文件夹"`
ProjectId int64 `p:"projectId" dc:"项目id" v:"required#项目id不能为空"`
Type string `p:"type" dc:"1周报、2月报" v:"between:1,2#取值范围为1~2"`
PlanId []string `p:"planId" dc:"周计划ID" v:"bail|required#planId不能为空|array#请填写planId有效数据"`
commonApi.Author
}
// WeeklyAndMonthlyReportDataGenerationRes 列表返回结果
type WeeklyAndMonthlyReportDataGenerationRes struct {
g.Meta `mime:"application/json"`
List []*model.ProgressOfWorksListRes `json:"list" dc:"数据"`
}

View File

@ -0,0 +1,127 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2023-08-17 17:23:07
// 生成路径: api/v1/system/plan_week_reality.go
// 生成人xyb
// desc:实际完成的周计划相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
type PlanWeekRealityCompareReq struct {
g.Meta `path:"/compare" tags:"实际完成的周计划" method:"get" summary:"实际完成的和计划的周计划对比"`
PlanID string `p:"plan_id" v:"required"` //
commonApi.Author
}
type PlanWeekRealityCompareRes struct {
g.Meta `mime:"application/json"`
PlanList []model.Task `json:"plan_list"`
RealityList []model.Task `json:"reality_list"`
}
// PlanWeekRealitySearchReq 分页请求参数
type PlanWeekRealitySearchReq struct {
g.Meta `path:"/list" tags:"实际完成的周计划" method:"get" summary:"实际完成的周计划列表"`
Id string `p:"id"` //
ProjectId string `p:"projectId" v:"required#项目id不能为空"` //项目id
DateRange []string `p:"dateRange" dc:"时间范围格式为2023-08-08"` //日期范围
//SourceId string `p:"sourceId"` //资源id
//Name string `p:"name"` //资源名称
//Start string `p:"start"` //开始时间
//End string `p:"end"` //结束时间
//PlanName string `p:"planName"` //计划名称
//PlanId string `p:"planId"` //周id
//CreateBy string `p:"createBy"` //
//UpdateBy string `p:"updateBy"` //
//CreateAt string `p:"createAt" v:"createAt@datetime#需为YYYY-MM-DD hh:mm:ss格式"` //
//UpdateAt string `p:"updateAt" v:"updateAt@datetime#需为YYYY-MM-DD hh:mm:ss格式"` //
//Table string `p:"table"` //source_id的数据对应的数据表
//Status string `p:"status" v:"status@integer#工作状态0未开始1进行中2已完成需为整数"` //工作状态0未开始1进行中2已完成
//SourceType string `p:"sourceType"` //资源类型
//commonApi.PageReq
commonApi.Author
}
// PlanWeekRealitySearchRes 列表返回结果
type PlanWeekRealitySearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.PlanWeekRealityListRes `json:"list"`
}
// PlanWeekRealityAddReq 添加操作请求参数
type PlanWeekRealityAddReq struct {
g.Meta `path:"/add" tags:"实际完成的周计划" method:"post" summary:"实际完成的周计划添加"`
commonApi.Author
ProjectId string `p:"projectId" v:"required#项目id不能为空"`
PlanID string `p:"planId" v:"required#计划id"`
Start string `p:"start" v:"required#开始时间不能为空"`
End string `p:"end" v:"required#结束时间不能为空"`
PlanName string `p:"planName" v:"required#计划名称不能为空"`
Tasks []task `p:"tasks" `
}
// PlanWeekRealityAddRes 添加操作返回结果
type PlanWeekRealityAddRes struct {
commonApi.EmptyRes
}
// PlanWeekRealityEditReq 修改操作请求参数
type PlanWeekRealityEditReq struct {
g.Meta `path:"/edit" tags:"实际完成的周计划" method:"put" summary:"实际完成的周计划修改"`
commonApi.Author
Id int `p:"id" v:"required#主键ID不能为空"`
ProjectId string `p:"projectId" v:"required#项目id不能为空"`
SourceId string `p:"sourceId" v:"required#资源id不能为空"`
Name string `p:"name" v:"required#资源名称不能为空"`
Start string `p:"start" v:"required#开始时间不能为空"`
End string `p:"end" v:"required#结束时间不能为空"`
PlanName string `p:"planName" v:"required#计划名称不能为空"`
PlanId string `p:"planId" v:"required#周id不能为空"`
CreateBy string `p:"createBy" `
UpdateBy string `p:"updateBy" `
CreateAt *gtime.Time `p:"createAt" `
UpdateAt *gtime.Time `p:"updateAt" `
Table string `p:"table" `
Status int `p:"status" v:"required#工作状态0未开始1进行中2已完成不能为空"`
SourceType string `p:"sourceType" `
}
// PlanWeekRealityEditRes 修改操作返回结果
type PlanWeekRealityEditRes struct {
commonApi.EmptyRes
}
// PlanWeekRealityGetReq 获取一条数据请求
type PlanWeekRealityGetReq struct {
g.Meta `path:"/get" tags:"实际完成的周计划" method:"get" summary:"获取实际完成的周计划信息"`
commonApi.Author
Id int `p:"id" v:"required#主键必须"` //通过主键获取
}
// PlanWeekRealityGetRes 获取一条数据结果
type PlanWeekRealityGetRes struct {
g.Meta `mime:"application/json"`
*model.PlanWeekRealityInfoRes
}
// PlanWeekRealityDeleteReq 删除数据请求
type PlanWeekRealityDeleteReq struct {
g.Meta `path:"/delete" tags:"实际完成的周计划" method:"delete" summary:"删除实际完成的周计划"`
commonApi.Author
Ids []int `p:"ids" v:"required#主键必须"` //通过主键删除
}
// PlanWeekRealityDeleteRes 删除数据返回
type PlanWeekRealityDeleteRes struct {
commonApi.EmptyRes
}

177
api/v1/system/plant.go Normal file
View File

@ -0,0 +1,177 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2024-04-12 10:38:43
// 生成路径: api/v1/system/plant.go
// 生成人gfast
// desc:电站信息相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// PlantSearchReq 分页请求参数
type PlantSearchReq struct {
g.Meta `path:"/list" tags:"电站信息" method:"get" summary:"电站信息列表"`
Id string `p:"id"` //电站Id
Name string `p:"name"` //电站名称
Address string `p:"address"` //详细地址
City string `p:"city"` //市
District string `p:"district"` //区
Province string `p:"province"` //省
Latitude string `p:"latitude" v:"latitude@float#纬度需为浮点数"` //纬度
Longitude string `p:"longitude" v:"longitude@float#经度需为浮点数"` //经度
Kwp string `p:"kwp" v:"kwp@float#总容量kwp需为浮点数"` //总容量kwp
MonKwh string `p:"monKwh" v:"monKwh@float#当月发电量需为浮点数"` //当月发电量
NowKw string `p:"nowKw" v:"nowKw@float#实时功率需为浮点数"` //实时功率
SumKwh string `p:"sumKwh" v:"sumKwh@float#总发电量需为浮点数"` //总发电量
TodayKwh string `p:"todayKwh" v:"todayKwh@float#当日发电量需为浮点数"` //当日发电量
YearKwh string `p:"yearKwh" v:"yearKwh@float#当年发电量需为浮点数"` //当年发电量
NetworkTime string `p:"networkTime" v:"networkTime@datetime#并网日期需为YYYY-MM-DD hh:mm:ss格式"` //并网日期
UpdateTime string `p:"updateTime" v:"updateTime@datetime#修改时间需为YYYY-MM-DD hh:mm:ss格式"` //修改时间
CompanyId string `p:"companyId"` //渠道商Id
CompanyName string `p:"companyName"` //渠道商名称
OwnerId string `p:"ownerId"` //业主Id
OwnerName string `p:"ownerName"` //业主姓名
ServiceProviderName string `p:"serviceProviderName"` //安装商名称
ServiceProviderPhone string `p:"serviceProviderPhone"` //安装服务商电话
NetworkType string `p:"networkType"` //并网类型 1:全额上网 2:自发自用余电上网 3:自发自用无馈网 4:离网
PowerPlantType string `p:"powerPlantType"` //电站类型 1:家庭户用 2:工商业屋顶 3:地面电站 4:扶贫电站 5储能电站
Status string `p:"status" v:"status@integer#电站状态 0:未绑定 1:在线 2:停机 3:停机告警 4:运行告警 5:故障 6:离线需为整数"` //电站状态 0:未绑定 1:在线 2:停机 3:停机告警 4:运行告警 5:故障 6:离线
PaymentType string `p:"paymentType"` //出资方式
PlantContact string `p:"plantContact"` //电站联系人
PlantContactPhone string `p:"plantContactPhone"` //电站联系人电话
PlantImg string `p:"plantImg"` //电站图片
DipAngle string `p:"dipAngle" v:"dipAngle@float#倾角度数需为浮点数"` //倾角度数
OrientationAngle string `p:"orientationAngle" v:"orientationAngle@float#方位角度数需为浮点数"` //方位角度数
SubassemblyNumber string `p:"subassemblyNumber" v:"subassemblyNumber@integer#组件数量需为整数"` //组件数量
CreatedAt string `p:"createdAt" v:"createdAt@datetime#创建时间需为YYYY-MM-DD hh:mm:ss格式"` //创建时间
commonApi.PageReq
commonApi.Author
}
// PlantSearchRes 列表返回结果
type PlantSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.PlantListRes `json:"list"`
}
// PlantAddReq 添加操作请求参数
type PlantAddReq struct {
g.Meta `path:"/add" tags:"电站信息" method:"post" summary:"电站信息添加"`
commonApi.Author
Id string `p:"id" v:"required#主键ID不能为空"`
Name string `p:"name" v:"required#电站名称不能为空"`
Address string `p:"address" `
City string `p:"city" `
District string `p:"district" `
Province string `p:"province" `
Latitude float64 `p:"latitude" `
Longitude float64 `p:"longitude" `
Kwp float64 `p:"kwp" `
MonKwh float64 `p:"monKwh" `
NowKw float64 `p:"nowKw" `
SumKwh float64 `p:"sumKwh" `
TodayKwh float64 `p:"todayKwh" `
YearKwh float64 `p:"yearKwh" `
NetworkTime *gtime.Time `p:"networkTime" `
UpdateTime *gtime.Time `p:"updateTime" `
CompanyId string `p:"companyId" `
CompanyName string `p:"companyName" `
OwnerId string `p:"ownerId" `
OwnerName string `p:"ownerName" `
ServiceProviderName string `p:"serviceProviderName" `
ServiceProviderPhone string `p:"serviceProviderPhone" `
NetworkType string `p:"networkType" `
PowerPlantType string `p:"powerPlantType" `
Status int `p:"status" v:"required#电站状态 0:未绑定 1:在线 2:停机 3:停机告警 4:运行告警 5:故障 6:离线不能为空"`
PaymentType string `p:"paymentType" `
PlantContact string `p:"plantContact" `
PlantContactPhone string `p:"plantContactPhone" `
PlantImg string `p:"plantImg" `
Remark string `p:"remark" `
DipAngle float64 `p:"dipAngle" `
OrientationAngle float64 `p:"orientationAngle" `
SubassemblyNumber int `p:"subassemblyNumber" `
}
// PlantAddRes 添加操作返回结果
type PlantAddRes struct {
commonApi.EmptyRes
}
// PlantEditReq 修改操作请求参数
type PlantEditReq struct {
g.Meta `path:"/edit" tags:"电站信息" method:"put" summary:"电站信息修改"`
commonApi.Author
Id string `p:"id" v:"required#主键ID不能为空"`
Name string `p:"name" v:"required#电站名称不能为空"`
Address string `p:"address" `
City string `p:"city" `
District string `p:"district" `
Province string `p:"province" `
Latitude float64 `p:"latitude" `
Longitude float64 `p:"longitude" `
Kwp float64 `p:"kwp" `
MonKwh float64 `p:"monKwh" `
NowKw float64 `p:"nowKw" `
SumKwh float64 `p:"sumKwh" `
TodayKwh float64 `p:"todayKwh" `
YearKwh float64 `p:"yearKwh" `
NetworkTime *gtime.Time `p:"networkTime" `
UpdateTime *gtime.Time `p:"updateTime" `
CompanyId string `p:"companyId" `
CompanyName string `p:"companyName" `
OwnerId string `p:"ownerId" `
OwnerName string `p:"ownerName" `
ServiceProviderName string `p:"serviceProviderName" `
ServiceProviderPhone string `p:"serviceProviderPhone" `
NetworkType string `p:"networkType" `
PowerPlantType string `p:"powerPlantType" `
Status int `p:"status" v:"required#电站状态 0:未绑定 1:在线 2:停机 3:停机告警 4:运行告警 5:故障 6:离线不能为空"`
PaymentType string `p:"paymentType" `
PlantContact string `p:"plantContact" `
PlantContactPhone string `p:"plantContactPhone" `
PlantImg string `p:"plantImg" `
Remark string `p:"remark" `
DipAngle float64 `p:"dipAngle" `
OrientationAngle float64 `p:"orientationAngle" `
SubassemblyNumber int `p:"subassemblyNumber" `
}
// PlantEditRes 修改操作返回结果
type PlantEditRes struct {
commonApi.EmptyRes
}
// PlantGetReq 获取一条数据请求
type PlantGetReq struct {
g.Meta `path:"/get" tags:"电站信息" method:"get" summary:"获取电站信息信息"`
commonApi.Author
Id string `p:"id" v:"required#主键必须"` //通过主键获取
}
// PlantGetRes 获取一条数据结果
type PlantGetRes struct {
g.Meta `mime:"application/json"`
*model.PlantInfoRes
}
// PlantDeleteReq 删除数据请求
type PlantDeleteReq struct {
g.Meta `path:"/delete" tags:"电站信息" method:"delete" summary:"删除电站信息"`
commonApi.Author
Ids []string `p:"ids" v:"required#主键必须"` //通过主键删除
}
// PlantDeleteRes 删除数据返回
type PlantDeleteRes struct {
commonApi.EmptyRes
}

View File

@ -0,0 +1,126 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2024-04-29 12:01:01
// 生成路径: api/v1/system/project_finance.go
// 生成人gfast
// desc:项目财务相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// ProjectFinanceSearchReq 分页请求参数
type ProjectFinanceSearchReq struct {
g.Meta `path:"/list" tags:"项目财务" method:"get" summary:"项目财务列表"`
Id string `p:"id" json:"id" dc:"主键"` // 主键
ProjectId string `p:"projectId" json:"projectId" dc:"项目ID"`
ProjectName string `p:"projectName" json:"projectName" dc:"项目名称"` // 项目ID // 项目ID
ContractAmount float64 `p:"contractAmount" json:"contractAmount" v:"contractAmount@float#承包合同金额需为浮点数" dc:"承包合同金额"` // 承包合同金额
SubcontractAmount float64 `p:"subcontractAmount" json:"subcontractAmount" v:"subcontractAmount@float#分包合同金额需为浮点数" dc:"分包合同金额"` // 分包合同金额
AmountReceived float64 `p:"amountReceived" json:"amountReceived" v:"amountReceived@float#已收款需为浮点数" dc:"已收款"` // 已收款
AmountPaid float64 `p:"amountPaid" json:"amountPaid" v:"amountPaid@float#已付款需为浮点数" dc:"已付款"` // 已付款
ExpensesReimbursed float64 `p:"expensesReimbursed" json:"expensesReimbursed" v:"expensesReimbursed@float#已费用报销需为浮点数" dc:"已费用报销"` // 已费用报销
EstimatedGrossProfit float64 `p:"estimatedGrossProfit" json:"estimatedGrossProfit" v:"estimatedGrossProfit@float#预计毛利润需为浮点数" dc:"预计毛利润"` // 预计毛利润
CurrentProfit float64 `p:"currentProfit" json:"currentProfit" v:"currentProfit@float#目前利润需为浮点数" dc:"目前利润"` // 目前利润
CurrentRemainingFunds float64 `p:"currentRemainingFunds" json:"currentRemainingFunds" v:"currentRemainingFunds@float#目前结余资金需为浮点数" dc:"目前结余资金"` // 目前结余资金
ProjectedIncreaseInRemainingFunds float64 `p:"projectedIncreaseInRemainingFunds" json:"projectedIncreaseInRemainingFunds" v:"projectedIncreaseInRemainingFunds@float#至项目完成应增加的结余资金需为浮点数" dc:"至项目完成应增加的结余资金"` // 至项目完成应增加的结余资金
NetPresentValueOfProjectOperation float64 `p:"netPresentValueOfProjectOperation" json:"netPresentValueOfProjectOperation" v:"netPresentValueOfProjectOperation@float#项目经营净现值需为浮点数" dc:"项目经营净现值"` // 项目经营净现值
CreatedAt string `p:"createdAt" json:"createdAt" v:"createdAt@datetime#填报时间需为YYYY-MM-DD hh:mm:ss格式" dc:"填报时间"` // 填报时间
CreatedBy string `p:"createdBy" json:"createdBy" v:"createdBy@integer#填报人ID需为整数" dc:"填报人ID"` // 填报人ID
commonApi.PageReq
commonApi.Author
}
// ProjectFinanceSearchRes 列表返回结果
type ProjectFinanceSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.ProjectFinanceListResVo `json:"list"`
}
// ProjectFinanceAddReq 添加操作请求参数
type ProjectFinanceAddReq struct {
g.Meta `path:"/add" tags:"项目财务" method:"post" summary:"项目财务添加"`
commonApi.Author
ProjectId int `p:"projectId" json:"projectId" dc:"项目ID"`
ContractAmount float64 `p:"contractAmount" json:"contractAmount" dc:"承包合同金额"`
SubcontractAmount float64 `p:"subcontractAmount" json:"subcontractAmount" dc:"分包合同金额"`
AmountReceived float64 `p:"amountReceived" json:"amountReceived" dc:"已收款"`
AmountPaid float64 `p:"amountPaid" json:"amountPaid" dc:"已付款"`
ExpensesReimbursed float64 `p:"expensesReimbursed" json:"expensesReimbursed" dc:"已费用报销"`
EstimatedGrossProfit float64 `p:"estimatedGrossProfit" json:"estimatedGrossProfit" dc:"预计毛利润"`
CurrentProfit float64 `p:"currentProfit" json:"currentProfit" dc:"目前利润"`
CurrentRemainingFunds float64 `p:"currentRemainingFunds" json:"currentRemainingFunds" dc:"目前结余资金"`
ProjectedIncreaseInRemainingFunds float64 `p:"projectedIncreaseInRemainingFunds" json:"projectedIncreaseInRemainingFunds" dc:"至项目完成应增加的结余资金"`
NetPresentValueOfProjectOperation float64 `p:"netPresentValueOfProjectOperation" json:"netPresentValueOfProjectOperation" dc:"项目经营净现值"`
CreatedBy uint64 `p:"createdBy" json:"createdBy" dc:"创建人ID"`
}
// ProjectFinanceAddRes 添加操作返回结果
type ProjectFinanceAddRes struct {
commonApi.EmptyRes
}
// ProjectFinanceEditReq 修改操作请求参数
type ProjectFinanceEditReq struct {
g.Meta `path:"/edit" tags:"项目财务" method:"put" summary:"项目财务修改"`
commonApi.Author
Id int `p:"id" v:"required#主键ID不能为空" json:"id" dc:"主键"`
ProjectId int `p:"projectId" json:"projectId" dc:"项目ID"`
ContractAmount float64 `p:"contractAmount" json:"contractAmount" dc:"承包合同金额"`
SubcontractAmount float64 `p:"subcontractAmount" json:"subcontractAmount" dc:"分包合同金额"`
AmountReceived float64 `p:"amountReceived" json:"amountReceived" dc:"已收款"`
AmountPaid float64 `p:"amountPaid" json:"amountPaid" dc:"已付款"`
ExpensesReimbursed float64 `p:"expensesReimbursed" json:"expensesReimbursed" dc:"已费用报销"`
EstimatedGrossProfit float64 `p:"estimatedGrossProfit" json:"estimatedGrossProfit" dc:"预计毛利润"`
CurrentProfit float64 `p:"currentProfit" json:"currentProfit" dc:"目前利润"`
CurrentRemainingFunds float64 `p:"currentRemainingFunds" json:"currentRemainingFunds" dc:"目前结余资金"`
ProjectedIncreaseInRemainingFunds float64 `p:"projectedIncreaseInRemainingFunds" json:"projectedIncreaseInRemainingFunds" dc:"至项目完成应增加的结余资金"`
NetPresentValueOfProjectOperation float64 `p:"netPresentValueOfProjectOperation" json:"netPresentValueOfProjectOperation" dc:"项目经营净现值"`
}
// ProjectFinanceEditRes 修改操作返回结果
type ProjectFinanceEditRes struct {
commonApi.EmptyRes
}
// ProjectFinanceGetReq 获取一条数据请求
type ProjectFinanceGetReq struct {
g.Meta `path:"/get" tags:"项目财务" method:"get" summary:"获取项目财务信息"`
commonApi.Author
Id int `p:"id" dc:"主键ID"` //通过主键获取
ProjectId int `p:"projectId" dc:"项目ID"` //通过主键获取
}
// ProjectFinanceGetRes 获取一条数据结果
type ProjectFinanceGetRes struct {
g.Meta `mime:"application/json"`
*model.ProjectFinanceInfoResVo
}
// ProjectFinanceDeleteReq 删除数据请求
type ProjectFinanceDeleteReq struct {
g.Meta `path:"/delete" tags:"项目财务" method:"delete" summary:"删除项目财务"`
commonApi.Author
Ids []int `p:"ids" v:"required#主键必须" dc:"主键ID列表"` //通过主键删除
}
// ProjectFinanceDeleteRes 删除数据返回
type ProjectFinanceDeleteRes struct {
commonApi.EmptyRes
}
// 文件上传请求
type UploadExcelReq struct {
g.Meta `path:"/excel/upload" method:"post" tags:"项目财务" summary:"上传Excel文件"`
ProjectId int64 `json:"projectId" v:"required#项目ID不能为空" dc:"项目ID"`
}
type UploadExcelRes struct {
}

View File

@ -0,0 +1,111 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2024-03-13 18:17:32
// 生成路径: api/v1/system/project_schedule.go
// 生成人gfast
// desc:项目排期相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// ProjectScheduleSearchReq 分页请求参数
type ProjectScheduleSearchReq struct {
g.Meta `path:"/list" tags:"项目排期" method:"get" summary:"项目排期列表"`
Id string `p:"id"` //
ParentId string `p:"parentId" v:"parentId@integer#设施ID需为整数"` // 设施ID
StartDate string `p:"startDate"` // 开始时间
EndDate string `p:"endDate"` // 结束时间
CreatedAt string `p:"createdAt" v:"createdAt@datetime#需为YYYY-MM-DD hh:mm:ss格式"` //
Name string `p:"name"` // 项目名
PlaneNum string `p:"planeNum"` // 计划持有量
commonApi.PageReq
commonApi.Author
}
// ProjectScheduleSearchRes 列表返回结果
type ProjectScheduleSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.ProjectScheduleListRes `json:"list"`
}
// ProjectScheduleAddReq 添加操作请求参数
type ProjectScheduleAddReq struct {
g.Meta `path:"/add" tags:"项目排期" method:"post" summary:"项目排期添加"`
commonApi.Author
ParentId int `p:"parentId" `
StartDate string `p:"startDate" `
EndDate string `p:"endDate" `
Name string `p:"name" `
PlaneNum string `p:"planeNum" `
}
// ProjectScheduleAddRes 添加操作返回结果
type ProjectScheduleAddRes struct {
commonApi.EmptyRes
}
// ProjectScheduleEditReq 修改操作请求参数
type ProjectScheduleEditReq struct {
g.Meta `path:"/edit" tags:"项目排期" method:"put" summary:"项目排期修改"`
commonApi.Author
Id uint `p:"id" v:"required#主键ID不能为空"`
ParentId int `p:"parentId" `
StartDate string `p:"startDate" `
EndDate string `p:"endDate" `
Name string `p:"name" `
PlaneNum string `p:"planeNum" `
}
// ProjectScheduleEditRes 修改操作返回结果
type ProjectScheduleEditRes struct {
commonApi.EmptyRes
}
// ProjectScheduleGetReq 获取一条数据请求
type ProjectScheduleGetReq struct {
g.Meta `path:"/get" tags:"项目排期" method:"get" summary:"获取项目排期信息"`
commonApi.Author
Id uint `p:"id" v:"required#主键必须"` // 通过主键获取
}
// ProjectScheduleGetRes 获取一条数据结果
type ProjectScheduleGetRes struct {
g.Meta `mime:"application/json"`
*model.ProjectScheduleInfoRes
}
// ProjectScheduleDeleteReq 删除数据请求
type ProjectScheduleDeleteReq struct {
g.Meta `path:"/delete" tags:"项目排期" method:"delete" summary:"删除项目排期"`
commonApi.Author
Ids []uint `p:"ids" v:"required#主键必须"` // 通过主键删除
}
// ProjectScheduleDeleteRes 删除数据返回
type ProjectScheduleDeleteRes struct {
commonApi.EmptyRes
}
// 添加计划
type ProjectScheduleAddPlanReq struct {
g.Meta `path:"/addPlan" tags:"项目排期" method:"post" summary:"项目排期添加计划"`
commonApi.Author
ConstructionId int `p:"construction_Id" v:"required#项目id不能为空"`
StartDate string `p:"startDate" v:"required#开始时间不能为空"`
EndDate string `p:"endDate" v:"required#结束时间不能为空"`
Name string `p:"name"`
PlaneNum string `p:"planeNum" v:"required#计划持有量不能为空"`
Types int `p:"types" dc:"0|1为计划中" v:"required#计划类型不能为空"`
}
type ProjectScheduleAddPlanRes struct {
commonApi.EmptyRes
}

244
api/v1/system/pv_ module.go Normal file
View File

@ -0,0 +1,244 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2024-03-23 10:25:39
// 生成路径: api/v1/system/pv_ module.go
// 生成人gfast
// desc:光伏组件相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/net/ghttp"
"github.com/gogf/gf/v2/os/gtime"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/api/v1/common/shp"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
"github.com/tiger1103/gfast/v3/internal/app/system/model/entity"
)
// PvModuleSearchReq 分页请求参数
type PvModuleSearchReq struct {
g.Meta `path:"/list" tags:"光伏组件" method:"get" summary:"光伏组件列表"`
Id string `p:"id"` //
FangzhenId string `p:"fangzhenId"` // 方阵ID
SubProjectid string `p:"subProjectid"` // 子项目ID
WorkId string `p:"workId"` // 工作ID
Name string `p:"name"` // 名字
Status string `p:"status"` // 状态 0未开始 1 进行中 2 已完成
DoneTime string `p:"doneTime" v:"doneTime@datetime#完成时间需为YYYY-MM-DD hh:mm:ss格式"` // 完成时间
Detail string `p:"detail"` // 坐标详细信息
Type string `p:"work_type"` // 类型
commonApi.PageReq
commonApi.Author
}
// PvModuleSearchRes 列表返回结果
type PvModuleSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.PvModuleListRes `json:"list"`
}
// PvModuleAddReq 添加操作请求参数
type PvModuleAddReq struct {
g.Meta `path:"/add" tags:"光伏组件" method:"post" summary:"光伏组件添加"`
commonApi.Author
FangzhenId string `p:"fangzhenId" `
SubProjectid string `p:"subProjectid" `
WorkId string `p:"workId" `
Name string `p:"name" v:"required#名字不能为空"`
Status string `p:"status" v:"required#状态 0未开始 1 进行中 2 已完成不能为空"`
DoneTime *gtime.Time `p:"doneTime" `
Detail string `p:"detail"`
}
// PvModuleAddRes 添加操作返回结果
type PvModuleAddRes struct {
commonApi.EmptyRes
}
// PvModuleEditReq 修改操作请求参数
type PvModuleEditReq struct {
g.Meta `path:"/edit" tags:"光伏组件" method:"put" summary:"光伏组件修改"`
commonApi.Author
Id uint `p:"id" v:"required#主键ID不能为空"`
FangzhenId string `p:"fangzhenId" `
SubProjectid string `p:"subProjectid" `
WorkId string `p:"workId" `
Name string `p:"name" v:"required#名字不能为空"`
Status string `p:"status" v:"required#状态 0未开始 1 进行中 2 已完成不能为空"`
DoneTime *gtime.Time `p:"doneTime" `
Detail string `p:"detail" `
}
// PvModuleEditRes 修改操作返回结果
type PvModuleEditRes struct {
commonApi.EmptyRes
}
// PvModuleGetReq 获取一条数据请求
type PvModuleGetReq struct {
g.Meta `path:"/get" tags:"光伏组件" method:"get" summary:"获取光伏组件信息"`
commonApi.Author
Id uint `p:"id" v:"required#主键必须"` // 通过主键获取
}
// PvModuleGetRes 获取一条数据结果
type PvModuleGetRes struct {
g.Meta `mime:"application/json"`
*model.PvModuleInfoRes
}
// PvModuleDeleteReq 删除数据请求
type PvModuleDeleteReq struct {
g.Meta `path:"/delete" tags:"光伏组件" method:"delete" summary:"删除光伏组件"`
commonApi.Author
Ids []uint `p:"ids" v:"required#主键必须"` // 通过主键删除
}
// PvModuleDeleteRes 删除数据返回
type PvModuleDeleteRes struct {
commonApi.EmptyRes
}
// PvModuleImportReq 导入项目描述文件
type PvModuleImportReq struct {
g.Meta `path:"/import" tags:"光伏组件" method:"post" summary:"导入箱变"`
commonApi.Author
// WorkID string `p:"workID" v:"required#工作ID不能为空"`
FangZhenID string `p:"fangZhenID" v:"required#方阵ID不能为空" dc:"方阵ID"`
// 项目ID
ProjectID string `p:"projectID" v:"required#项目ID不能为空" dc:"主项目ID"`
// 子项目ID
SubProjectID string `p:"subProjectID" v:"required#子项目ID不能为空" dc:"子项目ID"`
// TypeNumb int `p:"typeNumb" v:"required#类型编号不能为空" dc:"类型编号"`
Files []*ghttp.UploadFile `p:"files" v:"required#文件不能为空" dc:"shp 文件"`
}
type PvModuleImportCory struct {
FangZhenID string `p:"fangZhenID" v:"required#方阵ID不能为空" dc:"方阵ID"`
ProjectID string `p:"projectID" v:"required#项目ID不能为空" dc:"主项目ID"`
SubProjectID string `p:"subProjectID" v:"required#子项目ID不能为空" dc:"子项目ID"`
Shapes *shp.ShpObj `p:"shapes" v:"required#子项目ID不能为空" dc:"数据"`
}
// 导入逆变器
type PvModuleImportInverterReq struct {
g.Meta `path:"/importInverter" tags:"光伏组件" method:"post" summary:"导入逆变器"`
commonApi.Author
FangZhenID string `p:"fangZhenID" v:"required#方阵ID不能为空" dc:"方阵ID"`
ProjectID string `p:"projectID" v:"required#项目ID不能为空" dc:"主项目ID"`
SubProjectID string `p:"subProjectID" v:"required#子项目ID不能为空" dc:"子项目ID"`
// TypeNumb int `p:"typeNumb" v:"required#类型编号不能为空" dc:"类型编号"`
Files []*ghttp.UploadFile `p:"file" v:"required#文件不能为空" dc:"shp 文件"`
}
type ImportInverterCory struct {
FangZhenID string `p:"fangZhenID" v:"required#方阵ID不能为空" dc:"方阵ID"`
ProjectID string `p:"projectID" v:"required#项目ID不能为空" dc:"主项目ID"`
SubProjectID string `p:"subProjectID" v:"required#子项目ID不能为空" dc:"子项目ID"`
Shapes *shp.ShpObj `p:"shapes" v:"required#子项目ID不能为空" dc:"数据"`
}
// PvModuleImportRes 导入项目描述文件返回
type PvModuleImportRes struct {
commonApi.EmptyRes
}
// 导入光伏板
type PvModuleImportPvBoardReq struct {
g.Meta `path:"/importPvBoard" tags:"光伏组件" method:"post" summary:"导入光伏板"`
commonApi.Author
FangZhenID string `p:"fangZhenID" v:"required#方阵ID不能为空" dc:"方阵ID"`
ProjectID string `p:"projectID" v:"required#项目ID不能为空" dc:"主项目ID"`
SubProjectID string `p:"subProjectID" v:"required#子项目ID不能为空" dc:"子项目ID"`
Files []*ghttp.UploadFile `p:"file" v:"required#文件不能为空" dc:"shp 文件"`
}
type ImportPvBoardCory struct {
FangZhenID string `p:"fangZhenID" v:"required#方阵ID不能为空" dc:"方阵ID"`
ProjectID string `p:"projectID" v:"required#项目ID不能为空" dc:"主项目ID"`
SubProjectID string `p:"subProjectID" v:"required#子项目ID不能为空" dc:"子项目ID"`
Shapes *shp.ShpObj `p:"shapes" v:"required#子项目ID不能为空" dc:"数据"`
Fangzhens []entity.QianqiFangzhen `p:"fangzhens" `
}
// 添加日报
type PvModuleAddDailyReq struct {
g.Meta `path:"/addDaily" tags:"光伏组件" method:"post" summary:"添加日报"`
commonApi.Author
PlanID string `p:"planID" v:"required#计划ID不能为空" dc:"计划ID"`
Ids []int `p:"ids" v:"required#主键ID不能为空" dc:"主键ID"`
WorkID string `p:"workID" v:"required#工作ID不能为空" dc:"WorkID"`
// 完成日期
DoneTime *gtime.Time `p:"doneTime" v:"required#完成时间不能为空" dc:"完成时间"`
}
type PvModuleAddDailyRes struct {
commonApi.EmptyRes
}
// 传入 WorkID Type done_time 获取具体完成的数据
type PvModuleGetDailyReq struct {
g.Meta `path:"/getDaily" tags:"光伏组件" method:"get" summary:"获取日报"`
commonApi.Author
WorkID string `p:"workID" v:"required#工作ID不能为空" dc:"WorkID"`
Type string `p:"type" v:"required#类型不能为空" dc:"类型"`
// 完成日期
DoneTime string `p:"doneTime" v:"required#完成时间不能为空" dc:"完成时间"`
}
type PvModuleGetDailyRes struct {
g.Meta `mime:"application/json"`
List []*model.PvModuleListRes `json:"list"`
}
// 删除日报
type PvModuleDeleteDailyReq struct {
g.Meta `path:"/deleteDaily" tags:"光伏组件" method:"delete" summary:"删除日报"`
commonApi.Author
// 计划的主键ID
Id int `p:"id" v:"required#主键ID不能为空" dc:"计划的主键ID"`
// 计划的WorkID
WorkID string `p:"workID" v:"required#工作ID不能为空" dc:"计划的WorkID"`
// 需要被删除计划的时间
Time string `p:"time" v:"required#时间不能为空" dc:"计划的时间"`
// 需要被删除计划的主键ID列表
PlanID []int `p:"planID" v:"required#计划ID不能为空" dc:"计划的主键ID"`
}
type PvModuleDeleteDailyRes struct {
commonApi.EmptyRes
}
// 上传 excel 为指定子项目添加数据
type PvModuleAddExcelReq struct {
g.Meta `path:"/addExcel" tags:"光伏组件" method:"post" summary:"上传excel添加数据"`
commonApi.Author
// 项目ID
ProjectID string `p:"projectID" v:"required#项目ID不能为空" dc:"主项目ID"`
// 子项目ID
SubProjectID string `p:"subProjectID" v:"required#子项目ID不能为空" dc:"子项目ID"`
// 文件
File *ghttp.UploadFile `p:"file" v:"required#文件不能为空" dc:"excel 文件"`
}
type PvModuleAddExcelRes struct {
commonApi.EmptyRes
}
// 为逆变器绑定设备ID
type PvModuleBindDeviceIDReq struct {
g.Meta `path:"/bindDeviceID" tags:"光伏组件" method:"post" summary:"为逆变器绑定设备ID"`
commonApi.Author
// 主键ID
ID int `p:"id" v:"required#主键ID不能为空" dc:"主键ID"`
// 设备ID
DeviceID string `p:"deviceID" v:"required#设备ID不能为空" dc:"设备ID"`
}
type PvModuleBindDeviceIDRes struct {
commonApi.EmptyRes
}

View File

@ -0,0 +1,92 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2023-07-31 11:44:41
// 生成路径: api/v1/system/qianqi_bubantu.go
// 生成人gfast
// desc:布板图相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/net/ghttp"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// QianqiBubantuSearchReq 分页请求参数
type QianqiBubantuSearchReq struct {
g.Meta `path:"/list" tags:"布板图" method:"get" summary:"布板图列表"`
ProjectId string `p:"projectId" v:"required#项目id不能为空"` //项目id
Name string `p:"name"` //名称
CreatedAt string `p:"createdAt" v:"createdAt@datetime#创建时间需为YYYY-MM-DD hh:mm:ss格式"` //创建时间
commonApi.PageReq
commonApi.Author
}
// QianqiBubantuSearchRes 列表返回结果
type QianqiBubantuSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.QianqiBubantuListRes `json:"list"`
}
// QianqiBubantuAddReq 添加操作请求参数
type QianqiBubantuAddReq struct {
g.Meta `path:"/add" tags:"布板图" method:"post" summary:"布板图添加"`
commonApi.Author
ProjectId string `p:"projectId" v:"required#项目id不能为空"`
GuangfubanId string `p:"guangfubanId" v:"required#光伏板id不能为空"`
//Name string `p:"name" v:"required#名称不能为空"`
//SourceId string `p:"sourceId" `
//SourcePath string `p:"sourcePath" `
File []*ghttp.UploadFile `p:"file" `
}
// QianqiBubantuAddRes 添加操作返回结果
type QianqiBubantuAddRes struct {
commonApi.EmptyRes
}
// QianqiBubantuEditReq 修改操作请求参数
type QianqiBubantuEditReq struct {
g.Meta `path:"/edit" tags:"布板图" method:"put" summary:"布板图修改"`
commonApi.Author
Id int `p:"id" v:"required#主键ID不能为空"`
//ProjectId string `p:"projectId" `
Name string `p:"name" v:"required#名称不能为空"`
//SourceId string `p:"sourceId" `
//SourcePath string `p:"sourcePath" `
}
// QianqiBubantuEditRes 修改操作返回结果
type QianqiBubantuEditRes struct {
commonApi.EmptyRes
}
// QianqiBubantuGetReq 获取一条数据请求
type QianqiBubantuGetReq struct {
g.Meta `path:"/get" tags:"布板图" method:"get" summary:"获取布板图信息"`
commonApi.Author
Id int `p:"id" v:"required#主键必须"` //通过主键获取
}
// QianqiBubantuGetRes 获取一条数据结果
type QianqiBubantuGetRes struct {
g.Meta `mime:"application/json"`
*model.QianqiBubantuInfoRes
}
// QianqiBubantuDeleteReq 删除数据请求
type QianqiBubantuDeleteReq struct {
g.Meta `path:"/delete" tags:"布板图" method:"delete" summary:"删除布板图"`
commonApi.Author
Ids []int `p:"ids" v:"required#主键必须"` //通过主键删除
}
// QianqiBubantuDeleteRes 删除数据返回
type QianqiBubantuDeleteRes struct {
commonApi.EmptyRes
}

View File

@ -0,0 +1,139 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2023-09-30 22:37:34
// 生成路径: api/v1/system/qianqi_camera.go
// 生成人gfast
// desc:摄像头相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/api/v1/common/shp"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// QianqiCameraSearchReq 分页请求参数
type QianqiCameraSearchReq struct {
g.Meta `path:"/list" tags:"摄像头" method:"get" summary:"摄像头列表"`
Id string `p:"id"` //
CameraName string `p:"cameraName"` // 摄像头名称
CameraCode string `p:"cameraCode"` // 摄像头编码
Detail string `p:"detail"` // 摄像头坐标信息
ProjectId string `p:"projectId"` // 项目id
Status string `p:"status" v:"status@integer#在线情况1、在线0、离线,字典on_line_status需为整数"` // 在线情况1、在线0、离线,字典on_line_status
Poster string `p:"poster"` // 封面图
CreateBy string `p:"createBy"` // 创建人
UpdateBy string `p:"updateBy"` // 更新人
CreateddAt string `p:"createddAt" v:"createddAt@datetime#创建时间需为YYYY-MM-DD hh:mm:ss格式"` // 创建时间
SourceType string `p:"sourceType"` //
Serial string `p:"serial"` // 国标id
Code string `p:"code"` // 通道号
Flv string `p:"flv"` // flv地址
Hls string `p:"hls"` // hls地址
Share string `p:"share"` // 分享地址
Rtc string `p:"rtc"` // webrtc地址
commonApi.PageReq
commonApi.Author
}
// QianqiCameraSearchRes 列表返回结果
type QianqiCameraSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.QianqiCameraListRes `json:"list"`
}
// QianqiCameraAddReq 添加操作请求参数
type QianqiCameraAddReq struct {
g.Meta `path:"/add" tags:"摄像头" method:"post" summary:"摄像头添加"`
commonApi.Author
CameraName string `p:"cameraName" dc:"摄像头名称" v:"required#摄像头名称不能为空"`
// CameraCode string `p:"cameraCode" dc:"摄像头编码" `
Detail string `p:"detail" dc:"摄像头坐标信息"`
ProjectId string `p:"projectId" dc:"项目id" v:"required#项目ID不能为空"`
Status int `p:"status" dc:"在线情况1、在线0、离线,字典on_line_status不能为空" v:"required#在线情况1、在线0、离线,字典on_line_status不能为空"`
Poster string `p:"poster" dc:"封面图"`
// CreateBy string `p:"createBy" `
// UpdateBy string `p:"updateBy" `
// CreateddAt *gtime.Time `p:"createddAt" `
// SourceType string `p:"sourceType" `
Serial string `p:"serial" dc:"国标号"`
Code string `p:"code" dc:"通道号" `
// Flv string `p:"flv" `
// Hls string `p:"hls" `
// Share string `p:"share" `
// Rtc string `p:"rtc" `
}
// QianqiCameraAddRes 添加操作返回结果
type QianqiCameraAddRes struct {
commonApi.EmptyRes
}
type QianqiCameraEditNameAndDetailReq struct {
g.Meta `path:"/editNameAndDetail" tags:"摄像头" method:"put" summary:"摄像头修改名称和坐标详情数据"`
commonApi.Author
CameraName string `p:"cameraName" v:"required#摄像头名称不能为空"`
CameraCode string `p:"cameraCode" v:"required#摄像头编码不能为空"`
Detail shp.Detail `p:"detail" v:"required#摄像头坐标详情不能为空"`
}
type QianqiCameraEditNameAndDetailRes struct {
commonApi.EmptyRes
}
// QianqiCameraEditReq 视频融合(平移、旋转)
type QianqiCameraEditReq struct {
g.Meta `path:"/edit" tags:"摄像头" method:"put" summary:"视频融合(平移、旋转)"`
commonApi.Author
Id int64 `p:"id" v:"required#主键ID不能为空"`
Degree shp.Degree `p:"degree" dc:"经度、纬度、高度、旋转值"`
}
// QianqiCameraEditRes 视频融合(平移、旋转)
type QianqiCameraEditRes struct {
commonApi.EmptyRes
}
// QianqiCameraGetReq 获取一条数据请求
type QianqiCameraGetReq struct {
g.Meta `path:"/get" tags:"摄像头" method:"get" summary:"获取摄像头信息"`
commonApi.Author
Id int `p:"id" v:"required#主键必须"` // 通过主键获取
}
// QianqiCameraGetRes 获取一条数据结果
type QianqiCameraGetRes struct {
g.Meta `mime:"application/json"`
*model.QianqiCameraInfoRes
}
// QianqiCameraDeleteReq 删除数据请求
type QianqiCameraDeleteReq struct {
g.Meta `path:"/delete" tags:"摄像头" method:"delete" summary:"删除摄像头"`
commonApi.Author
Ids []int `p:"ids" v:"required#主键必须"` // 通过主键删除
}
// QianqiCameraDeleteRes 删除数据返回
type QianqiCameraDeleteRes struct {
commonApi.EmptyRes
}
// EditCameraReq 摄像头修改(名称、国标、通道)
type EditCameraReq struct {
g.Meta `path:"/cameraEdit" tags:"摄像头" method:"put" summary:"摄像头修改(名称、国标、通道)"`
commonApi.Author
Id int64 `p:"id" dc:"主键ID" v:"required#主键ID不能为空"`
CameraName string `p:"cameraName" dc:"摄像头名称" v:"required#摄像头名称必填"`
Serial string `p:"serial" dc:"国标" v:"required#国标必填"`
Code string `p:"code" dc:"通道" v:"required#通道必填"`
}
// EditCameraRes 视频融合(平移、旋转)
type EditCameraRes struct {
commonApi.EmptyRes
}

View File

@ -0,0 +1,92 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2023-07-31 11:44:56
// 生成路径: api/v1/system/qianqi_dixing.go
// 生成人gfast
// desc:地形相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/net/ghttp"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// QianqiDixingSearchReq 分页请求参数
type QianqiDixingSearchReq struct {
g.Meta `path:"/list" tags:"地形" method:"get" summary:"地形列表"`
ProjectId string `p:"projectId" v:"required#项目id不能为空"` //项目id
Name string `p:"name"` //名称
CreatedAt string `p:"createdAt" v:"createdAt@datetime#创建时间需为YYYY-MM-DD hh:mm:ss格式"` //创建时间
commonApi.PageReq
commonApi.Author
}
// QianqiDixingSearchRes 列表返回结果
type QianqiDixingSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.QianqiDixingListRes `json:"list"`
}
// QianqiDixingAddReq 添加操作请求参数
type QianqiDixingAddReq struct {
g.Meta `path:"/add" tags:"地形" method:"post" summary:"地形添加"`
commonApi.Author
ProjectId string `p:"projectId" `
//Name string `p:"name" v:"required#名称不能为空"`
//SourceId string `p:"sourceId" `
//SourcePath string `p:"sourcePath" `
File []*ghttp.UploadFile `p:"file" `
}
// QianqiDixingAddRes 添加操作返回结果
type QianqiDixingAddRes struct {
commonApi.EmptyRes
}
// QianqiDixingEditReq 修改操作请求参数
type QianqiDixingEditReq struct {
g.Meta `path:"/edit" tags:"地形" method:"put" summary:"地形修改"`
commonApi.Author
Id int `p:"id" v:"required#主键ID不能为空"`
//ProjectId string `p:"projectId" `
Name string `p:"name" v:"required#名称不能为空"`
//SourceId string `p:"sourceId" `
//SourcePath string `p:"sourcePath" `
}
// QianqiDixingEditRes 修改操作返回结果
type QianqiDixingEditRes struct {
commonApi.EmptyRes
}
// QianqiDixingGetReq 获取一条数据请求
type QianqiDixingGetReq struct {
g.Meta `path:"/get" tags:"地形" method:"get" summary:"获取地形信息"`
commonApi.Author
Id int `p:"id" v:"required#主键必须"` //通过主键获取
}
// QianqiDixingGetRes 获取一条数据结果
type QianqiDixingGetRes struct {
g.Meta `mime:"application/json"`
*model.QianqiDixingInfoRes
}
// QianqiDixingDeleteReq 删除数据请求
type QianqiDixingDeleteReq struct {
g.Meta `path:"/delete" tags:"地形" method:"delete" summary:"删除地形"`
commonApi.Author
Ids []int `p:"ids" v:"required#主键必须"` //通过主键删除
}
// QianqiDixingDeleteRes 删除数据返回
type QianqiDixingDeleteRes struct {
commonApi.EmptyRes
}

139
api/v1/system/qianqi_dxf.go Normal file
View File

@ -0,0 +1,139 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2023-07-31 11:20:54
// 生成路径: api/v1/system/qianqi_fangzhen.go
// 生成人gfast
// desc:方阵相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
)
type DxfGetReq struct {
g.Meta `path:"/dxfGetReq" tags:"dxf" method:"post" summary:"dxf得到json"`
commonApi.Author
}
type DxfGetRes struct {
commonApi.EmptyRes
}
type DxfDataReq struct {
g.Meta `path:"/dxfDataReq" tags:"dxf" method:"post" summary:"json数据"`
commonApi.Author
}
type DxfDataRes struct {
commonApi.EmptyRes
Map map[string]interface{} `p:"map" `
}
// 方阵
type FzReq struct {
g.Meta `path:"/fz" tags:"dxf" method:"post" summary:"方正数据新增"`
commonApi.Author
Point []FacGeoJsonByPoint `p:"point" dc:"名称"`
Plane []FacGeoJsonByPlane `p:"plane" dc:"经纬度"`
ProjectId string `p:"projectId" v:"required#项目id不能为空"`
SubProjectId string `p:"subProjectId" v:"required#子项目id不能为空"`
}
type FzRes struct {
commonApi.EmptyRes
}
// 光伏板
type GfbReq struct {
g.Meta `path:"/gfb" tags:"dxf" method:"post" summary:"光伏板新增"`
commonApi.Author
Point []FacGeoJsonByPoint `p:"point" dc:"名称"`
Plane []FacGeoJsonByPlane `p:"plane" dc:"经纬度"`
ProjectId string `p:"projectId" v:"required#项目id不能为空"`
SubProjectId string `p:"subProjectId" v:"required#子项目id不能为空"`
}
type GfbRes struct {
commonApi.EmptyRes
}
// 逆变器
type NbqReq struct {
g.Meta `path:"/nbq" tags:"dxf" method:"post" summary:"逆变器新增"`
commonApi.Author
Point []FacGeoJsonByPoint `p:"point" dc:"名称"`
Plane []FacGeoJsonByPoint `p:"plane" dc:"经纬度"`
ProjectId string `p:"projectId" v:"required#项目id不能为空"`
SubProjectId string `p:"subProjectId" v:"required#子项目id不能为空"`
}
type NbqRes struct {
commonApi.EmptyRes
}
// 箱变
type XbReq struct {
g.Meta `path:"/xb" tags:"dxf" method:"post" summary:"箱变新增"`
commonApi.Author
Point []FacGeoJsonByPoint `p:"point" dc:"名称"`
Plane []FacGeoJsonByPoint `p:"plane" dc:"经纬度"`
ProjectId string `p:"projectId" v:"required#项目id不能为空"`
SubProjectId string `p:"subProjectId" v:"required#子项目id不能为空"`
}
type XbRes struct {
commonApi.EmptyRes
}
// 桩点、立柱、支架
type ZdReq struct {
g.Meta `path:"/zd" tags:"dxf" method:"post" summary:"桩点、立柱、支架新增"`
commonApi.Author
Plane []FacGeoJsonByPoint `p:"plane" dc:"经纬度"`
ProjectId string `p:"projectId" v:"required#项目id不能为空"`
SubProjectid string `p:"subprojectid" v:"required#子项目id不能为空"`
}
type ZdRes struct {
commonApi.EmptyRes
}
//公共结构体
type FacGeoJsonByPlane struct {
Name string `json:"name"`
Type string `json:"type"`
Features []FacFeatureByPlane `json:"features"`
}
type FacFeatureByPlane struct {
Type string `json:"type"`
Geometry FacGeometryByPlane `json:"geometry"`
Properties FacProperties `json:"properties"`
}
type FacGeometryByPlane struct {
Type string `json:"type"`
Coordinates [][][]float64 `json:"coordinates"`
ID int64 `json:"id"`
}
type FacGeoJsonByPoint struct {
Name string `json:"name"`
Type string `json:"type"`
Features []FacFeatureByPoint `json:"features"`
}
type FacFeatureByPoint struct {
Type string `json:"type"`
Geometry FacGeometryByPoint `json:"geometry"`
Properties FacProperties `json:"properties"`
}
type FacGeometryByPoint struct {
Type string `json:"type"`
Coordinates []float64 `json:"coordinates"`
ID int64 `json:"id"`
}
type FacProperties struct {
Type string `json:"type"`
Text string `json:"text"`
}

View File

@ -0,0 +1,150 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2023-07-31 11:20:54
// 生成路径: api/v1/system/qianqi_fangzhen.go
// 生成人gfast
// desc:方阵相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/net/ghttp"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/api/v1/common/shp"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// QianqiFangzhenSearchReq 分页请求参数
type QianqiFangzhenSearchReq struct {
g.Meta `path:"/list" tags:"方阵" method:"get" summary:"方阵列表"`
ProjectId string `p:"projectId" v:"required#项目id不能为空"` // 项目id
Name string `p:"name"` // 名称
CreatedAt string `p:"createdAt" v:"createdAt@datetime#创建时间需为YYYY-MM-DD hh:mm:ss格式"` // 创建时间
commonApi.PageReq
commonApi.Author
}
// QianqiFangzhenSearchRes 列表返回结果
type QianqiFangzhenSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.QianqiFangzhenListRes `json:"list"`
}
// QianqiFangzhenAddReq 添加操作请求参数
type QianqiFangzhenAddReq struct {
g.Meta `path:"/add" tags:"方阵" method:"post" summary:"方阵添加"`
commonApi.Author
ProjectId string `p:"projectId" v:"required#项目id不能为空"`
// Name string `p:"name" `
// SourceId string `p:"sourceId" `
// SourcePath string `p:"sourcePath" `
XiangbianId string `p:"xiangbianId" `
File []*ghttp.UploadFile `p:"file" `
}
//// QianqiFangzhenAddReq 添加操作请求参数
//type QianqiFangzhenAddReq struct {
// g.Meta `path:"/add" tags:"方阵" method:"post" summary:"方阵添加"`
// commonApi.Author
// ProjectId string `p:"projectId" v:"required#项目id不能为空"`
// XiangbianId string `p:"xiangbianId" `
// FilePath string `p:"filePath" `
//}
// QianqiFangzhenAddRes 添加操作返回结果
type QianqiFangzhenAddRes struct {
commonApi.EmptyRes
}
// QianqiFangzhenEditReq 修改操作请求参数
type QianqiFangzhenEditReq struct {
g.Meta `path:"/edit" tags:"方阵" method:"put" summary:"方阵修改"`
commonApi.Author
Name string `p:"name" `
SourceId string `p:"sourceId"`
Detail string `json:"detail"`
}
// QianqiFangzhenEditRes 修改操作返回结果
type QianqiFangzhenEditRes struct {
commonApi.EmptyRes
}
// QianqiFangzhenGetReq 获取一条数据请求
type QianqiFangzhenGetReq struct {
g.Meta `path:"/get" tags:"方阵" method:"get" summary:"获取方阵信息"`
commonApi.Author
Id int `p:"id" v:"required#主键必须"` // 通过主键获取
}
// QianqiFangzhenGetRes 获取一条数据结果
type QianqiFangzhenGetRes struct {
g.Meta `mime:"application/json"`
*model.QianqiFangzhenInfoRes
}
// QianqiFangzhenDeleteReq 删除数据请求
type QianqiFangzhenDeleteReq struct {
g.Meta `path:"/delete" tags:"方阵" method:"delete" summary:"删除方阵"`
commonApi.Author
Ids []int `p:"ids" v:"required#主键必须"` // 通过主键删除
}
// QianqiFangzhenDeleteRes 删除数据返回
type QianqiFangzhenDeleteRes struct {
commonApi.EmptyRes
}
type QianqiFangzhenEditDetailReq struct {
g.Meta `path:"/edit_detail" tags:"方阵" method:"put" summary:"方阵修改坐标高程信息"`
commonApi.Author
Detail shp.Polyline `json:"detail"`
SourceId string `p:"sourceId" v:"required#资源id必须"`
}
type QianqiFangzhenEditDetailRes struct {
commonApi.EmptyRes
}
type QianqiFangzhenAddDeviceReq struct {
g.Meta `path:"/add_device" tags:"方阵" method:"post" summary:"方阵与其施工设备关联"`
commonApi.Author
// 方阵id
FangzhenId string `p:"fangzhenId" v:"required#方阵id不能为空"`
}
type QianqiFangzhenAddDeviceRes struct {
commonApi.EmptyRes
}
type Component struct {
Name string // 子设备名
IsPercentage *int // 是否百分比
Quantity int // 数量
TypeNumber int
}
type FacilityGroup struct {
Name string
FacilityCount *int
IsPercentage *int // 是否百分比
TypeNumber int
Components []Component
}
// 传入方阵的主键ID 并将其 ViewName 更新到表中
type QianqiFangzhenUpdateViewNameReq struct {
g.Meta `path:"/updateView" tags:"方阵" method:"put" summary:"更新方阵的ViewName"`
commonApi.Author
Id int `p:"id" dc:"方阵的ID" v:"required#缺少方阵的主键ID"` // 方阵的主键ID
View string `p:"view" dc:"view的名字" v:"required#缺少方阵的ViewName"` // 方阵的ViewName
}
type QianqiFangzhenUpdateViewNameRes struct {
commonApi.EmptyRes
}

View File

@ -0,0 +1,158 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2023-07-31 11:31:49
// 生成路径: api/v1/system/qianqi_guangfuban.go
// 生成人gfast
// desc:光伏板模型相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/net/ghttp"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// QianqiGuangfubanSearchReq 分页请求参数
type QianqiGuangfubanSearchReq struct {
g.Meta `path:"/list" tags:"光伏板模型" method:"get" summary:"光伏板模型列表"`
ProjectId string `p:"projectId" v:"required#项目id不能为空"` //项目id
Name string `p:"name"` //倾斜模型
CreatedAt string `p:"createdAt" v:"createdAt@datetime#创建时间需为YYYY-MM-DD hh:mm:ss格式"` //创建时间
commonApi.PageReq
commonApi.Author
}
// QianqiGuangfubanSearchRes 列表返回结果
type QianqiGuangfubanSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.QianqiGuangfubanListRes `json:"list"`
}
// QianqiGuangfubanAddReq 添加操作请求参数
type QianqiGuangfubanAddReq struct {
g.Meta `path:"/add" tags:"光伏板模型" method:"post" summary:"光伏板模型添加"`
commonApi.Author
ProjectId string `p:"projectId" v:"required#项目id不能为空"`
//Name string `p:"name" v:"required#倾斜模型不能为空"`
//SourcePath string `p:"sourcePath" `
//SourceId string `p:"sourceId" `
Detail string `p:"detail" `
File *ghttp.UploadFile `p:"file" `
}
// QianqiGuangfubanAddRes 添加操作返回结果
type QianqiGuangfubanAddRes struct {
commonApi.EmptyRes
}
// QianqiGuangfubanEditReq 修改操作请求参数
type QianqiGuangfubanEditReq struct {
g.Meta `path:"/edit" tags:"光伏板模型" method:"put" summary:"光伏板模型修改"`
commonApi.Author
Id int `p:"id" v:"required#主键ID不能为空"`
Name string `p:"name" v:"required#倾斜模型不能为空"`
Detail string `p:"detail" `
}
// QianqiGuangfubanEditRes 修改操作返回结果
type QianqiGuangfubanEditRes struct {
commonApi.EmptyRes
}
// QianqiGuangfubanGetReq 获取一条数据请求
type QianqiGuangfubanGetReq struct {
g.Meta `path:"/get" tags:"光伏板模型" method:"get" summary:"获取光伏板模型信息"`
commonApi.Author
Id int `p:"id" v:"required#主键必须"` //通过主键获取
}
// QianqiGuangfubanGetRes 获取一条数据结果
type QianqiGuangfubanGetRes struct {
g.Meta `mime:"application/json"`
*model.QianqiGuangfubanInfoRes
}
// QianqiGuangfubanDeleteReq 删除数据请求
type QianqiGuangfubanDeleteReq struct {
g.Meta `path:"/delete" tags:"光伏板模型" method:"delete" summary:"删除光伏板模型"`
commonApi.Author
//Ids []int `p:"ids" v:"required#主键必须"` //通过主键删除
SourceIDs []string `p:"sourceIDs" v:"required"` //通过主键删除
}
// QianqiGuangfubanDeleteRes 删除数据返回
type QianqiGuangfubanDeleteRes struct {
commonApi.EmptyRes
}
// // UploadFileBimReq 文件上传
//
// type UploadFileBimReq struct {
// g.Meta `path:"/gfbUploadFile" tags:"光伏板模型" method:"post" summary:"上传文件"`
// commonApi.Author
// File *ghttp.UploadFile `p:"file" `
// }
//
// type UploadFileBimRes struct {
// commonApi.EmptyRes
// FileName string `p:"fileName" `
// FilePath string `p:"filePath" `
// }
//
// QianqiGuangfubanImportZuchuanReq 添加操作请求参数
type QianqiGuangfubanImportZuchuanReq struct {
g.Meta `path:"/zuchuan/import" tags:"光伏板模型" method:"post" summary:"给光伏板模型导入对应的组串数据shp文件"`
commonApi.Author
SourceId string `p:"sourceId" v:"required#资源id不能为空" `
ProjectId string `p:"projectId" v:"required#项目id不能为空"`
File []*ghttp.UploadFile `p:"file" `
}
// QianqiGuangfubanImportZuchuanRes 添加操作返回结果
type QianqiGuangfubanImportZuchuanRes struct {
commonApi.EmptyRes
}
// QianqiGuangfubanAddReq 添加操作请求参数
type QianqiGuangfubanCalZuchuanReq struct {
g.Meta `path:"/zuchuan/caculate" tags:"光伏板模型" method:"post" summary:"根据光伏板内部的scenetree.json中的数据和组串shp进行计算每个光伏板对应的组串编号"`
commonApi.Author
SourceId string `p:"sourceId" v:"required#资源id不能为空" `
}
// QianqiGuangfubanAddRes 添加操作返回结果
type QianqiGuangfubanCalZuchuanRes struct {
commonApi.EmptyRes
}
// CorrectFuncReq 光伏板数据纠正
type CorrectFuncReq struct {
g.Meta `path:"/correct" tags:"光伏板模型" method:"post" summary:"光伏板数据纠正"`
commonApi.Author
GuangfubanSourceId string `p:"guangfubanSourceId" dc:"光伏板资源id" v:"required#光伏板资源id不能为空"`
GuangfubanData string `p:"guangfubanData" dc:"光伏板数据"`
}
// CorrectFuncRes 修改操作返回结果
type CorrectFuncRes struct {
commonApi.EmptyRes
}
// CorrectQueryFuncReq 光伏板数据纠正查询
type CorrectQueryFuncReq struct {
g.Meta `path:"/correctQuery" tags:"光伏板模型" method:"post" summary:"光伏板数据纠正查询"`
commonApi.Author
GuangfubanSourceId string `p:"guangfubanSourceId" dc:"光伏板资源ID" v:"required#光伏板资源id不能为空"`
}
// CorrectQueryFuncRes 光伏板数据纠正查询操作返回结果
type CorrectQueryFuncRes struct {
commonApi.EmptyRes
GuangfubanSourceId string `json:"guangfubanSourceId" dc:"光伏板资源ID"`
GuangfubanData string `json:"guangfubanData" dc:"光伏板数据纠正"`
}

Some files were not shown because too many files have changed in this diff Show More