model

package
v0.0.0-...-41f1090 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2023 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// ContextKey 上下文变量存储键名
	ContextKey = "ContextKey"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BudgetAccess

type BudgetAccess entity.ProductBudgetAccess

type BudgetAccessApiChangeReq

type BudgetAccessApiChangeReq struct {
	ID         int  `json:"id"`                                                     // 主键
	ScoreMin   uint `v:"required|min:0#激励预算评分下限不能为空|评分下限大于等于0" json:"scoreMin"`     // 得分下限
	ScoreMax   uint `v:"required|max:100#激励预算评分上限不能为空|评分上限小于等于100" json:"scoreMax"` // 得分上线
	ScoreRange uint ``                                                              // 得分区间包含关系(1:左闭右开,2:左开右闭,3:左闭右闭)
	/* 146-byte string literal not displayed */
	BudgetMin   float64 `v:"required|min:0#预算下限不能为空|预算下限大于等于0" json:"budgetMin"`                 // 预算下限
	BudgetMax   float64 `v:"required|max:100000000#预算上限不能为空|预算上限小于等于100000000" json:"budgetMax"` // 预算上线
	BudgetRange uint    ``                                                                       // 得分区间包含关系(1:左闭右开,2:左开右闭,3:左闭右闭)
	/* 147-byte string literal not displayed */
	Remark string `json:"remark"` // 预留备注说明信息
}

BudgetAccessApiChangeReq 项目激励预算信息变更

type BudgetAccessApiDeleteReq

type BudgetAccessApiDeleteReq struct {
	ID string `v:"required|integer#删除数据源不能为空|删除数据源错误" json:"id"` // 主键
}

BudgetAccessApiDeleteReq 删除项目激励预算信息

type BudgetAccessApiGetListReq

type BudgetAccessApiGetListReq struct {
	Page         int32        `json:"page"` // 页码
	Size         int32        `json:"size"` // 每页显示数据大小
	BudgetAccess BudgetAccess `json:"BudgetAccess"`
}

BudgetAccessApiGetListReq 项目激励预算信息列表

type BudgetRadio

type BudgetRadio entity.ProductStageRadio

type BudgetRadioApiChangeReq

type BudgetRadioApiChangeReq struct {
	ID         int  `json:"id"`                                                   // 主键
	Sid        int  `json:"sid"`                                                  // 阶段ID
	ScoreMin   uint `v:"required|min:0#阶段评分下限不能为空|评分下限大于等于0" json:"scoreMin"`     // 得分下限
	ScoreMax   uint `v:"required|max:100#阶段评分上限不能为空|评分上限小于等于100" json:"scoreMax"` // 得分上线
	ScoreRange uint ``                                                            // 得分区间包含关系(1:左闭右开,2:左开右闭,3:左闭右闭)
	/* 146-byte string literal not displayed */
	QuotaRadio float64 `v:"required|min:0#分配比例不能为空|分配比例大于等于0" json:"quotaRadio"` // 激励额度占比
	Remark     string  `json:"remark"`                                           // 预留备注说明信息
}

BudgetRadioApiChangeReq 项目激励预算信息变更

type BudgetRadioApiDeleteReq

type BudgetRadioApiDeleteReq struct {
	ID string `v:"required|integer#删除数据源不能为空|删除数据源错误" json:"id"` // 主键
}

BudgetRadioApiDeleteReq 删除项目激励预算信息

type BudgetRadioApiGetListReq

type BudgetRadioApiGetListReq struct {
	BudgetRadio BudgetRadio `json:"BudgetRadio"`
}

BudgetRadioApiGetListReq 项目激励预算信息列表

type ChatApiSetNameReq

type ChatApiSetNameReq struct {
	Name string `json:"type" v:"required|max-length:21#取一个响当当的名字吧|用户昵称最长为21字节"`
}

设置昵称请求

type ChatMsg

type ChatMsg struct {
	Type string      `json:"type" v:"required#消息类型不能为空"`
	Data interface{} `json:"data" v:""`
	From string      `json:"name" v:""`
}

Chat Msg 消息结构体

type Context

type Context struct {
	Session *ghttp.Session // 当前Session管理对象
	User    *ContextUser   // 上下文用户信息
}

Context 请求上下文结构

type ContextUser

type ContextUser struct {
	UserInfo          *UserInfo           `json:"userInfo"`          // 系统账号信息
	RoleLevel         int                 `json:"roleLevel"`         // 系统账号信息
	EmployeeInfo      *Employee           `json:"employeeInfo"`      // 员工主体信息
	JobInfo           []entity.Job        `json:"jobInfo"`           // 员工岗位信息
	DepartmentInfo    []entity.Department `json:"departmentInfo"`    // 员工所在部门信息
	ProductRole       int                 `json:"productRole"`       // 员工参与项目主键信息
	ProductIds        []uint              `json:"productIds"`        // 员工参与项目主键信息
	ProductMemberList []*ProductMember    `json:"productMemberList"` // 员工参与项目信息
}

ContextUser 请求上下文中的用户信息

type CrewDutyIndex

type CrewDutyIndex entity.CrewDutyIndex

type CrewDutyIndexApiAll

type CrewDutyIndexApiAll struct {
	CrewDutyInfo CrewDutyIndex `json:"crewDutyInfo"`
	JobLevelName string        `json:"jobLevelName"`
}

CrewDutyIndexApiAll 责任指数预算信息变更

type CrewDutyIndexApiChangeReq

type CrewDutyIndexApiChangeReq struct {
	ID         int    `json:"id"`                                                          // 主键
	ScoreIndex int    `v:"required|min:0#责任指数不能为空|责任指数大于等于0" json:"scoreIndex"`            // 职责指数
	JobLevelId uint   `v:"required|min:0#职级不能为空|请选择对应职级" json:"jobLevelId"`                // 职级ID
	Arith      string `v:"required|in:eq,gt,lt,egt,elt,neq#运算方式不能为空|请选择运算方式" json:"arith"` // 运算方式
	Remark     string `json:"remark"`                                                      // 预留备注说明信息
}

CrewDutyIndexApiChangeReq 责任指数预算信息变更

type CrewDutyIndexApiDeleteReq

type CrewDutyIndexApiDeleteReq struct {
	ID string `v:"required|integer#删除数据源不能为空|删除数据源错误" json:"id"` // 主键
}

CrewDutyIndexApiDeleteReq 删除责任指数预算信息

type CrewHoursIndex

type CrewHoursIndex entity.CrewHoursIndex

type CrewHoursIndexApiChangeReq

type CrewHoursIndexApiChangeReq struct {
	ID         int     `json:"id"`                                                     // 主键
	ScoreIndex int     `v:"required|min:0#管理指数不能为空|管理指数大于等于0" json:"scoreIndex"`       // 管理指数
	ScoreMin   float64 `v:"required|min:0#工时占比下限不能为空|工时占比下限大于等于0" json:"scoreMin"`     // 得分下限
	ScoreMax   float64 `v:"required|max:100#工时占比上限不能为空|工时占比上限小于等于100" json:"scoreMax"` // 得分上线
	ScoreRange uint    ``                                                              // 得分区间包含关系(1:左闭右开,2:左开右闭,3:左闭右闭)
	/* 163-byte string literal not displayed */
	Remark string `json:"remark"` // 预留备注说明信息
}

CrewHoursIndexApiChangeReq 工时指数预算信息变更

type CrewHoursIndexApiDeleteReq

type CrewHoursIndexApiDeleteReq struct {
	ID string `v:"required|integer#删除数据源不能为空|删除数据源错误" json:"id"` // 主键
}

CrewHoursIndexApiDeleteReq 删除工时指数预算信息

type CrewKpiRule

type CrewKpiRule entity.CrewKpiRule

type CrewKpiRuleApiChangeReq

