| 123456789101112131415161718192021222324252627 |
- /**
- * @ 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
- }
|