private void SubmitChange_Click(object sender, RoutedEventArgs e)
        {
            //构造jdata
            var auths       = UserAuthChoice.toArray().Concat(ManageAuthChoice.toArray()).map(i => (Authority)Enum.Parse(typeof(Authority), i)) as Authority[];
            var auth_number = AuthorityItem.getAuthorityNumber(auths);
            var data        = $@"{{
                ""auth"":""${auth_number}""
            }}";
            //发送请求
            var res = User.Api["api/user/auth"][selected].Update(data);

            if (res.statuslike("2**"))
            {
                NavigatorPage.MsgSystem.Show(null, "提示", "提交成功。");
            }
            else
            {
                NavigatorPage.MsgSystem.Show(null, "错误", res.content);
            }
        }
        private void SubmitQuery_Click(object sender, RoutedEventArgs e)
        {
            selected = UserText.Text;
            var res = User.Api["api/user/auth/"][selected].Retrieve();

            if (res.statuslike("2**"))
            {
                try {
                    var inst        = res.instance;
                    var auth_number = long.Parse(inst["auth"].ToString());
                    UserName.Text = inst["name"].ToString();
                    var auths = AuthorityItem.getAuthorityArray(auth_number).map(i => i.ToString()) as string[];
                    UserAuthChoice.setByItem(auths);
                    ManageAuthChoice.setByItem(auths);
                } catch (Exception exception) {
                    NavigatorPage.MsgSystem.Show(null, "应用程序错误", exception.ToString());
                }
            }
            else
            {
                NavigatorPage.MsgSystem.Show(null, "错误", res.content);
            }
        }