作者 tangxvhui

对接调试

... ... @@ -220,10 +220,7 @@ func (c *CommonController) SelectCompanyUserList() {
}
companyid := c.GetCompanyId()
listData := servecommon.SelectCompanyUserList(param.PageIndex, param.PageSize, companyid, param.UserName)
rspData := map[string]interface{}{
"gridResult": listData,
}
msg = protocol.NewReturnResponse(rspData, nil)
msg = protocol.NewPageDataResponse(listData, nil)
return
}
... ... @@ -245,9 +242,6 @@ func (c *CommonController) SelectChanceList() {
}
companyid := c.GetCompanyId()
listData := servecommon.SelectChanceList(param.PageIndex, param.PageSize, companyid, param.ChanceCode)
rspData := map[string]interface{}{
"gridResult": listData,
}
msg = protocol.NewReturnResponse(rspData, nil)
msg = protocol.NewPageDataResponse(listData, nil)
return
}
... ...
... ... @@ -88,7 +88,7 @@ type SelectCompanyUserListItem struct {
//下拉选择公司员工
type SelectCompanyUserList struct {
ResponsePageInfo
List []SelectCompanyUserListItem `json:"list"`
List []SelectCompanyUserListItem `json:"lists"`
}
type SelectChanceListItem struct {
... ... @@ -108,5 +108,5 @@ type SelectChanceListItem struct {
//下拉选择机会
type SelectChanceList struct {
ResponsePageInfo
List []SelectChanceListItem `json:"list"`
List []SelectChanceListItem `json:"lists"`
}
... ...