<?php

namespace app\api\controller\goods;

use app\api\service\goods\Comments as CommentsService;
use think\facade\Request;

/**
 * @package app\api\controller\goods
 * @class Comments
 * @author xzncit 2024/3/26
 */
class Comments extends \app\Controller {

    /**
     * 列表
     * @return \think\response\Json
     * @throws \app\common\exception\BaseException
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\DbException
     * @throws \think\db\exception\ModelNotFoundException
     */
    public function index(){
        return returnAjax("msg:ok",1,CommentsService::getList(Request::param()));
    }

}