作者 tangxvhui

对接调试

@@ -220,10 +220,7 @@ func (c *CommonController) SelectCompanyUserList() { @@ -220,10 +220,7 @@ func (c *CommonController) SelectCompanyUserList() {
220 } 220 }
221 companyid := c.GetCompanyId() 221 companyid := c.GetCompanyId()
222 listData := servecommon.SelectCompanyUserList(param.PageIndex, param.PageSize, companyid, param.UserName) 222 listData := servecommon.SelectCompanyUserList(param.PageIndex, param.PageSize, companyid, param.UserName)
223 - rspData := map[string]interface{}{  
224 - "gridResult": listData,  
225 - }  
226 - msg = protocol.NewReturnResponse(rspData, nil) 223 + msg = protocol.NewPageDataResponse(listData, nil)
227 return 224 return
228 } 225 }
229 226
@@ -245,9 +242,6 @@ func (c *CommonController) SelectChanceList() { @@ -245,9 +242,6 @@ func (c *CommonController) SelectChanceList() {
245 } 242 }
246 companyid := c.GetCompanyId() 243 companyid := c.GetCompanyId()
247 listData := servecommon.SelectChanceList(param.PageIndex, param.PageSize, companyid, param.ChanceCode) 244 listData := servecommon.SelectChanceList(param.PageIndex, param.PageSize, companyid, param.ChanceCode)
248 - rspData := map[string]interface{}{  
249 - "gridResult": listData,  
250 - }  
251 - msg = protocol.NewReturnResponse(rspData, nil) 245 + msg = protocol.NewPageDataResponse(listData, nil)
252 return 246 return
253 } 247 }
@@ -88,7 +88,7 @@ type SelectCompanyUserListItem struct { @@ -88,7 +88,7 @@ type SelectCompanyUserListItem struct {
88 //下拉选择公司员工 88 //下拉选择公司员工
89 type SelectCompanyUserList struct { 89 type SelectCompanyUserList struct {
90 ResponsePageInfo 90 ResponsePageInfo
91 - List []SelectCompanyUserListItem `json:"list"` 91 + List []SelectCompanyUserListItem `json:"lists"`
92 } 92 }
93 93
94 type SelectChanceListItem struct { 94 type SelectChanceListItem struct {
@@ -108,5 +108,5 @@ type SelectChanceListItem struct { @@ -108,5 +108,5 @@ type SelectChanceListItem struct {
108 //下拉选择机会 108 //下拉选择机会
109 type SelectChanceList struct { 109 type SelectChanceList struct {
110 ResponsePageInfo 110 ResponsePageInfo
111 - List []SelectChanceListItem `json:"list"` 111 + List []SelectChanceListItem `json:"lists"`
112 } 112 }