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, }) }