v2
This commit is contained in:
31
internal/erpserver/biz/v1/system/audit.go
Normal file
31
internal/erpserver/biz/v1/system/audit.go
Normal file
@@ -0,0 +1,31 @@
|
||||
package system
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
db "management/internal/db/sqlc"
|
||||
)
|
||||
|
||||
type AuditBiz interface {
|
||||
Create(ctx context.Context, arg *db.CreateSysAuditLogParams) error
|
||||
|
||||
AuditExpansion
|
||||
}
|
||||
|
||||
type AuditExpansion interface{}
|
||||
|
||||
type auditBiz struct {
|
||||
store db.Store
|
||||
}
|
||||
|
||||
var _ AuditBiz = (*auditBiz)(nil)
|
||||
|
||||
func NewAudit(store db.Store) *auditBiz {
|
||||
return &auditBiz{
|
||||
store: store,
|
||||
}
|
||||
}
|
||||
|
||||
func (b *auditBiz) Create(ctx context.Context, arg *db.CreateSysAuditLogParams) error {
|
||||
return b.store.CreateSysAuditLog(ctx, arg)
|
||||
}
|
||||
Reference in New Issue
Block a user