success($data); } /** * @SWG\Post( * path="/user/fans/list", * tags={"用户管理"}, * summary="用户粉丝列表接口", * description="用户粉丝列表接口", * produces={"application/json"}, * @SWG\Parameter( * name="page", * in="query", * description="第几页", * type="string" * ), * @SWG\Parameter( * name="page_size", * in="query", * description="每页数量", * type="string" * ), * @SWG\Parameter( * name="type", * in="query", * description="粉丝类型(1未激活2已激活)", * type="string" * ), * @SWG\Response( * response="200", * description="success", * @SWG\Schema(ref="#/definitions/GetFansListResultBean") * ), * @SWG\Response( * response="403", * description="fail", * @SWG\Schema(ref="#/definitions/ErrorBean") * ) * ) */ public function getFansList() { $datas = UserLogic::getFansListLogic(); return $this->success($datas); } /** * @SWG\Get( * path="/user/fianance/list", * tags={"用户管理"}, * summary="收支明细列表接口", * description="收支明细列表接口", * produces={"application/json"}, * @SWG\Parameter( * name="page", * in="query", * description="第几页", * type="string" * ), * @SWG\Parameter( * name="page_size", * in="query", * description="每页数量", * type="string" * ), * @SWG\Parameter( * name="finance_type", * in="query", * description="流水类型(0全部1收入2提现)", * type="string" * ), * @SWG\Response( * response="200", * description="success", * @SWG\Schema( * @SWG\Property( * property="total", * type="string", * description="总数量" * ), * @SWG\Property( * property="list", * type="array", * description="数据", * @SWG\Items( * @SWG\Property( * property="finance_balance", * type="string", * description="流水金额(单位为分)" * ), * @SWG\Property( * property="finance_type", * type="string", * description="流水类型(1收入2支出)" * ), * @SWG\Property( * property="finance_number", * type="string", * description="流水编号" * ), * @SWG\Property( * property="created_at", * type="string", * description="创建时间" * ), * @SWG\Property( * property="cash_status", * type="string", * description="提现状态(0提现中1已到账2提现失败)" * ) * ) * ), * ) * ), * @SWG\Response( * response="403", * description="fail", * @SWG\Schema(ref="#/definitions/ErrorBean") * ) * ) */ public function getFinanceList() { $datas = UserLogic::getFinanceListLogic(); return $this->success($datas); } /** * @SWG\Get( * path="/user/fianance/detail", * tags={"用户管理"}, * summary="流水详情接口", * description="流水详情接口", * produces={"application/json"}, * @SWG\Parameter( * name="id", * in="query", * description="流水ID", * type="string" * ), * @SWG\Response( * response="200", * description="success", * @SWG\Schema( * @SWG\Property( * property="finance_balance", * type="string", * description="流水金额" * ), * @SWG\Property( * property="finance_remark", * type="string", * description="流水备注" * ), * @SWG\Property( * property="finance_number", * type="string", * description="流水备注" * ), * @SWG\Property( * property="created_at", * type="string", * description="创建时间" * ), * @SWG\Property( * property="cash_status", * type="string", * description="提现状态(0提现中1已到账2提现失败)" * ) * ) * ), * @SWG\Response( * response="403", * description="fail", * @SWG\Schema(ref="#/definitions/ErrorBean") * ) * ) */ public function getFinanceDetail() { $datas = UserLogic::getFinanceDetailLogic(); return $this->success($datas); } /** * @SWG\Post( * path="/user/cash", * tags={"用户管理"}, * summary="提现接口", * description="提现接口", * produces={"application/json"}, * @SWG\Parameter( * name="amount", * in="query", * description="提现金额", * type="string" * ), * @SWG\Response( * response="200", * description="success", * @SWG\Schema(ref="#/definitions/SuccessBean") * ), * @SWG\Response( * response="403", * description="fail", * @SWG\Schema(ref="#/definitions/ErrorBean") * ) * ) */ public function getCash() { UserLogic::getCashLogic(); return $this->success([],200,"提现成功"); } /** * @SWG\Get( * path="/user/recommend/url", * tags={"用户管理"}, * summary="获取用户推广二维码接口", * description="获取用户推广二维码接口", * produces={"application/json"}, * @SWG\Response( * response="200", * description="success", * @SWG\Schema( * @SWG\Property( * property="url", * type="string", * description="推广地址" * ) * ) * ), * @SWG\Response( * response="403", * description="fail", * @SWG\Schema(ref="#/definitions/ErrorBean") * ) * ) */ public function getRecommendUrl() { $data = UserLogic::getRecommendUrlLogic(); return $this->success($data); } /** * @SWG\Post( * path="/user/feedback", * tags={"用户管理"}, * summary="反馈接口", * description="反馈接口", * produces={"application/json"}, * @SWG\Parameter( * name="content", * in="query", * description="反馈内容", * type="string" * ), * @SWG\Response( * response="200", * description="success", * @SWG\Schema(ref="#/definitions/SuccessBean") * ), * @SWG\Response( * response="403", * description="fail", * @SWG\Schema(ref="#/definitions/ErrorBean") * ) * ) */ public function feedback() { UserLogic::feedbackLogic(); return $this->success(); } }