coai/globals/interface.go
2024-03-12 14:36:18 +08:00

20 lines
343 B
Go

package globals
import "database/sql"
type ChannelConfig interface {
GetType() string
GetModelReflect(model string) string
GetRetry() int
GetRandomSecret() string
SplitRandomSecret(num int) []string
GetEndpoint() string
ProcessError(err error) error
GetId() int
}
type AuthLike interface {
GetID(db *sql.DB) int64
HitID() int64
}