type CrewKpiRuleApiChangeReq struct {
	ID        int    `json:"id"`                                // 主键
	LevelName string `v:"required#绩效等级名称不能为空" json:"levelName"` // 绩效等级名称
	ScoreMin  int32  ``                                         // 得分下限
	/* 160-byte string literal not displayed */
	ScoreMax int32 `` // 得分上线
	/* 160-byte string literal not displayed */
	ScoreRange uint `` // 得分区间包含关系(1:左闭右开,2:左开右闭,3:左闭右闭)
	/* 163-byte string literal not displayed */
	Redio  float64 `v:"required|float#浮动比例不能为空|请输入数据格式的浮动比例" json:"redio"` // 浮动比例
	Remark string  `json:"remark"`                                         // 预留备注说明信息
}

CrewKpiRuleApiChangeReq 绩效等级信息变更

type CrewKpiRuleApiDeleteReq

type CrewKpiRuleApiDeleteReq struct {
	ID string `v:"required|integer#删除数据源不能为空|删除数据源错误" json:"id"` // 主键
}

CrewKpiRuleApiDeleteReq 删除加班贡献预算信息

type CrewManageIndex

type CrewManageIndex entity.CrewManageIndex

type CrewManageIndexApiAll

type CrewManageIndexApiAll struct {
	CrewManageInfo  CrewManageIndex `json:"crewManageInfo"`
	ProductRoleName string          `json:"productRoleName"`
}

CrewManageIndexApiAll 管理指数预算信息变更

type CrewManageIndexApiChangeReq

type CrewManageIndexApiChangeReq struct {
	ID            int    `json:"id"`                                                // 主键
	ScoreIndex    int    `v:"required|min:0#管理指数不能为空|管理指数大于等于0" json:"scoreIndex"`  // 管理指数
	ProductRoleId uint   `v:"required|min:0#项目角色不能为空|请选择项目角色" json:"productRoleId"` // 项目角色ID
	Remark        string `json:"remark"`                                            // 预留备注说明信息
}

CrewManageIndexApiChangeReq 管理指数预算信息变更

type CrewManageIndexApiDeleteReq

type CrewManageIndexApiDeleteReq struct {
	ID string `v:"required|integer#删除数据源不能为空|删除数据源错误" json:"id"` // 主键
}

CrewManageIndexApiDeleteReq 删除管理指数预算信息

type CrewOvertimeRule

type CrewOvertimeRule entity.CrewOvertimeRule

type CrewOvertimeRuleApiChangeReq

type CrewOvertimeRuleApiChangeReq struct {
	ID       int     `json:"id"` // 主键
	ScoreMin float64 ``          // 得分下限
	/* 158-byte string literal not displayed */
	ScoreMax float64 `` // 得分上线
	/* 160-byte string literal not displayed */
	Redio      float64 `v:"required|float#浮动比例不能为空|请输入数据格式的浮动比例" json:"redio"` // 浮动比例
	ScoreRange uint    ``                                                      // 得分区间包含关系(1:左闭右开,2:左开右闭,3:左闭右闭)
	/* 163-byte string literal not displayed */
	Remark string `json:"remark"` // 预留备注说明信息
}

CrewOvertimeRuleApiChangeReq 加班贡献信息变更

type CrewOvertimeRuleApiDeleteReq

type CrewOvertimeRuleApiDeleteReq struct {
	ID string `v:"required|integer#删除数据源不能为空|删除数据源错误" json:"id"` // 主键
}

CrewOvertimeRuleApiDeleteReq 删除加班贡献预算信息

type CrewSolveRule

type CrewSolveRule entity.CrewSolveRule

type CrewSolveRuleApiChangeReq

type CrewSolveRuleApiChangeReq struct {
	ID     int     `json:"id"`                                            // 主键
	Redio  float64 `v:"required#浮动比例不能为空" json:"redio"`                   // 浮动比例
	Demand uint    `v:"required|in:1,2,3#贡献标准为空|请选择对应贡献标准" json:"demand"` // 贡献标准
	Remark string  `json:"remark"`                                        // 预留备注说明信息
}

CrewSolveRuleApiChangeReq 解决问题贡献信息变更

type CrewSolveRuleApiDeleteReq

type CrewSolveRuleApiDeleteReq struct {
	ID string `v:"required|integer#删除数据源不能为空|删除数据源错误" json:"id"` // 主键
}

CrewSolveRuleApiDeleteReq 删除解决问题贡献信息

type Department

type Department entity.Department

type DepartmentApiChangeReq

type DepartmentApiChangeReq struct {
	ID     int    `json:"id"`                                                              // 主键
	Name   string `v:"required|length:2,16#部门名称不能为空|部门名称长度应当在:2到:16之间" json:"name"`        // 部门名称
	Level  uint   `v:"required|in:1,2,3,4,5,6#部门层级不能为空|部门层级数据错误,请联系研发" json:"level"      ` // 部门层级
	Pid    int    `json:"pid"`                                                             // 上级部门
	Remark string `json:"remark"`                                                          // 预留备注信息
}

DepartmentApiChangeReq 部门信息变更

type DepartmentApiDeleteReq

type DepartmentApiDeleteReq struct {
	ID string `v:"required|integer#删除数据源不能为空|删除数据源错误" json:"id"` // 主键
}

DepartmentApiDeleteReq 删除部门信息

type DepartmentApiGetList

type DepartmentApiGetList struct {
	ID            int                    `json:"id"`            // 主键
	Name          string                 `json:"name"`          // 部门名称
	Pid           int                    `json:"parentId"`      // 上级部门
	Remark        string                 `json:"remark"`        // 预留备注信息
	EmployeeCount int32                  `json:"employeeCount"` // 员工数量
	Children      []DepartmentApiGetList `json:"children"`      // 子级部门信息
}

DepartmentApiGetList 部门信息列表(带上下级关系)

type DepartmentApiGetListReq

type DepartmentApiGetListReq struct {
	Department
}

DepartmentApiGetListReq 部门信息列表

type DepartmentApiGetOneRes

type DepartmentApiGetOneRes struct {
	Department   Department `json:"department"`   // 部门信息
	EmployeeList []Employee `json:"employeeList"` // 部门员工信息
}

DepartmentApiGetOneRes 部门信息列表

type DepartmentInfoWithEmploy

type DepartmentInfoWithEmploy struct {
	EmployeeCount int32      `json:"employeeCount"` // 员工数量
	Department    Department `json:"department"`    // 上级部门信息
}

DepartmentInfoWithEmploy 部门信息列表

type Employee

type Employee entity.Employee

type EmployeeApiCreateReq

type EmployeeApiCreateReq struct {
	UserName   string `v:"required|length:2,16#姓名不能为空|姓名长度应当在:2到:16之间" json:"userName"     ` // 员工姓名
	WorkNumber string `json:"workNumber"     `                                               // 员工姓名
	Sex        uint   `v:"required|in:0,1,2#请选择性别|请选择正确的性别" json:"sex"          `            // 性别(0:未知 1:男  2:女)
	Phone      string `v:"phone-loose#请输入正确格式的手机号码" json:"phone"        `                    // 手机号码
	Email      string `v:"email#请输入正确格式的邮箱" json:"email"        `                            // 邮箱号码
	JobLevel   uint   `v:"bail|required|integer#请选择职级|请选择正确的职级信息" json:"jobLevel"     `      // 职级
	JobId      []int  ``                                                                     // 岗位信息
	/* 133-byte string literal not displayed */
	InstructorId int    `json:"instructorId" `                                            // 指导老师
	Status       int    `v:"required|in:1,2,3,4#请选择在职状态|请选择正确的在职状态" json:"status"       ` // 在职状态(1:在职 2:试用期 3:实习期 4:已离职)
	Remark       string `json:"remark"       `                                            // 预留备注信息
}

EmployeeApiCreateReq 创建员工信息

type EmployeeApiDeleteReq

type EmployeeApiDeleteReq struct {
	ID string `v:"required|integer#删除数据源不能为空|删除数据源错误" json:"id"     ` // 员工姓名
}

