package controllers

import (
	"git.rosy.net.cn/jx-callback/business/bidding"
	"github.com/astaxie/beego/server/web"
)

type BiddingController struct {
	web.Controller
}

// @Title 获取招标信息
// @Description 获取招标信息
// @Param	token			header		string	false	"认证token"
// @Param	title			query		string	false	"标题"
// @Param   startTime       query		string	false	"开始时间"
// @Param   endTime      	query		string	false	"结束时间"
// @Param   pageSize      	query		int		false	"页数"
// @Param   pageNumber      query		int		false	"页码"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /GetBiddingMsg [get]
func (c *BiddingController) GetBiddingMsg() {
	c.callGetBiddingMsg(func(params *tBindGetBiddingMsgParams) (retVal interface{}, errCode string, err error) {
		retVal, err = bidding.GetBiddingMsg(params.Ctx, params.MapData)
		return retVal, "", err
	})
}
