| | |
| | | return res.Success,res.Data |
| | | } |
| | | |
| | | func (api UserApi) GetUserProfile() (bool,interface{}) { |
| | | func (api UserApi) GetUserProfile(userId string) (bool,interface{}) { |
| | | url := "/data/api-u/users/profile" |
| | | netNode := getNetNode(url2Topic(Topic_System_Service, url)) |
| | | client := NewClient(WithNodes(netNode)) |
| | | query := map[string]string {} |
| | | respBody, err := client.DoGetRequest(url, query, nil) |
| | | header := map[string]string { |
| | | "Login_user_id": userId, |
| | | } |
| | | respBody, err := client.DoGetRequest(url, nil, header) |
| | | if err != nil { |
| | | return false,nil |
| | | } |