绩效考核
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

71 lines
2.3 KiB

package quan
import (
"gin_server_admin/commonus"
"gin_server_admin/model/common/response"
"github.com/gin-gonic/gin"
)
// 企业微信回调
type ApiGroup struct {
}
// 入口
func (a *ApiGroup) Index(c *gin.Context) {
outPut := commonus.MapOut()
response.Result(0, outPut, "定量审批端获取成功", c)
}
// 添加定量考核
type AddRationFlowLog struct {
GroupId string `json:"groupid"`
DepartmentID string `json:"departmentid"`
Addtime string `json:"time"` //检查时间
PlanVersionNumber string `json:"planversionnumber"` //版本号
List []RationLogList `json:"list"`
}
type RationLogList struct {
Id string `json:"id"`
// Score int64 `json:"score`
Actual string `json:"actual`
Unit string `json:"unit`
Target string `json:"target`
TargetName string `json:"targetname"` //原因
Reason string `json:"reason"` //原因
Enclosure []string `json:"enclosure"` //附件
ScoringMethod int `json:"scoringmethod"` //计分方式(1:自动;2:手动)"`
ScoringScore float64 `json:"scoringscore"` //手动分"`
// PlanVersionNumber string `json:"planversionnumber"` //版本号
Addtime string `json:"time"` //检查时间
Cycle int `json:"cycle"` //1:班;2:天;3:周;4:月;5:季度;6:年;7:半年
}
// 审批参数
type ApprovalParameters struct {
OrderId string `json:"orderid"` //流程单KEY
YesOrNo int `json:"yesorno"` //1:同意;2:驳回
Content string `json:"content"` //审批意见
}
type orderIdOrNumber struct {
OrderId string `json:"id"` //流程单KEY
Number string `json:"number"` //1:同意;2:驳回
}
type TimeAllDay struct {
Year int64 `json:"year"` //年分"`
Quarter int64 `json:"quarter"` //季度"`
Month int64 `json:"month"` //月"`
Week int64 `json:"week"` //周"`
ToDay int64 `json:"today"` //天"`
}
// 定量流水全奖值、零奖值、封顶值
type FlowLogAllZreo struct {
Id string `json:"id"`
TargetId string `json:"targetid"` //指标ID`
Zeroprize float64 `json:"zeroprize"` //零奖值"`
Allprize float64 `json:"allprize"` //全奖值"`
Capping float64 `json:"capping"` //封顶值"`
}