gin funn and testing

This commit is contained in:
2019-11-02 13:54:10 +01:00
commit aad9ec9ca1
22 changed files with 1125 additions and 0 deletions

View File

@ -0,0 +1,12 @@
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)
}