package mt;

option go_package = ".;mt";

message PayServerCluster
{
    optional int32 instance_id = 1;
    optional int32 listen_port = 2;
    optional int32 http_listen_port = 3;
}

message AccountDb
{
    optional string host = 1;
    optional int32 port = 2;
    optional string user = 3;
    optional string passwd = 4;
    optional string database = 5;
    optional int32 max_open_conns = 6;
    optional int32 max_idle_conns = 7;
}

message PayDb
{
    optional string host = 1;
    optional int32 port = 2;
    optional string user = 3;
    optional string passwd = 4;
    optional string database = 5;
    optional int32 max_open_conns = 6;
    optional int32 max_idle_conns = 7;
}

message GameDb
{
    optional string host = 1;
    optional int32 port = 2;
    optional string user = 3;
    optional string passwd = 4;
    optional string database = 5;
    optional int32 max_open_conns = 6;
    optional int32 max_idle_conns = 7;
}

message ConfDb
{
    optional string host = 1;
    optional int32 port = 2;
    optional string user = 3;
    optional string passwd = 4;
    optional string database = 5;
    optional int32 max_open_conns = 6;
    optional int32 max_idle_conns = 7;
}

message Config
{
    optional string gameapi_url = 1;
    optional string wx_url = 2;
    optional string wx_notify_token = 3;
    optional string wx_notify_encoding_aes_key = 4;
    optional string wx_merchant_id = 5;
    optional string wx_certificate_sn = 6;
    optional string wx_merchant_api_key = 7;
    optional string wx_msg_notify_token = 8;
    optional string wx_msg_notify_encoding_aes_key = 9;
    optional string wx_nofity_host = 10;
    optional string wx_link_title = 11;
    optional string wx_link_description = 12;
    optional string wx_merchant_public_key_id = 13;
}

message RechargeCurrency
{
    optional string currency_name = 1;
    optional string contract_name = 2;
    optional int64 currency_decimal = 3;
}

message Item
{
    optional string name = 1;
    optional int32 id = 2;
    optional int32 type = 3;
    optional int32 sub_type = 4;
}

message Language
{
    optional string info = 1;
    optional string en = 2;
}

message Recharge
{
    optional int32 id = 1;
    optional int32 diamond = 2;
    optional int32 present_diamond = 3;
    optional int32 price = 4;
    optional int32 max_buy_times = 5;
    optional int32 can_email_buy = 6;
}

message Wxconfig
{
    optional int64 gameid = 1;
    optional string appid = 2;
    optional string appkey = 3;
    optional string appsecret = 4;
    optional string zoneid = 5;
    optional string offerid = 6;
    optional string notifyurl = 7;
}

message LoginRedis
{
    optional string host = 1;
    optional int32 port = 2;
    optional string passwd = 3;
    optional int32 database = 4;
    optional int32 max_open_conns = 5;
    optional int32 max_idle_conns = 6;
}
