13 lines
191 B
Go
13 lines
191 B
Go
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)
|
|
}
|