...
|
...
|
@@ -163,11 +163,15 @@ func (svr *ClientVersionService) ListClientVersion(header *protocol.RequestHeade |
|
|
if total, clientVersion, err = ClientVersionRepository.Find(common.ObjectToMap(request)); err != nil {
|
|
|
return
|
|
|
}
|
|
|
rsp = map[string]interface{}{
|
|
|
rspData := map[string]interface{}{
|
|
|
"totalRow": total,
|
|
|
"pageNumber": (request.Offset + request.Limit) / request.Limit,
|
|
|
"lists": utils.LoadCustomField(clientVersion, "Id", "ProjectName", "Version", "Title", "Remark", "CreateTime"),
|
|
|
"lists": utils.LoadCustomField(clientVersion, "Id", "ProjectName", "Version", "Title", "Remark", "ClientPackageInfo", "CreateTime"),
|
|
|
}
|
|
|
if request.Limit > 0 {
|
|
|
rspData["pageNumber"] = (request.Offset + request.Limit) / request.Limit
|
|
|
}
|
|
|
rsp = rspData
|
|
|
|
|
|
err = transactionContext.CommitTransaction()
|
|
|
return
|
|
|
}
|
...
|
...
|
|