feat: add Go backend
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
package sysin
|
||||
|
||||
import (
|
||||
"context"
|
||||
"hotgo/internal/model/entity"
|
||||
"hotgo/internal/model/input/form"
|
||||
|
||||
"github.com/gogf/gf/v2/encoding/gjson"
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
|
||||
type BizAuditRecordInp struct {
|
||||
Module string
|
||||
Action string
|
||||
TargetType string
|
||||
TargetId uint64
|
||||
Before any
|
||||
After any
|
||||
ChangeJson *gjson.Json
|
||||
Reason string
|
||||
ApprovalNo string
|
||||
}
|
||||
|
||||
type BizAuditListInp struct {
|
||||
form.PageReq
|
||||
AuditNo string `json:"auditNo" dc:"审计号"`
|
||||
Module string `json:"module" dc:"业务模块"`
|
||||
Action string `json:"action" dc:"操作动作"`
|
||||
TargetType string `json:"targetType" dc:"目标类型"`
|
||||
TargetId uint64 `json:"targetId" dc:"目标ID"`
|
||||
Actor string `json:"actor" dc:"操作人关键词"`
|
||||
ApprovalNo string `json:"approvalNo" dc:"审批单号"`
|
||||
CreatedAt []*gtime.Time `json:"createdAt" dc:"创建时间"`
|
||||
}
|
||||
|
||||
func (in *BizAuditListInp) Filter(ctx context.Context) error { return nil }
|
||||
|
||||
type BizAuditListModel struct {
|
||||
entity.BizAuditLog
|
||||
}
|
||||
|
||||
type BizAuditViewInp struct {
|
||||
Id uint64 `json:"id" v:"required|min:1#审计ID不能为空|审计ID不能为空" dc:"审计ID"`
|
||||
}
|
||||
|
||||
func (in *BizAuditViewInp) Filter(ctx context.Context) error { return nil }
|
||||
|
||||
type BizAuditViewModel struct {
|
||||
entity.BizAuditLog
|
||||
}
|
||||
Reference in New Issue
Block a user