| 12345678910111213141516171819202122232425 |
- /**
- * @ File:
- * @ Date: 2021/1/25 10:06
- * @ Author: JYQ
- * @ Description:
- */
- package service
- import "strings"
- type base struct {
- restFulApiBase []string
- restFulApi []string
- userId int
- }
- func newBase(ApiBaseUrl string) (b *base) {
- b = &base{}
- if ApiBaseUrl == "" {
- return
- }
- b.restFulApiBase = strings.Split(ApiBaseUrl, "/")
- return
- }
|