<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                [TOC] **接口測試實戰-人員+部門操作** ## 1. 人員操作 ``` # -*- encoding: utf-8 -*- ''' user/addUserWithId.html user/delete.html user/update_by_login.html user/get_info.html ''' import requests import random # (1)user/addUserWithId 新增人員(傳入用戶id) addUserWithId_url = 'http://192.168.0.212:8000/api/user/addUserWithId.html' # (2)user/delete 刪除人員 delete_url = 'http://192.168.0.212:8000/api/user/delete.html' def post(url, data): response = requests.post(url, data) res = str(response.content, encoding="utf-8") return res str_random = str(random.randint(200, 999)) for i in range(1000): # user/addUserWithId 新增人員(傳入用戶id) data = {"uid": 4, "app_id": "system", "authen": "0cc0820da3686a981af77a992d18345229a79b607c47f0462c870a5ccfa887eb", "dept_id": "557", "id": str_random + str(i), "user_login": "ff" + str_random + str(i), "user_name": "ff" + str_random + str(i), # "user_name": "ff", "user_pwd": "1", "user_pwd_type": "1", "user_order_id": "1000" } print(post(addUserWithId_url, data)) # user/delete 刪除人員 for i in range(5): data = {"uid": 4, "app_id": "system", "authen": "0cc0820da3686a981af77a992d18345229a79b607c47f0462c870a5ccfa887eb", "user_login": "qq" + str_random + str(i), # "user_login": "zs", } print(post(delete_url, data)) # (3)user/update_by_login 更新人員 url = 'http://192.168.0.212:8000/api/user/update_by_login.html' data = {"uid": 4, "app_id": "system", "authen": "0cc0820da3686a981af77a992d18345229a79b607c47f0462c870a5ccfa887eb", "dept_id": "121", "update_user_login": "qq", } print(post(url, data)) # (4)user/get_info 查看人員 url = 'http://192.168.0.212:8000/api/user/get_info.html' data = {"uid": 4, "app_id": "system", "authen": "0cc0820da3686a981af77a992d18345229a79b607c47f0462c870a5ccfa887eb", "dept_id": "121", "user_login": "admin", } print(post(url, data)) ``` <br /> ## 2. 部門操作 ``` # -*- encoding: utf-8 -*- ''' dept/add_by_id.html dept/delete_by_id.html dept/all_dept_list.html ''' # import json import requests # requests請求方式 # (1)dept/add_by_id 根據部門id新增部門 url = 'http://192.168.0.212:8000/api/dept/add_by_id.html' data = {"uid": 4, "app_id": "system", "authen": "0cc0820da3686a981af77a992d18345229a79b607c47f0462c870a5ccfa887eb", "dept_id": "21", "dept_name": "ceshi65", "dept_parent_id": "120", } response = requests.post(url, data) res = str(response.content, encoding="utf-8") print(res) # (2)dept/delete_by_id 根據部門id刪除部門 url = 'http://192.168.0.212:8000/api/dept/delete_by_id.html' data = {"uid": 4, "app_id": "system", "authen": "0cc0820da3686a981af77a992d18345229a79b607c47f0462c870a5ccfa887eb", "dept_id": "21", } response = requests.post(url, data) res = str(response.content, encoding="utf-8") print(res) # (3)dept/all_dept_list 所有部門結構 url = 'http://192.168.0.212:8000/api/dept/all_dept_list.html' data = {"uid": 4, "app_id": "system", "authen": "0cc0820da3686a981af77a992d18345229a79b607c47f0462c870a5ccfa887eb", } response = requests.get(url, data) res = str(response.content, encoding="utf-8") print(res) ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看