Commit 098cac4a authored by shajiaiming's avatar shajiaiming

添加注释

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