feat: update

This commit is contained in:
Rogee
2025-05-08 21:44:48 +08:00
parent 0cda59b1a7
commit da845f7aae
7 changed files with 119 additions and 34 deletions

View File

@@ -166,6 +166,9 @@ type PlayUrl struct {
// @Bind user local
func (ctl *posts) Play(ctx fiber.Ctx, id int64, user *model.Users) (*PlayUrl, error) {
log := log.WithField("PlayPostID", strconv.FormatInt(id, 10))
// return &PlayUrl{
// Url: "https://github.com/mediaelement/mediaelement-files/raw/refs/heads/master/big_buck_bunny.mp4",
// }, nil
log.Infof("Fetching play URL for post ID: %d", id)
post, err := models.Posts.GetByID(ctx.Context(), id)

View File

@@ -6,5 +6,5 @@ name = "test-http"
type = "tcp"
localIP = "127.0.0.1"
#localPort = 8088
localPort = 3000
localPort = 8088
remotePort = 1423