Add more fields to syncer.

This commit is contained in:
Gucheng Wang
2021-12-17 20:33:03 +08:00
parent c2110ef59d
commit 07f9a9ee96
4 changed files with 84 additions and 21 deletions

View File

@ -39,7 +39,7 @@ func (c *ApiController) GetSyncers() {
} else {
limit := util.ParseInt(limit)
paginator := pagination.SetPaginator(c.Ctx, limit, int64(object.GetSyncerCount(owner)))
syncers := object.GetPaginationSyncers(owner, paginator.Offset(), limit)
syncers := object.GetMaskedSyncers(object.GetPaginationSyncers(owner, paginator.Offset(), limit))
c.ResponseOk(syncers, paginator.Nums())
}
}
@ -53,7 +53,7 @@ func (c *ApiController) GetSyncers() {
func (c *ApiController) GetSyncer() {
id := c.Input().Get("id")
c.Data["json"] = object.GetSyncer(id)
c.Data["json"] = object.GetMaskedSyncer(object.GetSyncer(id))
c.ServeJSON()
}