feat: add api for admin login

This commit is contained in:
Lakhan Samani
2021-12-30 10:01:51 +05:30
parent 86bcb8ca87
commit d9c40057e6
16 changed files with 517 additions and 75 deletions

View File

@@ -2,6 +2,16 @@
package model
type AdminLoginInput struct {
AdminSecret string `json:"admin_secret"`
}
type AdminLoginResponse struct {
Message string `json:"message"`
AccessToken string `json:"access_token"`
ExpiresAt int64 `json:"expires_at"`
}
type AuthResponse struct {
Message string `json:"message"`
AccessToken *string `json:"access_token"`