init: taotie-api 项目初始化

This commit is contained in:
2026-05-16 00:14:19 +08:00
commit eb15ef4b87
33 changed files with 1746 additions and 0 deletions

18
repo/types.go Normal file
View 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
}