refactor(bootstrap): migrate /pack/info to seed file
This commit is contained in:
File diff suppressed because one or more lines are too long
2808
SVSim.Bootstrap/Data/seeds/packs.json
Normal file
2808
SVSim.Bootstrap/Data/seeds/packs.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,48 +0,0 @@
|
||||
{
|
||||
"data_headers": { "sid": "fixture", "short_udid": 1, "viewer_id": 1, "servertime": 1779591187, "result_code": 1 },
|
||||
"data": {
|
||||
"pack_config_list": [
|
||||
{
|
||||
"parent_gacha_id": 10001, "base_pack_id": 10001, "override_draw_effect_pack_id": 10001,
|
||||
"override_ui_effect_pack_id": 10001, "gacha_type": 1, "sleeve_id": 3000011, "special_sleeve_id": 0,
|
||||
"commence_date": "2015-04-01 00:00:00", "complete_date": "2030-12-31 23:59:59",
|
||||
"cardpack_banner_list": [], "gacha_detail": "A pack contains 8 cards, including at least one silver, gold, or legendary card.",
|
||||
"child_gacha_info": [
|
||||
{ "gacha_id": 100002, "type_detail": 2, "cost": 100, "count": 8, "override_increase_gacha_point": "1" },
|
||||
{ "gacha_id": 200001, "type_detail": 3, "cost": 50, "count": 8, "override_increase_gacha_point": "1", "is_daily_single": true },
|
||||
{ "gacha_id": 400002, "type_detail": 7, "cost": 100, "count": 8, "override_increase_gacha_point": "1" }
|
||||
],
|
||||
"open_count": 0, "open_count_limit": 0, "is_hide": 0, "pack_category": 0,
|
||||
"gacha_point": { "pack_id": "10001", "gacha_point": 0, "increase_gacha_point": "1", "exchangeable_gacha_point": 400, "is_exchangeable_gacha_point": false },
|
||||
"is_pre_release": false, "exists_purchase_reward": false, "is_new": false, "sales_period_info": [], "poster_type": 0
|
||||
},
|
||||
{
|
||||
"parent_gacha_id": 92001, "base_pack_id": 90001, "override_draw_effect_pack_id": 90001,
|
||||
"override_ui_effect_pack_id": 90001, "gacha_type": 1, "sleeve_id": 5090001, "special_sleeve_id": 0,
|
||||
"commence_date": "2017-06-14 10:00:00", "complete_date": "2030-12-31 23:59:59",
|
||||
"cardpack_banner_list": [], "gacha_detail": "A pack contains 8 cards, including at least one leader card!",
|
||||
"child_gacha_info": [
|
||||
{ "gacha_id": 920002, "type_detail": 5, "cost": 1, "count": 8, "item_id": "92001", "item_number": 0 }
|
||||
],
|
||||
"open_count": 0, "open_count_limit": 0, "is_hide": 1, "pack_category": 1, "gacha_point": null,
|
||||
"is_pre_release": false, "exists_purchase_reward": false, "is_new": false, "sales_period_info": [], "poster_type": 0
|
||||
},
|
||||
{
|
||||
"parent_gacha_id": 16015, "base_pack_id": 10015, "override_draw_effect_pack_id": 10015,
|
||||
"override_ui_effect_pack_id": 10015, "gacha_type": 1, "sleeve_id": 5010015, "special_sleeve_id": 0,
|
||||
"commence_date": "2017-07-01 03:00:00", "complete_date": "2030-12-31 23:59:59",
|
||||
"cardpack_banner_list": [
|
||||
{ "banner_name": "card_pack_711331010_dialog", "dialog_title": "Dia_BuyCard_005_Title" }
|
||||
],
|
||||
"gacha_detail": "A pack contains 8 cards, including at least one silver, gold, or legendary card.",
|
||||
"child_gacha_info": [
|
||||
{ "gacha_id": 160152, "type_detail": 2, "cost": 100, "count": 8, "override_increase_gacha_point": "1" },
|
||||
{ "gacha_id": 460152, "type_detail": 7, "cost": 100, "count": 8, "override_increase_gacha_point": "1" }
|
||||
],
|
||||
"open_count": 0, "open_count_limit": 0, "is_hide": 0, "pack_category": 0,
|
||||
"gacha_point": { "pack_id": "10015", "gacha_point": 0, "increase_gacha_point": "1", "exchangeable_gacha_point": 400, "is_exchangeable_gacha_point": false },
|
||||
"is_pre_release": false, "exists_purchase_reward": false, "is_new": false, "sales_period_info": [], "poster_type": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
154
SVSim.Bootstrap/Data/test-fixtures/seeds/packs.json
Normal file
154
SVSim.Bootstrap/Data/test-fixtures/seeds/packs.json
Normal file
@@ -0,0 +1,154 @@
|
||||
[
|
||||
{
|
||||
"parent_gacha_id": 10001,
|
||||
"base_pack_id": 10001,
|
||||
"gacha_type": 1,
|
||||
"pack_category": 0,
|
||||
"poster_type": 0,
|
||||
"commence_date": "2015-04-01 00:00:00",
|
||||
"complete_date": "2030-12-31 23:59:59",
|
||||
"sleeve_id": 3000011,
|
||||
"special_sleeve_id": 0,
|
||||
"override_draw_effect_pack_id": 10001,
|
||||
"override_ui_effect_pack_id": 10001,
|
||||
"gacha_detail": "A pack contains 8 cards, including at least one silver, gold, or legendary card.",
|
||||
"is_hide": false,
|
||||
"is_new": false,
|
||||
"is_pre_release": false,
|
||||
"open_count_limit": 0,
|
||||
"sales_period_time": null,
|
||||
"gacha_point": {
|
||||
"exchangeable_point": 400,
|
||||
"increase_gacha_point": 1
|
||||
},
|
||||
"child_gachas": [
|
||||
{
|
||||
"gacha_id": 100002,
|
||||
"type_detail": 2,
|
||||
"cost": 100,
|
||||
"card_count": 8,
|
||||
"item_id": null,
|
||||
"is_daily_single": false,
|
||||
"override_increase_gacha_point": 1,
|
||||
"purchase_limit_count": 0,
|
||||
"free_gacha_campaign_id": null,
|
||||
"campaign_name": null
|
||||
},
|
||||
{
|
||||
"gacha_id": 200001,
|
||||
"type_detail": 3,
|
||||
"cost": 50,
|
||||
"card_count": 8,
|
||||
"item_id": null,
|
||||
"is_daily_single": true,
|
||||
"override_increase_gacha_point": 1,
|
||||
"purchase_limit_count": 0,
|
||||
"free_gacha_campaign_id": null,
|
||||
"campaign_name": null
|
||||
},
|
||||
{
|
||||
"gacha_id": 400002,
|
||||
"type_detail": 7,
|
||||
"cost": 100,
|
||||
"card_count": 8,
|
||||
"item_id": null,
|
||||
"is_daily_single": false,
|
||||
"override_increase_gacha_point": 1,
|
||||
"purchase_limit_count": 0,
|
||||
"free_gacha_campaign_id": null,
|
||||
"campaign_name": null
|
||||
}
|
||||
],
|
||||
"banners": []
|
||||
},
|
||||
{
|
||||
"parent_gacha_id": 92001,
|
||||
"base_pack_id": 90001,
|
||||
"gacha_type": 1,
|
||||
"pack_category": 1,
|
||||
"poster_type": 0,
|
||||
"commence_date": "2017-06-14 10:00:00",
|
||||
"complete_date": "2030-12-31 23:59:59",
|
||||
"sleeve_id": 5090001,
|
||||
"special_sleeve_id": 0,
|
||||
"override_draw_effect_pack_id": 90001,
|
||||
"override_ui_effect_pack_id": 90001,
|
||||
"gacha_detail": "A pack contains 8 cards, including at least one leader card!",
|
||||
"is_hide": true,
|
||||
"is_new": false,
|
||||
"is_pre_release": false,
|
||||
"open_count_limit": 0,
|
||||
"sales_period_time": null,
|
||||
"gacha_point": null,
|
||||
"child_gachas": [
|
||||
{
|
||||
"gacha_id": 920002,
|
||||
"type_detail": 5,
|
||||
"cost": 1,
|
||||
"card_count": 8,
|
||||
"item_id": 92001,
|
||||
"is_daily_single": false,
|
||||
"override_increase_gacha_point": 0,
|
||||
"purchase_limit_count": 0,
|
||||
"free_gacha_campaign_id": null,
|
||||
"campaign_name": null
|
||||
}
|
||||
],
|
||||
"banners": []
|
||||
},
|
||||
{
|
||||
"parent_gacha_id": 16015,
|
||||
"base_pack_id": 10015,
|
||||
"gacha_type": 1,
|
||||
"pack_category": 0,
|
||||
"poster_type": 0,
|
||||
"commence_date": "2017-07-01 03:00:00",
|
||||
"complete_date": "2030-12-31 23:59:59",
|
||||
"sleeve_id": 5010015,
|
||||
"special_sleeve_id": 0,
|
||||
"override_draw_effect_pack_id": 10015,
|
||||
"override_ui_effect_pack_id": 10015,
|
||||
"gacha_detail": "A pack contains 8 cards, including at least one silver, gold, or legendary card.",
|
||||
"is_hide": false,
|
||||
"is_new": false,
|
||||
"is_pre_release": false,
|
||||
"open_count_limit": 0,
|
||||
"sales_period_time": null,
|
||||
"gacha_point": {
|
||||
"exchangeable_point": 400,
|
||||
"increase_gacha_point": 1
|
||||
},
|
||||
"child_gachas": [
|
||||
{
|
||||
"gacha_id": 160152,
|
||||
"type_detail": 2,
|
||||
"cost": 100,
|
||||
"card_count": 8,
|
||||
"item_id": null,
|
||||
"is_daily_single": false,
|
||||
"override_increase_gacha_point": 1,
|
||||
"purchase_limit_count": 0,
|
||||
"free_gacha_campaign_id": null,
|
||||
"campaign_name": null
|
||||
},
|
||||
{
|
||||
"gacha_id": 460152,
|
||||
"type_detail": 7,
|
||||
"cost": 100,
|
||||
"card_count": 8,
|
||||
"item_id": null,
|
||||
"is_daily_single": false,
|
||||
"override_increase_gacha_point": 1,
|
||||
"purchase_limit_count": 0,
|
||||
"free_gacha_campaign_id": null,
|
||||
"campaign_name": null
|
||||
}
|
||||
],
|
||||
"banners": [
|
||||
{
|
||||
"banner_name": "card_pack_711331010_dialog",
|
||||
"dialog_title": "Dia_BuyCard_005_Title"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user