gin funn and testing
This commit is contained in:
12
security/service/auth_service.go
Normal file
12
security/service/auth_service.go
Normal 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)
|
||||
}
|
Reference in New Issue
Block a user