You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
644 B

package contract
import (
"base/app/common"
"base/app/lib/bean"
"base/app/logic/manage/contract"
"github.com/gin-gonic/gin"
)
type Consignment struct {
}
type argsConsignmentLists struct {
contract.ConsignmentSearch
bean.Page
}
// Lists @Title 寄卖合同
func (*Consignment) Lists(c *gin.Context) {
args := argsConsignmentLists{}
if err := c.ShouldBind(&args); err != nil {
bean.Response.ResultFail(c, 10001, common.GetVerErr(err))
return
}
lists, total := contract.ConsignmentLogic.Lists(args.ConsignmentSearch, args.Page)
bean.Response.ResultSuc(c, "操作成功", bean.ResultLists{
List: lists,
Total: total,
})
}