@ -53,7 +53,8 @@ type VisitorListReq struct {
}
type VisitorListRes struct {
g.Meta `mime:"text/html" example:"string"`
List []*entity.VisitorRecord `json:"list"`
Total int `json:"total"`
Current int `json:"current"`
@ -71,8 +71,9 @@ func (s *visitorService) VisitorList(ctx context.Context, req *v1.VisitorListReq
res = &v1.VisitorListRes{
List: records,
Total: total,
Current: req.PageNum,
return