oauth.go 430 B

1234567891011121314151617181920212223
  1. package model
  2. type Oauth struct {
  3. IdModel
  4. Op string `json:"op"`
  5. ClientId string `json:"client_id"`
  6. ClientSecret string `json:"client_secret"`
  7. RedirectUrl string `json:"redirect_url"`
  8. AutoRegister *bool `json:"auto_register"`
  9. TimeModel
  10. }
  11. const (
  12. OauthTypeGithub = "github"
  13. OauthTypeGoogle = "google"
  14. OauthTypeWebauth = "webauth"
  15. )
  16. type OauthList struct {
  17. Oauths []*Oauth `json:"list"`
  18. Pagination
  19. }