add user create and list

This commit is contained in:
Anish Mukherjee
2022-11-27 11:47:30 +05:30
parent 7004c8dd3e
commit b58040b9b8
8 changed files with 182 additions and 0 deletions

View File

@@ -36,3 +36,7 @@ func CreateExtClient(networkName, nodeID, extClientID string) {
func DeleteExtClient(networkName, clientID string) *models.SuccessResponse {
return request[models.SuccessResponse](http.MethodDelete, fmt.Sprintf("/api/extclients/%s/%s", networkName, clientID), nil)
}
func UpdateExtClient(networkName, clientID string, payload *models.ExtClient) *models.ExtClient {
return request[models.ExtClient](http.MethodPut, fmt.Sprintf("/api/extclients/%s/%s", networkName, clientID), payload)
}