初始版本
This commit is contained in:
31
server/app/coachapi/controller/GoodsController.php
Executable file
31
server/app/coachapi/controller/GoodsController.php
Executable file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
namespace app\coachapi\controller;
|
||||
use app\coachapi\logic\GoodsLogic;
|
||||
|
||||
/**
|
||||
* 服务控制器类
|
||||
* Class CoachController
|
||||
* @package app\coachapi\controller
|
||||
*/
|
||||
class GoodsController extends BaseCoachController
|
||||
{
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取详情接口
|
||||
* @return \think\response\Json
|
||||
* @author cjhao
|
||||
* @date 2024/11/27 14:38
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = $this->request->get();
|
||||
$result = (new GoodsLogic())->detail($params['id']);
|
||||
return $this->success('',$result);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user