EmployeeApiDeleteReq 删除员工信息

type EmployeeApiGetListReq

type EmployeeApiGetListReq struct {
	Employee
	Page int32 `json:"page"` // 员工姓名
	Size int32 `json:"size"` // 员工姓名

}

EmployeeApiGetListReq 员工信息列表

type EmployeeApiGetOneReq

type EmployeeApiGetOneReq struct {
	Employee
}

EmployeeApiGetOneReq 员工信息列表

type EmployeeApiGetOneRes

type EmployeeApiGetOneRes struct {
	EmployeeInfo      Employee            `json:"employeeInfo"`      // 员工主体信息
	SexName           string              `json:"sexName"`           // 性别-中文显示
	StatusName        string              `json:"statusName"`        // 性别-中文显示
	JobInfo           []entity.Job        `json:"jobInfo"`           // 员工岗位信息
	JobName           string              `json:"jobName"`           // 员工岗位信息
	JobIds            []int               `json:"jobIds"`            // 员工岗位信息
	LevelInfo         JobLevel            `json:"levelInfo"`         // 员工职级信息
	InstructorInfo    Employee            `json:"instructorInfo"`    // 员工职级信息
	DepartmentInfo    []entity.Department `json:"departmentInfo"`    // 员工所在部门信息
	DepartmentName    string              `json:"departmentName"`    // 员工岗位信息
	DepartmentIds     []int32             `json:"departmentIds"`     // 员工岗位信息
	ProductIds        []int               `json:"productIds"`        // 员工涉及项目主键信息
	ProductMemberList []*ProductMember    `json:"productMemberList"` // 员工涉及项目信息
}

EmployeeApiGetOneRes 员工信息列表

type EmployeeApiModifyReq

type EmployeeApiModifyReq struct {
	ID         int    `v:"required|integer#删除数据源不能为空|删除数据源错误" json:"id"     `                // 员工姓名
	UserName   string `v:"required|length:2,16#姓名不能为空|姓名长度应当在:2到:16之间" json:"userName"     ` // 员工姓名
	WorkNumber string `json:"workNumber"     `                                               // 员工姓名
	Sex        uint   `v:"required|in:0,1,2#请选择性别|请选择正确的性别" json:"sex"          `            // 性别(0:未知 1:男  2:女)
	Phone      string `v:"phone-loose#请输入正确格式的手机号码" json:"phone"        `                    // 手机号码
	Email      string `v:"email#请输入正确格式的邮箱" json:"email"        `                            // 邮箱号码
	JobLevel   uint   `v:"bail|required|integer#请选择职级|请选择正确的职级信息" json:"jobLevel"     `      // 职级
	JobId      []int  ``                                                                     // 岗位信息
	/* 133-byte string literal not displayed */
	InstructorId int    `json:"instructorId" `                                            // 指导老师
	Status       int    `v:"required|in:1,2,3,4#请选择在职状态|请选择正确的在职状态" json:"status"       ` // 在职状态(1:在职 2:试用期 3:实习期 4:已离职)
	Remark       string `json:"remark"       `                                            // 预留备注信息
}

EmployeeApiModifyReq 更新员工信息

type GetCheckIn

type GetCheckIn struct {
	StartTime  string   `json:"startTime"` // 部门ID
	EndTime    string   `json:"endTime"`   // 部门ID
	DepartId   int32    `json:"departId"`  // 部门ID
	UseridList []string `json:"useridList"`
	ProId      int32    `json:"proId"`
}

GetCheckIn 查询成员打卡日报

type GetDataOrder

type GetDataOrder struct {
	KeyName   string `json:"keyName"`   // 排序字段名称
	OrderDesc bool   `json:"orderDesc"` // 排序方式
	OrderAsc  bool   `json:"orderAsc"`  // 排序方式
}

GetDataOrder 项目绩效清单

type GetListEmployeeRes

type GetListEmployeeRes struct {
	Page      int32                  `json:"Page"`
	Size      int32                  `json:"Size"`
	TotalSize int32                  `json:"TotalSize"`
	Data      []EmployeeApiGetOneRes `json:"Data"`
}

GetListEmployeeRes 列表接口输出数据结构

type GetProduct

type GetProduct struct {
	ProductInfo  Product     `json:"productInfo"`  // 项目信息
	ProductMode  Mode        `json:"productMode"`  // 研发模式
	ProductPm    Employee    `json:"productPm"`    // 项目经理
	ProductPml   Employee    `json:"productPml"`   // 项目负责人
	ProductType  ProductType `json:"productType"`  // 项目类型
	ProductStage *ModeStage  `json:"productStage"` // 项目所处阶段
}

GetProduct 项目清单中关联信息

type GetStage

type GetStage struct {
	ProductModeStage ProductModeStage `json:"productModeStage"`
	ProductType      ProductType      `json:"productType"`
}

type Inspire

type Inspire struct {
	ProductCount    int     `json:"productCount"`    // 项目总数量
	IncentiveBudget float64 `json:"incentiveBudget"` // 激励预算
	StageQuota      float64 `json:"stageQuota"`      // 实发汇总
	StageBudget     float64 `json:"stageBudget"`     // 应发汇总
}

type Job

type Job entity.Job

type JobApiChangeReq

type JobApiChangeReq struct {
	ID       int32  `json:"id"`                                                       // 主键
	Name     string `v:"required|length:2,16#岗位名称不能为空|岗位名称长度应当在:2到:16之间" json:"name"` // 职级名称
	DepartId int32  `v:"required|min:0#所属部门不能为空|部门信息错误" json:"departId"`              // 所属部门
	Remark   string `json:"remark"`                                                   // 预留备注信息
}

JobApiChangeReq 职级信息变更

type JobApiDeleteReq

type JobApiDeleteReq struct {
	ID string `v:"required|integer#删除数据源不能为空|删除数据源错误" json:"id"` // 主键
}

JobApiDeleteReq 删除职级信息

type JobApiGetListReq

type JobApiGetListReq struct {
	Job
	Page int32 `json:"page"` // 页码
	Size int32 `json:"size"` // 每页显示数据大小
}

JobApiGetListReq 岗位信息列表

type JobApiRes

type JobApiRes struct {
	Job        Job        `json:"job"`        // 岗位信息
	Department Department `json:"department"` // 部门信息
}

JobApiRes 岗位信息列表

type JobLevel

type JobLevel entity.JobLevel

type JobLevelApiChangeReq

type JobLevelApiChangeReq struct {
	ID     int    `json:"id"`                                                       // 主键
	Name   string `v:"required|length:2,16#职级名称不能为空|职级名称长度应当在:2到:16之间" json:"name"` // 职级名称
	Remark string `json:"remark"`                                                   // 预留备注信息
}

JobLevelApiChangeReq 职级信息变更

type JobLevelApiDeleteReq

type JobLevelApiDeleteReq struct {
	ID string `v:"required|integer#删除数据源不能为空|删除数据源错误" json:"id"` // 主键
}

JobLevelApiDeleteReq 删除职级信息

type JobLevelApiGetListReq

type JobLevelApiGetListReq struct {
	Page     int32    `json:"page"` // 页码
	Size     int32    `json:"size"` // 每页显示数据大小
	JobLevel JobLevel `json:"jobLevel"`
}

JobLevelApiGetListReq 职级信息列表

type LevelAssess

type LevelAssess entity.ProductLevelAssess

type LevelAssessApiChangeReq

type LevelAssessApiChangeReq struct {
	ID                 int     `json:"id"`                                                                        // 主键
	EvaluateDimensions string  `v:"required|length:2,16#评价维度不能为空|评价维度名称长度应当在:2到:16之间" json:"evaluateDimensions" ` // 评价维度
	EvaluateId         uint    `json:"evaluateId"`                                                                // 上级评价维度
	EvaluateCriteria   string  `json:"evaluateCriteria"`                                                          // 评价标准
	ScoreCriteria      string  `v:"required-without:evaluateId" json:"scoreCriteria"`                             // 评分标准
	Weight             float64 `v:"required-without:evaluateId" json:"weight"`                                    // 权重
	Remark             string  `json:"remark"`                                                                    // 预留备注信息
}

