gin-blog/internal/dao/auth.go

9 lines
200 B
Go
Raw Permalink Normal View History

2021-05-31 09:40:47 +00:00
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)
}