Documentation ¶
Index ¶
- Variables
- func ApproveLogFlow(args *ArgsApproveLogFlow) (errCode string, err error)
- func CreateConfig(args *ArgsCreateConfig) (configID int64, errCode string, err error)
- func CreateLog(args *ArgsCreateLog) (errCode string, err error)
- func DeleteConfig(args *ArgsDeleteConfig) (err error)
- func DeleteLog(args *ArgsDeleteLog) (err error)
- func Init()
- func UpdateConfig(args *ArgsUpdateConfig) (errCode string, err error)
- type ArgsApproveLogFlow
- type ArgsCreateConfig
- type ArgsCreateLog
- type ArgsDeleteConfig
- type ArgsDeleteLog
- type ArgsGetConfigByID
- type ArgsGetConfigList
- type ArgsGetLogByID
- type ArgsGetLogByModuleAndID
- type ArgsGetLogFlows
- type ArgsGetLogList
- type ArgsUpdateConfig
- type DataConfig
- type DataConfigItem
- type DataConfigItems
- type DataLog
- type DataLogFlow
- type DataLogFlows
- type FieldsConfig
- type FieldsConfigItem
- type FieldsLog
- type FieldsLogFlow
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //OpenSub 消息 OpenSub = false )
Functions ¶
func ApproveLogFlow ¶
func ApproveLogFlow(args *ArgsApproveLogFlow) (errCode string, err error)
ApproveLogFlow 审核某个节点
func CreateConfig ¶
func CreateConfig(args *ArgsCreateConfig) (configID int64, errCode string, err error)
CreateConfig 创建配置
func UpdateConfig ¶
func UpdateConfig(args *ArgsUpdateConfig) (errCode string, err error)
UpdateConfig 修改配置
Types ¶
type ArgsApproveLogFlow ¶
type ArgsApproveLogFlow struct { //ID ID int64 `db:"id" json:"id" check:"id"` //组织ID OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"` //提交组织成员ID OrgBindID int64 `db:"org_bind_id" json:"orgBindID" check:"id" empty:"true"` //用户ID UserID int64 `db:"user_id" json:"userID" check:"id" empty:"true"` //是否审批通过 IsApprove bool `db:"is_approve" json:"isApprove" check:"bool"` //审批备注 ApproverRemark string `db:"approver_remark" json:"approverRemark" check:"des" min:"1" max:"300" empty:"true"` //拒绝备注 RejectRemark string `db:"reject_remark" json:"rejectRemark" check:"des" min:"1" max:"300" empty:"true"` }
ArgsApproveLogFlow 审核某个节点参数
type ArgsCreateConfig ¶
type ArgsCreateConfig struct { //组织ID OrgID int64 `db:"org_id" json:"orgID" check:"id"` //关联的模块标识码 // erp_project ModuleCode string `db:"module_code" json:"moduleCode" check:"des" min:"1" max:"50"` //名称 Name string `db:"name" json:"name" check:"des" min:"1" max:"300"` //描述 Desc string `db:"desc" json:"desc" check:"des" min:"1" max:"300" empty:"true"` //审批分叉标识码 // 用于识别模块内,不同的审批流程 ForkCode string `db:"fork_code" json:"forkCode" check:"des" min:"1" max:"50"` //审批流配置 Items DataConfigItems `json:"items"` }
ArgsCreateConfig 创建配置参数
type ArgsCreateLog ¶
type ArgsCreateLog struct { //组织ID OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"` //提交组织成员ID OrgBindID int64 `db:"org_bind_id" json:"orgBindID" check:"id" empty:"true"` //用户ID UserID int64 `db:"user_id" json:"userID" check:"id" empty:"true"` //关联的模块标识码 // erp_project ModuleCode string `db:"module_code" json:"moduleCode" check:"des" min:"1" max:"50"` //审批分叉标识码 // 用于识别模块内,不同的审批流程 ForkCode string `db:"fork_code" json:"forkCode" check:"des" min:"1" max:"50"` //审批ID ApproverID int64 `db:"approver_id" json:"approverID" check:"id"` //审批备注 ApproverRemark string `db:"approver_remark" json:"approverRemark" check:"des" min:"1" max:"300"` }
ArgsCreateLog 发起新的审批参数
type ArgsDeleteConfig ¶
type ArgsDeleteConfig struct { //ID ID int64 `db:"id" json:"id" check:"id"` }
ArgsDeleteConfig 删除Budget参数
type ArgsDeleteLog ¶
type ArgsDeleteLog struct { //ID ID int64 `db:"id" json:"id" check:"id"` //组织ID OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"` }
ArgsDeleteLog 删除审批流参数
type ArgsGetConfigByID ¶
type ArgsGetConfigByID struct { //ID ID int64 `db:"id" json:"id" check:"id"` //组织ID OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"` }
ArgsGetConfigByID 获取配置参数
type ArgsGetConfigList ¶
type ArgsGetConfigList struct { //分页参数 Pages CoreSQL2.ArgsPages `json:"pages"` //组织ID OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"` //关联的模块标识码 // erp_project ModuleCode string `db:"module_code" json:"moduleCode" check:"des" min:"1" max:"50" empty:"true"` //审批分叉标识码 // 用于识别模块内,不同的审批流程 ForkCode string `db:"fork_code" json:"forkCode" check:"des" min:"1" max:"50"` //是否删除 IsRemove bool `json:"isRemove" check:"bool"` //搜索 Search string `json:"search" check:"search" empty:"true"` }
ArgsGetConfigList 获取配置列表参数
type ArgsGetLogByID ¶
type ArgsGetLogByID struct { //ID ID int64 `db:"id" json:"id" check:"id"` //组织ID OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"` //提交组织成员ID OrgBindID int64 `db:"org_bind_id" json:"orgBindID" check:"id" empty:"true"` //用户ID UserID int64 `db:"user_id" json:"userID" check:"id" empty:"true"` }
ArgsGetLogByID 获取日志数据包参数
type ArgsGetLogByModuleAndID ¶
type ArgsGetLogByModuleAndID struct { //组织ID OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"` //提交组织成员ID OrgBindID int64 `db:"org_bind_id" json:"orgBindID" check:"id" empty:"true"` //用户ID UserID int64 `db:"user_id" json:"userID" check:"id" empty:"true"` //关联的模块标识码 // erp_project ModuleCode string `db:"module_code" json:"moduleCode" check:"des" min:"1" max:"50"` //审批ID ApproverID int64 `db:"approver_id" json:"approverID" check:"id"` }
ArgsGetLogByModuleAndID 通过模块和ID获取审批参数
type ArgsGetLogFlows ¶
type ArgsGetLogFlows struct { //分页参数 Pages CoreSQL2.ArgsPages `json:"pages"` //日志ID LogID int64 `db:"log_id" json:"logID" check:"id" empty:"true"` //审批状态 // 0: 未审批; 1: 审批中; 2: 审批通过; 3: 审批拒绝 Status int `db:"status" json:"status" check:"intThan0" empty:"true"` //组织成员ID OrgBindID int64 `db:"org_bind_id" json:"orgBindID" check:"id" empty:"true"` //审批人用户ID // 用户ID UserID int64 `db:"user_id" json:"userID" check:"id" empty:"true"` //搜索 Search string `json:"search" check:"search" empty:"true"` }
ArgsGetLogFlows 获取日志行列表参数
type ArgsGetLogList ¶
type ArgsGetLogList struct { //分页参数 Pages CoreSQL2.ArgsPages `json:"pages"` //组织ID OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"` //提交组织成员ID OrgBindID int64 `db:"org_bind_id" json:"orgBindID" check:"id" empty:"true"` //用户ID UserID int64 `db:"user_id" json:"userID" check:"id" empty:"true"` //审批状态 // 0: 未审批; 1: 审批中; 2: 审批通过; 3: 审批拒绝 Status int `db:"status" json:"status" check:"intThan0" empty:"true"` //关联的模块标识码 // erp_project ModuleCode string `db:"module_code" json:"moduleCode" check:"des" min:"1" max:"50" empty:"true"` //审批配置ID ConfigID int64 `db:"config_id" json:"configID" check:"id" empty:"true"` //搜索 Search string `json:"search" check:"search" empty:"true"` }
ArgsGetLogList 获取日志列表参数
type ArgsUpdateConfig ¶
type ArgsUpdateConfig struct { //ID ID int64 `db:"id" json:"id" check:"id"` //组织ID OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"` //名称 Name string `db:"name" json:"name" check:"des" min:"1" max:"300"` //描述 Desc string `db:"desc" json:"desc" check:"des" min:"1" max:"300" empty:"true"` //审批流配置 Items DataConfigItems `json:"items"` }
ArgsUpdateConfig 修改配置参数
type DataConfig ¶
type DataConfig 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 OrgID int64 `db:"org_id" json:"orgID" check:"id"` //关联的模块标识码 // erp_project ModuleCode string `db:"module_code" json:"moduleCode" check:"des" min:"1" max:"50"` //审批分叉标识码 // 用于识别模块内,不同的审批流程 ForkCode string `db:"fork_code" json:"forkCode" check:"des" min:"1" max:"50"` //审批流配置 Items DataConfigItems `json:"item"` }
func GetConfigByID ¶
func GetConfigByID(args *ArgsGetConfigByID) (data DataConfig, err error)
GetConfigByID 获取配置
func GetConfigList ¶
func GetConfigList(args *ArgsGetConfigList) (dataList []DataConfig, dataCount int64, err error)
GetConfigList 获取配置列表
type DataConfigItem ¶
type DataConfigItem struct { //审批顺序 FlowOrder int `db:"flow_order" json:"flowOrder" check:"intThan0" empty:"true"` //组织成员ID OrgBindID int64 `db:"org_bind_id" json:"orgBindID" check:"id" empty:"true"` //审批人用户ID // 用户ID UserID int64 `db:"user_id" json:"userID" check:"id" empty:"true"` }
func (*DataConfigItem) Scan ¶
func (t *DataConfigItem) Scan(value interface{}) error
type DataConfigItems ¶
type DataConfigItems []DataConfigItem
func (*DataConfigItems) Scan ¶
func (t *DataConfigItems) Scan(value interface{}) error
type DataLog ¶
type DataLog 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 OrgID int64 `db:"org_id" json:"orgID" check:"id"` //提交组织成员ID OrgBindID int64 `db:"org_bind_id" json:"orgBindID" check:"id"` //用户ID UserID int64 `db:"user_id" json:"userID" check:"id"` //提交人姓名 SubmitterName string `db:"submitter_name" json:"submitterName" check:"des" min:"1" max:"300"` //关联的模块标识码 // erp_project ModuleCode string `db:"module_code" json:"moduleCode" check:"des" min:"1" max:"50"` //审批ID ApproverID int64 `db:"approver_id" json:"approverID" check:"id"` //审批配置ID ConfigID int64 `db:"config_id" json:"configID" check:"id"` //审批流 Flows DataLogFlows `db:"flows" json:"flows"` }
DataLog 审批日志
func GetLogByID ¶
func GetLogByID(args *ArgsGetLogByID) (data DataLog, err error)
GetLogByID 获取日志数据包
func GetLogByModuleAndID ¶
func GetLogByModuleAndID(args *ArgsGetLogByModuleAndID) (data DataLog, err error)
GetLogByModuleAndID 通过模块和ID获取审批
type DataLogFlow ¶
type DataLogFlow struct { //审批顺序 FlowOrder int `db:"flow_order" json:"flowOrder" check:"intThan0" empty:"true"` //审批状态 // 0: 未审批; 1: 审批中; 2: 审批通过; 3: 审批拒绝 Status int `db:"status" json:"status"` //创建时间 CreateAt time.Time `db:"create_at" json:"createAt"` //审批时间 // 审批完成或拒绝时间 ApproveAt time.Time `db:"approve_at" json:"approveAt"` //审批人ID OrgBindID int64 `db:"org_bind_id" json:"orgBindID" check:"id"` //用户ID UserID int64 `db:"user_id" json:"userID" check:"id"` //审批人姓名 ApproverName string `db:"approver_name" json:"approverName" check:"des" min:"1" max:"300"` //审批备注 ApproverRemark string `db:"approver_remark" json:"approverRemark" check:"des" min:"1" max:"300" empty:"true"` //拒绝备注 RejectRemark string `db:"reject_remark" json:"rejectRemark" check:"des" min:"1" max:"300" empty:"true"` }
DataLogFlow 审批
func (*DataLogFlow) Scan ¶
func (t *DataLogFlow) Scan(value interface{}) error
type DataLogFlows ¶
type DataLogFlows []DataLogFlow
func (*DataLogFlows) Scan ¶
func (t *DataLogFlows) Scan(value interface{}) error
type FieldsConfig ¶
type FieldsConfig 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 OrgID int64 `db:"org_id" json:"orgID" check:"id"` //关联的模块标识码 // erp_project ModuleCode string `db:"module_code" json:"moduleCode" check:"des" min:"1" max:"50"` //名称 Name string `db:"name" json:"name" check:"des" min:"1" max:"300"` //描述 Desc string `db:"description" json:"desc" check:"des" min:"1" max:"300" empty:"true"` //审批分叉标识码 // 用于识别模块内,不同的审批流程 ForkCode string `db:"fork_code" json:"forkCode" check:"des" min:"1" max:"50"` }
FieldsConfig 审批配置
type FieldsConfigItem ¶
type FieldsConfigItem 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 ConfigID int64 `db:"config_id" json:"configID" check:"id"` //审批顺序 FlowOrder int `db:"flow_order" json:"flowOrder" check:"intThan0" empty:"true"` //组织成员ID OrgBindID int64 `db:"org_bind_id" json:"orgBindID" check:"id" empty:"true"` //审批人用户ID // 用户ID UserID int64 `db:"user_id" json:"userID" check:"id" empty:"true"` }
FieldsConfigItem 审批配置
type FieldsLog ¶
type FieldsLog 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 OrgID int64 `db:"org_id" json:"orgID" check:"id"` //提交组织成员ID OrgBindID int64 `db:"org_bind_id" json:"orgBindID" check:"id"` //用户ID UserID int64 `db:"user_id" json:"userID" check:"id"` //提交人姓名 SubmitterName string `db:"submitter_name" json:"submitterName" check:"des" min:"1" max:"300"` //审批备注 ApproverRemark string `db:"approver_remark" json:"approverRemark" check:"des" min:"1" max:"300"` //审批状态 // 0: 未审批; 1: 审批中; 2: 审批通过; 3: 审批拒绝 Status int `db:"status" json:"status"` //关联的模块标识码 // erp_project ModuleCode string `db:"module_code" json:"moduleCode" check:"des" min:"1" max:"50"` //审批ID ApproverID int64 `db:"approver_id" json:"approverID" check:"id"` //审批配置ID ConfigID int64 `db:"config_id" json:"configID" check:"id"` }
FieldsLog 审批日志
func GetLogList ¶
func GetLogList(args *ArgsGetLogList) (dataList []FieldsLog, dataCount int64, err error)
GetLogList 获取日志列表
type FieldsLogFlow ¶
type FieldsLogFlow 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 LogID int64 `db:"log_id" json:"logID" check:"id"` //审批顺序 FlowOrder int `db:"flow_order" json:"flowOrder" check:"intThan0" empty:"true"` //审批状态 // 0: 未审批; 1: 审批中; 2: 审批通过; 3: 审批拒绝 Status int `db:"status" json:"status"` //审批时间 // 审批完成或拒绝时间 ApproveAt time.Time `db:"approve_at" json:"approveAt"` //审批人ID OrgBindID int64 `db:"org_bind_id" json:"orgBindID" check:"id"` //用户ID UserID int64 `db:"user_id" json:"userID" check:"id"` //审批人姓名 ApproverName string `db:"approver_name" json:"approverName" check:"des" min:"1" max:"300"` //审批备注 ApproverRemark string `db:"approver_remark" json:"approverRemark" check:"des" min:"1" max:"300" empty:"true"` //拒绝备注 RejectRemark string `db:"reject_remark" json:"rejectRemark" check:"des" min:"1" max:"300" empty:"true"` }
FieldsLogFlow 审批
func GetLogFlows ¶
func GetLogFlows(args *ArgsGetLogFlows) (dataList []FieldsLogFlow, dataCount int64, err error)
GetLogFlows 获取日志行列表
Source Files ¶
Click to show internal directories.
Click to hide internal directories.