31 lines
621 B
PHP
Executable File
31 lines
621 B
PHP
Executable File
<?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);
|
|
}
|
|
|
|
} |