Documentation ¶
Index ¶
- func AuditRequirement(args *ArgsAuditRequirement) (err error)
- func CreateRequirement(args *ArgsCreateRequirement) (id int64, err error)
- func CreateRequirementItem(args *ArgsCreateRequirementItem) (id int64, err error)
- func DeleteRequirement(args *ArgsDeleteRequirement) (err error)
- func DeleteRequirementItem(args *ArgsDeleteRequirementItem) (err error)
- func Init()
- func UpdateRequirement(args *ArgsUpdateRequirement) (err error)
- func UpdateRequirementItem(args *ArgsUpdateRequirementItem) (err error)
- type ArgsAuditRequirement
- type ArgsCreateRequirement
- type ArgsCreateRequirementItem
- type ArgsDeleteRequirement
- type ArgsDeleteRequirementItem
- type ArgsGetRequirementByID
- type ArgsGetRequirementItemByID
- type ArgsGetRequirementItemList
- type ArgsGetRequirementList
- type ArgsUpdateRequirement
- type ArgsUpdateRequirementItem
- type FieldsRequisition
- type FieldsRequisitionItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuditRequirement ¶ added in v5.1.29
func AuditRequirement(args *ArgsAuditRequirement) (err error)
AuditRequirement 审批Requirement
func CreateRequirement ¶ added in v5.1.29
func CreateRequirement(args *ArgsCreateRequirement) (id int64, err error)
CreateRequirement 创建Requirement
func CreateRequirementItem ¶ added in v5.1.29
func CreateRequirementItem(args *ArgsCreateRequirementItem) (id int64, err error)
CreateRequirementItem 创建RequirementItem
func DeleteRequirement ¶ added in v5.1.29
func DeleteRequirement(args *ArgsDeleteRequirement) (err error)
DeleteRequirement 删除Requirement
func DeleteRequirementItem ¶ added in v5.1.29
func DeleteRequirementItem(args *ArgsDeleteRequirementItem) (err error)
DeleteRequirementItem 删除RequirementItem
func UpdateRequirement ¶ added in v5.1.29
func UpdateRequirement(args *ArgsUpdateRequirement) (err error)
UpdateRequirement 修改Requirement
func UpdateRequirementItem ¶ added in v5.1.29
func UpdateRequirementItem(args *ArgsUpdateRequirementItem) (err error)
UpdateRequirementItem 修改RequirementItem
Types ¶
type ArgsAuditRequirement ¶ added in v5.1.29
type ArgsAuditRequirement struct { //ID ID int64 `db:"id" json:"id" check:"id"` //审批状态 // 0: 未审批; 1: 审批中; 2: 审批通过; 3: 审批拒绝 Status int `db:"status" json:"status"` }
ArgsAuditRequirement 审批Requirement参数
type ArgsCreateRequirement ¶ added in v5.1.29
type ArgsCreateRequirement struct { //组织ID OrgID int64 `db:"org_id" json:"orgID" check:"id"` //提交组织成员ID OrgBindID int64 `db:"org_bind_id" json:"orgBindID" check:"id"` //备注 Remark string `db:"remark" json:"remark" check:"des" min:"1" max:"300" empty:"true"` //关联的项目ID ProjectID int64 `db:"project_id" json:"projectID" check:"id" empty:"true"` //关联项目名称 ProjectName string `db:"project_name" json:"projectName" check:"des" min:"1" max:"300" empty:"true"` }
ArgsCreateRequirement 创建Requirement参数
type ArgsCreateRequirementItem ¶ added in v5.1.29
type ArgsCreateRequirementItem struct { //关联头ID RequisitionID int64 `db:"requisition_id" json:"requisitionID" check:"id"` //产品ID ProductID int64 `db:"product_id" json:"productID" check:"id"` //产品价格 Price int64 `db:"price" json:"price" check:"price"` //数量 Count int64 `db:"count" json:"count" check:"int64Than0"` //供应商公司ID CompanyID int64 `db:"company_id" json:"companyID" check:"id" empty:"true"` //供应商名称 CompanyName string `db:"company_name" json:"companyName" check:"des" min:"1" max:"300" empty:"true"` }
ArgsCreateRequirementItem 创建RequirementItem参数
type ArgsDeleteRequirement ¶ added in v5.1.29
type ArgsDeleteRequirement struct { //ID ID int64 `db:"id" json:"id" check:"id"` }
ArgsDeleteRequirement 删除Requirement参数
type ArgsDeleteRequirementItem ¶ added in v5.1.29
type ArgsDeleteRequirementItem struct { //ID ID int64 `db:"id" json:"id" check:"id"` }
ArgsDeleteRequirementItem 删除RequirementItem参数
type ArgsGetRequirementByID ¶ added in v5.1.29
type ArgsGetRequirementByID struct { //ID ID int64 `db:"id" json:"id" check:"id"` //组织ID OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"` }
ArgsGetRequirementByID 获取Requirement数据包参数
type ArgsGetRequirementItemByID ¶ added in v5.1.29
type ArgsGetRequirementItemByID struct { //ID ID int64 `db:"id" json:"id" check:"id"` //组织ID OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"` }
ArgsGetRequirementItemByID 获取RequirementItem数据包参数
type ArgsGetRequirementItemList ¶ added in v5.1.29
type ArgsGetRequirementItemList struct { //分页参数 Pages CoreSQL2.ArgsPages `json:"pages"` //关联头ID RequisitionID int64 `db:"requisition_id" json:"requisitionID" check:"id"` //产品ID ProductID int64 `db:"product_id" json:"productID" check:"id"` //供应商公司ID CompanyID int64 `db:"company_id" json:"companyID" check:"id" empty:"true"` //是否删除 IsRemove bool `json:"isRemove" check:"bool"` //搜索 Search string `json:"search" check:"search" empty:"true"` }
ArgsGetRequirementItemList 获取RequirementItem列表参数
type ArgsGetRequirementList ¶ added in v5.1.29
type ArgsGetRequirementList struct { //分页参数 Pages CoreSQL2.ArgsPages `json:"pages"` //组织ID OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"` //关联的项目ID ProjectID int64 `db:"project_id" json:"projectID" check:"id" empty:"true"` //审批状态 // 0: 未审批; 1: 审批中; 2: 审批通过; 3: 审批拒绝 Status int `db:"status" json:"status"` //是否删除 IsRemove bool `json:"isRemove" check:"bool"` //搜索 Search string `json:"search" check:"search" empty:"true"` }
ArgsGetRequirementList 获取Requirement列表参数
type ArgsUpdateRequirement ¶ added in v5.1.29
type ArgsUpdateRequirement struct { //ID ID int64 `db:"id" json:"id" check:"id"` //组织ID OrgID int64 `db:"org_id" json:"orgID" check:"id"` //提交组织成员ID OrgBindID int64 `db:"org_bind_id" json:"orgBindID" check:"id"` //备注 Remark string `db:"remark" json:"remark" check:"des" min:"1" max:"300" empty:"true"` //关联的项目ID ProjectID int64 `db:"project_id" json:"projectID" check:"id" empty:"true"` //关联项目名称 ProjectName string `db:"project_name" json:"projectName" check:"des" min:"1" max:"300" empty:"true"` }
ArgsUpdateRequirement 修改Requirement参数
type ArgsUpdateRequirementItem ¶ added in v5.1.29
type ArgsUpdateRequirementItem struct { //ID ID int64 `db:"id" json:"id" check:"id"` //关联头ID RequisitionID int64 `db:"requisition_id" json:"requisitionID" check:"id"` //产品ID ProductID int64 `db:"product_id" json:"productID" check:"id"` //产品价格 Price int64 `db:"price" json:"price" check:"price"` //数量 Count int64 `db:"count" json:"count" check:"int64Than0"` //供应商公司ID CompanyID int64 `db:"company_id" json:"companyID" check:"id" empty:"true"` //供应商名称 CompanyName string `db:"company_name" json:"companyName" check:"des" min:"1" max:"300" empty:"true"` }
ArgsUpdateRequirementItem 修改RequirementItem参数
type FieldsRequisition ¶
type FieldsRequisition 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"` //组织ID OrgID int64 `db:"org_id" json:"orgID" check:"id"` //提交组织成员ID OrgBindID int64 `db:"org_bind_id" json:"orgBindID" check:"id"` //备注 Remark string `db:"remark" json:"remark" check:"des" min:"1" max:"300" empty:"true"` //关联的项目ID ProjectID int64 `db:"project_id" json:"projectID" check:"id" empty:"true"` //关联项目名称 ProjectName string `db:"project_name" json:"projectName" check:"des" min:"1" max:"300" empty:"true"` }
FieldsRequisition 采购申请单头
func GetRequirementByID ¶ added in v5.1.29
func GetRequirementByID(args *ArgsGetRequirementByID) (data FieldsRequisition, err error)
GetRequirementByID 获取Requirement数
func GetRequirementList ¶ added in v5.1.29
func GetRequirementList(args *ArgsGetRequirementList) (dataList []FieldsRequisition, dataCount int64, err error)
GetRequirementList 获取Requirement列表
type FieldsRequisitionItem ¶
type FieldsRequisitionItem 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"` //关联头ID RequisitionID int64 `db:"requisition_id" json:"requisitionID" check:"id"` //产品ID ProductID int64 `db:"product_id" json:"productID" check:"id"` //产品价格 Price int64 `db:"price" json:"price" check:"price"` //数量 Count int64 `db:"count" json:"count" check:"int64Than0"` //供应商公司ID CompanyID int64 `db:"company_id" json:"companyID" check:"id" empty:"true"` //供应商名称 CompanyName string `db:"company_name" json:"companyName" check:"des" min:"1" max:"300" empty:"true"` }
FieldsRequisitionItem 采购申请单行
func GetRequirementItemByID ¶ added in v5.1.29
func GetRequirementItemByID(args *ArgsGetRequirementItemByID) (data FieldsRequisitionItem, err error)
GetRequirementItemByID 获取RequirementItem数
func GetRequirementItemList ¶ added in v5.1.29
func GetRequirementItemList(args *ArgsGetRequirementItemList) (dataList []FieldsRequisitionItem, dataCount int64, err error)
GetRequirementItemList 获取RequirementItem列表