Files
rootandClaude Opus 4.7 79ac89b458 Initial commit
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-11-07 10:47:18 +08:00

16 lines
366 B
Go

package videoser
import (
"context"
"videoweb/pub/common/srvdef"
"videoweb/pub/models/videocategorymod"
"go.mongodb.org/mongo-driver/bson"
)
func GetVideoCategoryById(ctx context.Context, id int64) (*videocategorymod.VideoCategory, *srvdef.SrvErr) {
return videocategorymod.FindOneVideoCategory(ctx, bson.M{
videocategorymod.FN.VideoCategory.Id: id,
})
}