9 lines
200 B
Go
9 lines
200 B
Go
|
package dao
|
||
|
|
||
|
import "blog/internal/model"
|
||
|
|
||
|
func (d *Dao) GetAuth(appKey, appSecret string) (model.Auth, error) {
|
||
|
auth := model.Auth{AppKey: appKey, AppSecret: appSecret}
|
||
|
return auth.Get(d.engine)
|
||
|
}
|