Przeglądaj źródła

Merge branch 'master' of 192.168.30.132:MTP2.0/MTP20_IF

zou.yingbin 4 lat temu
rodzic
commit
d7d255c746
2 zmienionych plików z 1424 dodań i 1427 usunięć
  1. 1392 1401
      config/pc_menu.json
  2. 32 26
      models/account.go

+ 1392 - 1401
config/pc_menu.json

@@ -1,1402 +1,1393 @@
 [
-    {
-      "code": "market",
-      "title": "市场",
-      "sort": 1,
-      "type": 1,
-      "rulekey": "",
-      "isshow": false,
-      "children": [
-        {
-          "code": "futures",
-          "title": "期货",
-          "sort": 1,
-          "type": 1,
-          "rulekey": "",
-          "isshow": false,
-          "children": [
-            {
-              "code": "dominant_contract",
-              "title": "主力",
-              "sort": 1,
-              "type": 1,
-              "rulekey": "",
-              "isshow": false,
-              "children": []
-            },
-            {
-              "code": "night_plate",
-              "title": "夜盘",
-              "sort": 2,
-              "type": 1,
-              "rulekey": "",
-              "isshow": false,
-              "children": []
-            },
-            {
-              "code": "main_contract",
-              "title": "主连",
-              "sort": 3,
-              "type": 1,
-              "rulekey": "",
-              "isshow": false,
-              "children": []
-            },
-            {
-              "code": "position",
-              "title": "持仓",
-              "sort": 21,
-              "type": 1,
-              "rulekey": "",
-              "isshow": false,
-              "children": [
-                {
-                  "code": "open",
-                  "title": "开仓",
-                  "sort": 1,
-                  "type": 2,
-                  "rulekey": "",
-                  "isshow": false,
-                  "children": []
-                },
-                {
-                  "code": "close",
-                  "title": "平仓",
-                  "sort": 2,
-                  "type": 2,
-                  "rulekey": "",
-                  "isshow": false,
-                  "children": []
-                }
-              ]
-            },
-            {
-              "code": "orderdetail",
-              "title": "委托",
-              "sort": 22,
-              "type": 1,
-              "rulekey": "",
-              "isshow": false,
-              "children": []
-            },
-            {
-              "code": "tradedetail",
-              "title": "成交",
-              "sort": 23,
-              "type": 1,
-              "rulekey": "",
-              "isshow": false,
-              "children": []
-            },
-            {
-              "code": "closedetail",
-              "title": "平仓",
-              "sort": 24,
-              "type": 1,
-              "rulekey": "",
-              "isshow": false,
-              "children": []
-            }
-          ]
-        }
-      ]
-    },
-    {
-      "code": "info",
-      "title": "信息",
-      "sort": 2,
-      "type": 1,
-      "rulekey": "",
-      "isshow": true,
-      "children": [
-        {
-          "code": "custom_info",
-          "title": "客户资料",
-          "sort": 1,
-          "type": 1,
-          "rulekey": "client_customer",
-          "isshow": true,
-          "children": [
-            {
-              "code": "custom_info_unsubmit",
-              "title": "未提交",
-              "sort": 1,
-              "type": 1,
-              "rulekey": "client_customer_unsubmit",
-              "isshow": true,
-              "children": [
-                {
-                  "code": "custom_info_btn_delete",
-                  "title": "删除",
-                  "sort": 1,
-                  "type": 2,
-                  "rulekey": "client_customer_delete",
-                  "isshow": true,
-                  "children": []
-                },
-                {
-                  "code": "custom_info_btn_modify",
-                  "title": "修改",
-                  "sort": 2,
-                  "type": 2,
-                  "rulekey": "client_customer_update",
-                  "isshow": true,
-                  "children": []
-                }
-              ]
-            },
-            {
-              "code": "custom_info_checkpending",
-              "title": "待审核",
-              "sort": 1,
-              "type": 1,
-              "rulekey": "client_customer_unaduit",
-              "isshow": true,
-              "children": [
-                {
-                  "code": "custom_info_btn_cancel",
-                  "title": "撤销",
-                  "sort": 1,
-                  "type": 2,
-                  "rulekey": "client_customer_cancel",
-                  "isshow": true,
-                  "children": []
-                },
-                {
-                  "code": "custom_info_btn_check",
-                  "title": "审核",
-                  "sort": 2,
-                  "type": 2,
-                  "rulekey": "client_customer_check",
-                  "isshow": true,
-                  "children": []
-                }
-              ]
-            },
-            {
-              "code": "custom_info_normal",
-              "title": "正常",
-              "sort": 1,
-              "type": 1,
-              "rulekey": "client_customer_normal",
-              "isshow": true,
-              "children": [
-                {
-                  "code": "custom_info_btn_add",
-                  "title": "新增",
-                  "sort": 1,
-                  "type": 2,
-                  "rulekey": "client_customer_add",
-                  "isshow": true,
-                  "children": []
-                },
-                {
-                  "code": "custom_info_btn_disable",
-                  "title": "停用",
-                  "sort": 3,
-                  "type": 2,
-                  "rulekey": "client_customer_disable",
-                  "isshow": true,
-                  "children": []
-                }
-              ]
-            },
-            {
-              "code": "custom_info_disabled",
-              "title": "停用",
-              "sort": 2,
-              "type": 1,
-              "rulekey": "client_customer_stop",
-              "isshow": true,
-              "children": [
-                {
-                  "code": "custom_info_btn_recover",
-                  "title": "恢复",
-                  "sort": 1,
-                  "type": 2,
-                  "rulekey": "client_customer_restore",
-                  "isshow": true,
-                  "children": []
-                }
-              ]
-            }
-          ]
-        },
-        {
-          "code": "goods_info",
-          "title": "商品信息",
-          "sort": 2,
-          "type": 1,
-          "rulekey": "client_deliverygoods",
-          "isshow": true,
-          "children": [
-            {
-              "code": "goods_info_spot",
-              "title": "现货品种",
-              "sort": 1,
-              "type": 1,
-              "rulekey": "client_deliverygoods_spot",
-              "isshow": true,
-              "children": [
-                {
-                  "code": "goods_info_spot_normal",
-                  "title": "正常",
-                  "sort": 1,
-                  "type": 1,
-                  "rulekey": "",
-                  "isshow": true,
-                  "children": [
-                    {
-                      "code": "goods_info_spot_normal_add",
-                      "title": "新增",
-                      "sort": 1,
-                      "type": 2,
-                      "rulekey": "client_deliverygoods_add",
-                      "isshow": true,
-                      "children": []
-                    },
-                    {
-                      "code": "goods_info_spot_normal_modify",
-                      "title": "修改",
-                      "sort": 2,
-                      "type": 2,
-                      "rulekey": "client_deliverygoods_spot_modify",
-                      "isshow": true,
-                      "children": []
-                    },
-                    {
-                      "code": "goods_info_spot_normal_disable",
-                      "title": "停用",
-                      "sort": 3,
-                      "type": 2,
-                      "rulekey": "client_deliverygoods_spot_disable",
-                      "isshow": true,
-                      "children": []
-                    }
-                  ]
-                },
-                {
-                  "code": "goods_info_spot_disable",
-                  "title": "停用",
-                  "sort": 2,
-                  "type": 1,
-                  "rulekey": "",
-                  "isshow": true,
-                  "children": [
-                  ]
-                }
-              ]
-            },
-            {
-              "code": "goods_info_hedge",
-              "title": "套保品种",
-              "sort": 2,
-              "type": 1,
-              "rulekey": "client_deliverygoods_hedge",
-              "isshow": true,
-              "children": [
-                {
-                  "code": "goods_info_hedge_normal",
-                  "title": "正常",
-                  "sort": 1,
-                  "type": 1,
-                  "rulekey": "",
-                  "isshow": true,
-                  "children": [
-                    {
-                      "code": "goods_info_hedge_normal_modify",
-                      "title": "修改",
-                      "sort": 2,
-                      "type": 2,
-                      "rulekey": "client_deliverygoods_hedge_modify",
-                      "isshow": true,
-                      "children": []
-                    }
-                  ]
-                },
-                {
-                  "code": "goods_info_hedge_disable",
-                  "title": "停用",
-                  "sort": 2,
-                  "type": 1,
-                  "rulekey": "client_deliverygoods_hedge_disable",
-                  "isshow": true,
-                  "children": [
-                  ]
-                }
-              ]
-            }
-          ]
-        },
-        {
-          "code": "spot_contract",
-          "title": "现货合同",
-          "sort": 3,
-          "type": 1,
-          "rulekey": "client_spotcontract",
-          "isshow": true,
-          "children": [
-            {
-              "code": "spot_contract_unsubmitted",
-              "title": "未提交",
-              "sort": 1,
-              "type": 1,
-              "rulekey": "client_spotcontract_unsubmit",
-              "isshow": true,
-              "children": [
-                {
-                  "code": "spot_contract_btn_add",
-                  "title": "新增",
-                  "sort": 1,
-                  "type": 2,
-                  "rulekey": "client_spotcontract_add",
-                  "isshow": true,
-                  "children": []
-                },
-                {
-                  "code": "spot_contract_btn_modify",
-                  "title": "重新提交",
-                  "sort": 2,
-                  "type": 2,
-                  "rulekey": "client_spotcontract_recommit",
-                  "isshow": true,
-                  "children": []
-                },
-                {
-                  "code": "spot_contract_btn_delete",
-                  "title": "删除",
-                  "sort": 3,
-                  "type": 2,
-                  "rulekey": "",
-                  "isshow": true,
-                  "children": []
-                }
-              ]
-            },
-            {
-              "code": "spot_contract_checkpending",
-              "title": "待审核",
-              "sort": 2,
-              "type": 1,
-              "rulekey": "client_spotcontract_unaduit",
-              "isshow": true,
-              "children": [
-                {
-                  "code": "spot_contract_btn_check",
-                  "title": "审核",
-                  "sort": 1,
-                  "type": 2,
-                  "rulekey": "client_spotcontract_check",
-                  "isshow": true,
-                  "children": []
-                },
-                {
-                  "code": "spot_contract_btn_cancel",
-                  "title": "撤销",
-                  "sort": 2,
-                  "type": 2,
-                  "rulekey": "client_spotcontract_cancel",
-                  "isshow": true,
-                  "children": []
-                }
-              ]
-            },
-            {
-              "code": "spot_contract_performance",
-              "title": "履约中",
-              "sort": 3,
-              "type": 1,
-              "rulekey": "client_spotcontract_agreement",
-              "isshow": true,
-              "children": [
-                {
-                  "code": "spot_contract_btn_finish",
-                  "title": "正常完结",
-                  "sort": 1,
-                  "type": 2,
-                  "rulekey": "client_spotcontract_finish",
-                  "isshow": true,
-                  "children": []
-                }
-              ]
-            },
-            {
-              "code": "spot_contract_finished",
-              "title": "已完成",
-              "sort": 4,
-              "type": 1,
-              "rulekey": "client_spotcontract_completed",
-              "isshow": true,
-              "children": []
-            }
-          ]
-        },
-        {
-          "code": "warehouse_info",
-          "title": "仓库信息",
-          "sort": 4,
-          "type": 1,
-          "rulekey": "",
-          "isshow": true,
-          "children": [
-            {
-              "code": "warehouse_info_normal",
-              "title": "正常",
-              "sort": 1,
-              "type": 1,
-              "rulekey": "client_warehouse_normal",
-              "isshow": true,
-              "children": [
-                {
-                  "code": "warehouse_info_btn_add",
-                  "title": "新增",
-                  "sort": 1,
-                  "type": 2,
-                  "rulekey": "client_warehouse_add",
-                  "isshow": true,
-                  "children": []
-                },
-                {
-                  "code": "warehouse_info_btn_modify",
-                  "title": "修改",
-                  "sort": 2,
-                  "type": 2,
-                  "rulekey": "client_warehouse_update",
-                  "isshow": true,
-                  "children": []
-                },
-                {
-                  "code": "warehouse_info_btn_disable",
-                  "title": "停用",
-                  "sort": 3,
-                  "type": 2,
-                  "rulekey": "client_warehouse_stop",
-                  "isshow": true,
-                  "children": []
-                }
-              ]
-            },
-            {
-              "code": "warehouse_info_disabled",
-              "title": "停用",
-              "sort": 2,
-              "type": 1,
-              "rulekey": "client_warehouse_stop",
-              "isshow": true,
-              "children": [
-                {
-                  "code": "warehouse_info_btn_recover",
-                  "title": "恢复",
-                  "sort": 1,
-                  "type": 2,
-                  "rulekey": "client_warehouse_restore",
-                  "isshow": true,
-                  "children": []
-                }
-              ]
-            }
-          ]
-        },
-        {
-          "code": "account_info",
-          "title": "账户管理",
-          "sort": 4,
-          "type": 1,
-          "rulekey": "client_accountmanage",
-          "isshow": true,
-          "children": [
-            {
-              "code": "account_info_business",
-              "title": "业务账户",
-              "sort": 1,
-              "type": 1,
-              "rulekey": "client_accountmanage_business",
-              "isshow": true,
-              "children": [
-                {
-                  "code": "account_info_business_btn_add",
-                  "title": "新增",
-                  "sort": 1,
-                  "type": 2,
-                  "rulekey": "client_accountmanage_business_add",
-                  "isshow": true,
-                  "remartk": "新增账户 - 业务员/跟单员",
-                  "children": [
-                    {
-                      "code": "account_info_business_btn_modify",
-                      "title": "修改",
-                      "sort": 2,
-                      "type": 2,
-                      "rulekey": "client_accountmanage_business_update",
-                      "isshow": true,
-                      "children": []
-                    },
-                    {
-                      "code": "account_info_business_btn_reset",
-                      "title": "重置密码",
-                      "sort": 3,
-                      "type": 2,
-                      "rulekey": "client_accountmanage_business_resetpwd",
-                      "isshow": true,
-                      "children": []
-                    },
-                    {
-                      "code": "account_info_business_btn_locked",
-                      "title": "锁定",
-                      "sort": 2,
-                      "type": 2,
-                      "rulekey": "client_accountmanage_business_lock",
-                      "isshow": true,
-                      "children": []
-                    },
-                    {
-                      "code": "account_info_business_btn_unlocked",
-                      "title": "解锁",
-                      "sort": 2,
-                      "type": 2,
-                      "rulekey": "client_accountmanage_business_unlock",
-                      "isshow": true,
-                      "children": []
-                    },
-                    {
-                      "code": "account_info_business_btn_cancel",
-                      "title": "注销",
-                      "sort": 2,
-                      "type": 2,
-                      "rulekey": "client_accountmanage_business_close",
-                      "isshow": true,
-                      "children": []
-                    }
-                  ]
-                }
-              ]
-            },
-            {
-              "code": "account_info_trade",
-              "title": "交易账户",
-              "sort": 2,
-              "type": 1,
-              "rulekey": "client_accountmanage_trade",
-              "isshow": true,
-              "children": [
-                {
-                  "code": "account_info_trade_btn_add",
-                  "title": "新增",
-                  "sort": 1,
-                  "type": 2,
-                  "rulekey": "",
-                  "isshow": true,
-                  "remartk": "新增账户 - 新增交易用户",
-                  "children": [
-                    {
-                      "code": "account_info_trade_child_btn_add",
-                      "title": "新增",
-                      "sort": 1,
-                      "type": 2,
-                      "rulekey": "client_accountmanage_trade_add",
-                      "isshow": true,
-                      "remartk": "新增账户 - 新增交易员",
-                      "children": [
-                        {
-                          "code": "account_info_trade_btn_child_modify",
-                          "title": "修改",
-                          "sort": 1,
-                          "type": 2,
-                          "rulekey": "client_accountmanage_trade_update",
-                          "isshow": true,
-                          "children": []
-                        },
-                        {
-                          "code": "account_info_trade_btn_child_reset",
-                          "title": "重置密码",
-                          "sort": 2,
-                          "type": 2,
-                          "rulekey": "client_accountmanage_trade_resetpwd",
-                          "isshow": true,
-                          "children": []
-                        },
-                        {
-                          "code": "account_info_trade_btn_child_locked",
-                          "title": "锁定",
-                          "sort": 2,
-                          "type": 2,
-                          "rulekey": "client_accountmanage_trade_lock",
-                          "isshow": true,
-                          "children": []
-                        },
-                        {
-                          "code": "account_info_trade_btn_child_unlocked",
-                          "title": "解锁",
-                          "sort": 2,
-                          "type": 2,
-                          "rulekey": "client_accountmanage_trade_unlock",
-                          "isshow": true,
-                          "children": []
-                        },
-                        {
-                          "code": "account_info_trade_btn_child_logout",
-                          "title": "注销",
-                          "sort": 2,
-                          "type": 2,
-                          "rulekey": "client_accountmanage_trade_close",
-                          "isshow": true,
-                          "children": []
-                        }
-                      ]
-                    }
-                  ]
-                },
-                {
-                  "code": "account_info_trade_btn_modify",
-                  "title": "修改",
-                  "sort": 2,
-                  "type": 2,
-                  "rulekey": "",
-                  "isshow": true,
-                  "remartk": "修改账户 - 修改交易用户",
-                  "children": []
-                }
-              ]
-            },
-            {
-              "code": "account_info_manager",
-              "title": "管理账户",
-              "sort": 2,
-              "type": 1,
-              "rulekey": "client_accountmanage_manage",
-              "isshow": true,
-              "children": [
-                {
-                  "code": "account_info_manager_btn_add",
-                  "title": "新增",
-                  "sort": 1,
-                  "type": 2,
-                  "rulekey": "",
-                  "isshow": true,
-                  "remartk": "管理账户 - 新增角色",
-                  "children": [
-                    {
-                      "code": "account_info_manager_btn_child_add",
-                      "title": "新增",
-                      "sort": 1,
-                      "type": 2,
-                      "rulekey": "",
-                      "isshow": true,
-                      "remartk": "管理账户 - 新增管理员",
-                      "children": [
-                        {
-                          "code": "account_info_manager_btn_modify",
-                          "title": "修改",
-                          "sort": 2,
-                          "type": 2,
-                          "rulekey": "client_accountmanage_update",
-                          "isshow": true,
-                          "children": []
-                        },
-                        {
-                          "code": "account_info_manager_btn_reset",
-                          "title": "重置密码",
-                          "sort": 2,
-                          "type": 2,
-                          "rulekey": "client_accountmanage_resetpwd",
-                          "isshow": true,
-                          "children": []
-                        },
-                        {
-                          "code": "account_info_manager_btn_locked",
-                          "title": "锁定",
-                          "sort": 2,
-                          "type": 2,
-                          "rulekey": "client_accountmanage_lock",
-                          "isshow": true,
-                          "children": []
-                        },
-                        {
-                          "code": "account_info_manager_btn_unlocked",
-                          "title": "解锁",
-                          "sort": 2,
-                          "type": 2,
-                          "rulekey": "client_accountmanage_unlock",
-                          "isshow": true,
-                          "children": []
-                        },
-                        {
-                          "code": "account_info_manager_btn_logout",
-                          "title": "注销",
-                          "sort": 2,
-                          "type": 2,
-                          "rulekey": "client_accountmanage_close",
-                          "isshow": true,
-                          "children": []
-                        }
-                      ]
-                    }
-                  ]
-                },
-                {
-                  "code": "account_info_manager_btn_setting",
-                  "title": "权限设置",
-                  "sort": 1,
-                  "type": 2,
-                  "rulekey": "",
-                  "isshow": true,
-                  "children": []
-                }
-              ]
-            },
-            {
-              "code": "account_info_futures",
-              "title": "期货账户",
-              "sort": 2,
-              "type": 1,
-              "rulekey": "client_accountmanage_ta",
-              "isshow": true,
-              "children": [
-                {
-                  "code": "account_info_futures_btn_add",
-                  "title": "新增",
-                  "sort": 1,
-                  "type": 2,
-                  "rulekey": "client_accountmanage_ta_mainadd",
-                  "isshow": true,
-                  "remartk": "期货账户 - 新增期货账户",
-                  "children": [
-                    {
-                      "code": "account_info_futures_btn_child_add",
-                      "title": "新增",
-                      "sort": 1,
-                      "type": 2,
-                      "rulekey": "client_accountmanage_ta_subadd",
-                      "isshow": true,
-                      "remartk": "期货账户 - 新增期货子账户",
-                      "children": [
-                        {
-                          "code": "account_info_futures_btn_child_credit",
-                          "title": "授信",
-                          "sort": 1,
-                          "type": 2,
-                          "rulekey": "client_accountmanage_ta_subcredit",
-                          "isshow": true,
-                          "children": []
-                        },
-                        {
-                          "code": "account_info_futures_btn_child_modify",
-                          "title": "修改",
-                          "sort": 2,
-                          "type": 2,
-                          "rulekey": "client_accountmanage_ta_subupdate",
-                          "isshow": true,
-                          "children": []
-                        },
-                        {
-                          "code": "account_info_futures_btn_child_cancel",
-                          "title": "注销",
-                          "sort": 2,
-                          "type": 2,
-                          "rulekey": "client_accountmanage_ta_subclose",
-                          "isshow": true,
-                          "children": []
-                        }
-                      ]
-                    },
-                    {
-                      "code": "account_info_futures_btn_modify",
-                      "title": "修改",
-                      "sort": 2,
-                      "type": 2,
-                      "rulekey": "client_accountmanage_ta_mainupdate",
-                      "isshow": true,
-                      "remartk": "期货账户 - 修改期货子账户",
-                      "children": []
-                    }
-                  ]
-                }
-              ]
-            }
-          ]
-        }
-      ]
-    },
-    {
-      "code": "business",
-      "title": "业务",
-      "sort": 3,
-      "type": 1,
-      "rulekey": "",
-      "isshow": true,
-      "children": [
-        {
-          "code": "purchase",
-          "title": "采购",
-          "sort": 1,
-          "type": 1,
-          "rulekey": "client_po",
-          "isshow": true,
-          "children": [
-            {
-              "code": "purchase_pending",
-              "title": "待点价",
-              "sort": 1,
-              "type": 1,
-              "rulekey": "client_po_unpoint",
-              "isshow": true,
-              "children": [
-                {
-                  "code": "purchase_pending_someprice",
-                  "title": "点价登记",
-                  "sort": 2,
-                  "type": 2,
-                  "rulekey": "client_po_point_register",
-                  "isshow": true,
-                  "children": []
-                }
-              ]
-            },
-            {
-              "code": "purchase_performance",
-              "title": "履约交收",
-              "sort": 2,
-              "type": 1,
-              "rulekey": "client_po_settle",
-              "isshow": true,
-              "children": [
-                {
-                  "code": "purchase_pending_settlement",
-                  "title": "交收登记",
-                  "sort": 2,
-                  "type": 2,
-                  "rulekey": "client_po_settle_register",
-                  "isshow": true,
-                  "children": []
-                },
-                {
-                  "code": "purchase_pending_funds",
-                  "title": "款项登记",
-                  "sort": 2,
-                  "type": 2,
-                  "rulekey": "client_po_fund_register",
-                  "isshow": true,
-                  "children": []
-                },
-                {
-                  "code": "purchase_pending_invoice",
-                  "title": "发票登记",
-                  "sort": 3,
-                  "type": 2,
-                  "rulekey": "client_po_invoice_register",
-                  "isshow": true,
-                  "children": []
-                },
-                {
-                  "code": "purchase_pending_storage",
-                  "title": "入库登记",
-                  "sort": 4,
-                  "type": 2,
-                  "rulekey": "client_po_instock_register",
-                  "isshow": true,
-                  "children": []
-                }
-              ]
-            },
-            {
-              "code": "purchase_all",
-              "title": "全部",
-              "sort": 3,
-              "type": 1,
-              "rulekey": "client_po_all",
-              "isshow": true,
-              "children": []
-            }
-          ]
-        },
-        {
-          "code": "sell",
-          "title": "销售",
-          "sort": 2,
-          "type": 1,
-          "rulekey": "client_so",
-          "isshow": true,
-          "children": [
-            {
-              "code": "sell_pending",
-              "title": "待点价",
-              "sort": 1,
-              "type": 1,
-              "rulekey": "client_so_unpoint",
-              "isshow": true,
-              "children": [
-                {
-                  "code": "sell_pending_someprice",
-                  "title": "点价登记",
-                  "sort": 2,
-                  "type": 2,
-                  "rulekey": "client_so_point_register",
-                  "isshow": true,
-                  "children": []
-                }
-              ]
-            },
-            {
-              "code": "sell_performance",
-              "title": "履约交收",
-              "sort": 2,
-              "type": 1,
-              "rulekey": "client_so_settle",
-              "isshow": true,
-              "children": [
-                {
-                  "code": "sell_pending_settlement",
-                  "title": "交收登记",
-                  "sort": 2,
-                  "type": 2,
-                  "rulekey": "client_so_settle_register",
-                  "isshow": true,
-                  "children": []
-                },
-                {
-                  "code": "sell_pending_funds",
-                  "title": "款项登记",
-                  "sort": 2,
-                  "type": 2,
-                  "rulekey": "client_so_fund_register",
-                  "isshow": true,
-                  "children": []
-                },
-                {
-                  "code": "sell_pending_invoice",
-                  "title": "发票登记",
-                  "sort": 3,
-                  "type": 2,
-                  "rulekey": "client_so_invoice_register",
-                  "isshow": true,
-                  "children": []
-                },
-                {
-                  "code": "sell_pending_storage",
-                  "title": "出库登记",
-                  "sort": 4,
-                  "type": 2,
-                  "rulekey": "client_so_outstock_register",
-                  "isshow": true,
-                  "children": []
-                }
-              ]
-            },
-            {
-              "code": "sell_all",
-              "title": "全部",
-              "sort": 3,
-              "type": 1,
-              "rulekey": "client_so_all",
-              "isshow": true,
-              "children": []
-            }
-          ]
-        },
-        {
-          "code": "exposure",
-          "title": "敞口",
-          "sort": 3,
-          "type": 1,
-          "rulekey": "client_exposure",
-          "isshow": true,
-          "children": [
-            {
-              "code": "exposure_realtime",
-              "title": "实时敞口",
-              "sort": 1,
-              "type": 1,
-              "rulekey": "client_exposure_real",
-              "isshow": true,
-              "children": []
-            },
-            {
-              "code": "exposure_spot",
-              "title": "现货头寸",
-              "sort": 2,
-              "type": 1,
-              "rulekey": "client_exposure_spot",
-              "isshow": true,
-              "children": []
-            },
-            {
-              "code": "exposure_futures",
-              "title": "期货头寸",
-              "sort": 3,
-              "type": 1,
-              "rulekey": "client_exposure_future",
-              "isshow": true,
-              "children": []
-            },
-            {
-              "code": "exposure_history",
-              "title": "历史敞口",
-              "sort": 4,
-              "type": 1,
-              "rulekey": "client_exposure_his",
-              "isshow": true,
-              "children": []
-            }
-          ]
-        },
-        {
-          "code": "plan",
-          "title": "计划",
-          "sort": 4,
-          "type": 1,
-          "rulekey": "client_hedgeplan",
-          "isshow": true,
-          "children": [
-            {
-              "code": "plan_uncommitted",
-              "title": "未提交",
-              "sort": 1,
-              "type": 1,
-              "rulekey": "client_hedgeplan_unsubmit",
-              "isshow": true,
-              "children": [
-                {
-                  "code": "plan_btn_add",
-                  "title": "新增",
-                  "sort": 1,
-                  "type": 2,
-                  "rulekey": "client_hedgeplan_add",
-                  "isshow": true,
-                  "children": []
-                },
-                {
-                  "code": "plan_uncommitted_recommit",
-                  "title": "重新提交",
-                  "sort": 2,
-                  "type": 2,
-                  "rulekey": "client_hedgeplan_recommit",
-                  "isshow": true,
-                  "children": []
-                },
-                {
-                  "code": "plan_uncommitted_modify",
-                  "title": "修改",
-                  "sort": 3,
-                  "type": 2,
-                  "rulekey": "client_hedgeplan_update",
-                  "isshow": true,
-                  "children": []
-                },
-                {
-                  "code": "plan_uncommitted_delete",
-                  "title": "删除",
-                  "sort": 4,
-                  "type": 2,
-                  "rulekey": "",
-                  "isshow": true,
-                  "children": []
-                }
-              ]
-            },
-            {
-              "code": "plan_audit",
-              "title": "待审核",
-              "sort": 2,
-              "type": 1,
-              "rulekey": "client_hedgeplan_unaduit",
-              "isshow": true,
-              "children": [
-                {
-                  "code": "plan_audit_audit",
-                  "title": "审核",
-                  "sort": 1,
-                  "type": 2,
-                  "rulekey": "client_hedgeplan_check",
-                  "isshow": true,
-                  "children": []
-                },
-                {
-                  "code": "plan_audit_cancel",
-                  "title": "撤销",
-                  "sort": 3,
-                  "type": 2,
-                  "rulekey": "client_hedgeplan_cancel",
-                  "isshow": true,
-                  "children": []
-                }
-              ]
-            },
-            {
-              "code": "plan_running",
-              "title": "执行中",
-              "sort": 3,
-              "type": 1,
-              "rulekey": "client_hedgeplan_inprogress",
-              "isshow": true,
-              "children": []
-            }
-          ]
-        }
-      ]
-    },
-    {
-      "code": "manage",
-      "title": "管理",
-      "sort": 4,
-      "type": 1,
-      "rulekey": "",
-      "isshow": true,
-      "children": [
-        {
-          "code": "business_review",
-          "title": "业务审核",
-          "sort": 1,
-          "type": 1,
-          "rulekey": "client_business",
-          "isshow": true,
-          "children": [
-            {
-              "code": "business_review_someprice",
-              "title": "点价",
-              "sort": 1,
-              "type": 1,
-              "rulekey": "client_business_point",
-              "isshow": true,
-              "children": [
-                {
-                  "code": "business_review_someprice_audit",
-                  "title": "审核",
-                  "sort": 1,
-                  "type": 2,
-                  "rulekey": "client_business_point_check",
-                  "isshow": true,
-                  "children": []
-                },
-                {
-                  "code": "business_review_someprice_cancel",
-                  "title": "撤销",
-                  "sort": 2,
-                  "type": 2,
-                  "rulekey": "client_business_point_cancel",
-                  "isshow": true,
-                  "children": []
-                }
-              ]
-            },
-            {
-              "code": "business_review_settlement",
-              "title": "交收",
-              "sort": 2,
-              "type": 1,
-              "rulekey": "client_business_settle",
-              "isshow": true,
-              "children": [
-                {
-                  "code": "business_review_settlement_audit",
-                  "title": "审核",
-                  "sort": 1,
-                  "type": 2,
-                  "rulekey": "client_business_settle_check",
-                  "isshow": true,
-                  "children": []
-                },
-                {
-                  "code": "business_review_settlement_cancel",
-                  "title": "撤销",
-                  "sort": 2,
-                  "type": 2,
-                  "rulekey": "client_business_settle_cancel",
-                  "isshow": true,
-                  "children": []
-                }
-              ]
-            }
-          ]
-        },
-        {
-          "code": "finance_review",
-          "title": "财务审核",
-          "sort": 2,
-          "type": 1,
-          "rulekey": "client_finance",
-          "isshow": true,
-          "children": [
-            {
-              "code": "finance_review_funds",
-              "title": "款项",
-              "sort": 1,
-              "type": 1,
-              "rulekey": "client_finance_fund",
-              "isshow": true,
-              "children": [
-                {
-                  "code": "finance_review_funds_audit",
-                  "title": "审核",
-                  "sort": 1,
-                  "type": 2,
-                  "rulekey": "client_finance_fund_check",
-                  "isshow": true,
-                  "children": []
-                },
-                {
-                  "code": "finance_review_funds_cancel",
-                  "title": "撤销",
-                  "sort": 2,
-                  "type": 2,
-                  "rulekey": "client_finance_fund_cancel",
-                  "isshow": true,
-                  "children": []
-                }
-              ]
-            },
-            {
-              "code": "finance_review_invoice",
-              "title": "发票",
-              "sort": 2,
-              "type": 1,
-              "rulekey": "client_finance_invoice",
-              "isshow": true,
-              "children": [
-                {
-                  "code": "finance_review_invoice_audit",
-                  "title": "审核",
-                  "sort": 1,
-                  "type": 2,
-                  "rulekey": "client_finance_invoice_check",
-                  "isshow": true,
-                  "children": []
-                },
-                {
-                  "code": "finance_review_invoice_cancel",
-                  "title": "撤销",
-                  "sort": 2,
-                  "type": 2,
-                  "rulekey": "client_finance_invoice_cancel",
-                  "isshow": true,
-                  "children": []
-                }
-              ]
-            }
-          ]
-        },
-        {
-          "code": "inventory_review",
-          "title": "库存审核",
-          "sort": 3,
-          "type": 1,
-          "rulekey": "client_stock_aduit",
-          "isshow": true,
-          "children": [
-            {
-              "code": "inventory_review_checkin",
-              "title": "入库",
-              "sort": 1,
-              "type": 1,
-              "rulekey": "client_stock_in",
-              "isshow": true,
-              "children": [
-                {
-                  "code": "inventory_review_checkin_audit",
-                  "title": "审核",
-                  "sort": 1,
-                  "type": 2,
-                  "rulekey": "client_stock_in_aduit",
-                  "isshow": true,
-                  "children": []
-                },
-                {
-                  "code": "inventory_review_checkin_cancel",
-                  "title": "撤销",
-                  "sort": 2,
-                  "type": 2,
-                  "rulekey": "client_stock_aduit_cancel",
-                  "isshow": true,
-                  "children": []
-                }
-              ]
-            },
-            {
-              "code": "inventory_review_checkout",
-              "title": "出库",
-              "sort": 2,
-              "type": 1,
-              "rulekey": "client_stock_out",
-              "isshow": true,
-              "children": [
-                {
-                  "code": "inventory_review_checkout_audit",
-                  "title": "审核",
-                  "sort": 1,
-                  "type": 2,
-                  "rulekey": "client_stock_out_aduit",
-                  "isshow": true,
-                  "children": []
-                },
-                {
-                  "code": "inventory_review_checkout_cancel",
-                  "title": "撤销",
-                  "sort": 2,
-                  "type": 2,
-                  "rulekey": "",
-                  "isshow": true,
-                  "children": []
-                }
-              ]
-            }
-          ]
-        }
-      ]
-    },
-    {
-      "code": "search",
-      "title": "查询",
-      "sort": 5,
-      "type": 1,
-      "rulekey": "",
-      "isshow": true,
-      "children": [
-        {
-          "code": "inventory",
-          "title": "库存查询",
-          "sort": 1,
-          "type": 1,
-          "rulekey": "client_stock_manage",
-          "isshow": true,
-          "children": [
-            {
-              "code": "inventory_current",
-              "title": "当前库存",
-              "sort": 1,
-              "type": 1,
-              "rulekey": "client_stock_manage_current",
-              "isshow": true,
-              "children": []
-            },
-            {
-              "code": "inventory_applyrecord",
-              "title": "申请记录",
-              "sort": 2,
-              "type": 1,
-              "rulekey": "client_stock_manage_applylog",
-              "isshow": true,
-              "children": []
-            }
-          ]
-        },
-        {
-          "code": "outaccount_status",
-          "title": "账户状态",
-          "sort": 2,
-          "type": 1,
-          "rulekey": "",
-          "isshow": true,
-          "children": [
-            {
-              "code": "outaccount_status_status",
-              "title": "账户状态",
-              "sort": 1,
-              "type": 1,
-              "rulekey": "",
-              "isshow": true,
-              "children": []
-            }
-          ]
-        }
-      ]
-    }
-  ]
+  {
+    "code": "market",
+    "title": "市场",
+    "sort": 1,
+    "type": 1,
+    "rulekey": "",
+    "isshow": false,
+    "children": [
+      {
+        "code": "futures",
+        "title": "期货",
+        "sort": 1,
+        "type": 1,
+        "rulekey": "",
+        "isshow": false,
+        "children": [
+          {
+            "code": "dominant_contract",
+            "title": "主力",
+            "sort": 1,
+            "type": 1,
+            "rulekey": "",
+            "isshow": false,
+            "children": []
+          },
+          {
+            "code": "night_plate",
+            "title": "夜盘",
+            "sort": 2,
+            "type": 1,
+            "rulekey": "",
+            "isshow": false,
+            "children": []
+          },
+          {
+            "code": "main_contract",
+            "title": "主连",
+            "sort": 3,
+            "type": 1,
+            "rulekey": "",
+            "isshow": false,
+            "children": []
+          },
+          {
+            "code": "position",
+            "title": "持仓",
+            "sort": 21,
+            "type": 1,
+            "rulekey": "",
+            "isshow": false,
+            "children": [
+              {
+                "code": "open",
+                "title": "开仓",
+                "sort": 1,
+                "type": 2,
+                "rulekey": "",
+                "isshow": false,
+                "children": []
+              },
+              {
+                "code": "close",
+                "title": "平仓",
+                "sort": 2,
+                "type": 2,
+                "rulekey": "",
+                "isshow": false,
+                "children": []
+              }
+            ]
+          },
+          {
+            "code": "orderdetail",
+            "title": "委托",
+            "sort": 22,
+            "type": 1,
+            "rulekey": "",
+            "isshow": false,
+            "children": []
+          },
+          {
+            "code": "tradedetail",
+            "title": "成交",
+            "sort": 23,
+            "type": 1,
+            "rulekey": "",
+            "isshow": false,
+            "children": []
+          },
+          {
+            "code": "closedetail",
+            "title": "平仓",
+            "sort": 24,
+            "type": 1,
+            "rulekey": "",
+            "isshow": false,
+            "children": []
+          }
+        ]
+      }
+    ]
+  },
+  {
+    "code": "info",
+    "title": "信息",
+    "sort": 2,
+    "type": 1,
+    "rulekey": "",
+    "isshow": true,
+    "children": [
+      {
+        "code": "custom_info",
+        "title": "客户资料",
+        "sort": 1,
+        "type": 1,
+        "rulekey": "client_customer",
+        "isshow": true,
+        "children": [
+          {
+            "code": "custom_info_unsubmit",
+            "title": "未提交",
+            "sort": 1,
+            "type": 1,
+            "rulekey": "client_customer_unsubmit",
+            "isshow": true,
+            "children": [
+              {
+                "code": "custom_info_btn_delete",
+                "title": "删除",
+                "sort": 1,
+                "type": 2,
+                "rulekey": "client_customer_delete",
+                "isshow": true,
+                "children": []
+              },
+              {
+                "code": "custom_info_btn_modify",
+                "title": "修改",
+                "sort": 2,
+                "type": 2,
+                "rulekey": "client_customer_update",
+                "isshow": true,
+                "children": []
+              }
+            ]
+          },
+          {
+            "code": "custom_info_checkpending",
+            "title": "待审核",
+            "sort": 1,
+            "type": 1,
+            "rulekey": "client_customer_unaduit",
+            "isshow": true,
+            "children": [
+              {
+                "code": "custom_info_btn_cancel",
+                "title": "撤销",
+                "sort": 1,
+                "type": 2,
+                "rulekey": "client_customer_cancel",
+                "isshow": true,
+                "children": []
+              },
+              {
+                "code": "custom_info_btn_check",
+                "title": "审核",
+                "sort": 2,
+                "type": 2,
+                "rulekey": "client_customer_check",
+                "isshow": true,
+                "children": []
+              }
+            ]
+          },
+          {
+            "code": "custom_info_normal",
+            "title": "正常",
+            "sort": 1,
+            "type": 1,
+            "rulekey": "client_customer_normal",
+            "isshow": true,
+            "children": [
+              {
+                "code": "custom_info_btn_add",
+                "title": "新增",
+                "sort": 1,
+                "type": 2,
+                "rulekey": "client_customer_add",
+                "isshow": true,
+                "children": []
+              },
+              {
+                "code": "custom_info_btn_disable",
+                "title": "停用",
+                "sort": 3,
+                "type": 2,
+                "rulekey": "client_customer_disable",
+                "isshow": true,
+                "children": []
+              }
+            ]
+          },
+          {
+            "code": "custom_info_disabled",
+            "title": "停用",
+            "sort": 2,
+            "type": 1,
+            "rulekey": "client_customer_stop",
+            "isshow": true,
+            "children": [
+              {
+                "code": "custom_info_btn_recover",
+                "title": "恢复",
+                "sort": 1,
+                "type": 2,
+                "rulekey": "client_customer_restore",
+                "isshow": true,
+                "children": []
+              }
+            ]
+          }
+        ]
+      },
+      {
+        "code": "goods_info",
+        "title": "商品信息",
+        "sort": 2,
+        "type": 1,
+        "rulekey": "client_deliverygoods",
+        "isshow": true,
+        "children": [
+          {
+            "code": "goods_info_spot",
+            "title": "现货品种",
+            "sort": 1,
+            "type": 1,
+            "rulekey": "client_deliverygoods_spot",
+            "isshow": true,
+            "children": [
+              {
+                "code": "goods_info_spot_normal",
+                "title": "正常",
+                "sort": 1,
+                "type": 1,
+                "rulekey": "",
+                "isshow": true,
+                "children": [
+                  {
+                    "code": "goods_info_spot_normal_add",
+                    "title": "新增",
+                    "sort": 1,
+                    "type": 2,
+                    "rulekey": "client_deliverygoods_add",
+                    "isshow": true,
+                    "children": []
+                  },
+                  {
+                    "code": "goods_info_spot_normal_modify",
+                    "title": "修改",
+                    "sort": 2,
+                    "type": 2,
+                    "rulekey": "client_deliverygoods_spot_modify",
+                    "isshow": true,
+                    "children": []
+                  },
+                  {
+                    "code": "goods_info_spot_normal_disable",
+                    "title": "停用",
+                    "sort": 3,
+                    "type": 2,
+                    "rulekey": "client_deliverygoods_spot_disable",
+                    "isshow": true,
+                    "children": []
+                  }
+                ]
+              },
+              {
+                "code": "goods_info_spot_disable",
+                "title": "停用",
+                "sort": 2,
+                "type": 1,
+                "rulekey": "",
+                "isshow": true,
+                "children": [
+                ]
+              }
+            ]
+          },
+          {
+            "code": "goods_info_hedge",
+            "title": "套保品种",
+            "sort": 2,
+            "type": 1,
+            "rulekey": "client_deliverygoods_hedge",
+            "isshow": true,
+            "children": [
+              {
+                "code": "goods_info_hedge_normal",
+                "title": "正常",
+                "sort": 1,
+                "type": 1,
+                "rulekey": "",
+                "isshow": true,
+                "children": [
+                  {
+                    "code": "goods_info_hedge_normal_modify",
+                    "title": "修改",
+                    "sort": 2,
+                    "type": 2,
+                    "rulekey": "client_deliverygoods_hedge_modify",
+                    "isshow": true,
+                    "children": []
+                  }
+                ]
+              },
+              {
+                "code": "goods_info_hedge_disable",
+                "title": "停用",
+                "sort": 2,
+                "type": 1,
+                "rulekey": "client_deliverygoods_hedge_disable",
+                "isshow": true,
+                "children": [
+                ]
+              }
+            ]
+          }
+        ]
+      },
+      {
+        "code": "spot_contract",
+        "title": "现货合同",
+        "sort": 3,
+        "type": 1,
+        "rulekey": "client_spotcontract",
+        "isshow": true,
+        "children": [
+          {
+            "code": "spot_contract_unsubmitted",
+            "title": "未提交",
+            "sort": 1,
+            "type": 1,
+            "rulekey": "client_spotcontract_unsubmit",
+            "isshow": true,
+            "children": [
+              {
+                "code": "spot_contract_btn_add",
+                "title": "新增",
+                "sort": 1,
+                "type": 2,
+                "rulekey": "client_spotcontract_add",
+                "isshow": true,
+                "children": []
+              },
+              {
+                "code": "spot_contract_btn_modify",
+                "title": "重新提交",
+                "sort": 2,
+                "type": 2,
+                "rulekey": "client_spotcontract_recommit",
+                "isshow": true,
+                "children": []
+              },
+              {
+                "code": "spot_contract_btn_delete",
+                "title": "删除",
+                "sort": 3,
+                "type": 2,
+                "rulekey": "",
+                "isshow": true,
+                "children": []
+              }
+            ]
+          },
+          {
+            "code": "spot_contract_checkpending",
+            "title": "待审核",
+            "sort": 2,
+            "type": 1,
+            "rulekey": "client_spotcontract_unaduit",
+            "isshow": true,
+            "children": [
+              {
+                "code": "spot_contract_btn_check",
+                "title": "审核",
+                "sort": 1,
+                "type": 2,
+                "rulekey": "client_spotcontract_check",
+                "isshow": true,
+                "children": []
+              },
+              {
+                "code": "spot_contract_btn_cancel",
+                "title": "撤销",
+                "sort": 2,
+                "type": 2,
+                "rulekey": "client_spotcontract_cancel",
+                "isshow": true,
+                "children": []
+              }
+            ]
+          },
+          {
+            "code": "spot_contract_performance",
+            "title": "履约中",
+            "sort": 3,
+            "type": 1,
+            "rulekey": "client_spotcontract_agreement",
+            "isshow": true,
+            "children": [
+              {
+                "code": "spot_contract_btn_finish",
+                "title": "正常完结",
+                "sort": 1,
+                "type": 2,
+                "rulekey": "client_spotcontract_finish",
+                "isshow": true,
+                "children": []
+              }
+            ]
+          },
+          {
+            "code": "spot_contract_finished",
+            "title": "已完成",
+            "sort": 4,
+            "type": 1,
+            "rulekey": "client_spotcontract_completed",
+            "isshow": true,
+            "children": []
+          }
+        ]
+      },
+      {
+        "code": "warehouse_info",
+        "title": "仓库信息",
+        "sort": 4,
+        "type": 1,
+        "rulekey": "",
+        "isshow": true,
+        "children": [
+          {
+            "code": "warehouse_info_normal",
+            "title": "正常",
+            "sort": 1,
+            "type": 1,
+            "rulekey": "client_warehouse_normal",
+            "isshow": true,
+            "children": [
+              {
+                "code": "warehouse_info_btn_add",
+                "title": "新增",
+                "sort": 1,
+                "type": 2,
+                "rulekey": "client_warehouse_add",
+                "isshow": true,
+                "children": []
+              },
+              {
+                "code": "warehouse_info_btn_modify",
+                "title": "修改",
+                "sort": 2,
+                "type": 2,
+                "rulekey": "client_warehouse_update",
+                "isshow": true,
+                "children": []
+              },
+              {
+                "code": "warehouse_info_btn_disable",
+                "title": "停用",
+                "sort": 3,
+                "type": 2,
+                "rulekey": "client_warehouse_stop",
+                "isshow": true,
+                "children": []
+              }
+            ]
+          },
+          {
+            "code": "warehouse_info_disabled",
+            "title": "停用",
+            "sort": 2,
+            "type": 1,
+            "rulekey": "client_warehouse_stop",
+            "isshow": true,
+            "children": [
+              {
+                "code": "warehouse_info_btn_recover",
+                "title": "恢复",
+                "sort": 1,
+                "type": 2,
+                "rulekey": "client_warehouse_restore",
+                "isshow": true,
+                "children": []
+              }
+            ]
+          }
+        ]
+      },
+      {
+        "code": "account_info",
+        "title": "账户管理",
+        "sort": 4,
+        "type": 1,
+        "rulekey": "client_accountmanage",
+        "isshow": true,
+        "children": [
+          {
+            "code": "account_info_business",
+            "title": "业务账户",
+            "sort": 1,
+            "type": 1,
+            "rulekey": "client_accountmanage_business",
+            "isshow": true,
+            "children": [
+              {
+                "code": "account_info_business_btn_add",
+                "title": "新增",
+                "sort": 1,
+                "type": 2,
+                "rulekey": "client_accountmanage_business_add",
+                "isshow": true,
+                "remartk": "新增账户 - 业务员/跟单员",
+                "children": [
+                  {
+                    "code": "account_info_business_btn_modify",
+                    "title": "修改",
+                    "sort": 2,
+                    "type": 2,
+                    "rulekey": "client_accountmanage_business_update",
+                    "isshow": true,
+                    "children": []
+                  },
+                  {
+                    "code": "account_info_business_btn_reset",
+                    "title": "重置密码",
+                    "sort": 3,
+                    "type": 2,
+                    "rulekey": "client_accountmanage_business_resetpwd",
+                    "isshow": true,
+                    "children": []
+                  },
+                  {
+                    "code": "account_info_business_btn_locked",
+                    "title": "锁定",
+                    "sort": 2,
+                    "type": 2,
+                    "rulekey": "client_accountmanage_business_lock",
+                    "isshow": true,
+                    "children": []
+                  },
+                  {
+                    "code": "account_info_business_btn_unlocked",
+                    "title": "解锁",
+                    "sort": 2,
+                    "type": 2,
+                    "rulekey": "client_accountmanage_business_unlock",
+                    "isshow": true,
+                    "children": []
+                  },
+                  {
+                    "code": "account_info_business_btn_cancel",
+                    "title": "注销",
+                    "sort": 2,
+                    "type": 2,
+                    "rulekey": "client_accountmanage_business_close",
+                    "isshow": true,
+                    "children": []
+                  }
+                ]
+              }
+            ]
+          },
+          {
+            "code": "account_info_trade",
+            "title": "交易账户",
+            "sort": 2,
+            "type": 1,
+            "rulekey": "client_accountmanage_trade",
+            "isshow": true,
+            "children": [
+              {
+                "code": "account_info_trade_btn_add",
+                "title": "新增",
+                "sort": 1,
+                "type": 2,
+                "rulekey": "",
+                "isshow": true,
+                "remartk": "新增账户 - 新增交易用户",
+                "children": [
+                  {
+                    "code": "account_info_trade_child_btn_add",
+                    "title": "新增",
+                    "sort": 1,
+                    "type": 2,
+                    "rulekey": "client_accountmanage_trade_add",
+                    "isshow": true,
+                    "remartk": "新增账户 - 新增交易员",
+                    "children": [
+                      {
+                        "code": "account_info_trade_btn_child_modify",
+                        "title": "修改",
+                        "sort": 1,
+                        "type": 2,
+                        "rulekey": "client_accountmanage_trade_update",
+                        "isshow": true,
+                        "children": []
+                      },
+                      {
+                        "code": "account_info_trade_btn_child_reset",
+                        "title": "重置密码",
+                        "sort": 2,
+                        "type": 2,
+                        "rulekey": "client_accountmanage_trade_resetpwd",
+                        "isshow": true,
+                        "children": []
+                      },
+                      {
+                        "code": "account_info_trade_btn_child_locked",
+                        "title": "锁定",
+                        "sort": 2,
+                        "type": 2,
+                        "rulekey": "client_accountmanage_trade_lock",
+                        "isshow": true,
+                        "children": []
+                      },
+                      {
+                        "code": "account_info_trade_btn_child_unlocked",
+                        "title": "解锁",
+                        "sort": 2,
+                        "type": 2,
+                        "rulekey": "client_accountmanage_trade_unlock",
+                        "isshow": true,
+                        "children": []
+                      },
+                      {
+                        "code": "account_info_trade_btn_child_logout",
+                        "title": "注销",
+                        "sort": 2,
+                        "type": 2,
+                        "rulekey": "client_accountmanage_trade_close",
+                        "isshow": true,
+                        "children": []
+                      }
+                    ]
+                  },
+                  {
+                    "code": "account_info_trade_btn_modify",
+                    "title": "修改",
+                    "sort": 2,
+                    "type": 2,
+                    "rulekey": "",
+                    "isshow": true,
+                    "remartk": "修改账户 - 修改交易用户",
+                    "children": []
+                  }
+                ]
+              }
+            ]
+          },
+          {
+            "code": "account_info_manager",
+            "title": "管理账户",
+            "sort": 2,
+            "type": 1,
+            "rulekey": "client_accountmanage_manage",
+            "isshow": true,
+            "children": [
+              {
+                "code": "account_info_manager_btn_add",
+                "title": "新增权限模板",
+                "sort": 1,
+                "type": 2,
+                "rulekey": "",
+                "isshow": true,
+                "remartk": "管理账户 - 新增权限模板",
+                "children": [
+                  {
+                    "code": "account_info_manager_btn_child_add",
+                    "title": "新增",
+                    "sort": 1,
+                    "type": 2,
+                    "rulekey": "",
+                    "isshow": true,
+                    "remartk": "管理账户 - 新增管理员",
+                    "children": [
+                      {
+                        "code": "account_info_manager_btn_modify",
+                        "title": "修改",
+                        "sort": 2,
+                        "type": 2,
+                        "rulekey": "client_accountmanage_update",
+                        "isshow": true,
+                        "children": []
+                      },
+                      {
+                        "code": "account_info_manager_btn_reset",
+                        "title": "重置密码",
+                        "sort": 2,
+                        "type": 2,
+                        "rulekey": "client_accountmanage_resetpwd",
+                        "isshow": true,
+                        "children": []
+                      },
+                      {
+                        "code": "account_info_manager_btn_locked",
+                        "title": "锁定",
+                        "sort": 2,
+                        "type": 2,
+                        "rulekey": "client_accountmanage_lock",
+                        "isshow": true,
+                        "children": []
+                      },
+                      {
+                        "code": "account_info_manager_btn_unlocked",
+                        "title": "解锁",
+                        "sort": 2,
+                        "type": 2,
+                        "rulekey": "client_accountmanage_unlock",
+                        "isshow": true,
+                        "children": []
+                      },
+                      {
+                        "code": "account_info_manager_btn_logout",
+                        "title": "注销",
+                        "sort": 2,
+                        "type": 2,
+                        "rulekey": "client_accountmanage_close",
+                        "isshow": true,
+                        "children": []
+                      }
+                    ]
+                  }
+                ]
+              },
+              {
+                "code": "account_info_manager_btn_setting",
+                "title": "权限设置",
+                "sort": 1,
+                "type": 2,
+                "rulekey": "",
+                "isshow": true,
+                "children": []
+              }
+            ]
+          },
+          {
+            "code": "account_info_futures",
+            "title": "期货账户",
+            "sort": 2,
+            "type": 1,
+            "rulekey": "client_accountmanage_ta",
+            "isshow": true,
+            "children": [
+              {
+                "code": "account_info_futures_btn_add",
+                "title": "新增",
+                "sort": 1,
+                "type": 2,
+                "rulekey": "client_accountmanage_ta_mainadd",
+                "isshow": true,
+                "remartk": "期货账户 - 新增期货账户",
+                "children": [
+                  {
+                    "code": "account_info_futures_btn_child_add",
+                    "title": "新增",
+                    "sort": 1,
+                    "type": 2,
+                    "rulekey": "client_accountmanage_ta_subadd",
+                    "isshow": true,
+                    "remartk": "期货账户 - 新增期货子账户",
+                    "children": [
+                      {
+                        "code": "account_info_futures_btn_child_credit",
+                        "title": "授信",
+                        "sort": 1,
+                        "type": 2,
+                        "rulekey": "client_accountmanage_ta_subcredit",
+                        "isshow": true,
+                        "children": []
+                      },
+                      {
+                        "code": "account_info_futures_btn_child_modify",
+                        "title": "修改",
+                        "sort": 2,
+                        "type": 2,
+                        "rulekey": "client_accountmanage_ta_subupdate",
+                        "isshow": true,
+                        "children": []
+                      },
+                      {
+                        "code": "account_info_futures_btn_child_cancel",
+                        "title": "注销",
+                        "sort": 2,
+                        "type": 2,
+                        "rulekey": "client_accountmanage_ta_subclose",
+                        "isshow": true,
+                        "children": []
+                      }
+                    ]
+                  },
+                  {
+                    "code": "account_info_futures_btn_modify",
+                    "title": "修改",
+                    "sort": 2,
+                    "type": 2,
+                    "rulekey": "client_accountmanage_ta_mainupdate",
+                    "isshow": true,
+                    "remartk": "期货账户 - 修改期货子账户",
+                    "children": []
+                  }
+                ]
+              }
+            ]
+          }
+        ]
+      }
+    ]
+  },
+  {
+    "code": "business",
+    "title": "业务",
+    "sort": 3,
+    "type": 1,
+    "rulekey": "",
+    "isshow": true,
+    "children": [
+      {
+        "code": "purchase",
+        "title": "采购",
+        "sort": 1,
+        "type": 1,
+        "rulekey": "client_po",
+        "isshow": true,
+        "children": [
+          {
+            "code": "purchase_pending",
+            "title": "待点价",
+            "sort": 1,
+            "type": 1,
+            "rulekey": "client_po_unpoint",
+            "isshow": true,
+            "children": [
+              {
+                "code": "purchase_pending_someprice",
+                "title": "点价登记",
+                "sort": 2,
+                "type": 2,
+                "rulekey": "client_po_point_register",
+                "isshow": true,
+                "children": []
+              }
+            ]
+          },
+          {
+            "code": "purchase_performance",
+            "title": "履约交收",
+            "sort": 2,
+            "type": 1,
+            "rulekey": "client_po_settle",
+            "isshow": true,
+            "children": [
+              {
+                "code": "purchase_pending_settlement",
+                "title": "交收登记",
+                "sort": 2,
+                "type": 2,
+                "rulekey": "client_po_settle_register",
+                "isshow": true,
+                "children": []
+              },
+              {
+                "code": "purchase_pending_funds",
+                "title": "款项登记",
+                "sort": 2,
+                "type": 2,
+                "rulekey": "client_po_fund_register",
+                "isshow": true,
+                "children": []
+              },
+              {
+                "code": "purchase_pending_invoice",
+                "title": "发票登记",
+                "sort": 3,
+                "type": 2,
+                "rulekey": "client_po_invoice_register",
+                "isshow": true,
+                "children": []
+              },
+              {
+                "code": "purchase_pending_storage",
+                "title": "入库登记",
+                "sort": 4,
+                "type": 2,
+                "rulekey": "client_po_instock_register",
+                "isshow": true,
+                "children": []
+              }
+            ]
+          },
+          {
+            "code": "purchase_all",
+            "title": "全部",
+            "sort": 3,
+            "type": 1,
+            "rulekey": "client_po_all",
+            "isshow": true,
+            "children": []
+          }
+        ]
+      },
+      {
+        "code": "sell",
+        "title": "销售",
+        "sort": 2,
+        "type": 1,
+        "rulekey": "client_so",
+        "isshow": true,
+        "children": [
+          {
+            "code": "sell_pending",
+            "title": "待点价",
+            "sort": 1,
+            "type": 1,
+            "rulekey": "client_so_unpoint",
+            "isshow": true,
+            "children": [
+              {
+                "code": "sell_pending_someprice",
+                "title": "点价登记",
+                "sort": 2,
+                "type": 2,
+                "rulekey": "client_so_point_register",
+                "isshow": true,
+                "children": []
+              }
+            ]
+          },
+          {
+            "code": "sell_performance",
+            "title": "履约交收",
+            "sort": 2,
+            "type": 1,
+            "rulekey": "client_so_settle",
+            "isshow": true,
+            "children": [
+              {
+                "code": "sell_pending_settlement",
+                "title": "交收登记",
+                "sort": 2,
+                "type": 2,
+                "rulekey": "client_so_settle_register",
+                "isshow": true,
+                "children": []
+              },
+              {
+                "code": "sell_pending_funds",
+                "title": "款项登记",
+                "sort": 2,
+                "type": 2,
+                "rulekey": "client_so_fund_register",
+                "isshow": true,
+                "children": []
+              },
+              {
+                "code": "sell_pending_invoice",
+                "title": "发票登记",
+                "sort": 3,
+                "type": 2,
+                "rulekey": "client_so_invoice_register",
+                "isshow": true,
+                "children": []
+              },
+              {
+                "code": "sell_pending_storage",
+                "title": "出库登记",
+                "sort": 4,
+                "type": 2,
+                "rulekey": "client_so_outstock_register",
+                "isshow": true,
+                "children": []
+              }
+            ]
+          },
+          {
+            "code": "sell_all",
+            "title": "全部",
+            "sort": 3,
+            "type": 1,
+            "rulekey": "client_so_all",
+            "isshow": true,
+            "children": []
+          }
+        ]
+      },
+      {
+        "code": "exposure",
+        "title": "敞口",
+        "sort": 3,
+        "type": 1,
+        "rulekey": "client_exposure",
+        "isshow": true,
+        "children": [
+          {
+            "code": "exposure_realtime",
+            "title": "实时敞口",
+            "sort": 1,
+            "type": 1,
+            "rulekey": "client_exposure_real",
+            "isshow": true,
+            "children": []
+          },
+          {
+            "code": "exposure_spot",
+            "title": "现货头寸",
+            "sort": 2,
+            "type": 1,
+            "rulekey": "client_exposure_spot",
+            "isshow": true,
+            "children": []
+          },
+          {
+            "code": "exposure_futures",
+            "title": "期货头寸",
+            "sort": 3,
+            "type": 1,
+            "rulekey": "client_exposure_future",
+            "isshow": true,
+            "children": []
+          },
+          {
+            "code": "exposure_history",
+            "title": "历史敞口",
+            "sort": 4,
+            "type": 1,
+            "rulekey": "client_exposure_his",
+            "isshow": true,
+            "children": []
+          }
+        ]
+      },
+      {
+        "code": "plan",
+        "title": "计划",
+        "sort": 4,
+        "type": 1,
+        "rulekey": "client_hedgeplan",
+        "isshow": true,
+        "children": [
+          {
+            "code": "plan_uncommitted",
+            "title": "未提交",
+            "sort": 1,
+            "type": 1,
+            "rulekey": "client_hedgeplan_unsubmit",
+            "isshow": true,
+            "children": [
+              {
+                "code": "plan_btn_add",
+                "title": "新增",
+                "sort": 1,
+                "type": 2,
+                "rulekey": "client_hedgeplan_add",
+                "isshow": true,
+                "children": []
+              },
+              {
+                "code": "plan_uncommitted_modify",
+                "title": "修改",
+                "sort": 3,
+                "type": 2,
+                "rulekey": "client_hedgeplan_update",
+                "isshow": true,
+                "children": []
+              },
+              {
+                "code": "plan_uncommitted_delete",
+                "title": "删除",
+                "sort": 4,
+                "type": 2,
+                "rulekey": "",
+                "isshow": true,
+                "children": []
+              }
+            ]
+          },
+          {
+            "code": "plan_audit",
+            "title": "待审核",
+            "sort": 2,
+            "type": 1,
+            "rulekey": "client_hedgeplan_unaduit",
+            "isshow": true,
+            "children": [
+              {
+                "code": "plan_audit_audit",
+                "title": "审核",
+                "sort": 1,
+                "type": 2,
+                "rulekey": "client_hedgeplan_check",
+                "isshow": true,
+                "children": []
+              },
+              {
+                "code": "plan_audit_cancel",
+                "title": "撤销",
+                "sort": 3,
+                "type": 2,
+                "rulekey": "client_hedgeplan_cancel",
+                "isshow": true,
+                "children": []
+              }
+            ]
+          },
+          {
+            "code": "plan_running",
+            "title": "执行中",
+            "sort": 3,
+            "type": 1,
+            "rulekey": "client_hedgeplan_inprogress",
+            "isshow": true,
+            "children": []
+          }
+        ]
+      }
+    ]
+  },
+  {
+    "code": "manage",
+    "title": "管理",
+    "sort": 4,
+    "type": 1,
+    "rulekey": "",
+    "isshow": true,
+    "children": [
+      {
+        "code": "business_review",
+        "title": "业务审核",
+        "sort": 1,
+        "type": 1,
+        "rulekey": "client_business",
+        "isshow": true,
+        "children": [
+          {
+            "code": "business_review_someprice",
+            "title": "点价",
+            "sort": 1,
+            "type": 1,
+            "rulekey": "client_business_point",
+            "isshow": true,
+            "children": [
+              {
+                "code": "business_review_someprice_audit",
+                "title": "审核",
+                "sort": 1,
+                "type": 2,
+                "rulekey": "client_business_point_check",
+                "isshow": true,
+                "children": []
+              },
+              {
+                "code": "business_review_someprice_cancel",
+                "title": "撤销",
+                "sort": 2,
+                "type": 2,
+                "rulekey": "client_business_point_cancel",
+                "isshow": true,
+                "children": []
+              }
+            ]
+          },
+          {
+            "code": "business_review_settlement",
+            "title": "交收",
+            "sort": 2,
+            "type": 1,
+            "rulekey": "client_business_settle",
+            "isshow": true,
+            "children": [
+              {
+                "code": "business_review_settlement_audit",
+                "title": "审核",
+                "sort": 1,
+                "type": 2,
+                "rulekey": "client_business_settle_check",
+                "isshow": true,
+                "children": []
+              },
+              {
+                "code": "business_review_settlement_cancel",
+                "title": "撤销",
+                "sort": 2,
+                "type": 2,
+                "rulekey": "client_business_settle_cancel",
+                "isshow": true,
+                "children": []
+              }
+            ]
+          }
+        ]
+      },
+      {
+        "code": "finance_review",
+        "title": "财务审核",
+        "sort": 2,
+        "type": 1,
+        "rulekey": "client_finance",
+        "isshow": true,
+        "children": [
+          {
+            "code": "finance_review_funds",
+            "title": "款项",
+            "sort": 1,
+            "type": 1,
+            "rulekey": "client_finance_fund",
+            "isshow": true,
+            "children": [
+              {
+                "code": "finance_review_funds_audit",
+                "title": "审核",
+                "sort": 1,
+                "type": 2,
+                "rulekey": "client_finance_fund_check",
+                "isshow": true,
+                "children": []
+              },
+              {
+                "code": "finance_review_funds_cancel",
+                "title": "撤销",
+                "sort": 2,
+                "type": 2,
+                "rulekey": "client_finance_fund_cancel",
+                "isshow": true,
+                "children": []
+              }
+            ]
+          },
+          {
+            "code": "finance_review_invoice",
+            "title": "发票",
+            "sort": 2,
+            "type": 1,
+            "rulekey": "client_finance_invoice",
+            "isshow": true,
+            "children": [
+              {
+                "code": "finance_review_invoice_audit",
+                "title": "审核",
+                "sort": 1,
+                "type": 2,
+                "rulekey": "client_finance_invoice_check",
+                "isshow": true,
+                "children": []
+              },
+              {
+                "code": "finance_review_invoice_cancel",
+                "title": "撤销",
+                "sort": 2,
+                "type": 2,
+                "rulekey": "client_finance_invoice_cancel",
+                "isshow": true,
+                "children": []
+              }
+            ]
+          }
+        ]
+      },
+      {
+        "code": "inventory_review",
+        "title": "库存审核",
+        "sort": 3,
+        "type": 1,
+        "rulekey": "client_stock_aduit",
+        "isshow": true,
+        "children": [
+          {
+            "code": "inventory_review_checkin",
+            "title": "入库",
+            "sort": 1,
+            "type": 1,
+            "rulekey": "client_stock_in",
+            "isshow": true,
+            "children": [
+              {
+                "code": "inventory_review_checkin_audit",
+                "title": "审核",
+                "sort": 1,
+                "type": 2,
+                "rulekey": "client_stock_in_aduit",
+                "isshow": true,
+                "children": []
+              },
+              {
+                "code": "inventory_review_checkin_cancel",
+                "title": "撤销",
+                "sort": 2,
+                "type": 2,
+                "rulekey": "client_stock_aduit_cancel",
+                "isshow": true,
+                "children": []
+              }
+            ]
+          },
+          {
+            "code": "inventory_review_checkout",
+            "title": "出库",
+            "sort": 2,
+            "type": 1,
+            "rulekey": "client_stock_out",
+            "isshow": true,
+            "children": [
+              {
+                "code": "inventory_review_checkout_audit",
+                "title": "审核",
+                "sort": 1,
+                "type": 2,
+                "rulekey": "client_stock_out_aduit",
+                "isshow": true,
+                "children": []
+              },
+              {
+                "code": "inventory_review_checkout_cancel",
+                "title": "撤销",
+                "sort": 2,
+                "type": 2,
+                "rulekey": "",
+                "isshow": true,
+                "children": []
+              }
+            ]
+          }
+        ]
+      }
+    ]
+  },
+  {
+    "code": "search",
+    "title": "查询",
+    "sort": 5,
+    "type": 1,
+    "rulekey": "",
+    "isshow": true,
+    "children": [
+      {
+        "code": "inventory",
+        "title": "库存查询",
+        "sort": 1,
+        "type": 1,
+        "rulekey": "client_stock_manage",
+        "isshow": true,
+        "children": [
+          {
+            "code": "inventory_current",
+            "title": "当前库存",
+            "sort": 1,
+            "type": 1,
+            "rulekey": "client_stock_manage_current",
+            "isshow": true,
+            "children": []
+          },
+          {
+            "code": "inventory_applyrecord",
+            "title": "申请记录",
+            "sort": 2,
+            "type": 1,
+            "rulekey": "client_stock_manage_applylog",
+            "isshow": true,
+            "children": []
+          }
+        ]
+      },
+      {
+        "code": "outaccount_status",
+        "title": "账户状态",
+        "sort": 2,
+        "type": 1,
+        "rulekey": "",
+        "isshow": true,
+        "children": [
+          {
+            "code": "outaccount_status_status",
+            "title": "账户状态",
+            "sort": 1,
+            "type": 1,
+            "rulekey": "",
+            "isshow": true,
+            "children": []
+          }
+        ]
+      }
+    ]
+  }
+]

