gin-blog/internal/dao/auth.go
2021-05-31 17:40:47 +08:00

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)
}