|
@@ -1,15 +1,15 @@
|
|
|
<?php
|
|
|
namespace app\api\controller;
|
|
|
-use app\common\model\UserFeedBack;
|
|
|
+use app\common\model\UserFeedback;
|
|
|
use app\common\model\UserMessage;
|
|
|
|
|
|
|
|
|
/**
|
|
|
* @title 反馈
|
|
|
- * @controller FeedBack
|
|
|
+ * @controller Feedback
|
|
|
* @group base
|
|
|
*/
|
|
|
-class FeedBack extends Base
|
|
|
+class Feedback extends Base
|
|
|
{
|
|
|
public function initialize()
|
|
|
{
|
|
@@ -21,7 +21,7 @@ class FeedBack extends Base
|
|
|
* @title 用户反馈
|
|
|
* @desc 用户反馈
|
|
|
* @author qc
|
|
|
- * @url /api/FeedBack/leaveFeedback
|
|
|
+ * @url /api/Feedback/leaveFeedback
|
|
|
* @method POST
|
|
|
* @header name:Authorization require:1 desc:Token
|
|
|
* @param name:content type:string require:1 default:-- desc:反馈内容
|
|
@@ -35,7 +35,7 @@ class FeedBack extends Base
|
|
|
'desc'=>input('desc'),
|
|
|
'create_at'=>date('Y-m-d H:i:s')
|
|
|
];
|
|
|
- $res = UserFeedBack::create($insert_data);
|
|
|
+ $res = UserFeedback::create($insert_data);
|
|
|
$this->success('反馈成功',$res->id);
|
|
|
}
|
|
|
|
|
@@ -43,7 +43,7 @@ class FeedBack extends Base
|
|
|
* @title 用户反馈列表
|
|
|
* @desc 用户反馈列表
|
|
|
* @author qc
|
|
|
- * @url /api/Feed_back/getFeedbackList
|
|
|
+ * @url /api/Feedback/getFeedbackList
|
|
|
* @method GET
|
|
|
* @header name:Authorization require:1 desc:Token
|
|
|
* @param name:page type:int default:0 desc:页数
|
|
@@ -58,7 +58,7 @@ class FeedBack extends Base
|
|
|
*/
|
|
|
public function getFeedbackList()
|
|
|
{
|
|
|
- $list = UserFeedBack::where(['user_id'=>$this->user_id])
|
|
|
+ $list = UserFeedback::where(['user_id'=>$this->user_id])
|
|
|
->limit($this->off_set,$this->page_num)
|
|
|
->select()->toArray();
|
|
|
$this->success('ok',['list'=>$list]);
|
|
@@ -68,7 +68,7 @@ class FeedBack extends Base
|
|
|
* @title 用户反馈详情
|
|
|
* @desc 用户反馈详情
|
|
|
* @author qc
|
|
|
- * @url /api/Feed_back/getFeedbackInfo
|
|
|
+ * @url /api/Feedback/getFeedbackInfo
|
|
|
* @method GET
|
|
|
* @header name:Authorization require:1 desc:Token
|
|
|
* @param name:id type:int default:0 desc:反馈记录id
|
|
@@ -83,7 +83,7 @@ class FeedBack extends Base
|
|
|
public function getFeedbackInfo()
|
|
|
{
|
|
|
$id = input('get.id');
|
|
|
- $detail = UserFeedBack::where(['user_id'=>$this->user_id,'id'=>$id])->find()->toArray();
|
|
|
+ $detail = UserFeedback::where(['user_id'=>$this->user_id,'id'=>$id])->find()->toArray();
|
|
|
$this->success('ok',['detail'=>$detail]);
|
|
|
}
|
|
|
|