32 lines
		
	
	
		
			515 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			515 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| 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)
 | |
| }
 |