...
|
...
|
@@ -21,6 +21,12 @@ func NewMmmBusinessAdminServiceGateway() *MmmBusinessAdminServiceGateway { |
|
|
baseURL: constant.BUSINESS_ADMIN_HOST,
|
|
|
}
|
|
|
}
|
|
|
func (client MmmBusinessAdminServiceGateway) buildHeader() http.Header {
|
|
|
var h = http.Header{}
|
|
|
h.Set("Content-Type", "application/json")
|
|
|
h.Set("Accept", "application/json")
|
|
|
return h
|
|
|
}
|
|
|
|
|
|
type ResponseGetUserAuth struct {
|
|
|
UCenterCommonMsg
|
...
|
...
|
@@ -41,6 +47,7 @@ func (gateway MmmBusinessAdminServiceGateway) httpDo(reqURL string, mathod strin |
|
|
logs.Info("====>Send To URL:%s", reqURL)
|
|
|
logs.Info("====>Send To BusinessAdmin:%s", bt.String())
|
|
|
req, err := http.NewRequest(mathod, reqURL, bt)
|
|
|
req.Header = gateway.buildHeader()
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
...
|
...
|
|