init: taotie-api 项目初始化
This commit is contained in:
18
repo/types.go
Normal file
18
repo/types.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package repo
|
||||
|
||||
type IEntity interface {
|
||||
Id() string
|
||||
CreatedBy() string
|
||||
SetCreatedBy(string)
|
||||
TenantId() string
|
||||
SetTenantId(string)
|
||||
SetNow(int64)
|
||||
}
|
||||
|
||||
type QueryParams struct {
|
||||
Page int
|
||||
PageSize int
|
||||
Where map[string]any
|
||||
WhereInIds []string
|
||||
OrderBy []string
|
||||
}
|
||||
Reference in New Issue
Block a user