LevelAssessApiChangeReq 项目等级评估信息变更

type LevelAssessApiDeleteReq

type LevelAssessApiDeleteReq struct {
	ID string `v:"required|integer#删除数据源不能为空|删除数据源错误" json:"id"` // 主键
}

LevelAssessApiDeleteReq 删除项目等级评估信息

type LevelAssessApiGetList

type LevelAssessApiGetList struct {
	ID                 int                     `json:"id"`                  // 主键
	EvaluateDimensions string                  `json:"evaluateDimensions" ` // 评价维度
	EvaluateCriteria   string                  `json:"evaluateCriteria"   ` // 评价标准
	ScoreCriteria      string                  `json:"scoreCriteria"      ` // 评分标准
	EvaluateId         uint                    `json:"evaluateId"         ` // 上级评价维度
	Weight             float64                 `json:"weight"             ` // 权重
	Remark             string                  `json:"remark"             ` // 预留备注说明信息
	EmployeeCount      int32                   `json:"employeeCount"`       // 员工数量
	Children           []LevelAssessApiGetList `json:"children"`            // 子级评估信息
}

LevelAssessApiGetList 项目等级评估信息列表(带上下级关系)

type LevelAssessApiGetListReq

type LevelAssessApiGetListReq struct {
	LevelAssess
}

LevelAssessApiGetListReq 部门信息列表

type LevelConfirm

type LevelConfirm entity.ProductLevelConfirm

type LevelConfirmApiChangeReq

type LevelConfirmApiChangeReq struct {
	ID         int     `json:"id"`                                                       // 主键
	Name       string  `v:"required#项目优先级名称不能为空" json:"name"`                            // 项目优先级
	ScoreMin   float64 `v:"required|min:0#优先级评分下限不能为空|优先级评分下限大于等于0" json:"scoreMin"`     // 得分下限
	ScoreMax   float64 `v:"required|max:100#优先级评分上限不能为空|优先级评分上限小于等于100" json:"scoreMax"` // 得分上线
	ScoreRange uint    ``                                                                // 得分区间包含关系(1:左闭右开,2:左开右闭)
	/* 146-byte string literal not displayed */
	IsNeedPm      uint   `json:"isNeedPm"`      // 是否委派PM(1:是 2:否)
	PmDemand      string `json:"pmDemand"`      // pm要求
	ProductDemand string `json:"productDemand"` // 项目工作相关要求
	MonitDemand   string `json:"monitDemand"`   // 监控要求
	IsNeedPml     uint   `json:"isNeedPml"`     // 是否需要项目负责人(1:是 2:否)
	Remark        string `json:"remark"`        // 预留备注说明信息
}

LevelConfirmApiChangeReq 项目优先级信息变更

type LevelConfirmApiDeleteReq

type LevelConfirmApiDeleteReq struct {
	ID string `v:"required|integer#删除数据源不能为空|删除数据源错误" json:"id"` // 主键
}

LevelConfirmApiDeleteReq 删除项目优先级信息

type LevelConfirmApiGetListReq

type LevelConfirmApiGetListReq struct {
	Page         int32        `json:"page"` // 页码
	Size         int32        `json:"size"` // 每页显示数据大小
	LevelConfirm LevelConfirm `json:"LevelConfirm"`
}

LevelConfirmApiGetListReq 项目优先级信息列表

type Mode

type Mode entity.ProductMode

type ModeApiChangeReq

type ModeApiChangeReq struct {
	ID     int     `json:"id"`                                                           // 主键
	Name   string  `v:"required|length:2,16#研发模式名称不能为空|研发模式名称长度应当在:2到:16之间" json:"name"` // 研发模式名称
	Factor float64 `v:"required|between:0,1#开发系数不能为空|开发系数位于区间0~1.0之间" json:"factor"`     // 开发系数
	Remark string  `json:"remark"`                                                       // 预留备注信息
}

ModeApiChangeReq 研发模式信息变更

type ModeApiDeleteReq

type ModeApiDeleteReq struct {
	ID string `v:"required|integer#删除数据源不能为空|删除数据源错误" json:"id"` // 主键
}

ModeApiDeleteReq 删除研发模式信息

type ModeStage

type ModeStage entity.ProductModeStage

type Product

type Product entity.Product

type ProductApiChangeReq

type ProductApiChangeReq struct {
	Id              uint    `json:"id"     `                                                                  // 员工姓名
	Tid             uint    `v:"required|min:0#项目所属类型不能为空|请选择项目所属类型" json:"tid"             `                 // 项目类型(type关联表)
	Name            string  `v:"required|length:2,64#项目名称不能为空|项目名称长度应当在:2到:64之间" json:"name"     `            // 员工姓名
	ProNumber       string  `v:"required|length:2,16#项目编号不能为空|项目编号长度应当在:2到:16之间" json:"proNumber"       `     // 项目编号
	SubName         string  `v:"required|length:2,32#项目简称不能为空|项目简称长度应当在:2到:32之间" json:"subName"     `         // 员工姓名
	LcScore         uint    `v:"required|integer#请输入优先级评分|请输入整数格式的优先级评分" json:"lcScore"          `            // 优先级评分
	LccId           uint    `json:"lccId"`                                                                    // 项目优先级ID,根据得分自动计算,不用传数据
	LccName         string  `json:"lccName"`                                                                  // 项目优先级,根据得分自动计算,不用传数据
	FixBudget       float64 `v:"float#请输入预算修正" json:"fixBudget"          `                                    // 预算修正
	FixType         uint    `v:"integer#请选择修正预算计算类型" json:"fixType"          `                                // 修正预算计算类型(1:增加,2减少)
	IncentiveBudget float64 `json:"incentiveBudget" `                                                         // 项目激励预算
	Invest          float64 `v:"required|float#请输入投资额度|请输入正确格式的投资额度" json:"invest"          `                 // 投资额度
	NetProfit       float64 `v:"required|float#请输入首年净利润|请输入正确格式的首年净利润" json:"netProfit"       `               // 首年净利润
	ModeId          uint    `v:"required#请选择项目研发模式" json:"modeId"          `                                  // 研发模式ID(product_mode)
	PmId            uint    `v:"integer#请选择项目经理" json:"pmId"            `                                     // PM(员工信息表ID)
	Attribute       uint    `v:"required-unless:pmId,0#请选择项目经理投入属性" json:"attribute"       `                  // PM属性(1:全职,2:兼职)
	PmlId           uint    `json:"pmlId"           `                                                         // 项目责任人ID(员工信息表ID)
	Status          uint    `v:"required|in:1,2,3,4,5,6,7,8,9,10#请选择项目状态|请选择正确的项目状态" json:"status"          ` // 项目当前状态(1:未开始 2:未立项,3:进行中 4:暂停 5:已取消 6:延迟 7:异常 8:已完成未验收 9:客户已验收 10:结项)
	ProTypeStageId  uint    `v:"required|integer#请选择项目当前所处阶段|请选择正确的项目阶段" json:"proTypeStageId"  `             // 项目当前所处阶段
	Remark          string  `json:"remark"       `                                                            // 预留备注信息
}

ProductApiChangeReq 更新项目信息

type ProductApiGetListReq

type ProductApiGetListReq struct {
	ProductWhere
	Page int32 `json:"page"` // 员工姓名
	Size int32 `json:"size"` // 员工姓名
}

ProductApiGetListReq 项目清单

type ProductApiGetOneReq

type ProductApiGetOneReq struct {
	Product
}

ProductApiGetOneReq 项目详情

type ProductInfo

