Example #1
0
        /// <summary>
        /// 更新部门
        /// </summary>
        /// <param name="request"></param>
        /// <param name="accessToken"></param>
        /// <returns></returns>
        public QyResult UpdateDepartment(CreateDepartmentRequest request, string accessToken)
        {
            string url    = string.Format("{0}department/update?access_token={1}", baseUrl, accessToken);
            var    result = HttpHelper.HttpPost.GetJsonResult <CreateDepartmentRequest, QyResult>(url, request);

            return(result);
        }
Example #2
0
        /// <summary>
        /// 创建部门
        /// </summary>
        /// <param name="request"></param>
        /// <param name="accessToken"></param>
        /// <returns></returns>
        public CreateDepartmentResult CreateDepartment(CreateDepartmentRequest request, string accessToken)
        {
            string url = string.Format("{0}department/create?access_token={1}", baseUrl, accessToken);

            return(HttpHelper.HttpPost.GetJsonResult <CreateDepartmentRequest, CreateDepartmentResult>(url, request));
        }