sso_controller.go 898 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. package partial
  2. import (
  3. "git.qianqiusoft.com/qianqiusoft/light-apiengine/entitys"
  4. )
  5. // SSOClient
  6. // @Title _ApiDoc
  7. // @Description api文档
  8. // @Param sys string false "是否包含用户管理相关接口"
  9. // @Success 200 {object} models.Account
  10. // @Failure 403 :id is empty
  11. func SSOClient(c *entitys.CtrlContext) {
  12. sys := c.Ctx.Param(":sys")
  13. ret := __none_func_api__(sys)
  14. if ret{
  15. //c.Ctx.String(200,"")
  16. c.Ctx.HTML(200, "api.tpl","")
  17. }
  18. }
  19. // _ApiDoc
  20. // @Title _ApiDoc
  21. // @Description api文档
  22. // @Param sys string false "是否包含用户管理相关接口"
  23. // @Success 200 {object} models.Account
  24. // @Failure 403 :id is empty
  25. func SSOLogout(c *entitys.CtrlContext) {
  26. sys := c.Ctx.Param(":sys")
  27. ret := __none_func_api__(sys)
  28. if ret{
  29. //c.Ctx.String(200,"")
  30. c.Ctx.HTML(200, "api.tpl","")
  31. }
  32. }
  33. func __none_func_sso__(params ... interface{}) bool{
  34. return true
  35. }