Documentation ¶
Index ¶
- func AcceptanceProject(args *ArgsAcceptanceProject) (err error)
- func AuditProject(args *ArgsAuditProject) (err error)
- func CreateProject(args *ArgsCreateProject) (id int64, err error)
- func DeleteProject(args *ArgsDeleteProject) (err error)
- func GetProjectNameByID(id int64) string
- func Init()
- func UpdateProject(args *ArgsUpdateProject) (err error)
- type ArgsAcceptanceProject
- type ArgsAuditProject
- type ArgsCreateProject
- type ArgsDeleteProject
- type ArgsGetProjectByID
- type ArgsGetProjectList
- type ArgsUpdateProject
- type FieldsProject
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AcceptanceProject ¶ added in v5.1.29
func AcceptanceProject(args *ArgsAcceptanceProject) (err error)
AcceptanceProject 验收Project
func AuditProject ¶ added in v5.1.29
func AuditProject(args *ArgsAuditProject) (err error)
AuditProject 审批Project
func CreateProject ¶ added in v5.1.29
func CreateProject(args *ArgsCreateProject) (id int64, err error)
CreateProject 创建Project
func DeleteProject ¶ added in v5.1.29
func DeleteProject(args *ArgsDeleteProject) (err error)
DeleteProject 删除Project
func GetProjectNameByID ¶ added in v5.1.29
GetProjectNameByID 获取项目名称
func UpdateProject ¶ added in v5.1.29
func UpdateProject(args *ArgsUpdateProject) (err error)
UpdateProject 修改Project
Types ¶
type ArgsAcceptanceProject ¶ added in v5.1.29
type ArgsAcceptanceProject struct { //ID ID int64 `db:"id" json:"id" check:"id"` //验收状态 // 0: 未验收; 1: 验收中; 2: 验收通过; 3: 验收拒绝 AcceptanceStatus int `db:"acceptance_status" json:"acceptanceStatus"` }
ArgsAcceptanceProject 验收Project参数
type ArgsAuditProject ¶ added in v5.1.29
type ArgsAuditProject struct { //ID ID int64 `db:"id" json:"id" check:"id"` //审批状态 // 0: 未审批; 1: 审批中; 2: 审批通过; 3: 审批拒绝 Status int `db:"status" json:"status"` }
ArgsAuditProject 审批Project参数
type ArgsCreateProject ¶ added in v5.1.29
type ArgsCreateProject struct { //组织ID OrgID int64 `db:"org_id" json:"orgID" check:"id"` //计划验证人ID PlanVerifierID int64 `db:"plan_verifier_id" json:"planVerifierID" check:"id" empty:"true"` //计划验收人姓名 PlanVerifierName string `db:"plan_verifier_name" json:"planVerifierName" check:"des" min:"1" max:"300" empty:"true"` //名称 Name string `db:"name" json:"name" check:"des" min:"1" max:"300"` //描述 Des string `db:"des" json:"des" check:"des" min:"1" max:"3000" empty:"true"` //预估预算总金额 Total int64 `db:"total" json:"total" check:"int64Than0"` }
ArgsCreateProject 创建Project参数
type ArgsDeleteProject ¶ added in v5.1.29
type ArgsDeleteProject struct { //ID ID int64 `db:"id" json:"id" check:"id"` }
ArgsDeleteProject 删除Project参数
type ArgsGetProjectByID ¶ added in v5.1.29
type ArgsGetProjectByID struct { //ID ID int64 `db:"id" json:"id" check:"id"` //组织ID OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"` }
ArgsGetProjectByID 获取Project数据包参数
type ArgsGetProjectList ¶ added in v5.1.29
type ArgsGetProjectList struct { //分页参数 Pages CoreSQL2.ArgsPages `json:"pages"` //组织ID OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"` //审批状态 // 0: 未审批; 1: 审批中; 2: 审批通过; 3: 审批拒绝 Status int `db:"status" json:"status"` //验收状态 // 0: 未验收; 1: 验收中; 2: 验收通过; 3: 验收拒绝 AcceptanceStatus int `db:"acceptance_status" json:"acceptanceStatus"` //是否删除 IsRemove bool `json:"isRemove" check:"bool"` //搜索 Search string `json:"search" check:"search" empty:"true"` }
ArgsGetProjectList 获取Project列表参数
type ArgsUpdateProject ¶ added in v5.1.29
type ArgsUpdateProject struct { //ID ID int64 `db:"id" json:"id" check:"id"` //组织ID OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"` //计划验证人ID PlanVerifierID int64 `db:"plan_verifier_id" json:"planVerifierID" check:"id" empty:"true"` //计划验收人姓名 PlanVerifierName string `db:"plan_verifier_name" json:"planVerifierName" check:"des" min:"1" max:"300" empty:"true"` //名称 Name string `db:"name" json:"name" check:"des" min:"1" max:"300"` //描述 Des string `db:"des" json:"des" check:"des" min:"1" max:"3000" empty:"true"` //预估预算总金额 Total int64 `db:"total" json:"total" check:"int64Than0"` }
ArgsUpdateProject 修改Project参数
type FieldsProject ¶
type FieldsProject struct { //ID ID int64 `db:"id" json:"id"` //创建时间 CreateAt time.Time `db:"create_at" json:"createAt"` //更新时间 UpdateAt time.Time `db:"update_at" json:"updateAt"` //删除时间 DeleteAt time.Time `db:"delete_at" json:"deleteAt"` //审批状态 // 0: 未审批; 1: 审批中; 2: 审批通过; 3: 审批拒绝 Status int `db:"status" json:"status"` //验收状态 // 0: 未验收; 1: 验收中; 2: 验收通过; 3: 验收拒绝 AcceptanceStatus int `db:"acceptance_status" json:"acceptanceStatus"` //组织ID OrgID int64 `db:"org_id" json:"orgID" check:"id"` //计划验证人ID PlanVerifierID int64 `db:"plan_verifier_id" json:"planVerifierID" check:"id" empty:"true"` //计划验收人姓名 PlanVerifierName string `db:"plan_verifier_name" json:"planVerifierName" check:"des" min:"1" max:"300" empty:"true"` //名称 Name string `db:"name" json:"name" check:"des" min:"1" max:"300"` //描述 Des string `db:"des" json:"des" check:"des" min:"1" max:"3000" empty:"true"` //预估预算总金额 Total int64 `db:"total" json:"total" check:"int64Than0"` }
FieldsProject 项目
func GetProjectByID ¶ added in v5.1.29
func GetProjectByID(args *ArgsGetProjectByID) (data FieldsProject, err error)
GetProjectByID 获取Project数
func GetProjectList ¶ added in v5.1.29
func GetProjectList(args *ArgsGetProjectList) (dataList []FieldsProject, dataCount int64, err error)
GetProjectList 获取Project列表
Click to show internal directories.
Click to hide internal directories.