Bidding.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. namespace app\data\controller\api;
  3. use app\data\model\DataBidding;
  4. use hg\apidoc\annotation\Param;
  5. use hg\apidoc\annotation\Returned;
  6. use hg\apidoc\annotation\Title;
  7. use think\admin\Controller;
  8. use think\Request;
  9. /**
  10. * 招标
  11. * Class Bidding
  12. * @package app\data\controller\Bidding
  13. */
  14. class Bidding extends Controller
  15. {
  16. /**
  17. * @Title("列表")
  18. * @Param ("limit",desc="每页几条",default="15")
  19. * @Param ("page",desc="第几页",default="1")
  20. * @Param ("b_type",desc="披露方式0预1正式")
  21. * @Param ("amount_min",desc="最低价格")
  22. * @Param ("amount_max",desc="最高价格")
  23. * @Param ("type_id",desc="招标类型id")
  24. * @Param ("city",desc="所在地区")
  25. * @Param ("day_type",desc="截至时间类型,day天,month月,year年")
  26. * @Param ("day",desc="时间值")
  27. * @Returned ("title",desc="标题")
  28. * @Returned ("amount",desc="金额")
  29. * @Returned ("b_type",desc="披露方式0预1正式")
  30. * @Returned ("status",desc="0未中1已中标")
  31. * @Returned ("com_name",desc="公司名称")
  32. * @Returned ("com_username",desc="公司联系人")
  33. * @Returned ("com_mobile",desc="公司联系人手机号")
  34. * @Returned ("create_time",desc="发布时间")
  35. * @Returned ("summary",desc="概述")
  36. * @Returned ("files[filename]",desc="附件文件名称")
  37. * @Returned ("files[fileurl]",desc="附件文件url")
  38. */
  39. public function index(Request $request,DataBidding $dataBidding){
  40. $list=$dataBidding
  41. ->paginate();
  42. $this->success('',$list);
  43. }
  44. }