You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
552 B
19 lines
552 B
<?php
|
|
namespace app\service;
|
|
|
|
use app\service\ApiService;
|
|
|
|
class Card{
|
|
public static function addUser($params){
|
|
$apiService = ApiService::getInstance();
|
|
$response = $apiService->callApi(env('slash.card_base_url').'/api/v1/user/add', 'POST', $params);
|
|
return $response;
|
|
}
|
|
|
|
public static function cancelUser($params){
|
|
$apiService = ApiService::getInstance();
|
|
$response = $apiService->callApi(env('slash.card_base_url').'/api/v1/user/cancel', 'POST', $params);
|
|
return $response;
|
|
}
|
|
|
|
} |