| | |
| | | } |
| | | |
| | | func (api UserApi) FindAllUser(curUserId string) (bool,interface{}) { |
| | | url := DATA_URL_PREFIX + "/user/findAllUser" |
| | | url := "/data/api-u/users/findAllUser" |
| | | netNode := getNetNode(url2Topic(Topic_System_Service, url)) |
| | | client := NewClient(WithNodes(netNode)) |
| | | query := map[string]string { |
| | |
| | | } |
| | | |
| | | func (api UserApi) FindById(userId string) (bool,interface{}) { |
| | | url := DATA_URL_PREFIX + "/user/findById" |
| | | url := "/data/api-u/users/findById" |
| | | netNode := getNetNode(url2Topic(Topic_System_Service, url)) |
| | | client := NewClient(WithNodes(netNode)) |
| | | paramBody := map[string]interface{}{ |
| | |
| | | } |
| | | |
| | | func (api UserApi) SaveAuth(paramBody map[string]interface{}) (bool,interface{}) { |
| | | url := DATA_URL_PREFIX + "/user/saveAuth" |
| | | url := "/data/api-u/users/saveAuth" |
| | | netNode := getNetNode(url2Topic(Topic_System_Service, url)) |
| | | client := NewClient(WithNodes(netNode)) |
| | | respBody, err := client.DoPostRequest(url, CONTENT_TYPE_JSON, paramBody,nil, nil) |
| | |
| | | } |
| | | |
| | | func (api UserApi) UpdatePwd(userId string, oldPwd string, newPwd string) (bool,interface{}) { |
| | | url := DATA_URL_PREFIX + "/user/updatePwd" |
| | | url := "/data/api-u/users/updatePwd" |
| | | netNode := getNetNode(url2Topic(Topic_System_Service, url)) |
| | | client := NewClient(WithNodes(netNode)) |
| | | paramBody := map[string]interface{}{ |