type ProductInfo struct {
	Product     *Product     `json:"product"`     // 项目信息
	ProductType *ProductType `json:"productType"` // 项目信息
	ProductMode *Mode        `json:"productMode"` // 项目信息
}

type ProductMember

type ProductMember entity.ProductMember

type ProductMemberApiChangeReq

type ProductMemberApiChangeReq struct {
	Id            uint    `json:"id"`                                                             // 员工姓名
	ProId         uint    `v:"required#请选择项目" json:"proId"`                                       // 项目ID
	EmpId         uint    `json:"empId"`                                                          // 项目成员ID
	IsSpecial     uint    `json:"isSpecial"    `                                                  // 1: 需要特殊处理 2:不需要特殊处理
	JbId          uint    `json:"jbId"`                                                           // 职级ID
	JbName        string  `json:"jbName"`                                                         // 职级名称
	DutyIndex     uint32  `json:"dutyIndex"   `                                                   // 责任指数
	WorkNumber    string  `v:"required|length:2,64#员工工号不能为空|员工工号长度应当在:2到:64之间" json:"workNumber"` // 员工工号
	Attribute     uint    `json:"attribute"`                                                      // 属性(1:全职,2:兼职)
	AttributeName string  `v:"required|in:兼职,全职#投入属性值不能为空|请选择正确的投入属性值" json:"attributeName"`      // 属性(1:全职,2:兼职)
	PrId          uint    `json:"prId"`                                                           // 项目角色ID
	PrName        string  `v:"required#请输入项目角色" json:"prName"`                                    // 项目角色名称
	ManageIndex   uint    `json:"manageIndex" `                                                   // 管理指数
	WorkAddress   string  `json:"workAddress"  `                                                  // 工作地点
	SpecificDuty  string  `json:"specificDuty" `                                                  // 具体职责和职务
	Type          string  `json:"type"         `                                                  // 项目组内部分类使用
	PutInto       float64 `json:"putInto"      `                                                  // 投入占比
	IsGuide       uint    `json:"isGuide"      `                                                  // 是否是主导方(1:是)
	IsSupport     uint    `json:"isSupport"    `                                                  // 是否是支持方(1:是)
	Remark        string  `json:"remark"`                                                         // 预留备注信息
}

ProductMemberApiChangeReq 更新项目组成员信息

type ProductMemberApiDeleteReq

type ProductMemberApiDeleteReq struct {
	Id    uint `v:"required|min:0#项目唯一标注不能为空|唯一标注数据错误" json:"id"             ` // 主键信息不为空
	ProId uint `v:"required#请选择项目" json:"proId"`                               // 项目ID
}

ProductMemberApiDeleteReq 项目详情

type ProductMemberApiGetOneReq

type ProductMemberApiGetOneReq struct {
	ProductMember
}

ProductMemberApiGetOneReq 项目详情

type ProductMemberApiImportReq

type ProductMemberApiImportReq struct {
	ProId       uint                     `v:"required#请选择项目" json:"proId"`          // 项目ID
	TableData   []map[string]interface{} `v:"required#文件内容不能为空" json:"tableData"`   // 项目成员ID
	TableHeader []string                 `v:"required#文件标题不能为空" json:"tableHeader"` // 职级ID
}

ProductMemberApiImportReq 更新项目组成员信息

type ProductMemberApiWebImportReq

type ProductMemberApiWebImportReq struct {
	ProId      uint                `v:"required#请选择项目" json:"proId"`         // 项目ID
	UseridList map[string][]string `v:"required#文件内容不能为空" json:"useridList"` // 项目成员ID
}

ProductMemberApiWebImportReq 更新项目组成员信息

type ProductMemberExport

type ProductMemberExport struct {
	ProId uint `v:"required|integer|min:1#请选择绩效对应项目|当前项目不存在|当前项目不存在" json:"proId"` // 项目主表ID
}

ProductMemberExport 团队成员信息导出

type ProductMemberGetListReq

type ProductMemberGetListReq struct {
	Page int32 `json:"page"` // 员工姓名
	Size int32 `json:"size"` // 员工姓名
	ProductMemberWhere
}

ProductMemberGetListReq 项目清单

type ProductMemberGetListRes

type ProductMemberGetListRes struct {
	ProductMemberInfo ProductMember      `json:"productMemberInfo"`
	ProductInfo       Product            `json:"productInfo"`
	LeaderInfo        map[string]string  `json:"leaderInfo"`
	EmployeeInfo      *v1.EmployeeInfo   `json:"employeeInfo"`
	JobLevelInfo      *v1.JobLevelInfo   `json:"jobLevelInfo"`
	DepartmentInfo    *v1.DepartmentInfo `json:"departmentInfo"`
}

ProductMemberGetListRes 项目清单

type ProductMemberInfo

type ProductMemberInfo struct {
	Employee        Employee        `json:"employee"`
	ProductMember   ProductMember   `json:"productMember"`
	ProductRoles    ProductRoles    `json:"productRoles"`
	CrewManageIndex CrewManageIndex `json:"crewManageIndex"`
}

type ProductMemberKey

type ProductMemberKey entity.ProductMemberKey

type ProductMemberKeyApiChangeReq

type ProductMemberKeyApiChangeReq struct {
	Id         uint        `json:"id"         `                                                //
	StageKpiId uint        `v:"required|integer#项目组成员绩效不能为空|项目组成员绩效信息错误" json:"stageKpiId"`    // 项目绩效ID
	ProId      uint        `v:"required|integer#项目信息不能为空|项目信息错误" json:"proId"`                 // 项目ID
	ProEmpId   uint        `json:"proEmpId"`                                                   // 小组成员ID
	ProStageId uint        `json:"proStageId"`                                                 // 项目-阶段ID
	WorkNumber string      `json:"workNumber" `                                                // 成员工号
	Username   string      `json:"username"   `                                                // 成员姓名
	KeyName    string      `v:"required#关键事件名称不能为空" json:"keyName"    `                        // 关键事件名称
	HappenTime *gtime.Time `v:"required#时间发生时间不能为空" json:"happenTime" `                        // 发生时间
	Type       uint        `v:"required|in:1,2,3#关键事件分类不能为空|系统不包含当前关键事件分类" json:"type"       ` // 主体分类(1:加班贡献 2:解决问题贡献 3:其他事件贡献)
	Property   uint        `v:"required|in:1,2#关键事件性质不能为空|系统不包含当前关键事件性质" json:"property"   `   // 事件性质(1:正向激励 2:有待提高)
	Result     string      `v:"required#关键处理结果不能为空" json:"result"     `                        // 当前关键事件的处理结果
	Remark     string      `json:"remark"     `                                                // 预留备注说明信息
}

ProductMemberKeyApiChangeReq 团队成员关键绩效接口单独输入

type ProductMemberKeyApiDeleteReq

type ProductMemberKeyApiDeleteReq struct {
	ID uint `v:"required|integer#删除数据源不能为空|删除数据源错误" json:"id"` // 主键
}

ProductMemberKeyApiDeleteReq 删除项目优先级信息

type ProductMemberKeyChangeReq

type ProductMemberKeyChangeReq struct {
	ID         uint   `json:"id"               ` // 主键
	WorkNumber string `json:"workNumber"`
	KeyName    string `json:"keyName"`
	Type       string `json:"type"`
	Property   string `json:"property"`
	Result     string `json:"result"`
	HappenTime string `json:"happenTime"`
}

ProductMemberKeyChangeReq 团队成员绩效导入

type ProductMemberKeyList

type ProductMemberKeyList struct {
	ProductMemberKey ProductMemberKey `json:"productMemberKey"`
	ProductMemberKpi ProductMemberKpi `json:"productMemberKpi"`
}

ProductMemberKeyList 团队成员绩效导入

type ProductMemberKeyListsReq

type ProductMemberKeyListsReq struct {
	ProductMemberKey
	Page int32 `json:"page"` // 员工姓名
	Size int32 `json:"size"` // 员工姓名
}

