diff --git a/workday.go b/workday.go index 9244e41..abb941a 100644 --- a/workday.go +++ b/workday.go @@ -6,6 +6,7 @@ import ( _ "github.com/go-sql-driver/mysql" "github.com/injoyai/base/maps" "github.com/injoyai/conv" + "github.com/injoyai/ios/client" "github.com/injoyai/logs" "github.com/injoyai/tdx/protocol" "github.com/robfig/cron/v3" @@ -16,6 +17,14 @@ import ( "xorm.io/xorm" ) +func DialWorkday(op ...client.Option) (*Workday, error) { + c, err := DialDefault(op...) + if err != nil { + return nil, err + } + return NewWorkdaySqlite(c) +} + func NewWorkdayMysql(c *Client, dsn string) (*Workday, error) { //连接数据库