add data directory

This commit is contained in:
shoopea 2019-12-26 11:59:52 +08:00
parent 58d8d13888
commit fb062c2ad9
5 changed files with 2414 additions and 0 deletions

0
data/code.json Normal file
View File

824
data/code_obj_sub_type.json Normal file
View File

@ -0,0 +1,824 @@
[
{
"id": "101",
"intl_id": "user",
"name": "User",
"obj_type_id": "1"
},
{
"id": "201",
"intl_id": "guild",
"name": "Guild",
"obj_type_id": "2"
},
{
"id": "301",
"intl_id": "unknown",
"name": "Unknown",
"obj_type_id": "3"
},
{
"id": "302",
"intl_id": "war",
"name": "War report",
"obj_type_id": "3"
},
{
"id": "304",
"intl_id": "guild_war",
"name": "Guilds war report",
"obj_type_id": "3"
},
{
"id": "305",
"intl_id": "report_req",
"name": "Player war report request",
"obj_type_id": "3"
},
{
"id": "306",
"intl_id": "report_ack",
"name": "Player war report ack",
"obj_type_id": "3"
},
{
"id": "307",
"intl_id": "g_report_req",
"name": "Player guilds war report request",
"obj_type_id": "3"
},
{
"id": "308",
"intl_id": "g_report_ack",
"name": "Player guilds war report ack",
"obj_type_id": "3"
},
{
"id": "309",
"intl_id": "quest_res",
"name": "Quest result",
"obj_type_id": "3"
},
{
"id": "310",
"intl_id": "duel_fight",
"name": "Duel fight result",
"obj_type_id": "3"
},
{
"id": "311",
"intl_id": "hero_req",
"name": "Hero summary request",
"obj_type_id": "3"
},
{
"id": "312",
"intl_id": "hero_ack",
"name": "Hero summary ack",
"obj_type_id": "3"
},
{
"id": "313",
"intl_id": "me_req",
"name": "Hero short summary request",
"obj_type_id": "3"
},
{
"id": "314",
"intl_id": "me_ack",
"name": "Hero short summary ack",
"obj_type_id": "3"
},
{
"id": "315",
"intl_id": "inv_req",
"name": "Inventory request",
"obj_type_id": "3"
},
{
"id": "316",
"intl_id": "inv_ack",
"name": "Inventory ack",
"obj_type_id": "3"
},
{
"id": "317",
"intl_id": "pillage_inc",
"name": "Pillage incoming",
"obj_type_id": "3"
},
{
"id": "318",
"intl_id": "pillage_go",
"name": "Pillage go",
"obj_type_id": "3"
},
{
"id": "319",
"intl_id": "pillage_timeout",
"name": "Pillage timeout",
"obj_type_id": "3"
},
{
"id": "320",
"intl_id": "pillage_win",
"name": "Pillage win",
"obj_type_id": "3"
},
{
"id": "321",
"intl_id": "pillage_loss",
"name": "Pillage loss",
"obj_type_id": "3"
},
{
"id": "322",
"intl_id": "tribute_inc",
"name": "Tribute incoming",
"obj_type_id": "3"
},
{
"id": "323",
"intl_id": "tribute_ack",
"name": "Tribute acknowledged",
"obj_type_id": "3"
},
{
"id": "324",
"intl_id": "auction_announce",
"name": "Auction announce",
"obj_type_id": "3"
},
{
"id": "325",
"intl_id": "auction_upd_req",
"name": "Auction update request",
"obj_type_id": "3"
},
{
"id": "326",
"intl_id": "auction_upd_ack",
"name": "Auction update acknowledgment",
"obj_type_id": "3"
},
{
"id": "327",
"intl_id": "time_ack",
"name": "Time Acknowledgment",
"obj_type_id": "3"
},
{
"id": "328",
"intl_id": "time_req",
"name": "Time Request",
"obj_type_id": "3"
},
{
"id": "329",
"intl_id": "go",
"name": "Go",
"obj_type_id": "3"
},
{
"id": "330",
"intl_id": "pledge",
"name": "Pledge",
"obj_type_id": "3"
},
{
"id": "331",
"intl_id": "go_quest_req",
"name": "Go quest Req",
"obj_type_id": "3"
},
{
"id": "332",
"intl_id": "fast_fight",
"name": "Arena fast fight",
"obj_type_id": "3"
},
{
"id": "333",
"intl_id": "go_arena",
"name": "Go arena",
"obj_type_id": "3"
},
{
"id": "334",
"intl_id": "top",
"name": "Top",
"obj_type_id": "3"
},
{
"id": "335",
"intl_id": "menu",
"name": "Menu",
"obj_type_id": "3"
},
{
"id": "336",
"intl_id": "buy_req",
"name": "Sell Req",
"obj_type_id": "3"
},
{
"id": "337",
"intl_id": "sell_req",
"name": "Buy Req",
"obj_type_id": "3"
},
{
"id": "338",
"intl_id": "orderbook_req",
"name": "Orderbook Req",
"obj_type_id": "3"
},
{
"id": "339",
"intl_id": "orderbook_acl",
"name": "Orderbook Ack",
"obj_type_id": "3"
},
{
"id": "340",
"intl_id": "withdraw_req",
"name": "Withdraw Req",
"obj_type_id": "3"
},
{
"id": "341",
"intl_id": "withdraw_code",
"name": "Withdraw Code",
"obj_type_id": "3"
},
{
"id": "342",
"intl_id": "withdraw_rcv",
"name": "Withdraw Received",
"obj_type_id": "3"
},
{
"id": "343",
"intl_id": "stock_req",
"name": "Stock Req",
"obj_type_id": "3"
},
{
"id": "344",
"intl_id": "stock_ack",
"name": "Stock Ack",
"obj_type_id": "3"
},
{
"id": "345",
"intl_id": "misc_req",
"name": "Misc Req",
"obj_type_id": "3"
},
{
"id": "346",
"intl_id": "misc_ack",
"name": "Misc Ack",
"obj_type_id": "3"
},
{
"id": "347",
"intl_id": "union_war",
"name": "Union war report",
"obj_type_id": "3"
},
{
"id": "348",
"intl_id": "tureport_req",
"name": "Trade Union War Report Req",
"obj_type_id": "3"
},
{
"id": "349",
"intl_id": "tureport_ack",
"name": "Trade Union War Report Ack",
"obj_type_id": "3"
},
{
"id": "350",
"intl_id": "timeout",
"name": "Generic timeout",
"obj_type_id": "3"
},
{
"id": "351",
"intl_id": "go_quest_ack",
"name": "Go Quest Ack",
"obj_type_id": "3"
},
{
"id": "352",
"intl_id": "groles_req",
"name": "Guild roles Req",
"obj_type_id": "3"
},
{
"id": "353",
"intl_id": "groles_ack",
"name": "Guild roles Ack",
"obj_type_id": "3"
},
{
"id": "354",
"intl_id": "gstock_res_req",
"name": "GStock Res Req",
"obj_type_id": "3"
},
{
"id": "355",
"intl_id": "gstock_alch_req",
"name": "GStock Alch Req",
"obj_type_id": "3"
},
{
"id": "356",
"intl_id": "gstock_misc_req",
"name": "GStock Misc Req",
"obj_type_id": "3"
},
{
"id": "357",
"intl_id": "gstock_rec_req",
"name": "GStock Rec Req",
"obj_type_id": "3"
},
{
"id": "358",
"intl_id": "gstock_part_req",
"name": "GStock Part Req",
"obj_type_id": "3"
},
{
"id": "359",
"intl_id": "gstock_oth_req",
"name": "Gstock Oth Req",
"obj_type_id": "3"
},
{
"id": "360",
"intl_id": "gstock_any_ack",
"name": "Gstock Any Ack",
"obj_type_id": "3"
},
{
"id": "361",
"intl_id": "gstock_req",
"name": "GStock Req",
"obj_type_id": "3"
},
{
"id": "362",
"intl_id": "gstock_ack",
"name": "GStock Ack",
"obj_type_id": "3"
},
{
"id": "363",
"intl_id": "busy",
"name": "Busy",
"obj_type_id": "3"
},
{
"id": "364",
"intl_id": "res_stock_req",
"name": "Resources Stock Req",
"obj_type_id": "3"
},
{
"id": "365",
"intl_id": "alch_stock_req",
"name": "Alchemy Stock Req",
"obj_type_id": "3"
},
{
"id": "366",
"intl_id": "misc_stock_req",
"name": "Misc Stock Req",
"obj_type_id": "3"
},
{
"id": "367",
"intl_id": "equip_stock_req",
"name": "Equipment Stock Req",
"obj_type_id": "3"
},
{
"id": "368",
"intl_id": "craft_stock_req",
"name": "Equipment Stock Req",
"obj_type_id": "3"
},
{
"id": "369",
"intl_id": "stock_empty",
"name": "Stock Empty",
"obj_type_id": "3"
},
{
"id": "370",
"intl_id": "stock_any_ack",
"name": "Stock Any Ack",
"obj_type_id": "3"
},
{
"id": "371",
"intl_id": "g_deposit_req",
"name": "GDeposit Req",
"obj_type_id": "3"
},
{
"id": "372",
"intl_id": "g_deposit_ack",
"name": "GDeposit Ack",
"obj_type_id": "3"
},
{
"id": "373",
"intl_id": "castle_attack_req",
"name": "Castle Attack Req",
"obj_type_id": "3"
},
{
"id": "374",
"intl_id": "castle_attack_ack",
"name": "Castle Attack Ack",
"obj_type_id": "3"
},
{
"id": "375",
"intl_id": "castle_target_req",
"name": "Castle Target Req",
"obj_type_id": "3"
},
{
"id": "376",
"intl_id": "castle_target_ack",
"name": "Castle Target Ack",
"obj_type_id": "3"
},
{
"id": "377",
"intl_id": "castle_def_req",
"name": "Castle Defense Req",
"obj_type_id": "3"
},
{
"id": "378",
"intl_id": "castle_def_ack",
"name": "Castle Defense Ack",
"obj_type_id": "3"
},
{
"id": "379",
"intl_id": "back",
"name": "Back",
"obj_type_id": "3"
},
{
"id": "380",
"intl_id": "castle_req",
"name": "Castle Req",
"obj_type_id": "3"
},
{
"id": "381",
"intl_id": "castle_ack",
"name": "Castle Ack",
"obj_type_id": "3"
},
{
"id": "382",
"intl_id": "exchange_req",
"name": "Exchange Req",
"obj_type_id": "3"
},
{
"id": "383",
"intl_id": "exchange_ack",
"name": "Exchange Ack",
"obj_type_id": "3"
},
{
"id": "384",
"intl_id": "equip_req",
"name": "Equip Req",
"obj_type_id": "3"
},
{
"id": "385",
"intl_id": "equip_ack",
"name": "Equip Ack",
"obj_type_id": "3"
},
{
"id": "386",
"intl_id": "unequip_req",
"name": "Unequip Req",
"obj_type_id": "3"
},
{
"id": "387",
"intl_id": "unequip_ack",
"name": "Unequip Ack",
"obj_type_id": "3"
},
{
"id": "388",
"intl_id": "no_stamina",
"name": "No Stamina",
"obj_type_id": "3"
},
{
"id": "389",
"intl_id": "orderbook_search",
"name": "Orderbook search",
"obj_type_id": "3"
},
{
"id": "390",
"intl_id": "quest_req",
"name": "Quest Req",
"obj_type_id": "3"
},
{
"id": "391",
"intl_id": "quest_ack",
"name": "Quest Ack",
"obj_type_id": "3"
},
{
"id": "392",
"intl_id": "battle",
"name": "Battle",
"obj_type_id": "3"
},
{
"id": "393",
"intl_id": "order_cancel_req",
"name": "Order Cancel Req",
"obj_type_id": "3"
},
{
"id": "394",
"intl_id": "order_cancel_ack",
"name": "Order Cancel Ack",
"obj_type_id": "3"
},
{
"id": "395",
"intl_id": "stamina_restored",
"name": "Stamina Restored",
"obj_type_id": "3"
},
{
"id": "397",
"intl_id": "quest_res_ambush",
"name": "Quest result with Ambush",
"obj_type_id": "3"
},
{
"id": "398",
"intl_id": "heal_up",
"name": "Heal Up",
"obj_type_id": "3"
},
{
"id": "399",
"intl_id": "arena_fight_ack",
"name": "Arena Fight Ack",
"obj_type_id": "3"
},
{
"id": "400",
"intl_id": "go_arena_ack",
"name": "Go Arena Ack",
"obj_type_id": "3"
},
{
"id": "401",
"intl_id": "withdraw_nack",
"name": "Withdraw NAck",
"obj_type_id": "3"
},
{
"id": "402",
"intl_id": "pillage_defeat",
"name": "Pillage Defeat",
"obj_type_id": "3"
},
{
"id": "403",
"intl_id": "level_up_req",
"name": "Level Up Req",
"obj_type_id": "3"
},
{
"id": "404",
"intl_id": "level_up_ack",
"name": "Level Up Ack",
"obj_type_id": "3"
},
{
"id": "601",
"intl_id": "job_pillage",
"name": "Pillage job",
"obj_type_id": "6"
},
{
"id": "602",
"intl_id": "job_tribute",
"name": "Tribute job",
"obj_type_id": "6"
},
{
"id": "604",
"intl_id": "job_gwithdraw",
"name": "GWithdrawal job",
"obj_type_id": "6"
},
{
"id": "605",
"intl_id": "job_gstock",
"name": "GStock job",
"obj_type_id": "6"
},
{
"id": "606",
"intl_id": "job_rescan_msg",
"name": "Rescan message job",
"obj_type_id": "6"
},
{
"id": "607",
"intl_id": "job_set_done",
"name": "Set job as done job",
"obj_type_id": "6"
},
{
"id": "608",
"intl_id": "job_msg_client",
"name": "Send message via client",
"obj_type_id": "6"
},
{
"id": "609",
"intl_id": "job_msg_refresh",
"name": "Refresh message from client",
"obj_type_id": "6"
},
{
"id": "610",
"intl_id": "job_backup_export",
"name": "Export Backup",
"obj_type_id": "6"
},
{
"id": "611",
"intl_id": "job_backup_import",
"name": "Import Backup",
"obj_type_id": "6"
},
{
"id": "612",
"intl_id": "job_gdeposit",
"name": "GDeposit job",
"obj_type_id": "6"
},
{
"id": "613",
"intl_id": "job_gdeposit_fwd",
"name": "GDeposit Forward job",
"obj_type_id": "6"
},
{
"id": "614",
"intl_id": "job_save_res",
"name": "Save resources job",
"obj_type_id": "6"
},
{
"id": "615",
"intl_id": "job_vault_user_status",
"name": "Vault User Status job",
"obj_type_id": "6"
},
{
"id": "616",
"intl_id": "job_vault_item_status",
"name": "Vault Item Status job",
"obj_type_id": "6"
},
{
"id": "617",
"intl_id": "job_fwd_msg",
"name": "Forward Message job",
"obj_type_id": "6"
},
{
"id": "618",
"intl_id": "job_set_def",
"name": "Set Defense Job",
"obj_type_id": "6"
},
{
"id": "619",
"intl_id": "job_msg_del",
"name": "Msg Del Job",
"obj_type_id": "6"
},
{
"id": "620",
"intl_id": "job_get_hammer_time",
"name": "Get Hammer Time job",
"obj_type_id": "6"
},
{
"id": "701",
"intl_id": "item_res",
"name": "Time",
"obj_type_id": "7"
},
{
"id": "702",
"intl_id": "item_alch",
"name": "Time",
"obj_type_id": "7"
},
{
"id": "703",
"intl_id": "item_misc",
"name": "Time",
"obj_type_id": "7"
},
{
"id": "704",
"intl_id": "item_recipe",
"name": "Time",
"obj_type_id": "7"
},
{
"id": "705",
"intl_id": "item_part",
"name": "Time",
"obj_type_id": "7"
},
{
"id": "706",
"intl_id": "item_other",
"name": "Time",
"obj_type_id": "7"
},
{
"id": "801",
"intl_id": "castle",
"name": "Castle",
"obj_type_id": "8"
},
{
"id": "901",
"intl_id": "fair",
"name": "Fair",
"obj_type_id": "9"
},
{
"id": "1001",
"intl_id": "union",
"name": "Union",
"obj_type_id": "10"
},
{
"id": "1101",
"intl_id": "tribute",
"name": "Tribute",
"obj_type_id": "11"
},
{
"id": "1201",
"intl_id": "xp",
"name": "Experience",
"obj_type_id": "12"
},
{
"id": "1301",
"intl_id": "forest",
"name": "Forest",
"obj_type_id": "13"
},
{
"id": "1302",
"intl_id": "swamp",
"name": "Swamp",
"obj_type_id": "13"
},
{
"id": "1303",
"intl_id": "valley",
"name": "Valley",
"obj_type_id": "13"
}
]

67
data/code_obj_type.json Normal file
View File

@ -0,0 +1,67 @@
[
{
"id": "1",
"intl_id": "user",
"name": "User"
},
{
"id": "2",
"intl_id": "guild",
"name": "Guild"
},
{
"id": "3",
"intl_id": "msg",
"name": "Message"
},
{
"id": "4",
"intl_id": "war",
"name": "War"
},
{
"id": "5",
"intl_id": "war_report",
"name": "War Report"
},
{
"id": "6",
"intl_id": "job",
"name": "Job"
},
{
"id": "7",
"intl_id": "item",
"name": "Item"
},
{
"id": "8",
"intl_id": "castle",
"name": "Castle"
},
{
"id": "9",
"intl_id": "fair",
"name": "Fair"
},
{
"id": "10",
"intl_id": "union",
"name": "Trade Union"
},
{
"id": "11",
"intl_id": "tribute",
"name": "Tribute"
},
{
"id": "12",
"intl_id": "xp",
"name": "Experience"
},
{
"id": "13",
"intl_id": "quest",
"name": "Quest"
}
]

1521
data/msg_rules.json Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,7 @@
package main package main
//go:generate go-bindata data/
import ( import (
"database/sql" "database/sql"
"flag" "flag"