40 lines
901 B
PHP
40 lines
901 B
PHP
<?php
|
|
|
|
namespace app\api\controller\user_ship;
|
|
|
|
use app\admin\logic\user_ship\UserShipLogic;
|
|
use app\api\controller\BaseApiController;
|
|
use app\common\lists\user\UserShipLists;
|
|
|
|
/**
|
|
* 用户类型控制器
|
|
* Class UserLabelController
|
|
* @package app\admin\controller\user_label
|
|
*/
|
|
class UserShipController extends BaseApiController
|
|
{
|
|
|
|
|
|
/**
|
|
* @notes 获取用户类型列表
|
|
* @return \think\response\Json
|
|
* @author admin
|
|
* @date 2024/06/17 17:02
|
|
*/
|
|
public function lists()
|
|
{
|
|
$this->request->__set('id',1);
|
|
return $this->dataLists(new UserShipLists());
|
|
}
|
|
|
|
|
|
public function is_user_ship(){
|
|
$data=$this->request->post();
|
|
UserShipLogic::user_ship($data);
|
|
if(UserShipLogic::hasError()){
|
|
return $this->fail(UserShipLogic::getError());
|
|
}else{
|
|
return $this->success('ok');
|
|
}
|
|
}
|
|
} |