ProductMemberKeyListsReq 团队成员绩效导入

type ProductMemberKpi

type ProductMemberKpi entity.ProductMemberKpi

type ProductMemberKpiApiGetListReq

type ProductMemberKpiApiGetListReq struct {
	ProductMemberKpi
	Page int32 `json:"page"` // 员工姓名
	Size int32 `json:"size"` // 员工姓名
}

ProductMemberKpiApiGetListReq 项目绩效清单

type ProductMemberKpiChangeReq

type ProductMemberKpiChangeReq struct {
	ProductMemberKey ProductMemberKeyChangeReq `json:"productMemberKey"`
	ID               uint                      `json:"id"               `                                              // 主键
	IsPm             uint                      `json:"isPm"          `                                                 // 是否是PM(1:是 2:否)
	ProId            uint                      `v:"required|integer|min:1#请选择绩效对应项目|当前项目不存在|当前项目不存在" json:"proId"`     // 项目主表ID
	ProStageId       uint                      `v:"required|integer#请选择绩效对应项目阀点|请选择正确的项目阀点" json:"proStageId"`         // 项目所处阶段(cqgf_product_stage_rule.id)
	WorkNumber       string                    `v:"required|length:2,64#员工工号不能为空|员工工号长度应当在:2到:64之间" json:"workNumber"` // 员工工号
	ProEmpId         uint                      `json:"proEmpId"      `                                                 // 小组成员ID
	OvertimeRadio    float64                   ``                                                                      // 工时占比
	/* 132-byte string literal not displayed */
	PrId      uint    `json:"prId"          ` // 项目角色ID
	PrName    string  `json:"prName"        ` // 项目角色名称
	JbId      uint    `json:"jbId"          ` // 职级ID
	JbName    string  `json:"jbName"        ` // 职级名称
	FloatRaio float64 ``                      // 浮动贡献
	/* 135-byte string literal not displayed */
	KpiLevelId    uint    `json:"kpiLevelId"    `                                                   // 绩效等级ID(区分是PM还是成员)
	KpiLevelScore uint    `v:"required|min:0#请输入项目经理绩效得分|项目经理绩效得分不能小于0" json:"kpiLevelScore"`       // 绩效得分
	KpiLevel      string  `v:"required|in:S,A,B,C,D,E,F#绩效等级不能为空|请输入正确的绩效等级" json:"kpiLevel"      ` // 绩效等级
	KpiRadio      float64 `json:"kpiRadio"      `                                                   // 绩效比例
	Remark        string  `json:"remark"`                                                           // 预留备注信息
}

ProductMemberKpiChangeReq 团队成员绩效

type ProductMemberKpiImportReq

type ProductMemberKpiImportReq struct {
	ID          uint                     `json:"id"               `                                          // 主键
	ProId       uint                     `v:"required|integer|min:1#请选择绩效对应项目|当前项目不存在|当前项目不存在" json:"proId"` // 项目主表ID
	StageId     uint                     `v:"required|integer#请选择绩效对应项目阀点|请选择正确的项目阀点" json:"stageId"`        // 项目所处阶段(cqgf_product_stage_rule.id)
	TableData   []map[string]interface{} `v:"required#文件内容不能为空" json:"tableData"`                            // 项目成员ID
	TableHeader []string                 `v:"required#文件标题不能为空" json:"tableHeader"`                          // 职级ID
}

ProductMemberKpiImportReq 团队成员绩效导入

type ProductMemberKpiInfo

type ProductMemberKpiInfo struct {
	ProductMemberKpi *ProductMemberKpi `json:"productMemberKpi"`
	ProductMember    *ProductMember    `json:"productMember"`
	DepartmentName   string            `json:"departmentName"`
	UserName         string            `json:"userName"`
}

type ProductMemberPrize

type ProductMemberPrize entity.ProductMemberPrize

type ProductMemberPrizeApiGetListReq

type ProductMemberPrizeApiGetListReq struct {
	ProductMemberPrize
	Page int32 `json:"page"` // 员工姓名
	Size int32 `json:"size"` // 员工姓名
}

ProductMemberPrizeApiGetListReq 项目绩效激励清单

type ProductMemberPrizeApiGetListRes

type ProductMemberPrizeApiGetListRes struct {
	ProductMemberPrize ProductMemberPrize `json:"productMemberPrize"` // 奖金分配
	ProductMemberKpi   ProductMemberKpi   `json:"productMemberKpi"`
	ProductMember      *ProductMember     `json:"productMember"`
	DepartmentName     string             `json:"departmentName"`
	UserName           string             `json:"userName"`
}

ProductMemberPrizeApiGetListRes 项目绩效激励清单

type ProductMemberPrizeChangeReq

type ProductMemberPrizeChangeReq struct {
	ID           uint    `json:"id"               `                                              //
	ProId        uint    `v:"required|integer|min:1#请选择绩效对应项目|当前项目不存在|当前项目不存在" json:"proId"`     // 项目主表ID
	StageId      uint    `v:"required|integer#请选择绩效对应项目阀点|请选择正确的项目阀点" json:"stageId"`            // 项目所处阶段(cqgf_product_stage_rule.id)
	StageScore   uint    `v:"required|integer|min:0#请输入阶段得分阀点|得分为正整数|得分不能小于0" json:"stageScore"` // 阶段得分
	PmRadio      float64 `v:"required|min:0#请输入项目经理分配比例|项目经理分配比例不能小于0" json:"pmRadio"`           // PM分配比例
	PmFloatRadio float64 `v:"required|min:0#请输入项目经理浮动比例|项目经理浮动比例不能小于0" json:"pmFloatRadio"`      // PM浮动比例
	PmKpiLevelId uint    `v:"required|min:0#请选择项目经理绩效等级|项目经理绩效等级不能小于0" json:"pmKpiLevelId"`      // PM绩效等级
	Remark       string  `json:"remark"`                                                         // 预留备注信息
}

type ProductMemberPrizeComputeReq

type ProductMemberPrizeComputeReq struct {
	ID      uint `json:"id"               `                                          //
	ProId   uint `v:"required|integer|min:1#请选择绩效对应项目|当前项目不存在|当前项目不存在" json:"proId"` // 项目主表ID
	StageId uint `v:"required|integer#请选择项目阀点|请选择正确的项目阀点" json:"stageId"`            // 项目所处阶段(cqgf_product_stage_rule.id)
}

type ProductMemberStatic

type ProductMemberStatic struct {
	Title     []string         `json:"title"`     // 绩效等级
	Legend    []string         `json:"legend"`    // 项目名称
	YAxisData map[string][]int `json:"yAxisData"` // 项目名称
}

ProductMemberStatic 项目阶段得分折线图

type ProductMemberStaticWhere

type ProductMemberStaticWhere struct {
	ProId      uint   `json:"proId"`      // 项目ID
	WorkNumber string `json:"workNumber"` // 项目名称
	EmpId      []uint `json:"empId"`      // 项目成员ID
	PrId       []uint `json:"prId"`       // 项目角色ID
	JbId       []uint `json:"jbId"`       // 职级ID
	Attribute  []uint `json:"attribute"`  // PM属性(1:全职,2:兼职)
}

ProductMemberStaticWhere 项目阶段得分折线图

type ProductMemberWhere

type ProductMemberWhere struct {
	ProId      uint   `json:"proId"`            // 项目ID
	ProStageId uint   `json:"proStageId"      ` // 项目-阶段ID
	WorkNumber string `json:"workNumber"`       // 项目名称
	EmpId      []uint `json:"empId"`            // 项目成员ID
	PrId       []uint `json:"prId"`             // 项目角色ID
	JbId       []uint `json:"jbId"`             // 职级ID
	Attribute  []uint `json:"attribute"`        // PM属性(1:全职,2:兼职)
}

type ProductModeStage