+ 32 - 26
models/account.go

@@ -172,32 +172,38 @@ func (Taaccountmarket) TableName() string {
 
 // Useraccount 用户表
 type Useraccount struct {
-	Userid           int64     `json:"userid"  xorm:"'USERID'" binding:"required"`  // 用户ID
-	Usertype         int32     `json:"usertype"  xorm:"'USERTYPE'"`                 // 账户类型 -  1:交易所 2:机构 3:会员子机构 4:经纪人 5:投资者 6:客户
-	Accountname      string    `json:"accountname"  xorm:"'ACCOUNTNAME'"`           // 账户名称(机构名称)
-	Parentuserid     int64     `json:"parentuserid"  xorm:"'PARENTUSERID'"`         // 所属机构ID
-	Broker           int64     `json:"broker"  xorm:"'BROKER'"`                     // 所属经纪人ID
-	Subarealevelpath string    `json:"subarealevelpath"  xorm:"'SUBAREALEVELPATH'"` // 子机构层级路径(逗号分隔,首尾加逗号)
-	Refereeuserid    int64     `json:"refereeuserid"  xorm:"'REFEREEUSERID'"`       // 推荐人ID
-	Memberuserid     int64     `json:"memberuserid"  xorm:"'MEMBERUSERID'"`         // 所属会员ID
-	Accountstatus    int32     `json:"accountstatus"  xorm:"'ACCOUNTSTATUS'"`       // 账户状态 -  1:待激活 2:待审核 3:待复审 4:正常 5:审核拒绝 6:注销
-	Reckonaccountid  int64     `json:"reckonaccountid"  xorm:"'RECKONACCOUNTID'"`   // 默认结算资金账号ID(机构分润使用) 作废
-	Modifystatus     int32     `json:"modifystatus"  xorm:"'MODIFYSTATUS'"`         // 变更状态 1 未变更 2 变更中 3 变更待审核 4 变更待复核(投资者)
-	Createtime       time.Time `json:"createtime"  xorm:"'CREATETIME'"`             // 创建时间
-	Creatorid        int64     `json:"creatorid"  xorm:"'CREATORID'"`               // 创建人
-	Audittime        time.Time `json:"audittime"  xorm:"'AUDITTIME'"`               // 审核时间
-	Audituserid      int64     `json:"audituserid"  xorm:"'AUDITUSERID'"`           // 审核人
-	Auditremark      string    `json:"auditremark"  xorm:"'AUDITREMARK'"`           // 审核备注
-	Canceltime       time.Time `json:"canceltime"  xorm:"'CANCELTIME'"`             // 销户时间
-	Canceluserid     int64     `json:"canceluserid"  xorm:"'CANCELUSERID'"`         // 销户人
-	Modifytime       time.Time `json:"modifytime"  xorm:"'MODIFYTIME'"`             // 修改时间
-	Modifierid       int64     `json:"modifierid"  xorm:"'MODIFIERID'"`             // 修改人
-	Modifyremark     string    `json:"modifyremark"  xorm:"'MODIFYREMARK'"`         // 变更备注
-	Maxinvestornum   int64     `json:"maxinvestornum"  xorm:"'MAXINVESTORNUM'"`     // 最大用户数(经纪会员下投资者个数)
-	Hasauth          int32     `json:"hasauth"  xorm:"'HASAUTH'"`                   // 是否已实名认证 - 0:未认证 1:已认证 2:已提交(待审核) 3:已拒绝
-	Refercount       int32     `json:"refercount"  xorm:"'REFERCOUNT'"`             // 推荐总人数
-	Refernum         string    `json:"refernum"  xorm:"'REFERNUM'"`                 // 推荐码
-	Isanonymous      int32     `json:"isanonymous"  xorm:"'ISANONYMOUS'"`           // 是否匿名下单 - 0:否 1:是
+	Userid           int64     `json:"userid"  xorm:"USERID" binding:"required"`  // 用户ID
+	Usertype         int32     `json:"usertype"  xorm:"USERTYPE"`                 // 账户类型 -  1:交易所 2:机构 3:会员子机构 4:经纪人 5:投资者 6:客户 7:企业成员(云平台)
+	Modifystatus     int32     `json:"modifystatus"  xorm:"MODIFYSTATUS"`         // 变更状态 1 未变更 2 变更中 3 变更待审核 4 变更待复核(投资者)
+	Accountname      string    `json:"accountname"  xorm:"ACCOUNTNAME"`           // 账户名称(机构名称)
+	Parentuserid     int64     `json:"parentuserid"  xorm:"PARENTUSERID"`         // 所属机构ID
+	Broker           int64     `json:"broker"  xorm:"BROKER"`                     // 所属经纪人ID
+	Subarealevelpath string    `json:"subarealevelpath"  xorm:"SUBAREALEVELPATH"` // 子机构层级路径(逗号分隔,首尾加逗号)
+	Refereeuserid    int64     `json:"refereeuserid"  xorm:"REFEREEUSERID"`       // 推荐人ID
+	Memberuserid     int64     `json:"memberuserid"  xorm:"MEMBERUSERID"`         // 所属会员ID
+	Accountstatus    int32     `json:"accountstatus"  xorm:"ACCOUNTSTATUS"`       // 账户状态 -  1:待激活 2:待审核 3:待复审 4:正常 5:审核拒绝 6:停用(注销) 7:注销(删除)
+	Reckonaccountid  int64     `json:"reckonaccountid"  xorm:"RECKONACCOUNTID"`   // 默认结算资金账号ID(机构分润使用) 作废
+	Createtime       time.Time `json:"createtime"  xorm:"CREATETIME"`             // 创建时间
+	Creatorid        int64     `json:"creatorid"  xorm:"CREATORID"`               // 创建人
+	Audittime        time.Time `json:"audittime"  xorm:"AUDITTIME"`               // 审核时间
+	Audituserid      int64     `json:"audituserid"  xorm:"AUDITUSERID"`           // 审核人
+	Auditremark      string    `json:"auditremark"  xorm:"AUDITREMARK"`           // 审核备注
+	Canceltime       time.Time `json:"canceltime"  xorm:"CANCELTIME"`             // 销户时间
+	Canceluserid     int64     `json:"canceluserid"  xorm:"CANCELUSERID"`         // 销户人
+	Modifytime       time.Time `json:"modifytime"  xorm:"MODIFYTIME"`             // 修改时间
+	Modifierid       int64     `json:"modifierid"  xorm:"MODIFIERID"`             // 修改人
+	Modifyremark     string    `json:"modifyremark"  xorm:"MODIFYREMARK"`         // 变更备注
+	Maxinvestornum   int64     `json:"maxinvestornum"  xorm:"MAXINVESTORNUM"`     // 最大用户数(经纪会员下投资者个数)
+	Hasauth          int32     `json:"hasauth"  xorm:"HASAUTH"`                   // 是否已实名认证 - 0:未认证 1:已认证 2:已提交(待审核) 3:已拒绝
+	Refercount       int32     `json:"refercount"  xorm:"REFERCOUNT"`             // 推荐总人数
+	Refernum         string    `json:"refernum"  xorm:"REFERNUM"`                 // 推荐码
+	Isanonymous      int32     `json:"isanonymous"  xorm:"ISANONYMOUS"`           // 是否匿名下单 - 0:否 1:是
+	Parenttopuser    string    `json:"parenttopuser"  xorm:"PARENTTOPUSER"`       // 上级顶级机构 [092=0,1时,默认为1, 092=2时若自已为顶级,则填入自己,自己不为顶级,填入ParentUserID的"ParentTopUser"]
+	Subaccountlevel  int32     `json:"subaccountlevel"  xorm:"SUBACCOUNTLEVEL"`   // 子账户层数
+	Applysrc         int32     `json:"applysrc"  xorm:"APPLYSRC"`                 // 申请来源 - 1:管理端 2:终端
+	Auditsrc         int32     `json:"auditsrc"  xorm:"AUDITSRC"`                 // 审核来源 - 1:管理端 2:终端
+	Rootuserid       int64     `json:"rootuserid"  xorm:"ROOTUSERID"`             // 根用户ID
+	Canrecommend     int32     `json:"canrecommend"  xorm:"CANRECOMMEND"`         // 是否可推荐 - 0:不可 1;可
 }
 
 // TableName is USERACCOUNT