base.go 362 B

12345678910111213141516171819202122232425
  1. /**
  2. * @ File:
  3. * @ Date: 2021/1/25 10:06
  4. * @ Author: JYQ
  5. * @ Description:
  6. */
  7. package service
  8. import "strings"
  9. type base struct {
  10. restFulApiBase []string
  11. restFulApi []string
  12. userId int
  13. }
  14. func newBase(ApiBaseUrl string) (b *base) {
  15. b = &base{}
  16. if ApiBaseUrl == "" {
  17. return
  18. }
  19. b.restFulApiBase = strings.Split(ApiBaseUrl, "/")
  20. return
  21. }