type ProductModeStage entity.ProductModeStage

type ProductRoles

type ProductRoles entity.ProductRoles

type ProductRolesApiChangeReq

type ProductRolesApiChangeReq struct {
	ID      int    `json:"id"`                                                        // 主键
	Name    string `v:"required|length:2,16#角色名称不能为空|角色名称长度应当在:2到:16之间" json:"name" ` // 评价维度
	Pid     uint   `v:"required|min:0#上级评价维度不能为空|请选择评价维度" json:"pid"`                 // 上级评价维度
	Explain string `json:"explain"`                                                   // 角色与职责说明
	Remark  string `json:"remark"`                                                    // 预留备注信息
}

ProductRolesApiChangeReq 项目角色信息变更

type ProductRolesApiDeleteReq

type ProductRolesApiDeleteReq struct {
	ID string `v:"required|integer#删除数据源不能为空|删除数据源错误" json:"id"` // 主键
}

ProductRolesApiDeleteReq 删除项目等级评估信息

type ProductRolesApiGetList

type ProductRolesApiGetList struct {
	ID        int                      `json:"id"`            // 主键
	Name      string                   `json:"name"       `   //
	Pid       uint                     `json:"pid"        `   // 上级角色
	Explain   string                   `json:"explain"    `   // 角色与职责说明
	Remark    string                   `json:"remark"    `    // 角色与职责说明
	IsSpecial int32                    `json:"isSpecial"    ` // 角色与职责说明
	Children  []ProductRolesApiGetList `json:"children"`      // 子级评估信息
}

ProductRolesApiGetList 项目角色信息列表(带上下级关系)

type ProductRolesApiGetListReq

type ProductRolesApiGetListReq struct {
	Roles
}

ProductRolesApiGetListReq 项目角色信息列表

type ProductStageKpi

type ProductStageKpi entity.ProductStageKpi

ProductStageKpi 项目阶段绩效

type ProductStageKpiApiChangeReq

type ProductStageKpiApiChangeReq struct {
	ID              uint    `json:"id"               `                                              //
	ProId           uint    `v:"required|integer|min:1#请选择绩效对应项目|当前项目不存在|当前项目不存在" json:"proId"`     // 项目主表ID
	StageId         uint    `v:"required|integer#请选择绩效对应项目阀点|请选择正确的项目阀点" json:"stageId"`            // 项目所处阶段(cqgf_product_stage_rule.id)
	StageScore      uint    `v:"required|integer|min:0#请输入阶段得分阀点|得分为正整数|得分不能小于0" json:"stageScore"` // 阶段得分
	PmRadio         float64 `v:"required|min:0#请输入项目经理分配比例|项目经理分配比例不能小于0" json:"pmRadio"`           // PM分配比例
	PmFloatRadio    float64 `v:"required|min:0#请输入项目经理浮动比例|项目经理浮动比例不能小于0" json:"pmFloatRadio"`      // PM浮动比例
	PmKpiLevelScore uint    `v:"required|min:0#请输入项目经理绩效得分|项目经理绩效得分不能小于0" json:"pmKpiLevelScore"`   // PM绩效得分
	//PmKpiLevelId uint    `v:"required|min:0#请选择项目经理绩效等级|项目经理绩效等级不能小于0" json:"pmKpiLevelId"`      // PM绩效等级
	Remark string `json:"remark"` // 预留备注信息
}

ProductStageKpiApiChangeReq 更新项目阶段绩效 必传参数:阶段、阶段得分、PM分配比例、浮动贡献、绩效等级

type ProductStageKpiApiGetListReq

type ProductStageKpiApiGetListReq struct {
	ProductStageKpiWhere
	Page int32 `json:"page"` // 员工姓名
	Size int32 `json:"size"` // 员工姓名
}

ProductStageKpiApiGetListReq 项目绩效清单

type ProductStageKpiInfo

type ProductStageKpiInfo struct {
	ProductInfo        *ProductInfo        `json:"productInfo"`        // 项目信息
	PmInfo             *Employee           `json:"pmInfo"`             // 项目经理信息
	PmlInfo            *Employee           `json:"pmlInfo"`            // 项目负责人信息
	StageInfo          *StageInfo          `json:"stageInfo"`          // 项目阶段信息
	ProductStageKpi    *ProductStageKpi    `json:"productStageKpi"`    // 绩效详情 - 基本信息
	ProductMemberKpi   *ProductMemberKpi   `json:"productMemberKpi"`   // 绩效详情 - 团队成员绩效
	ProductMemberPrize *ProductMemberPrize `json:"productMemberPrize"` // 绩效详情 - 团队成员奖金
	ProductMemberKey   *ProductMemberKey   `json:"productMemberKey"`   // 绩效详情 - 关键事件清单
}

ProductStageKpiInfo 项目绩效详情

type ProductStageKpiList

type ProductStageKpiList struct {
	ProductStageKpi *ProductStageKpi  `json:"productStageKpi"` // 绩效详情 - 基本信息
	ProductInfo     Product           `json:"productInfo"`     // 项目信息
	StageInfo       *ProductStageRule `json:"stageInfo"`       // 项目阶段信息
}

ProductStageKpiList 项目绩效清单

type ProductStageKpiWhere

type ProductStageKpiWhere struct {
	ID           uint   `json:"id"               ` //
	ProId        []uint `json:"proId"`             // 项目主表ID
	StageId      []uint `json:"stageId"`           // 项目所处阶段(cqgf_product_stage_rule.id)
	StageScore   uint   `json:"stageScore"`        // 阶段得分
	PmKpiLevelId []uint `json:"pmKpiLevelId"`      // PM绩效等级
	Remark       string `json:"remark"`            // 预留备注信息
}

type ProductStageLint

type ProductStageLint struct {
	StageName   []string  `json:"stageName"`
	StageQuota  []float64 `json:"stageQuota"`
	StageBudget []float64 `json:"stageBudget"`
}

ProductStageLint 导入项目组成员数据结构

type ProductStageRule

type ProductStageRule entity.ProductStageRule

ProductStageRule 单个具体项目个性化激励额度占比配置信息

type ProductStageScore

type ProductStageScore struct {
	ProductSubName string `json:"productSubName"` // 阶段名称(项目简称/阀点)
	ProductName    string `json:"productName"`    // 阶段名称(项目简称/阀点)
	StageName      string `json:"stageName"`      // 阶段名称(项目简称/阀点)
	StageScore     uint   `json:"stageScore"`     // 阶段得分
}

ProductStageScore 项目阶段得分折线图

type ProductStageTop

type ProductStageTop struct {
	ProductSubName  string  `json:"productSubName"`  // 阶段名称(项目简称/阀点)
	ProductName     string  `json:"productName"`     // 阶段名称(项目简称/阀点)
	StageName       string  `json:"stageName"`       // 阶段名称(项目简称/阀点)
	TeamNumber      int     `json:"teamNumber"`      // 团队人数
	ShouldSentRadio float64 `json:"shouldSentRadio"` // 发放比例
	StageScore      uint    `json:"stageScore"`      // 阶段得分
	StageQuota      float64 `json:"stageQuota"`
	StageBudget     float64 `json:"stageBudget"`
}

ProductStageTop 项目阶段得分折线图

type ProductTaskDevelopField

type ProductTaskDevelopField struct {
	TaskDevelop
	ID        int    `json:"id"`        // 主键
	Name      string `json:"name"`      // 项目名称
	SubName   string `json:"subName"`   // 项目简称
	ProNumber string `json:"proNumber"` // 项目简称
}

ProductTaskDevelopField 任务查询显示字段

type ProductTaskField

type ProductTaskField struct {
	Task
	ID        int    `json:"id"`        // 主键
	Name      string `json:"name"`      // 项目名称
	SubName   string `json:"subName"`   // 项目简称
	ProNumber string `json:"proNumber"` // 项目简称
}

ProductTaskField 任务查询显示字段

