Initial commit

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-09-15 13:57:10 +08:00
co-authored by Claude Opus 5
commit 8679200f41
1897 changed files with 257900 additions and 0 deletions
@@ -0,0 +1,26 @@
package sysconfser
import (
"testing"
"91porn-server/models/v/productmod"
"go.mongodb.org/mongo-driver/bson/primitive"
)
func TestShortDramaCardOptions(t *testing.T) {
first := primitive.NewObjectID()
second := primitive.NewObjectID()
products := []productmod.Product{
{ID: first, Name: "短剧月卡"},
{ID: second, Name: "短剧季卡"},
}
options := shortDramaCardOptions(products)
if len(options) != 2 {
t.Fatalf("options length = %d, want 2", len(options))
}
if options[0].Key != "短剧月卡" || options[0].Value != first.Hex() ||
options[1].Key != "短剧季卡" || options[1].Value != second.Hex() {
t.Fatalf("options = %#v", options)
}
}