初始
This commit is contained in:
116
api/v1/system/bus_salary_details.go
Normal file
116
api/v1/system/bus_salary_details.go
Normal 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"`
|
||||
}
|
Reference in New Issue
Block a user