type ProductTaskNpiField

type ProductTaskNpiField struct {
	TaskNpi
	ID        int    `json:"id"`        // 主键
	Name      string `json:"name"`      // 项目名称
	SubName   string `json:"subName"`   // 项目简称
	ProNumber string `json:"proNumber"` // 项目简称
}

ProductTaskNpiField 任务查询显示字段

type ProductTaskProduceField

type ProductTaskProduceField struct {
	TaskProduce
	ID        int    `json:"id"`        // 主键
	Name      string `json:"name"`      // 项目名称
	SubName   string `json:"subName"`   // 项目简称
	ProNumber string `json:"proNumber"` // 项目简称
}

ProductTaskProduceField 任务查询显示字段

type ProductTaskQualityField

type ProductTaskQualityField struct {
	TaskQuality
	ID        int    `json:"id"`        // 主键
	Name      string `json:"name"`      // 项目名称
	SubName   string `json:"subName"`   // 项目简称
	ProNumber string `json:"proNumber"` // 项目简称
}

ProductTaskQualityField 任务查询显示字段

type ProductTaskRes

type ProductTaskRes struct {
	Task        []*ProductTaskField        `json:"task"`
	TaskNpi     []*ProductTaskNpiField     `json:"task_npi"`
	TaskProduce []*ProductTaskProduceField `json:"task_produce"`
	TaskDevelop []*ProductTaskDevelopField `json:"task_develop"`
	TaskQuality []*ProductTaskQualityField `json:"task_quality"`
}

ProductTaskRes 任务查询条件

type ProductTaskWhere

type ProductTaskWhere struct {
	Task
	ID      int    `json:"id"`      // 主键
	ProID   int    `json:"proId"`   // 项目主键
	Name    string `json:"name"`    // 研发模式名称
	SubName string `json:"subName"` // 研发模式名称
	Remark  string `json:"remark"`  // 预留备注信息
	Page    int32  `json:"page"`    // 员工姓名
	Size    int32  `json:"size"`    // 员工姓名
}

ProductTaskWhere 任务查询条件

type ProductType

type ProductType entity.ProductType

type ProductWhere

type ProductWhere struct {
	Id             uint   `json:"id"              `   // 主键
	Ids            []uint `json:"ids"              `  // 主键
	Name           string `json:"name"            `   // 项目名称
	SubName        string `json:"subName"         `   // 项目简称
	ProNumber      string `json:"proNumber"         ` // 项目编号
	LcScore        uint   `json:"lcScore"         `   // 优先级评分
	LccId          []uint `json:"lccId"           `   // 项目优先级ID
	Tid            []uint `json:"tid"            `    // 项目类型ID
	PmId           []uint `json:"pmId"            `   // PM(员工信息表ID)
	Attribute      uint   `json:"attribute"       `   // PM属性(1:全职,2:兼职)
	PmlId          []uint `json:"pmlId"           `   // 项目责任人ID(员工信息表ID)
	Status         []uint `json:"status"          `   // 项目当前状态(1:正常 2:结束收尾,3:异常收尾)
	ProTypeStageId uint   `json:"proTypeStageId"  `   // 项目当前所处阶段
}

type Roles

type Roles entity.ProductRoles

type StageInfo

type StageInfo struct {
	Single    *ProductStageRule
	ModeStage *ModeStage
}

type StageStatic

type StageStatic struct {
	StageName   string  `json:"stageName"`   // 阶段名称
	StageQuota  float64 `json:"stageQuota"`  // 实发汇总
	StageBudget float64 `json:"stageBudget"` // 应发汇总
}

type Task

type Task entity.ProductTask

type TaskDevelop

type TaskDevelop entity.ProductTaskDevelop

type TaskNpi

type TaskNpi entity.ProductTaskNpi

type TaskProduce

type TaskProduce entity.ProductTaskProduce

type TaskQuality

type TaskQuality entity.ProductTaskQuality

type TypeApiChangeReq

type TypeApiChangeReq struct {
	ID     int    `json:"id"`                                                           // 主键
	Name   string `v:"required|length:2,16#研发模式名称不能为空|研发模式名称长度应当在:2到:16之间" json:"name"` // 研发模式名称
	Remark string `json:"remark"`                                                       // 预留备注信息
}

TypeApiChangeReq 研发模式信息变更

type TypeApiDeleteReq

type TypeApiDeleteReq struct {
	ID string `v:"required|integer#删除数据源不能为空|删除数据源错误" json:"id"` // 主键
}

TypeApiDeleteReq 删除研发模式信息

type User

type User internal.User

User is the golang structure for table user.

type UserApiChangePwdReq

type UserApiChangePwdReq struct {
	WorkNumber string `v:"required|length:6,16#账号不能为空|账号长度应当在:min到:max之间" json:"workNumber"`
	Password   string `v:"required|length:6,16#请输入确认密码|密码长度应当在:min到:max之间" json:"password"`
	Password2  string `` /* 141-byte string literal not displayed */
	UserName   string `json:"userName"`
}

UserApiChangePwdReq 修改密码,用于前后端交互参数格式约定

type UserApiCheckUserNameReq

type UserApiCheckUserNameReq struct {
	UserName string `v:"required#昵称不能为空"`
}

UserApiCheckUserNameReq 昵称唯一性检测请求参数,用于前后端交互参数格式约定

type UserApiCheckWorkNumberReq

type UserApiCheckWorkNumberReq struct {
	WorkNumber string `v:"required#账号不能为空"`
}

UserApiCheckWorkNumberReq 账号唯一性检测请求参数,用于前后端交互参数格式约定

type UserApiSignInReq

type UserApiSignInReq struct {
	WorkNumber string `v:"required#账号不能为空" json:"workNumber"`
	Password   string `v:"required#密码不能为空" json:"password"`
}

UserApiSignInReq 登录请求参数,用于前后端交互参数格式约定

type UserApiSignUpReq

type UserApiSignUpReq struct {
	WorkNumber string `v:"required|length:6,16#账号不能为空|账号长度应当在:min到:max之间"`
	Password   string `v:"required|length:6,16#请输入确认密码|密码长度应当在:min到:max之间"`
	Password2  string `v:"required|length:6,16|same:Password#密码不能为空|密码长度应当在:min到:max之间|两次密码输入不相等"`
	UserName   string `v:"required#姓名不能为空"`
}

UserApiSignUpReq 注册请求参数,用于前后端交互参数格式约定

type UserInfo

type UserInfo struct {
	Id           uint   // 用户ID
	EmployeeId   int    `json:"employeeId" `   // 员工ID
	UserName     string `json:"userName"     ` // 员工姓名
	Sex          uint   `json:"sex"          ` // 性别(0:未知 1:男  2:女)
	WorkNumber   string `json:"workNumber"   ` // 员工工号
	Password     string `json:"password"     ` // 登录密码
	Departs      []int  `json:"departId"     ` // 所属部门
	JobLevel     uint   `json:"jobLevel"     ` // 职级
	JobId        []uint `json:"jobId"        ` // 岗位信息
	InstructorId int    `json:"instructorId" ` // 指导老师
	Status       int    `json:"status"       ` // 在职状态(1:在职 2:试用期 3:实习期 4:已离职)
}

type UserLog

type UserLog entity.UserLog

type UserLogApiReq

type UserLogApiReq struct {
	UserLog
	Page int32 `json:"page"` // 员工姓名
	Size int32 `json:"size"` // 员工姓名
}

UserLogApiReq 修改密码,用于前后端交互参数格式约定

type UserProfileInfo

type UserProfileInfo struct {
	User     *User     `json:"user"`
	Employee *Employee `json:"employee"`
}

type UserServiceSignUpReq

type UserServiceSignUpReq struct {
	WorkNumber string
	Password   string
	UserName   string
	EmployeeId int32
	CreateTime string
	UpdateTime string
}

UserServiceSignUpReq 注册输入参数

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL