Commit 098cac4a authored by shajiaiming's avatar shajiaiming

添加注释

parent 7c5aa62a
...@@ -9,10 +9,8 @@ use common\models\psources\CoinPlatform; ...@@ -9,10 +9,8 @@ use common\models\psources\CoinPlatform;
class IssueChainController extends BaseController class IssueChainController extends BaseController
{ {
/** /**
* landing * 可发行链列表
* @return array * @return array
* @throws \yii\base\Exception
* @throws \yii\base\InvalidConfigException
*/ */
public function actionIndex() public function actionIndex()
{ {
...@@ -57,6 +55,10 @@ class IssueChainController extends BaseController ...@@ -57,6 +55,10 @@ class IssueChainController extends BaseController
return ['code' => $code, 'msg' => $msg, 'data' => $data]; return ['code' => $code, 'msg' => $msg, 'data' => $data];
} }
/**
* 人工审核状态
* @return array
*/
public function actionManualReviewStatus() public function actionManualReviewStatus()
{ {
$status = 0; $status = 0;
......
...@@ -11,10 +11,8 @@ use common\models\psources\CoinIssueCoin; ...@@ -11,10 +11,8 @@ use common\models\psources\CoinIssueCoin;
class IssueCoinController extends BaseController class IssueCoinController extends BaseController
{ {
/** /**
* landing * 发行申请
* @return array * @return array
* @throws \yii\base\Exception
* @throws \yii\base\InvalidConfigException
*/ */
public function actionApply() public function actionApply()
{ {
...@@ -71,6 +69,12 @@ class IssueCoinController extends BaseController ...@@ -71,6 +69,12 @@ class IssueCoinController extends BaseController
return ['code' => $code, 'msg' => $msg, 'data' => $data]; return ['code' => $code, 'msg' => $msg, 'data' => $data];
} }
/**
* 申请列表
* @param integer page
* @param integer size
* @return array
*/
public function actionApplyList() public function actionApplyList()
{ {
$data = null; $data = null;
...@@ -118,6 +122,11 @@ class IssueCoinController extends BaseController ...@@ -118,6 +122,11 @@ class IssueCoinController extends BaseController
return ['code' => $code, 'msg' => $msg, 'data' => $data]; return ['code' => $code, 'msg' => $msg, 'data' => $data];
} }
/**
* 申请详情
* @param integer id
* @return array
*/
public function actionApplyDetail() public function actionApplyDetail()
{ {
$id = Yii::$app->request->get('id', ''); $id = Yii::$app->request->get('id', '');
...@@ -140,6 +149,11 @@ class IssueCoinController extends BaseController ...@@ -140,6 +149,11 @@ class IssueCoinController extends BaseController
return ['code' => $code, 'msg' => $msg, 'data' => $data]; return ['code' => $code, 'msg' => $msg, 'data' => $data];
} }
/**
* 撤消申请
* @param integer id
* @return array
*/
public function actionVerify() public function actionVerify()
{ {
$id = Yii::$app->request->post('id', ''); $id = Yii::$app->request->post('id', '');
......
...@@ -10,10 +10,8 @@ use wallet\base\BaseController; ...@@ -10,10 +10,8 @@ use wallet\base\BaseController;
class IssueChainController extends BaseController class IssueChainController extends BaseController
{ {
/** /**
* landing * 可发行链列表
* @return array * @return array
* @throws \yii\base\Exception
* @throws \yii\base\InvalidConfigException
*/ */
public function actionIndex() public function actionIndex()
{ {
...@@ -49,6 +47,10 @@ class IssueChainController extends BaseController ...@@ -49,6 +47,10 @@ class IssueChainController extends BaseController
return ['code' => $code, 'msg' => $msg, 'data' => $data]; return ['code' => $code, 'msg' => $msg, 'data' => $data];
} }
/**
* 发行链信息
* @return array
*/
public function actionChainInfo() public function actionChainInfo()
{ {
$data = null; $data = null;
...@@ -85,6 +87,12 @@ class IssueChainController extends BaseController ...@@ -85,6 +87,12 @@ class IssueChainController extends BaseController
return ['code' => $code, 'msg' => $msg, 'data' => $data]; return ['code' => $code, 'msg' => $msg, 'data' => $data];
} }
/**
* 设置手续费
* @param integer issue_charge
* @param integer charge_unit_id
* @return array
*/
public function actionSetCharge() public function actionSetCharge()
{ {
$data = null; $data = null;
...@@ -121,10 +129,20 @@ class IssueChainController extends BaseController ...@@ -121,10 +129,20 @@ class IssueChainController extends BaseController
return ['code' => $code, 'msg' => $msg]; return ['code' => $code, 'msg' => $msg];
} }
/**
* 人工审核开启/关闭
* @param string manual_review
* @return array
*/
public function actionManageReview() public function actionManageReview()
{ {
$data = null; $data = null;
$platform_id = Yii::$app->request->getPlatformId(); $platform_id = Yii::$app->request->getPlatformId();
if (1 != $platform_id) {
$msg = '当前账户无权限操作';
$code = -1;
goto doEnd;
}
$manual_review = \Yii::$app->request->post('manual_review', ''); $manual_review = \Yii::$app->request->post('manual_review', '');
if (!in_array($manual_review, ['open', 'close'])) { if (!in_array($manual_review, ['open', 'close'])) {
......
...@@ -9,6 +9,15 @@ use common\models\psources\CoinIssueCoin; ...@@ -9,6 +9,15 @@ use common\models\psources\CoinIssueCoin;
class IssueCoinController extends BaseController class IssueCoinController extends BaseController
{ {
/**
* 申请列表
* @param integer page
* @param integer size
* @param integer status
* @param string owner
* @param integer chain_id
* @return array
*/
public function actionApplyList() public function actionApplyList()
{ {
$platform_id = Yii::$app->request->getPlatformId(); $platform_id = Yii::$app->request->getPlatformId();
...@@ -66,6 +75,11 @@ class IssueCoinController extends BaseController ...@@ -66,6 +75,11 @@ class IssueCoinController extends BaseController
return ['code' => $code, 'msg' => $msg, 'data' => $data]; return ['code' => $code, 'msg' => $msg, 'data' => $data];
} }
/**
* 申请详情
* @param integer id
* @return array
*/
public function actionApplyDetail() public function actionApplyDetail()
{ {
$id = Yii::$app->request->get('id', ''); $id = Yii::$app->request->get('id', '');
...@@ -87,6 +101,13 @@ class IssueCoinController extends BaseController ...@@ -87,6 +101,13 @@ class IssueCoinController extends BaseController
return ['code' => $code, 'msg' => $msg, 'data' => $data]; return ['code' => $code, 'msg' => $msg, 'data' => $data];
} }
/**
* 申请操作管理
* @param integer id
* @param integer status
* @param string msg
* @return array
*/
public function actionVerify() public function actionVerify()
{ {
$id = Yii::$app->request->post('id', ''); $id = Yii::$app->request->post('id', '');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment