lejianwen 1 год назад
Родитель
Сommit
56b9c66cb8
6 измененных файлов с 623 добавлено и 365 удалено
  1. 205 69
      docs/admin/admin_docs.go
  2. 205 69
      docs/admin/admin_swagger.json
  3. 126 43
      docs/admin/admin_swagger.yaml
  4. 33 70
      docs/api/api_docs.go
  5. 33 70
      docs/api/api_swagger.json
  6. 21 44
      docs/api/api_swagger.yaml

+ 205 - 69
docs/admin/admin_docs.go

@@ -981,40 +981,6 @@ const docTemplateadmin = `{
981 981
                 }
982 982
             }
983 983
         },
984
-        "/admin/app-config": {
985
-            "get": {
986
-                "security": [
987
-                    {
988
-                        "token": []
989
-                    }
990
-                ],
991
-                "description": "APP服务配置",
992
-                "consumes": [
993
-                    "application/json"
994
-                ],
995
-                "produces": [
996
-                    "application/json"
997
-                ],
998
-                "tags": [
999
-                    "ADMIN"
1000
-                ],
1001
-                "summary": "APP服务配置",
1002
-                "responses": {
1003
-                    "200": {
1004
-                        "description": "OK",
1005
-                        "schema": {
1006
-                            "$ref": "#/definitions/response.Response"
1007
-                        }
1008
-                    },
1009
-                    "500": {
1010
-                        "description": "Internal Server Error",
1011
-                        "schema": {
1012
-                            "$ref": "#/definitions/response.Response"
1013
-                        }
1014
-                    }
1015
-                }
1016
-            }
1017
-        },
1018 984
         "/admin/audit_conn/batchDelete": {
1019 985
             "post": {
1020 986
                 "security": [
@@ -1881,7 +1847,7 @@ const docTemplateadmin = `{
1881 1847
                 }
1882 1848
             }
1883 1849
         },
