(d *ent.DirectLink, hasher hashid.Encoder, base *url.URL)
| 465 | } |
| 466 | |
| 467 | func BuildDirectLink(d *ent.DirectLink, hasher hashid.Encoder, base *url.URL) DirectLink { |
| 468 | return DirectLink{ |
| 469 | ID: hashid.EncodeSourceLinkID(hasher, d.ID), |
| 470 | URL: routes.MasterDirectLink(base, hashid.EncodeSourceLinkID(hasher, d.ID), d.Name).String(), |
| 471 | Downloaded: d.Downloads, |
| 472 | CreatedAt: d.CreatedAt, |
| 473 | } |
| 474 | } |
| 475 | |
| 476 | func BuildEntity(ctx context.Context, extendedInfo *fs.FileExtendedInfo, e fs.Entity, hasher hashid.Encoder) Entity { |
| 477 | var u *user.User |
no test coverage detected