20 lines
304 B
Go
20 lines
304 B
Go
package global
|
|
|
|
type Enterprise struct {
|
|
token string
|
|
baseUrl string
|
|
}
|
|
|
|
func (e *Enterprise) GetHeader() map[string]string {
|
|
return map[string]string{
|
|
"x-token": e.token,
|
|
}
|
|
}
|
|
|
|
func (e *Enterprise) GetBaseUrl() string {
|
|
if e.baseUrl != "" {
|
|
return e.baseUrl
|
|
}
|
|
return "http://e.batiao8.com"
|
|
}
|