1884
-        "/admin/login_log/delete": {
1850
+        "/admin/login_log/batchDelete": {
1885 1851
             "post": {
1886 1852
                 "security": [
1887 1853
                     {
@@ -1926,6 +1892,51 @@ const docTemplateadmin = `{
1926 1892
                 }
1927 1893
             }
1928 1894
         },
1895
+        "/admin/login_log/delete": {
1896
+            "post": {
1897
+                "security": [
1898
+                    {
1899
+                        "token": []
1900
+                    }
1901
+                ],
1902
+                "description": "登录日志删除",
1903
+                "consumes": [
1904
+                    "application/json"
1905
+                ],
1906
+                "produces": [
1907
+                    "application/json"
1908
+                ],
1909
+                "tags": [
1910
+                    "登录日志"
1911
+                ],
1912
+                "summary": "登录日志删除",
1913
+                "parameters": [
1914
+                    {
1915
+                        "description": "登录日志信息",
1916
+                        "name": "body",
1917
+                        "in": "body",
1918
+                        "required": true,
1919
+                        "schema": {
1920
+                            "$ref": "#/definitions/model.LoginLog"
1921
+                        }
1922
+                    }
1923
+                ],
1924
+                "responses": {
1925
+                    "200": {
1926
+                        "description": "OK",
1927
+                        "schema": {
1928
+                            "$ref": "#/definitions/response.Response"
1929
+                        }
1930
+                    },
1931
+                    "500": {
1932
+                        "description": "Internal Server Error",
1933
+                        "schema": {
1934
+                            "$ref": "#/definitions/response.Response"
1935
+                        }
1936
+                    }
1937
+                }
1938
+            }
1939
+        },
1929 1940
         "/admin/login_log/detail/{id}": {
1930 1941
             "get": {
1931 1942
                 "security": [
@@ -2757,6 +2768,162 @@ const docTemplateadmin = `{
2757 2768
                 }
2758 2769
             }
2759 2770
         },
2771
+        "/admin/my/login_log/batchDelete": {
2772
+            "post": {
2773
+                "security": [
2774
+                    {
2775
+                        "token": []
2776
+                    }
2777
+                ],
2778
+                "description": "登录日志批量删除",
2779
+                "consumes": [
2780
+                    "application/json"
2781
+                ],
2782
+                "produces": [
2783
+                    "application/json"
2784
+                ],
2785
+                "tags": [
2786
+                    "我的登录日志"
2787
+                ],
2788
+                "summary": "登录日志批量删除",
2789
+                "parameters": [
2790
+                    {
2791
+                        "description": "登录日志",
2792
+                        "name": "body",
2793
+                        "in": "body",
2794
+                        "required": true,
2795
+                        "schema": {
2796
+                            "$ref": "#/definitions/admin.LoginLogIds"
2797
+                        }
2798
+                    }
2799
+                ],
2800
+                "responses": {
2801
+                    "200": {
2802
+                        "description": "OK",
2803
+                        "schema": {
2804
+                            "$ref": "#/definitions/response.Response"
2805
+                        }
2806
+                    },
2807
+                    "500": {
2808
+                        "description": "Internal Server Error",
2809
+                        "schema": {
2810
+                            "$ref": "#/definitions/response.Response"
2811
+                        }
2812
+                    }
2813
+                }
2814
+            }
2815
+        },
2816
+        "/admin/my/login_log/delete": {
2817
+            "post": {
2818
+                "security": [
2819
+                    {
2820
+                        "token": []
2821
+                    }
2822
+                ],
2823
+                "description": "登录日志删除",
2824
+                "consumes": [
2825
+                    "application/json"
2826
+                ],
2827
+                "produces": [
2828
+                    "application/json"
2829
+                ],
2830
+                "tags": [
2831
+                    "我的登录日志"
2832
+                ],
2833
+                "summary": "登录日志删除",
2834
+                "parameters": [
2835
+                    {
2836
+                        "description": "登录日志信息",
2837
+                        "name": "body",
2838
+                        "in": "body",
2839
+                        "required": true,
2840
+                        "schema": {
2841
+                            "$ref": "#/definitions/model.LoginLog"
2842
+                        }
2843
+                    }
2844
+                ],
2845
+                "responses": {
2846
+                    "200": {
2847
+                        "description": "OK",
2848
+                        "schema": {
2849
+                            "$ref": "#/definitions/response.Response"
2850
+                        }
2851
+                    },
2852
+                    "500": {
2853
+                        "description": "Internal Server Error",
2854
+                        "schema": {
2855
+                            "$ref": "#/definitions/response.Response"
2856
+                        }
2857
+                    }
2858
+                }
2859
+            }
2860
+        },
2861
+        "/admin/my/login_log/list": {
2862
+            "get": {
2863
+                "security": [
2864
+                    {
2865
+                        "token": []
2866
+                    }
2867
+                ],
2868
+                "description": "登录日志列表",
2869
+                "consumes": [
2870
+                    "application/json"
2871
+                ],
2872
+                "produces": [
2873
+                    "application/json"
2874
+                ],
2875
+                "tags": [
2876
+                    "我的登录日志"
2877
+                ],
2878
+                "summary": "登录日志列表",
2879
+                "parameters": [
2880
+                    {
2881
+                        "type": "integer",
2882
+                        "description": "页码",
2883
+                        "name": "page",
2884
+                        "in": "query"
2885
+                    },
2886
+                    {
2887
+                        "type": "integer",
2888
+                        "description": "页大小",
2889
+                        "name": "page_size",
2890
+                        "in": "query"
2891
+                    },
2892
+                    {
2893
+                        "type": "integer",
2894
+                        "description": "用户ID",
2895
+                        "name": "user_id",
2896
+                        "in": "query"
2897
+                    }
2898
+                ],
2899
+                "responses": {
2900
+                    "200": {
2901
+                        "description": "OK",
2902
+                        "schema": {
2903
+                            "allOf": [
2904
+                                {
2905
+                                    "$ref": "#/definitions/response.Response"
2906
+                                },
2907
+                                {
2908
+                                    "type": "object",
2909
+                                    "properties": {
2910
+                                        "data": {
2911
+                                            "$ref": "#/definitions/model.LoginLogList"
2912
+                                        }
2913
+                                    }
2914
+                                }
2915
+                            ]
2916
+                        }
2917
+                    },
2918
+                    "500": {
2919
+                        "description": "Internal Server Error",
2920
+                        "schema": {
2921
+                            "$ref": "#/definitions/response.Response"
2922
+                        }
2923
+                    }
2924
+                }
2925
+            }
2926
+        },
2760 2927
         "/admin/my/peer/list": {
2761 2928
             "get": {
2762 2929
                 "security": [
@@ -3884,40 +4051,6 @@ const docTemplateadmin = `{
3884 4051
                 }
3885 4052
             }
3886 4053
         },
3887
-        "/admin/server-config": {
3888
-            "get": {
3889
-                "security": [
3890
-                    {
3891
-                        "token": []
3892
-                    }
3893
-                ],
3894
-                "description": "服务配置,给webclient提供api-server",
3895
-                "consumes": [
3896
-                    "application/json"
3897
-                ],
3898
-                "produces": [
3899
-                    "application/json"
3900
-                ],
3901
-                "tags": [
3902
-                    "ADMIN"
3903
-                ],
3904
-                "summary": "RUSTDESK服务配置",
3905
-                "responses": {
3906
-                    "200": {
3907
-                        "description": "OK",
3908
-                        "schema": {
3909
-                            "$ref": "#/definitions/response.Response"
3910
-                        }
3911
-                    },
3912
-                    "500": {
3913
-                        "description": "Internal Server Error",
3914
-                        "schema": {
3915
-                            "$ref": "#/definitions/response.Response"
3916
-                        }
3917
-                    }
3918
-                }
3919
-            }
3920
-        },
3921 4054
         "/admin/share_record/batchDelete": {
3922 4055
             "post": {
3923 4056
                 "security": [
@@ -5768,6 +5901,9 @@ const docTemplateadmin = `{
5768 5901
                 "ip": {
5769 5902
                     "type": "string"
5770 5903
                 },
5904
+                "is_deleted": {
5905
+                    "type": "integer"
5906
+                },
5771 5907
                 "platform": {
5772 5908
                     "description": "windows,linux,mac,android,ios",
5773 5909
                     "type": "string"

+ 205 - 69
docs/admin/admin_swagger.json

@@ -974,40 +974,6 @@
974 974
                 }
975 975
             }
976 976
         },
977
-        "/admin/app-config": {
978
-            "get": {
979
-                "security": [
980
-                    {
981
-                        "token": []
982
-                    }
983
-                ],
984
-                "description": "APP服务配置",
985
-                "consumes": [
986
-                    "application/json"
987
-                ],
988
-                "produces": [
989
-                    "application/json"
990
-                ],
991
-                "tags": [
992
-                    "ADMIN"
993
-                ],
994
-                "summary": "APP服务配置",
995
-                "responses": {
996
-                    "200": {
997
-                        "description": "OK",
998
-                        "schema": {
999
-                            "$ref": "#/definitions/response.Response"
1000
-                        }
1001
-                    },
1002
-                    "500": {
1003
-                        "description": "Internal Server Error",
1004
-                        "schema": {
1005
-                            "$ref": "#/definitions/response.Response"
1006
-                        }
1007
-                    }
1008
-                }
1009
-            }
1010
-        },
1011 977
         "/admin/audit_conn/batchDelete": {
1012 978
             "post": {
1013 979
                 "security": [
@@ -1874,7 +1840,7 @@
1874 1840
                 }
1875 1841
             }
1876 1842
         },
1877
-        "/admin/login_log/delete": {
1843
+        "/admin/login_log/batchDelete": {
1878 1844
             "post": {
1879 1845
                 "security": [
1880 1846
                     {
@@ -1919,6 +1885,51 @@
1919 1885
                 }
1920 1886
             }
1921 1887
         },
1888
+        "/admin/login_log/delete": {
1889
+            "post": {
1890
+                "security": [
1891
+                    {
1892
+                        "token": []
1893
+                    }
1894
+                ],
1895
+                "description": "登录日志删除",
1896
+                "consumes": [
1897
+                    "application/json"
1898
+                ],
1899
+                "produces": [
1900
+                    "application/json"
1901
+                ],
1902
+                "tags": [
1903
+                    "登录日志"
1904
+                ],
1905
+                "summary": "登录日志删除",
1906
+                "parameters": [
1907
+                    {
1908
+                        "description": "登录日志信息",
1909
+                        "name": "body",
1910
+                        "in": "body",
1911
+                        "required": true,
1912
+                        "schema": {
1913
+                            "$ref": "#/definitions/model.LoginLog"
1914
+                        }
1915
+                    }
1916
+                ],
1917
+                "responses": {
1918
+                    "200": {
1919
+                        "description": "OK",
1920
+                        "schema": {
1921
+                            "$ref": "#/definitions/response.Response"
1922
+                        }
1923
+                    },
1924
+                    "500": {
1925
+                        "description": "Internal Server Error",
1926
+                        "schema": {
1927
+                            "$ref": "#/definitions/response.Response"
1928
+                        }
1929
+                    }
1930
+                }
1931
+            }
1932
+        },
1922 1933
         "/admin/login_log/detail/{id}": {
1923 1934
             "get": {
1924 1935
                 "security": [
@@ -2750,6 +2761,162 @@
2750 2761
                 }
2751 2762
             }
2752 2763
         },
2764
+        "/admin/my/login_log/batchDelete": {
2765
+            "post": {
2766
+                "security": [
2767
+                    {
2768
+                        "token": []
2769
+                    }
2770
+                ],
2771
+                "description": "登录日志批量删除",
2772
+                "consumes": [
2773
+                    "application/json"
2774
+                ],
2775
+                "produces": [
2776
+                    "application/json"
2777
+                ],
2778
+                "tags": [
2779
+                    "我的登录日志"
2780
+                ],
2781
+                "summary": "登录日志批量删除",
2782
+                "parameters": [
2783
+                    {
2784
+                        "description": "登录日志",
2785
+                        "name": "body",
2786
+                        "in": "body",
2787
+                        "required": true,
2788
+                        "schema": {
2789
+                            "$ref": "#/definitions/admin.LoginLogIds"
2790
+                        }
2791
+                    }
2792
+                ],
2793
+                "responses": {
2794
+                    "200": {
2795
+                        "description": "OK",
2796
+                        "schema": {
2797
+                            "$ref": "#/definitions/response.Response"
2798
+                        }
2799
+                    },
2800
+                    "500": {
2801
+                        "description": "Internal Server Error",
2802
+                        "schema": {
2803
+                            "$ref": "#/definitions/response.Response"
2804
+                        }
2805
+                    }
2806
+                }
2807
+            }
2808
+        },
2809
+        "/admin/my/login_log/delete": {
2810
+            "post": {
2811
+                "security": [
2812
+                    {
2813
+                        "token": []
2814
+                    }
2815
+                ],
2816
+                "description": "登录日志删除",
2817
+                "consumes": [
2818
+                    "application/json"
2819
+                ],
2820
+                "produces": [
2821
+                    "application/json"
2822
+                ],
2823
+                "tags": [
2824
+                    "我的登录日志"
2825
+                ],
2826
+                "summary": "登录日志删除",
2827
+                "parameters": [
2828
+                    {
2829
+                        "description": "登录日志信息",
2830
+                        "name": "body",
2831
+                        "in": "body",
2832
+                        "required": true,
2833
+                        "schema": {
2834
+                            "$ref": "#/definitions/model.LoginLog"
2835
+                        }
2836
+                    }
2837
+                ],
2838
+                "responses": {
2839
+                    "200": {
2840
+                        "description": "OK",
2841
+                        "schema": {
2842
+                            "$ref": "#/definitions/response.Response"
2843
+                        }
2844
+                    },
2845
+                    "500": {
2846
+                        "description": "Internal Server Error",
2847
+                        "schema": {
2848
+                            "$ref": "#/definitions/response.Response"
2849
+                        }
2850
+                    }
2851
+                }
2852
+            }
2853
+        },
2854
+        "/admin/my/login_log/list": {
2855
+            "get": {
2856
+                "security": [
2857
+                    {
2858
+                        "token": []
2859
+                    }
2860
+                ],
2861
+                "description": "登录日志列表",
2862
+                "consumes": [
2863
+                    "application/json"
2864
+                ],
2865
+                "produces": [
2866
+                    "application/json"
2867
+                ],
2868
+                "tags": [
2869
+                    "我的登录日志"
2870
+                ],
2871
+                "summary": "登录日志列表",
2872
+                "parameters": [
2873
+                    {
2874
+                        "type": "integer",
2875
+                        "description": "页码",
2876
+                        "name": "page",
2877
+                        "in": "query"
2878
+                    },
2879
+                    {
2880
+                        "type": "integer",
2881
+                        "description": "页大小",
2882
+                        "name": "page_size",
2883
+                        "in": "query"
2884
+                    },
2885
+                    {
2886
+                        "type": "integer",
2887
+                        "description": "用户ID",
2888
+                        "name": "user_id",
2889
+                        "in": "query"
2890
+                    }
2891
+                ],
2892
+                "responses": {
2893
+                    "200": {
2894
+                        "description": "OK",
2895
+                        "schema": {
2896
+                            "allOf": [
2897
+                                {
2898
+                                    "$ref": "#/definitions/response.Response"
2899
+                                },
2900
+                                {
2901
+                                    "type": "object",
2902
+                                    "properties": {
2903
+                                        "data": {
2904
+                                            "$ref": "#/definitions/model.LoginLogList"
2905
+                                        }
2906
+                                    }
2907
+                                }
2908
+                            ]
2909
+                        }
2910
+                    },
2911
+                    "500": {
2912
+                        "description": "Internal Server Error",
2913
+                        "schema": {
2914
+                            "$ref": "#/definitions/response.Response"
2915
+                        }
2916
+                    }
2917
+                }
2918
+            }
2919
+        },
2753 2920
         "/admin/my/peer/list": {
2754 2921
             "get": {
2755 2922
                 "security": [
@@ -3877,40 +4044,6 @@
3877 4044
                 }
3878 4045
             }
3879 4046
         },
3880
-        "/admin/server-config": {
3881
-            "get": {
3882
-                "security": [
3883
-                    {
3884
-                        "token": []
3885
-                    }
3886
-                ],
3887
-                "description": "服务配置,给webclient提供api-server",
3888
-                "consumes": [
3889
-                    "application/json"
3890
-                ],
3891
-                "produces": [
3892
-                    "application/json"
3893
-                ],
3894
-                "tags": [
3895
-                    "ADMIN"
3896
-                ],
3897
-                "summary": "RUSTDESK服务配置",
3898
-                "responses": {
3899
-                    "200": {
3900
-                        "description": "OK",
3901
-                        "schema": {
3902
-                            "$ref": "#/definitions/response.Response"
3903
-                        }
3904
-                    },
3905
-                    "500": {
3906
-                        "description": "Internal Server Error",
3907
-                        "schema": {
3908
-                            "$ref": "#/definitions/response.Response"
3909
-                        }
3910
-                    }
3911
-                }
3912
-            }
3913
-        },
3914 4047
         "/admin/share_record/batchDelete": {
3915 4048
             "post": {
3916 4049
                 "security": [
@@ -5761,6 +5894,9 @@
5761 5894
                 "ip": {
5762 5895
                     "type": "string"
5763 5896
                 },
5897
+                "is_deleted": {
5898
+                    "type": "integer"
5899
+                },
5764 5900
                 "platform": {
5765 5901
                     "description": "windows,linux,mac,android,ios",
5766 5902
                     "type": "string"

+ 126 - 43
docs/admin/admin_swagger.yaml

@@ -531,6 +531,8 @@ definitions:
531 531
         type: integer
532 532
       ip:
533 533
         type: string
534
+      is_deleted:
535
+        type: integer
534 536
       platform:
535 537
         description: windows,linux,mac,android,ios
536 538
         type: string
@@ -1347,27 +1349,6 @@ paths:
1347 1349
       summary: 地址簿规则编辑
1348 1350
       tags:
1349 1351
       - 地址簿规则
1350
-  /admin/app-config:
1351
-    get:
1352
-      consumes:
1353
-      - application/json
1354
-      description: APP服务配置
1355
-      produces:
1356
-      - application/json
1357
-      responses:
1358
-        "200":
1359
-          description: OK
1360
-          schema:
1361
-            $ref: '#/definitions/response.Response'
1362
-        "500":
1363
-          description: Internal Server Error
1364
-          schema:
1365
-            $ref: '#/definitions/response.Response'
1366
-      security:
1367
-      - token: []
1368
-      summary: APP服务配置
1369
-      tags:
1370
-      - ADMIN
1371 1352
   /admin/audit_conn/batchDelete:
1372 1353
     post:
1373 1354
       consumes:
@@ -1892,7 +1873,7 @@ paths:
1892 1873
       summary: 登录选项
1893 1874
       tags:
1894 1875
       - 登录
1895
-  /admin/login_log/delete:
1876
+  /admin/login_log/batchDelete:
1896 1877
     post:
1897 1878
       consumes:
1898 1879
       - application/json
@@ -1920,6 +1901,34 @@ paths:
1920 1901
       summary: 登录日志批量删除
1921 1902
       tags:
1922 1903
       - 登录日志
1904
+  /admin/login_log/delete:
1905
+    post:
1906
+      consumes:
1907
+      - application/json
1908
+      description: 登录日志删除
1909
+      parameters:
1910
+      - description: 登录日志信息
1911
+        in: body
1912
+        name: body
1913
+        required: true
1914
+        schema:
1915
+          $ref: '#/definitions/model.LoginLog'
1916
+      produces:
1917
+      - application/json
1918
+      responses:
1919
+        "200":
1920
+          description: OK
1921
+          schema:
1922
+            $ref: '#/definitions/response.Response'
1923
+        "500":
1924
+          description: Internal Server Error
1925
+          schema:
1926
+            $ref: '#/definitions/response.Response'
1927
+      security:
1928
+      - token: []
1929
+      summary: 登录日志删除
1930
+      tags:
1931
+      - 登录日志
1923 1932
   /admin/login_log/detail/{id}:
1924 1933
     get:
1925 1934
       consumes:
@@ -2413,6 +2422,101 @@ paths:
2413 2422
       summary: 地址簿规则编辑
2414 2423
       tags:
2415 2424
       - 我的地址簿规则
2425
+  /admin/my/login_log/batchDelete:
2426
+    post:
2427
+      consumes:
2428
+      - application/json
2429
+      description: 登录日志批量删除
2430
+      parameters:
2431
+      - description: 登录日志
2432
+        in: body
2433
+        name: body
2434
+        required: true
2435
+        schema:
2436
+          $ref: '#/definitions/admin.LoginLogIds'
2437
+      produces:
2438
+      - application/json
2439
+      responses:
2440
+        "200":
2441
+          description: OK
2442
+          schema:
2443
+            $ref: '#/definitions/response.Response'
2444
+        "500":
2445
+          description: Internal Server Error
2446
+          schema:
2447
+            $ref: '#/definitions/response.Response'
2448
+      security:
2449
+      - token: []
2450
+      summary: 登录日志批量删除
2451
+      tags:
2452
+      - 我的登录日志
2453
+  /admin/my/login_log/delete:
2454
+    post:
2455
+      consumes:
2456
+      - application/json
2457
+      description: 登录日志删除
2458
+      parameters:
2459
+      - description: 登录日志信息
2460
+        in: body
2461
+        name: body
2462
+        required: true
2463
+        schema:
2464
+          $ref: '#/definitions/model.LoginLog'
2465
+      produces:
2466
+      - application/json
2467
+      responses:
2468
+        "200":
2469
+          description: OK
2470
+          schema:
2471
+            $ref: '#/definitions/response.Response'
2472
+        "500":
2473
+          description: Internal Server Error
2474
+          schema:
2475
+            $ref: '#/definitions/response.Response'
2476
+      security:
2477
+      - token: []
2478
+      summary: 登录日志删除
2479
+      tags:
2480
+      - 我的登录日志
2481
+  /admin/my/login_log/list:
2482
+    get:
2483
+      consumes:
2484
+      - application/json
2485
+      description: 登录日志列表
2486
+      parameters:
2487
+      - description: 页码
2488
+        in: query
2489
+        name: page
2490
+        type: integer
2491
+      - description: 页大小
2492
+        in: query
2493
+        name: page_size
2494
+        type: integer
2495
+      - description: 用户ID
2496
+        in: query
2497
+        name: user_id
2498
+        type: integer
2499
+      produces:
2500
+      - application/json
2501
+      responses:
2502
+        "200":
2503
+          description: OK
2504
+          schema:
2505
+            allOf:
2506
+            - $ref: '#/definitions/response.Response'
2507
+            - properties:
2508
+                data:
2509
+                  $ref: '#/definitions/model.LoginLogList'
2510
+              type: object
2511
+        "500":
2512
+          description: Internal Server Error
2513
+          schema:
2514
+            $ref: '#/definitions/response.Response'
2515
+      security:
2516
+      - token: []
2517
+      summary: 登录日志列表
2518
+      tags:
2519
+      - 我的登录日志
2416 2520
   /admin/my/peer/list:
2417 2521
     get:
2418 2522
       consumes:
@@ -3088,27 +3192,6 @@ paths:
3088 3192
       summary: 设备编辑
3089 3193
       tags:
3090 3194
       - 设备
3091
-  /admin/server-config:
3092
-    get:
3093
-      consumes:
3094
-      - application/json
3095
-      description: 服务配置,给webclient提供api-server
3096
-      produces:
3097
-      - application/json
3098
-      responses:
3099
-        "200":
3100
-          description: OK
3101
-          schema:
3102
-            $ref: '#/definitions/response.Response'
3103
-        "500":
3104
-          description: Internal Server Error
3105
-          schema:
3106
-            $ref: '#/definitions/response.Response'
3107
-      security:
3108
-      - token: []
3109
-      summary: RUSTDESK服务配置
3110
-      tags:
3111
-      - ADMIN
3112 3195
   /admin/share_record/batchDelete:
3113 3196
     post:
3114 3197
       consumes:

+ 33 - 70
docs/api/api_docs.go

@@ -653,14 +653,9 @@ const docTemplateapi = `{
653 653
                 }
654 654
             }
655 655
         },
656
-        "/api": {
657
-            "get": {
658
-                "security": [
659
-                    {
660
-                        "token": []
661
-                    }
662
-                ],
663
-                "description": "用户信息",
656
+        "/audit/conn": {
657
+            "post": {
658
+                "description": "审计连接",
664 659
                 "consumes": [
665 660
                     "application/json"
666 661
                 ],
@@ -668,14 +663,25 @@ const docTemplateapi = `{
668 663
                     "application/json"
669 664
                 ],
670 665
                 "tags": [
671
-                    "用户"
666
+                    "审计"
667
+                ],
668
+                "summary": "审计连接",
669
+                "parameters": [
670
+                    {
671
+                        "description": "审计连接",
672
+                        "name": "body",
673
+                        "in": "body",
674
+                        "required": true,
675
+                        "schema": {
676
+                            "$ref": "#/definitions/api.AuditConnForm"
677
+                        }
678
+                    }
672 679
                 ],
673
-                "summary": "用户信息",
674 680
                 "responses": {
675 681
                     "200": {
676 682
                         "description": "OK",
677 683
                         "schema": {
678
-                            "$ref": "#/definitions/api.UserPayload"
684
+                            "type": "string"
679 685
                         }
680 686
                     },
681 687
                     "500": {
@@ -687,9 +693,9 @@ const docTemplateapi = `{
687 693
                 }
688 694
             }
689 695
         },
690
-        "/audit/conn": {
696
+        "/audit/file": {
691 697
             "post": {
692
-                "description": "审计连接",
698
+                "description": "审计文件",
693 699
                 "consumes": [
694 700
                     "application/json"
695 701
                 ],
@@ -699,15 +705,15 @@ const docTemplateapi = `{
699 705
                 "tags": [
700 706
                     "审计"
701 707
                 ],
702
-                "summary": "审计连接",
708
+                "summary": "审计文件",
703 709
                 "parameters": [
704 710
                     {
705
-                        "description": "审计连接",
711
+                        "description": "审计文件",
706 712
                         "name": "body",
707 713
                         "in": "body",
708 714
                         "required": true,
709 715
                         "schema": {
710
-                            "$ref": "#/definitions/api.AuditConnForm"
716
+                            "$ref": "#/definitions/api.AuditFileForm"
711 717
                         }
712 718
                     }
713 719
                 ],
@@ -727,9 +733,14 @@ const docTemplateapi = `{
727 733
                 }
728 734
             }
729 735
         },
730
-        "/audit/file": {
731
-            "post": {
732
-                "description": "审计文件",
736
+        "/currentUser": {
737
+            "get": {
738
+                "security": [
739
+                    {
740
+                        "token": []
741
+                    }
742
+                ],
743
+                "description": "用户信息",
733 744
                 "consumes": [
734 745
                     "application/json"
735 746
                 ],
@@ -737,25 +748,14 @@ const docTemplateapi = `{
737 748
                     "application/json"
738 749
                 ],
739 750
                 "tags": [
740
-                    "审计"
741
-                ],
742
-                "summary": "审计文件",
743
-                "parameters": [
744
-                    {
745
-                        "description": "审计文件",
746
-                        "name": "body",
747
-                        "in": "body",
748
-                        "required": true,
749
-                        "schema": {
750
-                            "$ref": "#/definitions/api.AuditFileForm"
751
-                        }
752
-                    }
751
+                    "用户"
753 752
                 ],
753
+                "summary": "用户信息",
754 754
                 "responses": {
755 755
                     "200": {
756 756
                         "description": "OK",
757 757
                         "schema": {
758
-                            "type": "string"
758
+                            "$ref": "#/definitions/api.UserPayload"
759 759
                         }
760 760
                     },
761 761
                     "500": {
@@ -1178,43 +1178,6 @@ const docTemplateapi = `{
1178 1178
                 }
1179 1179
             }
1180 1180
         },
1181
-        "/tags": {
1182
-            "post": {
1183
-                "security": [
1184
-                    {
1185
-                        "BearerAuth": []
1186
-                    }
1187
-                ],
1188
-                "description": "标签",
1189
-                "consumes": [
1190
-                    "application/json"
1191
-                ],
1192
-                "produces": [
1193
-                    "application/json"
1194
-                ],
1195
-                "tags": [
1196
-                    "地址"
1197
-                ],
1198
-                "summary": "标签",
1199
-                "responses": {
1200
-                    "200": {
1201
-                        "description": "OK",
1202
-                        "schema": {
1203
-                            "type": "array",
1204
-                            "items": {
1205
-                                "$ref": "#/definitions/model.Tag"
1206
-                            }
1207
-                        }
1208
-                    },
1209
-                    "500": {
1210
-                        "description": "Internal Server Error",
1211
-                        "schema": {
1212
-                            "$ref": "#/definitions/response.ErrorResponse"
1213
-                        }
1214
-                    }
1215
-                }
1216
-            }
1217
-        },
1218 1181
         "/users": {
1219 1182
             "get": {
1220 1183
                 "security": [

+ 33 - 70
docs/api/api_swagger.json

@@ -646,14 +646,9 @@
646 646
                 }
647 647
             }
648 648
         },
649
-        "/api": {
650
-            "get": {
651
-                "security": [
652
-                    {
653
-                        "token": []
654
-                    }
655
-                ],
656
-                "description": "用户信息",
649
+        "/audit/conn": {
650
+            "post": {
651
+                "description": "审计连接",
657 652
                 "consumes": [
658 653
                     "application/json"
659 654
                 ],
@@ -661,14 +656,25 @@
661 656
                     "application/json"
662 657
                 ],
663 658
                 "tags": [
664
-                    "用户"
659
+                    "审计"
660
+                ],
661
+                "summary": "审计连接",
662
+                "parameters": [
663
+                    {
664
+                        "description": "审计连接",
665
+                        "name": "body",
666
+                        "in": "body",
667
+                        "required": true,
668
+                        "schema": {
669
+                            "$ref": "#/definitions/api.AuditConnForm"
670
+                        }
671
+                    }
665 672
                 ],
666
-                "summary": "用户信息",
667 673
                 "responses": {
668 674
                     "200": {
669 675
                         "description": "OK",
670 676
                         "schema": {
671
-                            "$ref": "#/definitions/api.UserPayload"
677
+                            "type": "string"
672 678
                         }
673 679
                     },
674 680
                     "500": {
@@ -680,9 +686,9 @@
680 686
                 }
681 687
             }
682 688
         },
683
-        "/audit/conn": {
689
+        "/audit/file": {
684 690
             "post": {
685
-                "description": "审计连接",
691
+                "description": "审计文件",
686 692
                 "consumes": [
687 693
                     "application/json"
688 694
                 ],
@@ -692,15 +698,15 @@
692 698
                 "tags": [
693 699
                     "审计"
694 700
                 ],
695
-                "summary": "审计连接",
701
+                "summary": "审计文件",
696 702
                 "parameters": [
697 703
                     {
698
-                        "description": "审计连接",
704
+                        "description": "审计文件",
699 705
                         "name": "body",
700 706
                         "in": "body",
701 707
                         "required": true,
702 708
                         "schema": {
703
-                            "$ref": "#/definitions/api.AuditConnForm"
709
+                            "$ref": "#/definitions/api.AuditFileForm"
704 710
                         }
705 711
                     }
706 712
                 ],
@@ -720,9 +726,14 @@
720 726
                 }
721 727
             }
722 728
         },
723
-        "/audit/file": {
724
-            "post": {
725
-                "description": "审计文件",
729
+        "/currentUser": {
730
+            "get": {
731
+                "security": [
732
+                    {
733
+                        "token": []
734
+                    }
735
+                ],
736
+                "description": "用户信息",
726 737
                 "consumes": [
727 738
                     "application/json"
728 739
                 ],
@@ -730,25 +741,14 @@
730 741
                     "application/json"
731 742
                 ],
732 743
                 "tags": [
733
-                    "审计"
734
-                ],
735
-                "summary": "审计文件",
736
-                "parameters": [
737
-                    {
738
-                        "description": "审计文件",
739
-                        "name": "body",
740
-                        "in": "body",
741
-                        "required": true,
742
-                        "schema": {
743
-                            "$ref": "#/definitions/api.AuditFileForm"
744
-                        }
745
-                    }
744
+                    "用户"
746 745
                 ],
746
+                "summary": "用户信息",
747 747
                 "responses": {
748 748
                     "200": {
749 749
                         "description": "OK",
750 750
                         "schema": {
751
-                            "type": "string"
751
+                            "$ref": "#/definitions/api.UserPayload"
752 752
                         }
753 753
                     },
754 754
                     "500": {
@@ -1171,43 +1171,6 @@
1171 1171
                 }
1172 1172
             }
1173 1173
         },
1174
-        "/tags": {
1175
-            "post": {
1176
-                "security": [
1177
-                    {
1178
-                        "BearerAuth": []
1179
-                    }
1180
-                ],
1181
-                "description": "标签",
1182
-                "consumes": [
1183
-                    "application/json"
1184
-                ],
1185
-                "produces": [
1186
-                    "application/json"
1187
-                ],
1188
-                "tags": [
1189
-                    "地址"
1190
-                ],
1191
-                "summary": "标签",
1192
-                "responses": {
1193
-                    "200": {
1194
-                        "description": "OK",
1195
-                        "schema": {
1196
-                            "type": "array",
1197
-                            "items": {
1198
-                                "$ref": "#/definitions/model.Tag"
1199
-                            }
1200
-                        }
1201
-                    },
1202
-                    "500": {
1203
-                        "description": "Internal Server Error",
1204
-                        "schema": {
1205
-                            "$ref": "#/definitions/response.ErrorResponse"
1206
-                        }
1207
-                    }
1208
-                }
1209
-            }
1210
-        },
1211 1174
         "/users": {
1212 1175
             "get": {
1213 1176
                 "security": [

+ 21 - 44
docs/api/api_swagger.yaml

@@ -598,27 +598,6 @@ paths:
598 598
       summary: 标签
599 599
       tags:
600 600
       - 地址[Personal]
601
-  /api:
602
-    get:
603
-      consumes:
604
-      - application/json
605
-      description: 用户信息
606
-      produces:
607
-      - application/json
608
-      responses:
609
-        "200":
610
-          description: OK
611
-          schema:
612
-            $ref: '#/definitions/api.UserPayload'
613
-        "500":
614
-          description: Internal Server Error
615
-          schema:
616
-            $ref: '#/definitions/response.Response'
617
-      security:
618
-      - token: []
619
-      summary: 用户信息
620
-      tags:
621
-      - 用户
622 601
   /audit/conn:
623 602
     post:
624 603
       consumes:
@@ -671,6 +650,27 @@ paths:
671 650
       summary: 审计文件
672 651
       tags:
673 652
       - 审计
653
+  /currentUser:
654
+    get:
655
+      consumes:
656
+      - application/json
657
+      description: 用户信息
658
+      produces:
659
+      - application/json
660
+      responses:
661
+        "200":
662
+          description: OK
663
+          schema:
664
+            $ref: '#/definitions/api.UserPayload'
665
+        "500":
666
+          description: Internal Server Error
667
+          schema:
668
+            $ref: '#/definitions/response.Response'
669
+      security:
670
+      - token: []
671
+      summary: 用户信息
672
+      tags:
673
+      - 用户
674 674
   /heartbeat:
675 675
     post:
676 676
       consumes:
@@ -936,29 +936,6 @@ paths:
936 936
       summary: 提交系统信息
937 937
       tags:
938 938
       - 地址
939
-  /tags:
940
-    post:
941
-      consumes:
942
-      - application/json
943
-      description: 标签
944
-      produces:
945
-      - application/json
946
-      responses:
947
-        "200":
948
-          description: OK
949
-          schema:
950
-            items:
951
-              $ref: '#/definitions/model.Tag'
952
-            type: array
953
-        "500":
954
-          description: Internal Server Error
955
-          schema:
956
-            $ref: '#/definitions/response.ErrorResponse'
957
-      security:
958
-      - BearerAuth: []
959
-      summary: 标签
960
-      tags:
961
-      - 地址
962 939
   /users:
963 940
     get:
964 941
       consumes: