diff --git a/erp/expense/audit.go b/erp/expense/audit.go new file mode 100644 index 0000000..9e8a784 --- /dev/null +++ b/erp/expense/audit.go @@ -0,0 +1,26 @@ +package expense + +import ( + "context" + + "git.kumo.work/shama/service/client" +) + +type audit struct { +} +type ArgsAuditSubmit struct { + StaffId int64 // 操作人 + ExpenseId int64 // 报销单id + AuditStaffIds []int64 // 审核人 +} + +// Submit @TITLE 提交审核 +func (a *audit) Submit(ctx context.Context, args ArgsAuditSubmit) (err error) { + xClient, err := client.GetClient(a) + if err != nil { + return + } + reply := 0 + err = xClient.Call(ctx, "Submit", args, &reply) + return +} diff --git a/erp/request/audit.go b/erp/request/audit.go new file mode 100644 index 0000000..106743c --- /dev/null +++ b/erp/request/audit.go @@ -0,0 +1,26 @@ +package request + +import ( + "context" + + "git.kumo.work/shama/service/client" +) + +type audit struct { +} +type ArgsAuditSubmit struct { + StaffId int64 // 操作人 + RequestId int64 // 申请单id + AuditStaffIds []int64 // 审核人 +} + +// Submit @TITLE 提交审核 +func (a *audit) Submit(ctx context.Context, args ArgsAuditSubmit) (err error) { + xClient, err := client.GetClient(a) + if err != nil { + return + } + reply := 0 + err = xClient.Call(ctx, "Submit", args, &reply) + return +}