sys_log.go
969 字节
package domain
import (
"context"
"gitlab.fjmaimaimai.com/allied-creation/su-micro/pkg/transaction"
)
type SysLog struct {
Id int64 // 唯一标识
CreatedAt int64 `json:",omitempty"`
//UpdatedAt int64 `json:",omitempty"`
//DeletedAt int64 `json:",omitempty"`
//Version int `json:",omitempty"`
}
type SysLogRepository interface {
Insert(ctx context.Context, conn transaction.Conn, dm *SysLog) (*SysLog, error)
Update(ctx context.Context, conn transaction.Conn, dm *SysLog) (*SysLog, error)
UpdateWithVersion(ctx context.Context, conn transaction.Conn, dm *SysLog) (*SysLog, error)
Delete(ctx context.Context, conn transaction.Conn, dm *SysLog) (*SysLog, error)
FindOne(ctx context.Context, conn transaction.Conn, id int64) (*SysLog, error)
FindOneUnscoped(ctx context.Context, conn transaction.Conn, id int64) (*SysLog, error)
Find(ctx context.Context, conn transaction.Conn, queryOptions map[string]interface{}) (int64, []*SysLog, error)
}