consts.go 360 B

1234567891011121314151617181920
  1. package consts
  2. import (
  3. "context"
  4. "github.com/gogf/gf/v2/errors/gerror"
  5. "github.com/gogf/gf/v2/frame/g"
  6. )
  7. var (
  8. ServiceAddress = g.Cfg().MustGet(context.Background(), "tripartite.service").String()
  9. )
  10. var (
  11. LoginOutErr = gerror.New("请重新获取授权")
  12. AuthTimeOut = gerror.New("验证超时")
  13. )
  14. const (
  15. DateFormat_Full = "2006-01-02 15:04:05"
  16. )