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