gin-server/security/service/auth_service.go

13 lines
191 B
Go
Raw Permalink Normal View History

2019-11-02 12:54:10 +00:00
package service
import "gin-server/models"
type Auth struct {
Username string
Password string
}
func (a *Auth) Check() (bool, error) {
return models.CheckAuth(a.Username, a.Password)
}