mirror of
https://github.com/APIParkLab/APIPark.git
synced 2026-06-12 18:11:34 +08:00
18 lines
313 B
Go
18 lines
313 B
Go
package universally
|
|
|
|
import "github.com/eolinker/go-common/store"
|
|
|
|
const (
|
|
SoftDeleteField = "is_delete"
|
|
SoftDeleteWhere = "is_delete = false"
|
|
)
|
|
|
|
func assert(e any) {
|
|
if _, ok := e.(store.Table); !ok {
|
|
panic("not implement store.Table")
|
|
}
|
|
}
|
|
func idValue(v any) int64 {
|
|
return (v.(store.Table)).IdValue()
|
|
}
|