From b77ff8536e02dcfbb62ce4c07f9667438d47cfe4 Mon Sep 17 00:00:00 2001 From: erdanergou Date: Thu, 28 Jul 2022 15:06:00 +0800 Subject: [PATCH] 2022/7/28 15:06 --- .history/README_20220728075530.md | 57 +++++ .history/api/myTest/entry_20220728105227.go | 0 .history/api/myTest/entry_20220728105240.go | 2 + .history/api/myTest/entry_20220728131248.go | 5 + .history/api/myTest/entry_20220728131253.go | 5 + .history/api/myTest/entry_20220728131257.go | 7 + .history/api/myTest/entry_20220728131258.go | 7 + .history/api/myTest/entry_20220728131321.go | 7 + .history/api/myTest/entry_20220728131324.go | 7 + .history/api/myTest/entry_20220728131403.go | 7 + .history/api/myTest/entry_20220728131405.go | 7 + .history/api/myTest/entry_20220728131417.go | 7 + .history/api/myTest/entry_20220728131419.go | 7 + .history/api/myTest/entry_20220728131425.go | 7 + .history/api/myTest/entry_20220728131426.go | 7 + .history/api/myTest/entry_20220728131430.go | 7 + .history/api/myTest/entry_20220728131433.go | 7 + .history/api/myTest/entry_20220728131437.go | 5 + .history/api/myTest/entry_20220728131449.go | 6 + .history/api/myTest/entry_20220728131502.go | 7 + .history/api/myTest/entry_20220728131506.go | 7 + .history/api/myTest/entry_20220728131512.go | 7 + .history/api/myTest/entry_20220728131518.go | 7 + .history/api/myTest/entry_20220728131526.go | 7 + .history/api/myTest/entry_20220728131528.go | 7 + .history/api/myTest/entry_20220728131533.go | 7 + .history/api/myTest/entry_20220728131536.go | 7 + .history/api/myTest/entry_20220728131545.go | 7 + .history/api/myTest/entry_20220728131546.go | 7 + .history/api/myTest/entry_20220728131554.go | 7 + .history/api/myTest/entry_20220728131601.go | 7 + .history/api/myTest/entry_20220728131744.go | 7 + .history/api/myTest/entry_20220728131746.go | 8 + .history/api/myTest/entry_20220728131748.go | 8 + .history/api/myTest/entry_20220728131753.go | 8 + .history/api/myTest/entry_20220728131801.go | 8 + .history/api/myTest/entry_20220728131804.go | 8 + .history/api/myTest/entry_20220728131807.go | 8 + .history/api/myTest/entry_20220728131808.go | 10 + .history/api/myTest/entry_20220728131815.go | 10 + .history/api/myTest/entry_20220728131817.go | 8 + .history/api/myTest/entry_20220728131824.go | 8 + .history/api/myTest/entry_20220728131827.go | 8 + .history/api/myTest/entry_20220728132012.go | 8 + .history/api/myTest/entry_20220728132014.go | 8 + .history/api/myTest/entry_20220728132015.go | 8 + .history/api/myTest/entry_20220728132025.go | 8 + .history/api/myTest/entry_20220728132027.go | 10 + .history/api/myTest/entry_20220728132028.go | 10 + .history/api/myTest/entry_20220728132032.go | 9 + .history/api/myTest/entry_20220728132035.go | 9 + .history/api/myTest/entry_20220728132036.go | 7 + .history/api/myTest/entry_20220728132039.go | 7 + .history/api/myTest/entry_20220728132049.go | 10 + .history/api/myTest/entry_20220728132052.go | 10 + .history/api/myTest/entry_20220728132055.go | 10 + .history/api/myTest/entry_20220728132057.go | 9 + .../testRoute/testroute_20220728105311.go | 0 .../testRoute/testroute_20220728105316.go | 1 + .../testRoute/testroute_20220728105323.go | 1 + .../testRoute/testroute_20220728105330.go | 1 + .../testRoute/testroute_20220728105333.go | 2 + .../testRoute/testroute_20220728105444.go | 2 + .../testRoute/testroute_20220728105447.go | 2 + .../testRoute/testroute_20220728131912.go | 1 + .../testRoute/testroute_20220728131914.go | 0 .../testRoute/testroute_20220728131924.go | 1 + .../testRoute/testroute_20220728131927.go | 1 + .../testRoute/testroute_20220728131929.go | 1 + .../testRoute/testroute_20220728131953.go | 1 + .../testRoute/testroute_20220728131959.go | 2 + .../testRoute/testroute_20220728132003.go | 1 + .../testRoute/testroute_20220728132005.go | 1 + .../testRoute/testroute_20220728132229.go | 3 + .../testRoute/testroute_20220728132232.go | 3 + .../testRoute/testroute_20220728132241.go | 3 + .../testRoute/testroute_20220728132242.go | 3 + .../testRoute/testroute_20220728132245.go | 3 + .../testRoute/testroute_20220728132247.go | 3 + .../testRoute/testroute_20220728132255.go | 3 + .../testRoute/testroute_20220728132257.go | 3 + .../testRoute/testroute_20220728132259.go | 3 + .../testRoute/testroute_20220728132302.go | 5 + .../testRoute/testroute_20220728132308.go | 7 + .../testRoute/testroute_20220728132309.go | 7 + .../testRoute/testroute_20220728132322.go | 7 + .../testRoute/testroute_20220728132324.go | 7 + .../testRoute/testroute_20220728132325.go | 7 + .../testRoute/testroute_20220728132327.go | 7 + .../testRoute/testroute_20220728132332.go | 7 + .../testRoute/testroute_20220728132343.go | 8 + .../testRoute/testroute_20220728132344.go | 8 + .../testRoute/testroute_20220728132348.go | 10 + .../testRoute/testroute_20220728132353.go | 10 + .../testRoute/testroute_20220728132403.go | 10 + .../testRoute/testroute_20220728132406.go | 10 + .../testRoute/testroute_20220728132412.go | 12 + .../testRoute/testroute_20220728132415.go | 13 ++ .../testRoute/testroute_20220728132419.go | 13 ++ .../testRoute/testroute_20220728132420.go | 13 ++ .../testRoute/testroute_20220728132428.go | 14 ++ .../testRoute/testroute_20220728132432.go | 15 ++ .../testRoute/testroute_20220728132440.go | 15 ++ .../testRoute/testroute_20220728132445.go | 19 ++ .../testRoute/testroute_20220728132448.go | 19 ++ .../testRoute/testroute_20220728132451.go | 19 ++ .../testRoute/testroute_20220728132459.go | 19 ++ .../testRoute/testroute_20220728132503.go | 19 ++ .../testRoute/testroute_20220728132505.go | 19 ++ .../testRoute/testroute_20220728132510.go | 19 ++ .../testRoute/testroute_20220728132511.go | 19 ++ .../testRoute/testroute_20220728132515.go | 19 ++ .../testRoute/testroute_20220728132523.go | 22 ++ .../testRoute/testroute_20220728132533.go | 23 ++ .../testRoute/testroute_20220728132535.go | 23 ++ .../testRoute/testroute_20220728132543.go | 23 ++ .../testRoute/testroute_20220728132613.go | 23 ++ .../testRoute/testroute_20220728132614.go | 23 ++ .../testRoute/testroute_20220728132618.go | 23 ++ .../testRoute/testroute_20220728132619.go | 23 ++ .../testRoute/testroute_20220728132621.go | 24 ++ .../testRoute/testroute_20220728132640.go | 24 ++ .../testRoute/testroute_20220728132642.go | 24 ++ .../testRoute/testroute_20220728132643.go | 24 ++ .../testRoute/testroute_20220728132649.go | 24 ++ .../testRoute/testroute_20220728132652.go | 24 ++ .../testRoute/testroute_20220728132705.go | 26 +++ .../testRoute/testroute_20220728132713.go | 26 +++ .../testRoute/testroute_20220728135054.go | 27 +++ .../testRoute/testroute_20220728135055.go | 28 +++ .../testRoute/testroute_20220728135100.go | 28 +++ .../testRoute/testroute_20220728135101.go | 28 +++ .../testRoute/testroute_20220728135106.go | 28 +++ .../testRoute/testroute_20220728135108.go | 28 +++ .../testRoute/testroute_20220728135148.go | 26 +++ .../testRoute/testroute_20220728135211.go | 27 +++ .../testRoute/testroute_20220728135213.go | 27 +++ .../testRoute/testroute_20220728135215.go | 27 +++ .../testRoute/testroute_20220728135221.go | 26 +++ .../testRoute/testroute_20220728135222.go | 26 +++ .../testRoute/testroute_20220728135233.go | 26 +++ .../testRoute/testroute_20220728135312.go | 26 +++ .../testRoute/testroute_20220728135318.go | 26 +++ .../testRoute/testroute_20220728135322.go | 25 +++ .../testRoute/testroute_20220728135351.go | 21 ++ .../testRoute/testroute_20220728135355.go | 22 ++ .../testRoute/testroute_20220728135358.go | 18 ++ .../testRoute/testroute_20220728135404.go | 19 ++ .../testRoute/testroute_20220728135406.go | 19 ++ .../testRoute/testroute_20220728135409.go | 18 ++ .../testRoute/testroute_20220728135416.go | 18 ++ .../testRoute/testroute_20220728140526.go | 19 ++ .../testRoute/testroute_20220728140530.go | 19 ++ .../testRoute/testroute_20220728140532.go | 19 ++ .../testRoute/testroute_20220728140542.go | 19 ++ .../testRoute/testroute_20220728140543.go | 19 ++ .../testRoute/testroute_20220728140545.go | 19 ++ .../testRoute/testroute_20220728140550.go | 20 ++ .../testRoute/testroute_20220728140551.go | 20 ++ .../testRoute/testroute_20220728140612.go | 21 ++ .../testRoute/testroute_20220728140619.go | 20 ++ .../testRoute/testroute_20220728140627.go | 20 ++ .../testRoute/testroute_20220728140637.go | 21 ++ .../testRoute/testroute_20220728140639.go | 21 ++ .../testRoute/testroute_20220728140642.go | 21 ++ .../testRoute/testroute_20220728140649.go | 21 ++ .../testRoute/testroute_20220728140654.go | 21 ++ .../testRoute/testroute_20220728140658.go | 21 ++ .../testRoute/testroute_20220728140703.go | 21 ++ .../testRoute/testroute_20220728140704.go | 21 ++ .../testRoute/testroute_20220728140817.go | 21 ++ .../testRoute/testroute_20220728140825.go | 21 ++ .../testRoute/testroute_20220728140828.go | 21 ++ .../testRoute/testroute_20220728140830.go | 21 ++ .../testRoute/testroute_20220728141159.go | 21 ++ .../testRoute/testroute_20220728145250.go | 22 ++ .../testRoute/testroute_20220728145251.go | 22 ++ .../testRoute/testroute_20220728145612.go | 22 ++ .../testRoute/testroute_20220728145615.go | 23 ++ .../testRoute/testroute_20220728145617.go | 23 ++ .../testRoute/testroute_20220728145622.go | 23 ++ .../testRoute/testroute_20220728145623.go | 23 ++ .../testRoute/testroute_20220728145625.go | 23 ++ .../testRoute/testroute_20220728145647.go | 25 +++ .../testRoute/testroute_20220728145651.go | 25 +++ .../testRoute/testroute_20220728145656.go | 25 +++ .../testRoute/testroute_20220728145700.go | 25 +++ .../testRoute/testroute_20220728145701.go | 25 +++ .../testRoute/testroute_20220728145708.go | 25 +++ .../testRoute/testroute_20220728145710.go | 25 +++ .../testRoute/testroute_20220728145712.go | 25 +++ .../testRoute/testroute_20220728145806.go | 25 +++ .../testRoute/testroute_20220728145926.go | 22 ++ .../myTest/testRoute/type_20220728105357.go | 0 .../myTest/testRoute/type_20220728105401.go | 1 + .../myTest/testRoute/type_20220728105404.go | 1 + .../myTest/testRoute/type_20220728105405.go | 1 + .../myTest/testRoute/type_20220728105423.go | 2 + .../myTest/testRoute/type_20220728105427.go | 3 + .../myTest/testRoute/type_20220728105434.go | 2 + .../myTest/testRoute/type_20220728105451.go | 1 + .../myTest/testRoute/type_20220728105539.go | 3 + .../myTest/testRoute/type_20220728105541.go | 3 + .../myTest/testRoute/type_20220728105631.go | 9 + .../myTest/testRoute/type_20220728105639.go | 11 + .../myTest/testRoute/type_20220728105641.go | 17 ++ .../myTest/testRoute/type_20220728105646.go | 16 ++ .../myTest/testRoute/type_20220728105703.go | 17 ++ .../myTest/testRoute/type_20220728105710.go | 17 ++ .../myTest/testRoute/type_20220728105716.go | 17 ++ .../myTest/testRoute/type_20220728105721.go | 17 ++ .../myTest/testRoute/type_20220728131004.go | 19 ++ .../myTest/testRoute/type_20220728131009.go | 19 ++ .../myTest/testRoute/type_20220728131014.go | 21 ++ .../myTest/testRoute/type_20220728131020.go | 21 ++ .../myTest/testRoute/type_20220728131032.go | 22 ++ .../myTest/testRoute/type_20220728131035.go | 22 ++ .../myTest/testRoute/type_20220728131039.go | 22 ++ .../myTest/testRoute/type_20220728131043.go | 22 ++ .../myTest/testRoute/type_20220728131048.go | 23 ++ .../myTest/testRoute/type_20220728131213.go | 24 ++ .../myTest/testRoute/type_20220728131217.go | 24 ++ .../myTest/testRoute/type_20220728131218.go | 24 ++ .../myTest/testRoute/type_20220728131222.go | 24 ++ .../myTest/testRoute/type_20220728131841.go | 0 .../myTest/testRoute/type_20220728131850.go | 1 + .../myTest/testRoute/type_20220728131852.go | 24 ++ .../myTest/testRoute/type_20220728131856.go | 24 ++ .../myTest/testRoute/type_20220728131900.go | 24 ++ .../myTest/testRoute/type_20220728131902.go | 24 ++ .../myTest/testRoute/type_20220728131917.go | 24 ++ .../myTest/testRoute/type_20220728131937.go | 24 ++ .../myTest/testRoute/type_20220728141047.go | 24 ++ .../myTest/testRoute/type_20220728141053.go | 24 ++ .../myTest/testRoute/type_20220728141058.go | 24 ++ .../myTest/testRoute/type_20220728141255.go | 24 ++ .../myTest/testRoute/type_20220728145213.go | 24 ++ .../myTest/testRoute/type_20220728145219.go | 24 ++ .../myTest/testRoute/type_20220728145226.go | 24 ++ .../myTest/testRoute/type_20220728145231.go | 24 ++ .../myTest/testRoute/type_20220728145233.go | 24 ++ .../apishiyan/maptostruct_20220727153717.go | 20 ++ .../apishiyan/maptostruct_20220728145139.go | 20 ++ .history/apirouter/entry_20220727153717.go | 19 ++ .history/apirouter/entry_20220728102633.go | 19 ++ .history/apirouter/entry_20220728133925.go | 20 ++ .history/apirouter/entry_20220728133930.go | 20 ++ .history/apirouter/entry_20220728133931.go | 20 ++ .history/apirouter/entry_20220728133937.go | 20 ++ .history/apirouter/entry_20220728134020.go | 21 ++ .history/apirouter/entry_20220728134022.go | 21 ++ .history/apirouter/entry_20220728134035.go | 21 ++ .history/apirouter/entry_20220728134037.go | 21 ++ .history/apirouter/entry_20220728134041.go | 21 ++ .history/apirouter/entry_20220728134046.go | 22 ++ .history/apirouter/entry_20220728134050.go | 22 ++ .history/apirouter/entry_20220728134052.go | 22 ++ .history/apirouter/entry_20220728134055.go | 22 ++ .history/apirouter/entry_20220728134102.go | 22 ++ .history/apirouter/entry_20220728134104.go | 22 ++ .history/apirouter/entry_20220728134107.go | 22 ++ .history/apirouter/entry_20220728134113.go | 19 ++ .history/apirouter/entry_20220728134248.go | 20 ++ .history/apirouter/entry_20220728134724.go | 20 ++ .history/apirouter/entry_20220728134728.go | 20 ++ .history/apirouter/entry_20220728134743.go | 21 ++ .history/apirouter/entry_20220728134745.go | 21 ++ .history/apirouter/entry_20220728134755.go | 21 ++ .history/apirouter/entry_20220728134850.go | 21 ++ .history/apirouter/entry_20220728134852.go | 21 ++ .history/apirouter/entry_20220728134854.go | 21 ++ .../myTest/myTest_route_20220728104853.go | 0 .../myTest/myTest_route_20220728104907.go | 1 + .../myTest/myTest_route_20220728104908.go | 1 + .../myTest/myTest_route_20220728104926.go | 5 + .../myTest/myTest_route_20220728104939.go | 5 + .../myTest/myTest_route_20220728104941.go | 5 + .../myTest/myTest_route_20220728104946.go | 5 + .../myTest/myTest_route_20220728104952.go | 5 + .../myTest/myTest_route_20220728104955.go | 5 + .../myTest/myTest_route_20220728104956.go | 5 + .../myTest/myTest_route_20220728105027.go | 5 + .../myTest/myTest_route_20220728105055.go | 5 + .../myTest/myTest_route_20220728105105.go | 5 + .../myTest/myTest_route_20220728105106.go | 5 + .../myTest/myTest_route_20220728105112.go | 7 + .../myTest/myTest_route_20220728105113.go | 7 + .../myTest/myTest_route_20220728105120.go | 7 + .../myTest/myTest_route_20220728105128.go | 7 + .../myTest/myTest_route_20220728105130.go | 7 + .../myTest/myTest_route_20220728105140.go | 7 + .../myTest/myTest_route_20220728105142.go | 7 + .../myTest/myTest_route_20220728105146.go | 7 + .../myTest/myTest_route_20220728105147.go | 7 + .../myTest/myTest_route_20220728105150.go | 8 + .../myTest/myTest_route_20220728105157.go | 8 + .../myTest/myTest_route_20220728105755.go | 8 + .../myTest/myTest_route_20220728105757.go | 8 + .../myTest/myTest_route_20220728105758.go | 8 + .../myTest/myTest_route_20220728105759.go | 8 + .../myTest/myTest_route_20220728132849.go | 8 + .../myTest/myTest_route_20220728132850.go | 8 + .../myTest/myTest_route_20220728132907.go | 9 + .../myTest/myTest_route_20220728133649.go | 9 + .../myTest/myTest_route_20220728133651.go | 9 + .../myTest/myTest_route_20220728133701.go | 9 + .../myTest/myTest_route_20220728133702.go | 9 + .../myTest/myTest_route_20220728133710.go | 9 + .../myTest/myTest_route_20220728133719.go | 13 ++ .../myTest/myTest_route_20220728133724.go | 13 ++ .../myTest/myTest_route_20220728133730.go | 13 ++ .../myTest/myTest_route_20220728133750.go | 13 ++ .../myTest/myTest_route_20220728133753.go | 13 ++ .../myTest/myTest_route_20220728133755.go | 14 ++ .../myTest/myTest_route_20220728133757.go | 16 ++ .../myTest/myTest_route_20220728133759.go | 16 ++ .../myTest/myTest_route_20220728133803.go | 16 ++ .../myTest/myTest_route_20220728133805.go | 16 ++ .../myTest/myTest_route_20220728133809.go | 16 ++ .../myTest/myTest_route_20220728133812.go | 16 ++ .../myTest/myTest_route_20220728133814.go | 16 ++ .../myTest/myTest_route_20220728133815.go | 16 ++ .../myTest/myTest_route_20220728133817.go | 16 ++ .../myTest/myTest_route_20220728133823.go | 16 ++ .../myTest/myTest_route_20220728133830.go | 17 ++ .../myTest/myTest_route_20220728133832.go | 17 ++ .../myTest/myTest_route_20220728133833.go | 17 ++ .../myTest/myTest_route_20220728133834.go | 18 ++ .../myTest/myTest_route_20220728133838.go | 18 ++ .../myTest/myTest_route_20220728133844.go | 18 ++ .../myTest/myTest_route_20220728140734.go | 18 ++ .../myTest/myTest_route_20220728140931.go | 18 ++ .../apirouter/myTest/type_20220728104752.go | 0 .../apirouter/myTest/type_20220728104756.go | 1 + .../apirouter/myTest/type_20220728104818.go | 1 + .../apirouter/myTest/type_20220728104822.go | 3 + .../apirouter/myTest/type_20220728104833.go | 3 + .../apirouter/myTest/type_20220728104835.go | 3 + .../apirouter/myTest/type_20220728104837.go | 3 + .../apirouter/myTest/type_20220728105052.go | 3 + .../apirouter/myTest/type_20220728130856.go | 4 + .../configApp/appConfig_20220727153717.yaml | 21 ++ .../configApp/appConfig_20220728114508.yaml | 21 ++ .../configApp/appConfig_20220728114533.yaml | 21 ++ .../configApp/appConfig_20220728130428.yaml | 21 ++ .../configDatabase/database_20220727153717.go | 82 +++++++ .../database_20220727153717.yaml | 192 ++++++++++++++++ .../database_20220728145336.yaml | 196 +++++++++++++++++ .../database_20220728145344.yaml | 196 +++++++++++++++++ .../database_20220728145347.yaml | 197 +++++++++++++++++ .../database_20220728145401.yaml | 197 +++++++++++++++++ .../database_20220728145405.yaml | 198 +++++++++++++++++ .../database_20220728145407.yaml | 198 +++++++++++++++++ .../database_20220728145410.yaml | 198 +++++++++++++++++ .../database_20220728145419.yaml | 198 +++++++++++++++++ .../database_20220728145420.yaml | 198 +++++++++++++++++ .../database_20220728145421.yaml | 199 +++++++++++++++++ .../database_20220728145428.yaml | 207 ++++++++++++++++++ .../database_20220728145434.yaml | 207 ++++++++++++++++++ .../database_20220728145440.yaml | 207 ++++++++++++++++++ .../database_20220728145445.yaml | 207 ++++++++++++++++++ .../configDatabase/database_20220728145509.go | 83 +++++++ .../configDatabase/database_20220728145515.go | 83 +++++++ .../configDatabase/database_20220728145523.go | 83 +++++++ .../configDatabase/database_20220728145525.go | 83 +++++++ .../configDatabase/database_20220728145530.go | 83 +++++++ .../configDatabase/database_20220728145534.go | 83 +++++++ .../configDatabase/database_20220728145539.go | 82 +++++++ .../database_20220728145546.yaml | 192 ++++++++++++++++ .history/go_20220728113319.mod | 55 +++++ .history/go_20220728113347.mod | 55 +++++ .history/go_20220728113424.mod | 55 +++++ .history/go_20220728113427.mod | 55 +++++ .history/go_20220728113449.mod | 55 +++++ .../initialization/app/run_20220727152945.go | 27 +++ .../initialization/app/run_20220728114254.go | 27 +++ .../initialization/app/run_20220728114258.go | 27 +++ .../initialization/app/run_20220728114300.go | 26 +++ .../route/initRoute_20220727153717.go | 59 +++++ .../route/initRoute_20220728100325.go | 60 +++++ .../route/initRoute_20220728100326.go | 60 +++++ .../route/initRoute_20220728100330.go | 60 +++++ .../route/initRoute_20220728100331.go | 60 +++++ .../route/initRoute_20220728100336.go | 59 +++++ .../route/initRoute_20220728101939.go | 60 +++++ .../route/initRoute_20220728101941.go | 60 +++++ .../route/initRoute_20220728101942.go | 60 +++++ .../route/initRoute_20220728101945.go | 60 +++++ .../route/initRoute_20220728101948.go | 60 +++++ .../route/initRoute_20220728101952.go | 60 +++++ .../route/initRoute_20220728101956.go | 60 +++++ .../route/initRoute_20220728102000.go | 59 +++++ .../route/initRoute_20220728102704.go | 60 +++++ .../route/initRoute_20220728102708.go | 61 ++++++ .../route/initRoute_20220728102712.go | 61 ++++++ .../route/initRoute_20220728102715.go | 61 ++++++ .../route/initRoute_20220728102719.go | 61 ++++++ .../route/initRoute_20220728102725.go | 61 ++++++ .../route/initRoute_20220728102727.go | 60 +++++ .../route/initRoute_20220728103308.go | 60 +++++ .../route/initRoute_20220728132817.go | 61 ++++++ .../route/initRoute_20220728133859.go | 63 ++++++ .../route/initRoute_20220728133901.go | 63 ++++++ .../route/initRoute_20220728133902.go | 64 ++++++ .../route/initRoute_20220728133904.go | 64 ++++++ .../route/initRoute_20220728133912.go | 64 ++++++ .../route/initRoute_20220728133915.go | 64 ++++++ .../route/initRoute_20220728133917.go | 64 ++++++ .../route/initRoute_20220728134902.go | 64 ++++++ .../route/initRoute_20220728134903.go | 64 ++++++ .../route/initRoute_20220728134904.go | 64 ++++++ .../route/initRoute_20220728134907.go | 64 ++++++ .../route/initRoute_20220728134910.go | 64 ++++++ .../route/initRoute_20220728134911.go | 65 ++++++ .../route/initRoute_20220728134912.go | 67 ++++++ .../route/initRoute_20220728134917.go | 67 ++++++ .../route/initRoute_20220728134920.go | 66 ++++++ README.md | 2 - api/myTest/entry.go | 9 + api/myTest/testRoute/testroute.go | 22 ++ api/myTest/testRoute/type.go | 24 ++ apirouter/entry.go | 2 + apirouter/myTest/myTest_route.go | 18 ++ apirouter/myTest/type.go | 4 + config/configDatabase/database.yaml | 2 +- go.mod | 1 + go.sum | 2 + initialization/app/run.go | 1 - initialization/route/initRoute.go | 7 + 429 files changed, 11616 insertions(+), 4 deletions(-) create mode 100644 .history/README_20220728075530.md create mode 100644 .history/api/myTest/entry_20220728105227.go create mode 100644 .history/api/myTest/entry_20220728105240.go create mode 100644 .history/api/myTest/entry_20220728131248.go create mode 100644 .history/api/myTest/entry_20220728131253.go create mode 100644 .history/api/myTest/entry_20220728131257.go create mode 100644 .history/api/myTest/entry_20220728131258.go create mode 100644 .history/api/myTest/entry_20220728131321.go create mode 100644 .history/api/myTest/entry_20220728131324.go create mode 100644 .history/api/myTest/entry_20220728131403.go create mode 100644 .history/api/myTest/entry_20220728131405.go create mode 100644 .history/api/myTest/entry_20220728131417.go create mode 100644 .history/api/myTest/entry_20220728131419.go create mode 100644 .history/api/myTest/entry_20220728131425.go create mode 100644 .history/api/myTest/entry_20220728131426.go create mode 100644 .history/api/myTest/entry_20220728131430.go create mode 100644 .history/api/myTest/entry_20220728131433.go create mode 100644 .history/api/myTest/entry_20220728131437.go create mode 100644 .history/api/myTest/entry_20220728131449.go create mode 100644 .history/api/myTest/entry_20220728131502.go create mode 100644 .history/api/myTest/entry_20220728131506.go create mode 100644 .history/api/myTest/entry_20220728131512.go create mode 100644 .history/api/myTest/entry_20220728131518.go create mode 100644 .history/api/myTest/entry_20220728131526.go create mode 100644 .history/api/myTest/entry_20220728131528.go create mode 100644 .history/api/myTest/entry_20220728131533.go create mode 100644 .history/api/myTest/entry_20220728131536.go create mode 100644 .history/api/myTest/entry_20220728131545.go create mode 100644 .history/api/myTest/entry_20220728131546.go create mode 100644 .history/api/myTest/entry_20220728131554.go create mode 100644 .history/api/myTest/entry_20220728131601.go create mode 100644 .history/api/myTest/entry_20220728131744.go create mode 100644 .history/api/myTest/entry_20220728131746.go create mode 100644 .history/api/myTest/entry_20220728131748.go create mode 100644 .history/api/myTest/entry_20220728131753.go create mode 100644 .history/api/myTest/entry_20220728131801.go create mode 100644 .history/api/myTest/entry_20220728131804.go create mode 100644 .history/api/myTest/entry_20220728131807.go create mode 100644 .history/api/myTest/entry_20220728131808.go create mode 100644 .history/api/myTest/entry_20220728131815.go create mode 100644 .history/api/myTest/entry_20220728131817.go create mode 100644 .history/api/myTest/entry_20220728131824.go create mode 100644 .history/api/myTest/entry_20220728131827.go create mode 100644 .history/api/myTest/entry_20220728132012.go create mode 100644 .history/api/myTest/entry_20220728132014.go create mode 100644 .history/api/myTest/entry_20220728132015.go create mode 100644 .history/api/myTest/entry_20220728132025.go create mode 100644 .history/api/myTest/entry_20220728132027.go create mode 100644 .history/api/myTest/entry_20220728132028.go create mode 100644 .history/api/myTest/entry_20220728132032.go create mode 100644 .history/api/myTest/entry_20220728132035.go create mode 100644 .history/api/myTest/entry_20220728132036.go create mode 100644 .history/api/myTest/entry_20220728132039.go create mode 100644 .history/api/myTest/entry_20220728132049.go create mode 100644 .history/api/myTest/entry_20220728132052.go create mode 100644 .history/api/myTest/entry_20220728132055.go create mode 100644 .history/api/myTest/entry_20220728132057.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728105311.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728105316.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728105323.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728105330.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728105333.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728105444.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728105447.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728131912.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728131914.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728131924.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728131927.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728131929.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728131953.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728131959.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728132003.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728132005.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728132229.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728132232.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728132241.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728132242.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728132245.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728132247.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728132255.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728132257.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728132259.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728132302.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728132308.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728132309.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728132322.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728132324.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728132325.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728132327.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728132332.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728132343.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728132344.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728132348.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728132353.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728132403.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728132406.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728132412.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728132415.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728132419.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728132420.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728132428.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728132432.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728132440.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728132445.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728132448.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728132451.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728132459.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728132503.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728132505.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728132510.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728132511.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728132515.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728132523.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728132533.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728132535.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728132543.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728132613.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728132614.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728132618.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728132619.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728132621.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728132640.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728132642.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728132643.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728132649.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728132652.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728132705.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728132713.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728135054.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728135055.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728135100.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728135101.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728135106.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728135108.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728135148.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728135211.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728135213.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728135215.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728135221.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728135222.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728135233.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728135312.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728135318.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728135322.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728135351.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728135355.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728135358.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728135404.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728135406.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728135409.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728135416.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728140526.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728140530.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728140532.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728140542.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728140543.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728140545.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728140550.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728140551.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728140612.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728140619.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728140627.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728140637.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728140639.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728140642.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728140649.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728140654.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728140658.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728140703.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728140704.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728140817.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728140825.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728140828.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728140830.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728141159.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728145250.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728145251.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728145612.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728145615.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728145617.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728145622.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728145623.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728145625.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728145647.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728145651.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728145656.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728145700.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728145701.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728145708.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728145710.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728145712.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728145806.go create mode 100644 .history/api/myTest/testRoute/testroute_20220728145926.go create mode 100644 .history/api/myTest/testRoute/type_20220728105357.go create mode 100644 .history/api/myTest/testRoute/type_20220728105401.go create mode 100644 .history/api/myTest/testRoute/type_20220728105404.go create mode 100644 .history/api/myTest/testRoute/type_20220728105405.go create mode 100644 .history/api/myTest/testRoute/type_20220728105423.go create mode 100644 .history/api/myTest/testRoute/type_20220728105427.go create mode 100644 .history/api/myTest/testRoute/type_20220728105434.go create mode 100644 .history/api/myTest/testRoute/type_20220728105451.go create mode 100644 .history/api/myTest/testRoute/type_20220728105539.go create mode 100644 .history/api/myTest/testRoute/type_20220728105541.go create mode 100644 .history/api/myTest/testRoute/type_20220728105631.go create mode 100644 .history/api/myTest/testRoute/type_20220728105639.go create mode 100644 .history/api/myTest/testRoute/type_20220728105641.go create mode 100644 .history/api/myTest/testRoute/type_20220728105646.go create mode 100644 .history/api/myTest/testRoute/type_20220728105703.go create mode 100644 .history/api/myTest/testRoute/type_20220728105710.go create mode 100644 .history/api/myTest/testRoute/type_20220728105716.go create mode 100644 .history/api/myTest/testRoute/type_20220728105721.go create mode 100644 .history/api/myTest/testRoute/type_20220728131004.go create mode 100644 .history/api/myTest/testRoute/type_20220728131009.go create mode 100644 .history/api/myTest/testRoute/type_20220728131014.go create mode 100644 .history/api/myTest/testRoute/type_20220728131020.go create mode 100644 .history/api/myTest/testRoute/type_20220728131032.go create mode 100644 .history/api/myTest/testRoute/type_20220728131035.go create mode 100644 .history/api/myTest/testRoute/type_20220728131039.go create mode 100644 .history/api/myTest/testRoute/type_20220728131043.go create mode 100644 .history/api/myTest/testRoute/type_20220728131048.go create mode 100644 .history/api/myTest/testRoute/type_20220728131213.go create mode 100644 .history/api/myTest/testRoute/type_20220728131217.go create mode 100644 .history/api/myTest/testRoute/type_20220728131218.go create mode 100644 .history/api/myTest/testRoute/type_20220728131222.go create mode 100644 .history/api/myTest/testRoute/type_20220728131841.go create mode 100644 .history/api/myTest/testRoute/type_20220728131850.go create mode 100644 .history/api/myTest/testRoute/type_20220728131852.go create mode 100644 .history/api/myTest/testRoute/type_20220728131856.go create mode 100644 .history/api/myTest/testRoute/type_20220728131900.go create mode 100644 .history/api/myTest/testRoute/type_20220728131902.go create mode 100644 .history/api/myTest/testRoute/type_20220728131917.go create mode 100644 .history/api/myTest/testRoute/type_20220728131937.go create mode 100644 .history/api/myTest/testRoute/type_20220728141047.go create mode 100644 .history/api/myTest/testRoute/type_20220728141053.go create mode 100644 .history/api/myTest/testRoute/type_20220728141058.go create mode 100644 .history/api/myTest/testRoute/type_20220728141255.go create mode 100644 .history/api/myTest/testRoute/type_20220728145213.go create mode 100644 .history/api/myTest/testRoute/type_20220728145219.go create mode 100644 .history/api/myTest/testRoute/type_20220728145226.go create mode 100644 .history/api/myTest/testRoute/type_20220728145231.go create mode 100644 .history/api/myTest/testRoute/type_20220728145233.go create mode 100644 .history/apirouter/apishiyan/maptostruct_20220727153717.go create mode 100644 .history/apirouter/apishiyan/maptostruct_20220728145139.go create mode 100644 .history/apirouter/entry_20220727153717.go create mode 100644 .history/apirouter/entry_20220728102633.go create mode 100644 .history/apirouter/entry_20220728133925.go create mode 100644 .history/apirouter/entry_20220728133930.go create mode 100644 .history/apirouter/entry_20220728133931.go create mode 100644 .history/apirouter/entry_20220728133937.go create mode 100644 .history/apirouter/entry_20220728134020.go create mode 100644 .history/apirouter/entry_20220728134022.go create mode 100644 .history/apirouter/entry_20220728134035.go create mode 100644 .history/apirouter/entry_20220728134037.go create mode 100644 .history/apirouter/entry_20220728134041.go create mode 100644 .history/apirouter/entry_20220728134046.go create mode 100644 .history/apirouter/entry_20220728134050.go create mode 100644 .history/apirouter/entry_20220728134052.go create mode 100644 .history/apirouter/entry_20220728134055.go create mode 100644 .history/apirouter/entry_20220728134102.go create mode 100644 .history/apirouter/entry_20220728134104.go create mode 100644 .history/apirouter/entry_20220728134107.go create mode 100644 .history/apirouter/entry_20220728134113.go create mode 100644 .history/apirouter/entry_20220728134248.go create mode 100644 .history/apirouter/entry_20220728134724.go create mode 100644 .history/apirouter/entry_20220728134728.go create mode 100644 .history/apirouter/entry_20220728134743.go create mode 100644 .history/apirouter/entry_20220728134745.go create mode 100644 .history/apirouter/entry_20220728134755.go create mode 100644 .history/apirouter/entry_20220728134850.go create mode 100644 .history/apirouter/entry_20220728134852.go create mode 100644 .history/apirouter/entry_20220728134854.go create mode 100644 .history/apirouter/myTest/myTest_route_20220728104853.go create mode 100644 .history/apirouter/myTest/myTest_route_20220728104907.go create mode 100644 .history/apirouter/myTest/myTest_route_20220728104908.go create mode 100644 .history/apirouter/myTest/myTest_route_20220728104926.go create mode 100644 .history/apirouter/myTest/myTest_route_20220728104939.go create mode 100644 .history/apirouter/myTest/myTest_route_20220728104941.go create mode 100644 .history/apirouter/myTest/myTest_route_20220728104946.go create mode 100644 .history/apirouter/myTest/myTest_route_20220728104952.go create mode 100644 .history/apirouter/myTest/myTest_route_20220728104955.go create mode 100644 .history/apirouter/myTest/myTest_route_20220728104956.go create mode 100644 .history/apirouter/myTest/myTest_route_20220728105027.go create mode 100644 .history/apirouter/myTest/myTest_route_20220728105055.go create mode 100644 .history/apirouter/myTest/myTest_route_20220728105105.go create mode 100644 .history/apirouter/myTest/myTest_route_20220728105106.go create mode 100644 .history/apirouter/myTest/myTest_route_20220728105112.go create mode 100644 .history/apirouter/myTest/myTest_route_20220728105113.go create mode 100644 .history/apirouter/myTest/myTest_route_20220728105120.go create mode 100644 .history/apirouter/myTest/myTest_route_20220728105128.go create mode 100644 .history/apirouter/myTest/myTest_route_20220728105130.go create mode 100644 .history/apirouter/myTest/myTest_route_20220728105140.go create mode 100644 .history/apirouter/myTest/myTest_route_20220728105142.go create mode 100644 .history/apirouter/myTest/myTest_route_20220728105146.go create mode 100644 .history/apirouter/myTest/myTest_route_20220728105147.go create mode 100644 .history/apirouter/myTest/myTest_route_20220728105150.go create mode 100644 .history/apirouter/myTest/myTest_route_20220728105157.go create mode 100644 .history/apirouter/myTest/myTest_route_20220728105755.go create mode 100644 .history/apirouter/myTest/myTest_route_20220728105757.go create mode 100644 .history/apirouter/myTest/myTest_route_20220728105758.go create mode 100644 .history/apirouter/myTest/myTest_route_20220728105759.go create mode 100644 .history/apirouter/myTest/myTest_route_20220728132849.go create mode 100644 .history/apirouter/myTest/myTest_route_20220728132850.go create mode 100644 .history/apirouter/myTest/myTest_route_20220728132907.go create mode 100644 .history/apirouter/myTest/myTest_route_20220728133649.go create mode 100644 .history/apirouter/myTest/myTest_route_20220728133651.go create mode 100644 .history/apirouter/myTest/myTest_route_20220728133701.go create mode 100644 .history/apirouter/myTest/myTest_route_20220728133702.go create mode 100644 .history/apirouter/myTest/myTest_route_20220728133710.go create mode 100644 .history/apirouter/myTest/myTest_route_20220728133719.go create mode 100644 .history/apirouter/myTest/myTest_route_20220728133724.go create mode 100644 .history/apirouter/myTest/myTest_route_20220728133730.go create mode 100644 .history/apirouter/myTest/myTest_route_20220728133750.go create mode 100644 .history/apirouter/myTest/myTest_route_20220728133753.go create mode 100644 .history/apirouter/myTest/myTest_route_20220728133755.go create mode 100644 .history/apirouter/myTest/myTest_route_20220728133757.go create mode 100644 .history/apirouter/myTest/myTest_route_20220728133759.go create mode 100644 .history/apirouter/myTest/myTest_route_20220728133803.go create mode 100644 .history/apirouter/myTest/myTest_route_20220728133805.go create mode 100644 .history/apirouter/myTest/myTest_route_20220728133809.go create mode 100644 .history/apirouter/myTest/myTest_route_20220728133812.go create mode 100644 .history/apirouter/myTest/myTest_route_20220728133814.go create mode 100644 .history/apirouter/myTest/myTest_route_20220728133815.go create mode 100644 .history/apirouter/myTest/myTest_route_20220728133817.go create mode 100644 .history/apirouter/myTest/myTest_route_20220728133823.go create mode 100644 .history/apirouter/myTest/myTest_route_20220728133830.go create mode 100644 .history/apirouter/myTest/myTest_route_20220728133832.go create mode 100644 .history/apirouter/myTest/myTest_route_20220728133833.go create mode 100644 .history/apirouter/myTest/myTest_route_20220728133834.go create mode 100644 .history/apirouter/myTest/myTest_route_20220728133838.go create mode 100644 .history/apirouter/myTest/myTest_route_20220728133844.go create mode 100644 .history/apirouter/myTest/myTest_route_20220728140734.go create mode 100644 .history/apirouter/myTest/myTest_route_20220728140931.go create mode 100644 .history/apirouter/myTest/type_20220728104752.go create mode 100644 .history/apirouter/myTest/type_20220728104756.go create mode 100644 .history/apirouter/myTest/type_20220728104818.go create mode 100644 .history/apirouter/myTest/type_20220728104822.go create mode 100644 .history/apirouter/myTest/type_20220728104833.go create mode 100644 .history/apirouter/myTest/type_20220728104835.go create mode 100644 .history/apirouter/myTest/type_20220728104837.go create mode 100644 .history/apirouter/myTest/type_20220728105052.go create mode 100644 .history/apirouter/myTest/type_20220728130856.go create mode 100644 .history/config/configApp/appConfig_20220727153717.yaml create mode 100644 .history/config/configApp/appConfig_20220728114508.yaml create mode 100644 .history/config/configApp/appConfig_20220728114533.yaml create mode 100644 .history/config/configApp/appConfig_20220728130428.yaml create mode 100644 .history/config/configDatabase/database_20220727153717.go create mode 100644 .history/config/configDatabase/database_20220727153717.yaml create mode 100644 .history/config/configDatabase/database_20220728145336.yaml create mode 100644 .history/config/configDatabase/database_20220728145344.yaml create mode 100644 .history/config/configDatabase/database_20220728145347.yaml create mode 100644 .history/config/configDatabase/database_20220728145401.yaml create mode 100644 .history/config/configDatabase/database_20220728145405.yaml create mode 100644 .history/config/configDatabase/database_20220728145407.yaml create mode 100644 .history/config/configDatabase/database_20220728145410.yaml create mode 100644 .history/config/configDatabase/database_20220728145419.yaml create mode 100644 .history/config/configDatabase/database_20220728145420.yaml create mode 100644 .history/config/configDatabase/database_20220728145421.yaml create mode 100644 .history/config/configDatabase/database_20220728145428.yaml create mode 100644 .history/config/configDatabase/database_20220728145434.yaml create mode 100644 .history/config/configDatabase/database_20220728145440.yaml create mode 100644 .history/config/configDatabase/database_20220728145445.yaml create mode 100644 .history/config/configDatabase/database_20220728145509.go create mode 100644 .history/config/configDatabase/database_20220728145515.go create mode 100644 .history/config/configDatabase/database_20220728145523.go create mode 100644 .history/config/configDatabase/database_20220728145525.go create mode 100644 .history/config/configDatabase/database_20220728145530.go create mode 100644 .history/config/configDatabase/database_20220728145534.go create mode 100644 .history/config/configDatabase/database_20220728145539.go create mode 100644 .history/config/configDatabase/database_20220728145546.yaml create mode 100644 .history/go_20220728113319.mod create mode 100644 .history/go_20220728113347.mod create mode 100644 .history/go_20220728113424.mod create mode 100644 .history/go_20220728113427.mod create mode 100644 .history/go_20220728113449.mod create mode 100644 .history/initialization/app/run_20220727152945.go create mode 100644 .history/initialization/app/run_20220728114254.go create mode 100644 .history/initialization/app/run_20220728114258.go create mode 100644 .history/initialization/app/run_20220728114300.go create mode 100644 .history/initialization/route/initRoute_20220727153717.go create mode 100644 .history/initialization/route/initRoute_20220728100325.go create mode 100644 .history/initialization/route/initRoute_20220728100326.go create mode 100644 .history/initialization/route/initRoute_20220728100330.go create mode 100644 .history/initialization/route/initRoute_20220728100331.go create mode 100644 .history/initialization/route/initRoute_20220728100336.go create mode 100644 .history/initialization/route/initRoute_20220728101939.go create mode 100644 .history/initialization/route/initRoute_20220728101941.go create mode 100644 .history/initialization/route/initRoute_20220728101942.go create mode 100644 .history/initialization/route/initRoute_20220728101945.go create mode 100644 .history/initialization/route/initRoute_20220728101948.go create mode 100644 .history/initialization/route/initRoute_20220728101952.go create mode 100644 .history/initialization/route/initRoute_20220728101956.go create mode 100644 .history/initialization/route/initRoute_20220728102000.go create mode 100644 .history/initialization/route/initRoute_20220728102704.go create mode 100644 .history/initialization/route/initRoute_20220728102708.go create mode 100644 .history/initialization/route/initRoute_20220728102712.go create mode 100644 .history/initialization/route/initRoute_20220728102715.go create mode 100644 .history/initialization/route/initRoute_20220728102719.go create mode 100644 .history/initialization/route/initRoute_20220728102725.go create mode 100644 .history/initialization/route/initRoute_20220728102727.go create mode 100644 .history/initialization/route/initRoute_20220728103308.go create mode 100644 .history/initialization/route/initRoute_20220728132817.go create mode 100644 .history/initialization/route/initRoute_20220728133859.go create mode 100644 .history/initialization/route/initRoute_20220728133901.go create mode 100644 .history/initialization/route/initRoute_20220728133902.go create mode 100644 .history/initialization/route/initRoute_20220728133904.go create mode 100644 .history/initialization/route/initRoute_20220728133912.go create mode 100644 .history/initialization/route/initRoute_20220728133915.go create mode 100644 .history/initialization/route/initRoute_20220728133917.go create mode 100644 .history/initialization/route/initRoute_20220728134902.go create mode 100644 .history/initialization/route/initRoute_20220728134903.go create mode 100644 .history/initialization/route/initRoute_20220728134904.go create mode 100644 .history/initialization/route/initRoute_20220728134907.go create mode 100644 .history/initialization/route/initRoute_20220728134910.go create mode 100644 .history/initialization/route/initRoute_20220728134911.go create mode 100644 .history/initialization/route/initRoute_20220728134912.go create mode 100644 .history/initialization/route/initRoute_20220728134917.go create mode 100644 .history/initialization/route/initRoute_20220728134920.go create mode 100644 api/myTest/entry.go create mode 100644 api/myTest/testRoute/testroute.go create mode 100644 api/myTest/testRoute/type.go create mode 100644 apirouter/myTest/myTest_route.go create mode 100644 apirouter/myTest/type.go diff --git a/.history/README_20220728075530.md b/.history/README_20220728075530.md new file mode 100644 index 0000000..df391cf --- /dev/null +++ b/.history/README_20220728075530.md @@ -0,0 +1,57 @@ +# KPI综合管理系统 + + +```Project +|—— api + └── version1 + └── empower +|—— apirouter +|—— initialization + └── database + └── nosql + └── app + └── route +|identification +|—— config + └── configDatabase + └── configNosql + └── configAapp + └── configJson +|—— models +|—— overall +|—— middleware +``` +## Hr 文件结构说明 + +| 文件夹 | 说明 | 描述| +|--------- |------ |-----| +| `api` | api相关业务 | api业务实现 | +| `--version1` | 业务版本文件夹 | 版本界定 | +| `--empower` |OAuth 2.0 授权 |授权Token| +| `apirouter` | 路由器 | 业务路由设定 | +| `initialization` | 初始化相关业务 | 系统初始化方面的实现 | +| `--database` | 数据库业务 | 数据库业务初始化实现 | +| `--nosql` | nosql数据库业务 | nosql业务初始化实现(例:Redis) | +| `--app` | app数据库业务 | app业务初始化实现 | +| `--route` | 路由初始化 | 路由初始化 | +| `identification` | 授权验证器 | 授权验证器 | +| `config` | 系统配置相关业务 | 系统系统配置方面的实现 | +| `--configDatabase` | 数据库业务 | 数据库业务系统配置实现 | +| `--configNosql` | nosql数据库业务 | nosql业务系统配置实现(例:Redis) | +| `--configAapp` | app系统业务 | app业务系统配置实现 | +| `--configJson` | app JSON业务 | app业务系统配置实现 | +| `models` | 数据模型 | 数据库方面的配置 | +| `overall` | 全局对象 | 全局对象| +| `middleware` | 中间件 | 中间件 | + + +## 加密规则 +``` + 1、分解步骤 + one = md5(CodeString)+md5(AppKey) + two = md5(one)+AppKey + therr = md5(two) + 2、合并 + md5(md5(md5(CodeString)+md5(AppKey))+AppKey) +``` + diff --git a/.history/api/myTest/entry_20220728105227.go b/.history/api/myTest/entry_20220728105227.go new file mode 100644 index 0000000..e69de29 diff --git a/.history/api/myTest/entry_20220728105240.go b/.history/api/myTest/entry_20220728105240.go new file mode 100644 index 0000000..9067dd1 --- /dev/null +++ b/.history/api/myTest/entry_20220728105240.go @@ -0,0 +1,2 @@ +package mytest + diff --git a/.history/api/myTest/entry_20220728131248.go b/.history/api/myTest/entry_20220728131248.go new file mode 100644 index 0000000..3af4b0e --- /dev/null +++ b/.history/api/myTest/entry_20220728131248.go @@ -0,0 +1,5 @@ +package mytest + +type ApiEntry struct{ + +} \ No newline at end of file diff --git a/.history/api/myTest/entry_20220728131253.go b/.history/api/myTest/entry_20220728131253.go new file mode 100644 index 0000000..919dd6f --- /dev/null +++ b/.history/api/myTest/entry_20220728131253.go @@ -0,0 +1,5 @@ +package mytest + +type ApiEntry struct{ + Test +} \ No newline at end of file diff --git a/.history/api/myTest/entry_20220728131257.go b/.history/api/myTest/entry_20220728131257.go new file mode 100644 index 0000000..6a1fc78 --- /dev/null +++ b/.history/api/myTest/entry_20220728131257.go @@ -0,0 +1,7 @@ +package mytest + +import mytest "key_performance_indicators/apirouter/myTest" + +type ApiEntry struct { + Test mytest. +} \ No newline at end of file diff --git a/.history/api/myTest/entry_20220728131258.go b/.history/api/myTest/entry_20220728131258.go new file mode 100644 index 0000000..074632f --- /dev/null +++ b/.history/api/myTest/entry_20220728131258.go @@ -0,0 +1,7 @@ +package mytest + +import mytest "key_performance_indicators/apirouter/myTest" + +type ApiEntry struct { + Test mytest.TestApi +} diff --git a/.history/api/myTest/entry_20220728131321.go b/.history/api/myTest/entry_20220728131321.go new file mode 100644 index 0000000..7721e6c --- /dev/null +++ b/.history/api/myTest/entry_20220728131321.go @@ -0,0 +1,7 @@ +package mytest + +import mytest "key_performance_indicators/apirouter/myTest" + +type ApiEntry struct { + Test my +} diff --git a/.history/api/myTest/entry_20220728131324.go b/.history/api/myTest/entry_20220728131324.go new file mode 100644 index 0000000..074632f --- /dev/null +++ b/.history/api/myTest/entry_20220728131324.go @@ -0,0 +1,7 @@ +package mytest + +import mytest "key_performance_indicators/apirouter/myTest" + +type ApiEntry struct { + Test mytest.TestApi +} diff --git a/.history/api/myTest/entry_20220728131403.go b/.history/api/myTest/entry_20220728131403.go new file mode 100644 index 0000000..7721e6c --- /dev/null +++ b/.history/api/myTest/entry_20220728131403.go @@ -0,0 +1,7 @@ +package mytest + +import mytest "key_performance_indicators/apirouter/myTest" + +type ApiEntry struct { + Test my +} diff --git a/.history/api/myTest/entry_20220728131405.go b/.history/api/myTest/entry_20220728131405.go new file mode 100644 index 0000000..0168612 --- /dev/null +++ b/.history/api/myTest/entry_20220728131405.go @@ -0,0 +1,7 @@ +package mytest + +import mytest "key_performance_indicators/apirouter/myTest" + +type ApiEntry struct { + Test +} diff --git a/.history/api/myTest/entry_20220728131417.go b/.history/api/myTest/entry_20220728131417.go new file mode 100644 index 0000000..0168612 --- /dev/null +++ b/.history/api/myTest/entry_20220728131417.go @@ -0,0 +1,7 @@ +package mytest + +import mytest "key_performance_indicators/apirouter/myTest" + +type ApiEntry struct { + Test +} diff --git a/.history/api/myTest/entry_20220728131419.go b/.history/api/myTest/entry_20220728131419.go new file mode 100644 index 0000000..cc0ec57 --- /dev/null +++ b/.history/api/myTest/entry_20220728131419.go @@ -0,0 +1,7 @@ +package mytest + +import mytest "key_performance_indicators/apirouter/myTest" + +type ApiEntry struct { + Test tes +} diff --git a/.history/api/myTest/entry_20220728131425.go b/.history/api/myTest/entry_20220728131425.go new file mode 100644 index 0000000..115477e --- /dev/null +++ b/.history/api/myTest/entry_20220728131425.go @@ -0,0 +1,7 @@ +package mytest + +import mytest "key_performance_indicators/apirouter/myTest" + +type ApiEntry struct { + Test mytestroute +} diff --git a/.history/api/myTest/entry_20220728131426.go b/.history/api/myTest/entry_20220728131426.go new file mode 100644 index 0000000..fa738cc --- /dev/null +++ b/.history/api/myTest/entry_20220728131426.go @@ -0,0 +1,7 @@ +package mytest + +import mytest "key_performance_indicators/apirouter/myTest" + +type ApiEntry struct { + Test mytestroute. +} diff --git a/.history/api/myTest/entry_20220728131430.go b/.history/api/myTest/entry_20220728131430.go new file mode 100644 index 0000000..7ca1d65 --- /dev/null +++ b/.history/api/myTest/entry_20220728131430.go @@ -0,0 +1,7 @@ +package mytest + +import mytest "key_performance_indicators/apirouter/myTest" + +type ApiEntry struct { + Test mytestroute.mytestroute +} diff --git a/.history/api/myTest/entry_20220728131433.go b/.history/api/myTest/entry_20220728131433.go new file mode 100644 index 0000000..fa738cc --- /dev/null +++ b/.history/api/myTest/entry_20220728131433.go @@ -0,0 +1,7 @@ +package mytest + +import mytest "key_performance_indicators/apirouter/myTest" + +type ApiEntry struct { + Test mytestroute. +} diff --git a/.history/api/myTest/entry_20220728131437.go b/.history/api/myTest/entry_20220728131437.go new file mode 100644 index 0000000..fd5133a --- /dev/null +++ b/.history/api/myTest/entry_20220728131437.go @@ -0,0 +1,5 @@ +package mytest + +type ApiEntry struct { + Test mytestroute.ApiMethod +} diff --git a/.history/api/myTest/entry_20220728131449.go b/.history/api/myTest/entry_20220728131449.go new file mode 100644 index 0000000..23934b1 --- /dev/null +++ b/.history/api/myTest/entry_20220728131449.go @@ -0,0 +1,6 @@ +package mytest + + +type ApiEntry struct { + Test mytestroute.ApiMethod +} diff --git a/.history/api/myTest/entry_20220728131502.go b/.history/api/myTest/entry_20220728131502.go new file mode 100644 index 0000000..49ccba2 --- /dev/null +++ b/.history/api/myTest/entry_20220728131502.go @@ -0,0 +1,7 @@ +package mytest + +import + +type ApiEntry struct { + Test mytestroute.ApiMethod +} diff --git a/.history/api/myTest/entry_20220728131506.go b/.history/api/myTest/entry_20220728131506.go new file mode 100644 index 0000000..49ccba2 --- /dev/null +++ b/.history/api/myTest/entry_20220728131506.go @@ -0,0 +1,7 @@ +package mytest + +import + +type ApiEntry struct { + Test mytestroute.ApiMethod +} diff --git a/.history/api/myTest/entry_20220728131512.go b/.history/api/myTest/entry_20220728131512.go new file mode 100644 index 0000000..0d6d434 --- /dev/null +++ b/.history/api/myTest/entry_20220728131512.go @@ -0,0 +1,7 @@ +package mytest + +import "api." + +type ApiEntry struct { + Test mytestroute.ApiMethod +} diff --git a/.history/api/myTest/entry_20220728131518.go b/.history/api/myTest/entry_20220728131518.go new file mode 100644 index 0000000..8a97070 --- /dev/null +++ b/.history/api/myTest/entry_20220728131518.go @@ -0,0 +1,7 @@ +package mytest + +import "" + +type ApiEntry struct { + Test mytestroute.ApiMethod +} diff --git a/.history/api/myTest/entry_20220728131526.go b/.history/api/myTest/entry_20220728131526.go new file mode 100644 index 0000000..189f2f7 --- /dev/null +++ b/.history/api/myTest/entry_20220728131526.go @@ -0,0 +1,7 @@ +package mytest + +import "key_performance_indicators/api/" + +type ApiEntry struct { + Test mytestroute.ApiMethod +} diff --git a/.history/api/myTest/entry_20220728131528.go b/.history/api/myTest/entry_20220728131528.go new file mode 100644 index 0000000..e5d9d36 --- /dev/null +++ b/.history/api/myTest/entry_20220728131528.go @@ -0,0 +1,7 @@ +package mytest + +import "key_performance_indicators/api/My" + +type ApiEntry struct { + Test mytestroute.ApiMethod +} diff --git a/.history/api/myTest/entry_20220728131533.go b/.history/api/myTest/entry_20220728131533.go new file mode 100644 index 0000000..3c5058f --- /dev/null +++ b/.history/api/myTest/entry_20220728131533.go @@ -0,0 +1,7 @@ +package mytest + +import "key_performance_indicators/api/myt" + +type ApiEntry struct { + Test mytestroute.ApiMethod +} diff --git a/.history/api/myTest/entry_20220728131536.go b/.history/api/myTest/entry_20220728131536.go new file mode 100644 index 0000000..0e166e0 --- /dev/null +++ b/.history/api/myTest/entry_20220728131536.go @@ -0,0 +1,7 @@ +package mytest + +import "key_performance_indicators/api/myTest/" + +type ApiEntry struct { + Test mytestroute.ApiMethod +} diff --git a/.history/api/myTest/entry_20220728131545.go b/.history/api/myTest/entry_20220728131545.go new file mode 100644 index 0000000..32a7463 --- /dev/null +++ b/.history/api/myTest/entry_20220728131545.go @@ -0,0 +1,7 @@ +package mytest + +import "key_performance_indicators/api/myTest/mytestroute" + +type ApiEntry struct { + Test mytestroute.ApiMethod +} diff --git a/.history/api/myTest/entry_20220728131546.go b/.history/api/myTest/entry_20220728131546.go new file mode 100644 index 0000000..32a7463 --- /dev/null +++ b/.history/api/myTest/entry_20220728131546.go @@ -0,0 +1,7 @@ +package mytest + +import "key_performance_indicators/api/myTest/mytestroute" + +type ApiEntry struct { + Test mytestroute.ApiMethod +} diff --git a/.history/api/myTest/entry_20220728131554.go b/.history/api/myTest/entry_20220728131554.go new file mode 100644 index 0000000..32a7463 --- /dev/null +++ b/.history/api/myTest/entry_20220728131554.go @@ -0,0 +1,7 @@ +package mytest + +import "key_performance_indicators/api/myTest/mytestroute" + +type ApiEntry struct { + Test mytestroute.ApiMethod +} diff --git a/.history/api/myTest/entry_20220728131601.go b/.history/api/myTest/entry_20220728131601.go new file mode 100644 index 0000000..32a7463 --- /dev/null +++ b/.history/api/myTest/entry_20220728131601.go @@ -0,0 +1,7 @@ +package mytest + +import "key_performance_indicators/api/myTest/mytestroute" + +type ApiEntry struct { + Test mytestroute.ApiMethod +} diff --git a/.history/api/myTest/entry_20220728131744.go b/.history/api/myTest/entry_20220728131744.go new file mode 100644 index 0000000..695542a --- /dev/null +++ b/.history/api/myTest/entry_20220728131744.go @@ -0,0 +1,7 @@ +package mytest + +// import "key_performance_indicators/api/myTest/mytestroute" + +type ApiEntry struct { + Test mytestroute.ApiMethod +} diff --git a/.history/api/myTest/entry_20220728131746.go b/.history/api/myTest/entry_20220728131746.go new file mode 100644 index 0000000..a5f4a6e --- /dev/null +++ b/.history/api/myTest/entry_20220728131746.go @@ -0,0 +1,8 @@ +package mytest + +// import "key_performance_indicators/api/myTest/mytestroute" + +type ApiEntry struct { + // Test mytestroute.ApiMethod + +} diff --git a/.history/api/myTest/entry_20220728131748.go b/.history/api/myTest/entry_20220728131748.go new file mode 100644 index 0000000..a5f4a6e --- /dev/null +++ b/.history/api/myTest/entry_20220728131748.go @@ -0,0 +1,8 @@ +package mytest + +// import "key_performance_indicators/api/myTest/mytestroute" + +type ApiEntry struct { + // Test mytestroute.ApiMethod + +} diff --git a/.history/api/myTest/entry_20220728131753.go b/.history/api/myTest/entry_20220728131753.go new file mode 100644 index 0000000..d95f5d6 --- /dev/null +++ b/.history/api/myTest/entry_20220728131753.go @@ -0,0 +1,8 @@ +package mytest + +// import "key_performance_indicators/api/myTest/mytestroute" + +type ApiEntry struct { + // Test mytestroute.ApiMethod + MapToStructApi maptostruct.ApiMethod +} diff --git a/.history/api/myTest/entry_20220728131801.go b/.history/api/myTest/entry_20220728131801.go new file mode 100644 index 0000000..a5f4a6e --- /dev/null +++ b/.history/api/myTest/entry_20220728131801.go @@ -0,0 +1,8 @@ +package mytest + +// import "key_performance_indicators/api/myTest/mytestroute" + +type ApiEntry struct { + // Test mytestroute.ApiMethod + +} diff --git a/.history/api/myTest/entry_20220728131804.go b/.history/api/myTest/entry_20220728131804.go new file mode 100644 index 0000000..a5f4a6e --- /dev/null +++ b/.history/api/myTest/entry_20220728131804.go @@ -0,0 +1,8 @@ +package mytest + +// import "key_performance_indicators/api/myTest/mytestroute" + +type ApiEntry struct { + // Test mytestroute.ApiMethod + +} diff --git a/.history/api/myTest/entry_20220728131807.go b/.history/api/myTest/entry_20220728131807.go new file mode 100644 index 0000000..25802ca --- /dev/null +++ b/.history/api/myTest/entry_20220728131807.go @@ -0,0 +1,8 @@ +package mytest + +// import "key_performance_indicators/api/myTest/mytestroute" + +type ApiEntry struct { + // Test mytestroute.ApiMethod + my +} diff --git a/.history/api/myTest/entry_20220728131808.go b/.history/api/myTest/entry_20220728131808.go new file mode 100644 index 0000000..0a7ffe9 --- /dev/null +++ b/.history/api/myTest/entry_20220728131808.go @@ -0,0 +1,10 @@ +package mytest + +import mytest "key_performance_indicators/apirouter/myTest" + +// import "key_performance_indicators/api/myTest/mytestroute" + +type ApiEntry struct { + // Test mytestroute.ApiMethod + mytest +} diff --git a/.history/api/myTest/entry_20220728131815.go b/.history/api/myTest/entry_20220728131815.go new file mode 100644 index 0000000..300a7e5 --- /dev/null +++ b/.history/api/myTest/entry_20220728131815.go @@ -0,0 +1,10 @@ +package mytest + +import mytest "key_performance_indicators/apirouter/myTest" + +// import "key_performance_indicators/api/myTest/mytestroute" + +type ApiEntry struct { + // Test mytestroute.ApiMethod + mytest. +} diff --git a/.history/api/myTest/entry_20220728131817.go b/.history/api/myTest/entry_20220728131817.go new file mode 100644 index 0000000..7425ffe --- /dev/null +++ b/.history/api/myTest/entry_20220728131817.go @@ -0,0 +1,8 @@ +package mytest + +// import "key_performance_indicators/api/myTest/mytestroute" + +type ApiEntry struct { + // Test mytestroute.ApiMethod + +} diff --git a/.history/api/myTest/entry_20220728131824.go b/.history/api/myTest/entry_20220728131824.go new file mode 100644 index 0000000..25802ca --- /dev/null +++ b/.history/api/myTest/entry_20220728131824.go @@ -0,0 +1,8 @@ +package mytest + +// import "key_performance_indicators/api/myTest/mytestroute" + +type ApiEntry struct { + // Test mytestroute.ApiMethod + my +} diff --git a/.history/api/myTest/entry_20220728131827.go b/.history/api/myTest/entry_20220728131827.go new file mode 100644 index 0000000..7425ffe --- /dev/null +++ b/.history/api/myTest/entry_20220728131827.go @@ -0,0 +1,8 @@ +package mytest + +// import "key_performance_indicators/api/myTest/mytestroute" + +type ApiEntry struct { + // Test mytestroute.ApiMethod + +} diff --git a/.history/api/myTest/entry_20220728132012.go b/.history/api/myTest/entry_20220728132012.go new file mode 100644 index 0000000..8fb6b02 --- /dev/null +++ b/.history/api/myTest/entry_20220728132012.go @@ -0,0 +1,8 @@ +package mytest + +// import "key_performance_indicators/api/myTest/mytestroute" + +type ApiEntry struct { + // Test mytestroute.ApiMethod + t +} diff --git a/.history/api/myTest/entry_20220728132014.go b/.history/api/myTest/entry_20220728132014.go new file mode 100644 index 0000000..c1adcf3 --- /dev/null +++ b/.history/api/myTest/entry_20220728132014.go @@ -0,0 +1,8 @@ +package mytest + +// import "key_performance_indicators/api/myTest/mytestroute" + +type ApiEntry struct { + // Test mytestroute.ApiMethod + test +} diff --git a/.history/api/myTest/entry_20220728132015.go b/.history/api/myTest/entry_20220728132015.go new file mode 100644 index 0000000..9f0f4b5 --- /dev/null +++ b/.history/api/myTest/entry_20220728132015.go @@ -0,0 +1,8 @@ +package mytest + +// import "key_performance_indicators/api/myTest/mytestroute" + +type ApiEntry struct { + // Test mytestroute.ApiMethod + testr +} diff --git a/.history/api/myTest/entry_20220728132025.go b/.history/api/myTest/entry_20220728132025.go new file mode 100644 index 0000000..c18aa72 --- /dev/null +++ b/.history/api/myTest/entry_20220728132025.go @@ -0,0 +1,8 @@ +package mytest + +// import "key_performance_indicators/api/myTest/mytestroute" + +type ApiEntry struct { + // Test mytestroute.ApiMethod + testroute. +} diff --git a/.history/api/myTest/entry_20220728132027.go b/.history/api/myTest/entry_20220728132027.go new file mode 100644 index 0000000..41c563f --- /dev/null +++ b/.history/api/myTest/entry_20220728132027.go @@ -0,0 +1,10 @@ +package mytest + +import testroute "key_performance_indicators/api/myTest/testRoute" + +// import "key_performance_indicators/api/myTest/mytestroute" + +type ApiEntry struct { + // Test mytestroute.ApiMethod + testroute.ApiMethod +} diff --git a/.history/api/myTest/entry_20220728132028.go b/.history/api/myTest/entry_20220728132028.go new file mode 100644 index 0000000..41c563f --- /dev/null +++ b/.history/api/myTest/entry_20220728132028.go @@ -0,0 +1,10 @@ +package mytest + +import testroute "key_performance_indicators/api/myTest/testRoute" + +// import "key_performance_indicators/api/myTest/mytestroute" + +type ApiEntry struct { + // Test mytestroute.ApiMethod + testroute.ApiMethod +} diff --git a/.history/api/myTest/entry_20220728132032.go b/.history/api/myTest/entry_20220728132032.go new file mode 100644 index 0000000..2e8ff91 --- /dev/null +++ b/.history/api/myTest/entry_20220728132032.go @@ -0,0 +1,9 @@ +package mytest + +import testroute "key_performance_indicators/api/myTest/testRoute" + + +type ApiEntry struct { + // Test mytestroute.ApiMethod + testroute.ApiMethod +} diff --git a/.history/api/myTest/entry_20220728132035.go b/.history/api/myTest/entry_20220728132035.go new file mode 100644 index 0000000..e39fef9 --- /dev/null +++ b/.history/api/myTest/entry_20220728132035.go @@ -0,0 +1,9 @@ +package mytest + +import testroute "key_performance_indicators/api/myTest/testRoute" + + +type ApiEntry struct { + // Test mytestroute.ApiMethod + Test testroute.ApiMethod +} diff --git a/.history/api/myTest/entry_20220728132036.go b/.history/api/myTest/entry_20220728132036.go new file mode 100644 index 0000000..92e7be3 --- /dev/null +++ b/.history/api/myTest/entry_20220728132036.go @@ -0,0 +1,7 @@ +package mytest + +import testroute "key_performance_indicators/api/myTest/testRoute" + +type ApiEntry struct { + Test testroute.ApiMethod +} diff --git a/.history/api/myTest/entry_20220728132039.go b/.history/api/myTest/entry_20220728132039.go new file mode 100644 index 0000000..92e7be3 --- /dev/null +++ b/.history/api/myTest/entry_20220728132039.go @@ -0,0 +1,7 @@ +package mytest + +import testroute "key_performance_indicators/api/myTest/testRoute" + +type ApiEntry struct { + Test testroute.ApiMethod +} diff --git a/.history/api/myTest/entry_20220728132049.go b/.history/api/myTest/entry_20220728132049.go new file mode 100644 index 0000000..6453c3c --- /dev/null +++ b/.history/api/myTest/entry_20220728132049.go @@ -0,0 +1,10 @@ +package mytest + +import testroute "key_performance_indicators/api/myTest/testRoute" + +type ApiEntry struct { + Test testroute.ApiMethod +} + + +var diff --git a/.history/api/myTest/entry_20220728132052.go b/.history/api/myTest/entry_20220728132052.go new file mode 100644 index 0000000..3724599 --- /dev/null +++ b/.history/api/myTest/entry_20220728132052.go @@ -0,0 +1,10 @@ +package mytest + +import testroute "key_performance_indicators/api/myTest/testRoute" + +type ApiEntry struct { + Test testroute.ApiMethod +} + + +var app diff --git a/.history/api/myTest/entry_20220728132055.go b/.history/api/myTest/entry_20220728132055.go new file mode 100644 index 0000000..6fe25d7 --- /dev/null +++ b/.history/api/myTest/entry_20220728132055.go @@ -0,0 +1,10 @@ +package mytest + +import testroute "key_performance_indicators/api/myTest/testRoute" + +type ApiEntry struct { + Test testroute.ApiMethod +} + + +var AppApiEntry = new() diff --git a/.history/api/myTest/entry_20220728132057.go b/.history/api/myTest/entry_20220728132057.go new file mode 100644 index 0000000..71e4fb8 --- /dev/null +++ b/.history/api/myTest/entry_20220728132057.go @@ -0,0 +1,9 @@ +package mytest + +import testroute "key_performance_indicators/api/myTest/testRoute" + +type ApiEntry struct { + Test testroute.ApiMethod +} + +var AppApiEntry = new(ApiEntry) diff --git a/.history/api/myTest/testRoute/testroute_20220728105311.go b/.history/api/myTest/testRoute/testroute_20220728105311.go new file mode 100644 index 0000000..e69de29 diff --git a/.history/api/myTest/testRoute/testroute_20220728105316.go b/.history/api/myTest/testRoute/testroute_20220728105316.go new file mode 100644 index 0000000..05a880b --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728105316.go @@ -0,0 +1 @@ +pa \ No newline at end of file diff --git a/.history/api/myTest/testRoute/testroute_20220728105323.go b/.history/api/myTest/testRoute/testroute_20220728105323.go new file mode 100644 index 0000000..b6e7d69 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728105323.go @@ -0,0 +1 @@ +package mytset \ No newline at end of file diff --git a/.history/api/myTest/testRoute/testroute_20220728105330.go b/.history/api/myTest/testRoute/testroute_20220728105330.go new file mode 100644 index 0000000..2d1f664 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728105330.go @@ -0,0 +1 @@ +package mytest diff --git a/.history/api/myTest/testRoute/testroute_20220728105333.go b/.history/api/myTest/testRoute/testroute_20220728105333.go new file mode 100644 index 0000000..9067dd1 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728105333.go @@ -0,0 +1,2 @@ +package mytest + diff --git a/.history/api/myTest/testRoute/testroute_20220728105444.go b/.history/api/myTest/testRoute/testroute_20220728105444.go new file mode 100644 index 0000000..a9ad729 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728105444.go @@ -0,0 +1,2 @@ +package mytestr + diff --git a/.history/api/myTest/testRoute/testroute_20220728105447.go b/.history/api/myTest/testRoute/testroute_20220728105447.go new file mode 100644 index 0000000..39e1d3f --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728105447.go @@ -0,0 +1,2 @@ +package mytestroute + diff --git a/.history/api/myTest/testRoute/testroute_20220728131912.go b/.history/api/myTest/testRoute/testroute_20220728131912.go new file mode 100644 index 0000000..597acc7 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728131912.go @@ -0,0 +1 @@ +package \ No newline at end of file diff --git a/.history/api/myTest/testRoute/testroute_20220728131914.go b/.history/api/myTest/testRoute/testroute_20220728131914.go new file mode 100644 index 0000000..e69de29 diff --git a/.history/api/myTest/testRoute/testroute_20220728131924.go b/.history/api/myTest/testRoute/testroute_20220728131924.go new file mode 100644 index 0000000..05a880b --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728131924.go @@ -0,0 +1 @@ +pa \ No newline at end of file diff --git a/.history/api/myTest/testRoute/testroute_20220728131927.go b/.history/api/myTest/testRoute/testroute_20220728131927.go new file mode 100644 index 0000000..597acc7 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728131927.go @@ -0,0 +1 @@ +package \ No newline at end of file diff --git a/.history/api/myTest/testRoute/testroute_20220728131929.go b/.history/api/myTest/testRoute/testroute_20220728131929.go new file mode 100644 index 0000000..597acc7 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728131929.go @@ -0,0 +1 @@ +package \ No newline at end of file diff --git a/.history/api/myTest/testRoute/testroute_20220728131953.go b/.history/api/myTest/testRoute/testroute_20220728131953.go new file mode 100644 index 0000000..4f6c4ee --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728131953.go @@ -0,0 +1 @@ +p \ No newline at end of file diff --git a/.history/api/myTest/testRoute/testroute_20220728131959.go b/.history/api/myTest/testRoute/testroute_20220728131959.go new file mode 100644 index 0000000..94329a3 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728131959.go @@ -0,0 +1,2 @@ +package testroute + diff --git a/.history/api/myTest/testRoute/testroute_20220728132003.go b/.history/api/myTest/testRoute/testroute_20220728132003.go new file mode 100644 index 0000000..fc841a8 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728132003.go @@ -0,0 +1 @@ +package testroute diff --git a/.history/api/myTest/testRoute/testroute_20220728132005.go b/.history/api/myTest/testRoute/testroute_20220728132005.go new file mode 100644 index 0000000..fc841a8 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728132005.go @@ -0,0 +1 @@ +package testroute diff --git a/.history/api/myTest/testRoute/testroute_20220728132229.go b/.history/api/myTest/testRoute/testroute_20220728132229.go new file mode 100644 index 0000000..11ea004 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728132229.go @@ -0,0 +1,3 @@ +package testroute + +func \ No newline at end of file diff --git a/.history/api/myTest/testRoute/testroute_20220728132232.go b/.history/api/myTest/testRoute/testroute_20220728132232.go new file mode 100644 index 0000000..ab32e46 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728132232.go @@ -0,0 +1,3 @@ +package testroute + +func () \ No newline at end of file diff --git a/.history/api/myTest/testRoute/testroute_20220728132241.go b/.history/api/myTest/testRoute/testroute_20220728132241.go new file mode 100644 index 0000000..027080f --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728132241.go @@ -0,0 +1,3 @@ +package testroute + +func (ApiMethod) \ No newline at end of file diff --git a/.history/api/myTest/testRoute/testroute_20220728132242.go b/.history/api/myTest/testRoute/testroute_20220728132242.go new file mode 100644 index 0000000..027080f --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728132242.go @@ -0,0 +1,3 @@ +package testroute + +func (ApiMethod) \ No newline at end of file diff --git a/.history/api/myTest/testRoute/testroute_20220728132245.go b/.history/api/myTest/testRoute/testroute_20220728132245.go new file mode 100644 index 0000000..0b129ed --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728132245.go @@ -0,0 +1,3 @@ +package testroute + +func (a*ApiMethod) \ No newline at end of file diff --git a/.history/api/myTest/testRoute/testroute_20220728132247.go b/.history/api/myTest/testRoute/testroute_20220728132247.go new file mode 100644 index 0000000..ac964f7 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728132247.go @@ -0,0 +1,3 @@ +package testroute + +func (a *ApiMethod) \ No newline at end of file diff --git a/.history/api/myTest/testRoute/testroute_20220728132255.go b/.history/api/myTest/testRoute/testroute_20220728132255.go new file mode 100644 index 0000000..40c93e8 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728132255.go @@ -0,0 +1,3 @@ +package testroute + +func (a *ApiMethod)MyTest() \ No newline at end of file diff --git a/.history/api/myTest/testRoute/testroute_20220728132257.go b/.history/api/myTest/testRoute/testroute_20220728132257.go new file mode 100644 index 0000000..99a3635 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728132257.go @@ -0,0 +1,3 @@ +package testroute + +func (a *ApiMethod)MyTest(c) \ No newline at end of file diff --git a/.history/api/myTest/testRoute/testroute_20220728132259.go b/.history/api/myTest/testRoute/testroute_20220728132259.go new file mode 100644 index 0000000..f3c0131 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728132259.go @@ -0,0 +1,3 @@ +package testroute + +func (a *ApiMethod)MyTest(ctx ) \ No newline at end of file diff --git a/.history/api/myTest/testRoute/testroute_20220728132302.go b/.history/api/myTest/testRoute/testroute_20220728132302.go new file mode 100644 index 0000000..d733dbf --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728132302.go @@ -0,0 +1,5 @@ +package testroute + +import "github.com/gin-gonic/gin" + +func (a *ApiMethod) MyTest(ctx *gin.Context) diff --git a/.history/api/myTest/testRoute/testroute_20220728132308.go b/.history/api/myTest/testRoute/testroute_20220728132308.go new file mode 100644 index 0000000..233568b --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728132308.go @@ -0,0 +1,7 @@ +package testroute + +import "github.com/gin-gonic/gin" + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + +} diff --git a/.history/api/myTest/testRoute/testroute_20220728132309.go b/.history/api/myTest/testRoute/testroute_20220728132309.go new file mode 100644 index 0000000..e369108 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728132309.go @@ -0,0 +1,7 @@ +package testroute + +import "github.com/gin-gonic/gin" + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + +} diff --git a/.history/api/myTest/testRoute/testroute_20220728132322.go b/.history/api/myTest/testRoute/testroute_20220728132322.go new file mode 100644 index 0000000..1e918ed --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728132322.go @@ -0,0 +1,7 @@ +package testroute + +import "github.com/gin-gonic/gin" + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + ctx.get +} diff --git a/.history/api/myTest/testRoute/testroute_20220728132324.go b/.history/api/myTest/testRoute/testroute_20220728132324.go new file mode 100644 index 0000000..7b1db75 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728132324.go @@ -0,0 +1,7 @@ +package testroute + +import "github.com/gin-gonic/gin" + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + ctx.Qu +} diff --git a/.history/api/myTest/testRoute/testroute_20220728132325.go b/.history/api/myTest/testRoute/testroute_20220728132325.go new file mode 100644 index 0000000..d355098 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728132325.go @@ -0,0 +1,7 @@ +package testroute + +import "github.com/gin-gonic/gin" + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + ctx.Query() +} diff --git a/.history/api/myTest/testRoute/testroute_20220728132327.go b/.history/api/myTest/testRoute/testroute_20220728132327.go new file mode 100644 index 0000000..f13e42c --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728132327.go @@ -0,0 +1,7 @@ +package testroute + +import "github.com/gin-gonic/gin" + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + ctx.Query("name") +} diff --git a/.history/api/myTest/testRoute/testroute_20220728132332.go b/.history/api/myTest/testRoute/testroute_20220728132332.go new file mode 100644 index 0000000..f4b4307 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728132332.go @@ -0,0 +1,7 @@ +package testroute + +import "github.com/gin-gonic/gin" + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + name := ctx.Query("name") +} diff --git a/.history/api/myTest/testRoute/testroute_20220728132343.go b/.history/api/myTest/testRoute/testroute_20220728132343.go new file mode 100644 index 0000000..03ec0da --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728132343.go @@ -0,0 +1,8 @@ +package testroute + +import "github.com/gin-gonic/gin" + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + name := ctx.Query("name") + age := ctx.Query("age") +} diff --git a/.history/api/myTest/testRoute/testroute_20220728132344.go b/.history/api/myTest/testRoute/testroute_20220728132344.go new file mode 100644 index 0000000..03ec0da --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728132344.go @@ -0,0 +1,8 @@ +package testroute + +import "github.com/gin-gonic/gin" + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + name := ctx.Query("name") + age := ctx.Query("age") +} diff --git a/.history/api/myTest/testRoute/testroute_20220728132348.go b/.history/api/myTest/testRoute/testroute_20220728132348.go new file mode 100644 index 0000000..1761fc1 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728132348.go @@ -0,0 +1,10 @@ +package testroute + +import "github.com/gin-gonic/gin" + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + name := ctx.Query("name") + age := ctx.Query("age") + + +} diff --git a/.history/api/myTest/testRoute/testroute_20220728132353.go b/.history/api/myTest/testRoute/testroute_20220728132353.go new file mode 100644 index 0000000..0472b2e --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728132353.go @@ -0,0 +1,10 @@ +package testroute + +import "github.com/gin-gonic/gin" + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + name := ctx.Query("name") + age := ctx.Query("age") + + var +} diff --git a/.history/api/myTest/testRoute/testroute_20220728132403.go b/.history/api/myTest/testRoute/testroute_20220728132403.go new file mode 100644 index 0000000..43ebf39 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728132403.go @@ -0,0 +1,10 @@ +package testroute + +import "github.com/gin-gonic/gin" + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + name := ctx.Query("name") + age := ctx.Query("age") + + var p1 = Person +} diff --git a/.history/api/myTest/testRoute/testroute_20220728132406.go b/.history/api/myTest/testRoute/testroute_20220728132406.go new file mode 100644 index 0000000..9bc168b --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728132406.go @@ -0,0 +1,10 @@ +package testroute + +import "github.com/gin-gonic/gin" + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + name := ctx.Query("name") + age := ctx.Query("age") + + var p1 = Person{} +} diff --git a/.history/api/myTest/testRoute/testroute_20220728132412.go b/.history/api/myTest/testRoute/testroute_20220728132412.go new file mode 100644 index 0000000..266db53 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728132412.go @@ -0,0 +1,12 @@ +package testroute + +import "github.com/gin-gonic/gin" + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + name := ctx.Query("name") + age := ctx.Query("age") + + var p1 = Person{ + Name: name, + } +} diff --git a/.history/api/myTest/testRoute/testroute_20220728132415.go b/.history/api/myTest/testRoute/testroute_20220728132415.go new file mode 100644 index 0000000..fc8d8f8 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728132415.go @@ -0,0 +1,13 @@ +package testroute + +import "github.com/gin-gonic/gin" + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + name := ctx.Query("name") + age := ctx.Query("age") + + var p1 = Person{ + Name: name, + Age + } +} diff --git a/.history/api/myTest/testRoute/testroute_20220728132419.go b/.history/api/myTest/testRoute/testroute_20220728132419.go new file mode 100644 index 0000000..1a189e0 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728132419.go @@ -0,0 +1,13 @@ +package testroute + +import "github.com/gin-gonic/gin" + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + name := ctx.Query("name") + age := ctx.Query("age") + + var p1 = Person{ + Name: name, + Age: age, + } +} diff --git a/.history/api/myTest/testRoute/testroute_20220728132420.go b/.history/api/myTest/testRoute/testroute_20220728132420.go new file mode 100644 index 0000000..f26ed7a --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728132420.go @@ -0,0 +1,13 @@ +package testroute + +import "github.com/gin-gonic/gin" + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + name := ctx.Query("name") + age := ctx.Query("age") + + var p1 = Person{ + Name: name, + Age: age, + } +} diff --git a/.history/api/myTest/testRoute/testroute_20220728132428.go b/.history/api/myTest/testRoute/testroute_20220728132428.go new file mode 100644 index 0000000..2388686 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728132428.go @@ -0,0 +1,14 @@ +package testroute + +import "github.com/gin-gonic/gin" + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + name := ctx.Query("name") + age := ctx.Query("age") + + + var p1 = Person{ + Name: name, + Age: age, + } +} diff --git a/.history/api/myTest/testRoute/testroute_20220728132432.go b/.history/api/myTest/testRoute/testroute_20220728132432.go new file mode 100644 index 0000000..32a27fa --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728132432.go @@ -0,0 +1,15 @@ +package testroute + +import "github.com/gin-gonic/gin" + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + name := ctx.Query("name") + age := ctx.Query("age") + + strings. + + var p1 = Person{ + Name: name, + Age: age, + } +} diff --git a/.history/api/myTest/testRoute/testroute_20220728132440.go b/.history/api/myTest/testRoute/testroute_20220728132440.go new file mode 100644 index 0000000..2bcbafa --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728132440.go @@ -0,0 +1,15 @@ +package testroute + +import "github.com/gin-gonic/gin" + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + name := ctx.Query("name") + age := ctx.Query("age") + + stri + + var p1 = Person{ + Name: name, + Age: age, + } +} diff --git a/.history/api/myTest/testRoute/testroute_20220728132445.go b/.history/api/myTest/testRoute/testroute_20220728132445.go new file mode 100644 index 0000000..38689e0 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728132445.go @@ -0,0 +1,19 @@ +package testroute + +import ( + "strconv" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + name := ctx.Query("name") + age := ctx.Query("age") + + strconv.Atoi() + + var p1 = Person{ + Name: name, + Age: age, + } +} diff --git a/.history/api/myTest/testRoute/testroute_20220728132448.go b/.history/api/myTest/testRoute/testroute_20220728132448.go new file mode 100644 index 0000000..673fc11 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728132448.go @@ -0,0 +1,19 @@ +package testroute + +import ( + "strconv" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + name := ctx.Query("name") + age := ctx.Query("age") + + strconv.Atoi(age) + + var p1 = Person{ + Name: name, + Age: age, + } +} diff --git a/.history/api/myTest/testRoute/testroute_20220728132451.go b/.history/api/myTest/testRoute/testroute_20220728132451.go new file mode 100644 index 0000000..7a06477 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728132451.go @@ -0,0 +1,19 @@ +package testroute + +import ( + "strconv" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + name := ctx.Query("name") + age := ctx.Query("age") + + age strconv.Atoi(age) + + var p1 = Person{ + Name: name, + Age: age, + } +} diff --git a/.history/api/myTest/testRoute/testroute_20220728132459.go b/.history/api/myTest/testRoute/testroute_20220728132459.go new file mode 100644 index 0000000..ff8782d --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728132459.go @@ -0,0 +1,19 @@ +package testroute + +import ( + "strconv" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + name := ctx.Query("name") + age := ctx.Query("age") + + age, _ = strconv.Atoi(age) + + var p1 = Person{ + Name: name, + Age: age, + } +} diff --git a/.history/api/myTest/testRoute/testroute_20220728132503.go b/.history/api/myTest/testRoute/testroute_20220728132503.go new file mode 100644 index 0000000..21b1c92 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728132503.go @@ -0,0 +1,19 @@ +package testroute + +import ( + "strconv" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + name := ctx.Query("name") + age := ctx.Query("age") + + age, _ := strconv.Atoi(age) + + var p1 = Person{ + Name: name, + Age: age, + } +} diff --git a/.history/api/myTest/testRoute/testroute_20220728132505.go b/.history/api/myTest/testRoute/testroute_20220728132505.go new file mode 100644 index 0000000..ff8782d --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728132505.go @@ -0,0 +1,19 @@ +package testroute + +import ( + "strconv" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + name := ctx.Query("name") + age := ctx.Query("age") + + age, _ = strconv.Atoi(age) + + var p1 = Person{ + Name: name, + Age: age, + } +} diff --git a/.history/api/myTest/testRoute/testroute_20220728132510.go b/.history/api/myTest/testRoute/testroute_20220728132510.go new file mode 100644 index 0000000..e6ca287 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728132510.go @@ -0,0 +1,19 @@ +package testroute + +import ( + "strconv" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + name := ctx.Query("name") + age := ctx.Query("age") + + newAge, _ = strconv.Atoi(age) + + var p1 = Person{ + Name: name, + Age: age, + } +} diff --git a/.history/api/myTest/testRoute/testroute_20220728132511.go b/.history/api/myTest/testRoute/testroute_20220728132511.go new file mode 100644 index 0000000..e6ca287 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728132511.go @@ -0,0 +1,19 @@ +package testroute + +import ( + "strconv" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + name := ctx.Query("name") + age := ctx.Query("age") + + newAge, _ = strconv.Atoi(age) + + var p1 = Person{ + Name: name, + Age: age, + } +} diff --git a/.history/api/myTest/testRoute/testroute_20220728132515.go b/.history/api/myTest/testRoute/testroute_20220728132515.go new file mode 100644 index 0000000..03dc265 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728132515.go @@ -0,0 +1,19 @@ +package testroute + +import ( + "strconv" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + name := ctx.Query("name") + age := ctx.Query("age") + + newAge, err = strconv.Atoi(age) + + var p1 = Person{ + Name: name, + Age: age, + } +} diff --git a/.history/api/myTest/testRoute/testroute_20220728132523.go b/.history/api/myTest/testRoute/testroute_20220728132523.go new file mode 100644 index 0000000..b669090 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728132523.go @@ -0,0 +1,22 @@ +package testroute + +import ( + "strconv" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + name := ctx.Query("name") + age := ctx.Query("age") + + newAge, err := strconv.Atoi(age) + + if err != nil{ + + } + var p1 = Person{ + Name: name, + Age: age, + } +} diff --git a/.history/api/myTest/testRoute/testroute_20220728132533.go b/.history/api/myTest/testRoute/testroute_20220728132533.go new file mode 100644 index 0000000..e555e07 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728132533.go @@ -0,0 +1,23 @@ +package testroute + +import ( + "key_performance_indicators/overall/publicmethod" + "strconv" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + name := ctx.Query("name") + age := ctx.Query("age") + + newAge, err := strconv.Atoi(age) + + if err != nil{ + publicmethod. + } + var p1 = Person{ + Name: name, + Age: age, + } +} diff --git a/.history/api/myTest/testRoute/testroute_20220728132535.go b/.history/api/myTest/testRoute/testroute_20220728132535.go new file mode 100644 index 0000000..ab82c0f --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728132535.go @@ -0,0 +1,23 @@ +package testroute + +import ( + "key_performance_indicators/overall/publicmethod" + "strconv" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + name := ctx.Query("name") + age := ctx.Query("age") + + newAge, err := strconv.Atoi(age) + + if err != nil{ + publicmethod.ErrorCodeMsg + } + var p1 = Person{ + Name: name, + Age: age, + } +} diff --git a/.history/api/myTest/testRoute/testroute_20220728132543.go b/.history/api/myTest/testRoute/testroute_20220728132543.go new file mode 100644 index 0000000..31064bd --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728132543.go @@ -0,0 +1,23 @@ +package testroute + +import ( + "key_performance_indicators/overall/publicmethod" + "strconv" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + name := ctx.Query("name") + age := ctx.Query("age") + + newAge, err := strconv.Atoi(age) + + if err != nil { + publicmethod.Result() + } + var p1 = Person{ + Name: name, + Age: age, + } +} diff --git a/.history/api/myTest/testRoute/testroute_20220728132613.go b/.history/api/myTest/testRoute/testroute_20220728132613.go new file mode 100644 index 0000000..7f05dd8 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728132613.go @@ -0,0 +1,23 @@ +package testroute + +import ( + "key_performance_indicators/overall/publicmethod" + "strconv" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + name := ctx.Query("name") + age := ctx.Query("age") + + newAge, err := strconv.Atoi(age) + + if err != nil { + publicmethod.Result(1, err.Error(), c) + } + var p1 = Person{ + Name: name, + Age: age, + } +} diff --git a/.history/api/myTest/testRoute/testroute_20220728132614.go b/.history/api/myTest/testRoute/testroute_20220728132614.go new file mode 100644 index 0000000..17c549b --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728132614.go @@ -0,0 +1,23 @@ +package testroute + +import ( + "key_performance_indicators/overall/publicmethod" + "strconv" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + name := ctx.Query("name") + age := ctx.Query("age") + + newAge, err := strconv.Atoi(age) + + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + var p1 = Person{ + Name: name, + Age: age, + } +} diff --git a/.history/api/myTest/testRoute/testroute_20220728132618.go b/.history/api/myTest/testRoute/testroute_20220728132618.go new file mode 100644 index 0000000..661c116 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728132618.go @@ -0,0 +1,23 @@ +package testroute + +import ( + "key_performance_indicators/overall/publicmethod" + "strconv" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + name := ctx.Query("name") + age := ctx.Query("age") + + newAge, err := strconv.Atoi(age) + + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + var p1 = Person{ + Name: name, + Age: new, + } +} diff --git a/.history/api/myTest/testRoute/testroute_20220728132619.go b/.history/api/myTest/testRoute/testroute_20220728132619.go new file mode 100644 index 0000000..7b635b6 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728132619.go @@ -0,0 +1,23 @@ +package testroute + +import ( + "key_performance_indicators/overall/publicmethod" + "strconv" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + name := ctx.Query("name") + age := ctx.Query("age") + + newAge, err := strconv.Atoi(age) + + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + var p1 = Person{ + Name: name, + Age: newAge, + } +} diff --git a/.history/api/myTest/testRoute/testroute_20220728132621.go b/.history/api/myTest/testRoute/testroute_20220728132621.go new file mode 100644 index 0000000..1bc3287 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728132621.go @@ -0,0 +1,24 @@ +package testroute + +import ( + "key_performance_indicators/overall/publicmethod" + "strconv" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + name := ctx.Query("name") + age := ctx.Query("age") + + newAge, err := strconv.Atoi(age) + + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + var p1 = Person{ + Name: name, + Age: newAge, + } + +} diff --git a/.history/api/myTest/testRoute/testroute_20220728132640.go b/.history/api/myTest/testRoute/testroute_20220728132640.go new file mode 100644 index 0000000..703d20c --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728132640.go @@ -0,0 +1,24 @@ +package testroute + +import ( + "key_performance_indicators/overall/publicmethod" + "strconv" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + name := ctx.Query("name") + age := ctx.Query("age") + + newAge, err := strconv.Atoi(age) + + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + var p1 = Person{ + Name: name, + Age: newAge, + } + publicmethod. +} diff --git a/.history/api/myTest/testRoute/testroute_20220728132642.go b/.history/api/myTest/testRoute/testroute_20220728132642.go new file mode 100644 index 0000000..92c1874 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728132642.go @@ -0,0 +1,24 @@ +package testroute + +import ( + "key_performance_indicators/overall/publicmethod" + "strconv" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + name := ctx.Query("name") + age := ctx.Query("age") + + newAge, err := strconv.Atoi(age) + + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + var p1 = Person{ + Name: name, + Age: newAge, + } + publicmethod.re +} diff --git a/.history/api/myTest/testRoute/testroute_20220728132643.go b/.history/api/myTest/testRoute/testroute_20220728132643.go new file mode 100644 index 0000000..fb861f6 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728132643.go @@ -0,0 +1,24 @@ +package testroute + +import ( + "key_performance_indicators/overall/publicmethod" + "strconv" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + name := ctx.Query("name") + age := ctx.Query("age") + + newAge, err := strconv.Atoi(age) + + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + var p1 = Person{ + Name: name, + Age: newAge, + } + publicmethod.Result() +} diff --git a/.history/api/myTest/testRoute/testroute_20220728132649.go b/.history/api/myTest/testRoute/testroute_20220728132649.go new file mode 100644 index 0000000..dfd47f4 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728132649.go @@ -0,0 +1,24 @@ +package testroute + +import ( + "key_performance_indicators/overall/publicmethod" + "strconv" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + name := ctx.Query("name") + age := ctx.Query("age") + + newAge, err := strconv.Atoi(age) + + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + var p1 = Person{ + Name: name, + Age: newAge, + } + publicmethod.Result(0,) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728132652.go b/.history/api/myTest/testRoute/testroute_20220728132652.go new file mode 100644 index 0000000..9120e0e --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728132652.go @@ -0,0 +1,24 @@ +package testroute + +import ( + "key_performance_indicators/overall/publicmethod" + "strconv" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + name := ctx.Query("name") + age := ctx.Query("age") + + newAge, err := strconv.Atoi(age) + + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + var p1 = Person{ + Name: name, + Age: newAge, + } + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728132705.go b/.history/api/myTest/testRoute/testroute_20220728132705.go new file mode 100644 index 0000000..13e9e23 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728132705.go @@ -0,0 +1,26 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + "strconv" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + name := ctx.Query("name") + age := ctx.Query("age") + + newAge, err := strconv.Atoi(age) + + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + var p1 = Person{ + Name: name, + Age: newAge, + } + fmt.Println() + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728132713.go b/.history/api/myTest/testRoute/testroute_20220728132713.go new file mode 100644 index 0000000..f6f0ded --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728132713.go @@ -0,0 +1,26 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + "strconv" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + name := ctx.Query("name") + age := ctx.Query("age") + + newAge, err := strconv.Atoi(age) + + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + var p1 = Person{ + Name: name, + Age: newAge, + } + fmt.Printf("%#v", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728135054.go b/.history/api/myTest/testRoute/testroute_20220728135054.go new file mode 100644 index 0000000..75896e4 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728135054.go @@ -0,0 +1,27 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + "strconv" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + name := ctx.Query("name") + age := ctx.Query("age") + + newAge, err := strconv.Atoi(age) + + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + var p1 = Person{ + Name: name, + Age: newAge, + } + json.u + fmt.Printf("%#v", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728135055.go b/.history/api/myTest/testRoute/testroute_20220728135055.go new file mode 100644 index 0000000..4f58493 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728135055.go @@ -0,0 +1,28 @@ +package testroute + +import ( + "encoding/json" + "fmt" + "key_performance_indicators/overall/publicmethod" + "strconv" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + name := ctx.Query("name") + age := ctx.Query("age") + + newAge, err := strconv.Atoi(age) + + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + var p1 = Person{ + Name: name, + Age: newAge, + } + json.Unmarshal() + fmt.Printf("%#v", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728135100.go b/.history/api/myTest/testRoute/testroute_20220728135100.go new file mode 100644 index 0000000..2854980 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728135100.go @@ -0,0 +1,28 @@ +package testroute + +import ( + "encoding/json" + "fmt" + "key_performance_indicators/overall/publicmethod" + "strconv" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + name := ctx.Query("name") + age := ctx.Query("age") + + newAge, err := strconv.Atoi(age) + + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + var p1 = Person{ + Name: name, + Age: newAge, + } + json.Unmarshal(data) + fmt.Printf("%#v", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728135101.go b/.history/api/myTest/testRoute/testroute_20220728135101.go new file mode 100644 index 0000000..4f58493 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728135101.go @@ -0,0 +1,28 @@ +package testroute + +import ( + "encoding/json" + "fmt" + "key_performance_indicators/overall/publicmethod" + "strconv" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + name := ctx.Query("name") + age := ctx.Query("age") + + newAge, err := strconv.Atoi(age) + + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + var p1 = Person{ + Name: name, + Age: newAge, + } + json.Unmarshal() + fmt.Printf("%#v", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728135106.go b/.history/api/myTest/testRoute/testroute_20220728135106.go new file mode 100644 index 0000000..032e0e2 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728135106.go @@ -0,0 +1,28 @@ +package testroute + +import ( + "encoding/json" + "fmt" + "key_performance_indicators/overall/publicmethod" + "strconv" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + name := ctx.Query("name") + age := ctx.Query("age") + + newAge, err := strconv.Atoi(age) + + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + var p1 = Person{ + Name: name, + Age: newAge, + } + json.Unmarshal(&p1) + fmt.Printf("%#v", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728135108.go b/.history/api/myTest/testRoute/testroute_20220728135108.go new file mode 100644 index 0000000..6b9423e --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728135108.go @@ -0,0 +1,28 @@ +package testroute + +import ( + "encoding/json" + "fmt" + "key_performance_indicators/overall/publicmethod" + "strconv" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + name := ctx.Query("name") + age := ctx.Query("age") + + newAge, err := strconv.Atoi(age) + + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + var p1 = Person{ + Name: name, + Age: newAge, + } + json.Unmarshal(,&p1) + fmt.Printf("%#v", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728135148.go b/.history/api/myTest/testRoute/testroute_20220728135148.go new file mode 100644 index 0000000..f6f0ded --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728135148.go @@ -0,0 +1,26 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + "strconv" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + name := ctx.Query("name") + age := ctx.Query("age") + + newAge, err := strconv.Atoi(age) + + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + var p1 = Person{ + Name: name, + Age: newAge, + } + fmt.Printf("%#v", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728135211.go b/.history/api/myTest/testRoute/testroute_20220728135211.go new file mode 100644 index 0000000..614c0f8 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728135211.go @@ -0,0 +1,27 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + "strconv" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + name := ctx.Query("name") + age := ctx.Query("age") + + newAge, err := strconv.Atoi(age) + + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + var p1 = Person{ + Name: name, + Age: newAge, + } + fmt.Printf("%#v", p1) + publicmethod.Result(0, p1, ctx) + fmt.Printf("%#v", p1) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728135213.go b/.history/api/myTest/testRoute/testroute_20220728135213.go new file mode 100644 index 0000000..2bd1c37 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728135213.go @@ -0,0 +1,27 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + "strconv" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + name := ctx.Query("name") + age := ctx.Query("age") + + newAge, err := strconv.Atoi(age) + + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + var p1 = Person{ + Name: name, + Age: newAge, + } + fmt.Printf("%#v", p1) + fmt.Printf("%#v", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728135215.go b/.history/api/myTest/testRoute/testroute_20220728135215.go new file mode 100644 index 0000000..5536e18 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728135215.go @@ -0,0 +1,27 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + "strconv" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + name := ctx.Query("name") + age := ctx.Query("age") + + newAge, err := strconv.Atoi(age) + + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + var p1 = Person{ + Name: name, + Age: newAge, + } + fmt.Printf("%#v", p1) + fmt.Printf("%#v", p) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728135221.go b/.history/api/myTest/testRoute/testroute_20220728135221.go new file mode 100644 index 0000000..f6f0ded --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728135221.go @@ -0,0 +1,26 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + "strconv" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + name := ctx.Query("name") + age := ctx.Query("age") + + newAge, err := strconv.Atoi(age) + + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + var p1 = Person{ + Name: name, + Age: newAge, + } + fmt.Printf("%#v", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728135222.go b/.history/api/myTest/testRoute/testroute_20220728135222.go new file mode 100644 index 0000000..f6f0ded --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728135222.go @@ -0,0 +1,26 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + "strconv" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + name := ctx.Query("name") + age := ctx.Query("age") + + newAge, err := strconv.Atoi(age) + + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + var p1 = Person{ + Name: name, + Age: newAge, + } + fmt.Printf("%#v", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728135233.go b/.history/api/myTest/testRoute/testroute_20220728135233.go new file mode 100644 index 0000000..ca25457 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728135233.go @@ -0,0 +1,26 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + "strconv" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + name := ctx.Query("name") + age := ctx.Query("age") + + newAge, err := strconv.Atoi(age) + + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + var p1 = Person{ + Name: name, + Age: newAge, + } + fmt.Printf("%#v\n", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728135312.go b/.history/api/myTest/testRoute/testroute_20220728135312.go new file mode 100644 index 0000000..d870538 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728135312.go @@ -0,0 +1,26 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + "strconv" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + name := ctx.Query("name") + age := ctx.Query("age") + + newAge, err := strconv.Atoi(age) + + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + var p1 = Person{ + Name: name, + Age: newAge, + } + fmt.Printf("%#v\n", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728135318.go b/.history/api/myTest/testRoute/testroute_20220728135318.go new file mode 100644 index 0000000..5430941 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728135318.go @@ -0,0 +1,26 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + "strconv" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + name := ctx.Query("name") + age := ctx.Query("age") + ctx.Qu + newAge, err := strconv.Atoi(age) + + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + var p1 = Person{ + Name: name, + Age: newAge, + } + fmt.Printf("%#v\n", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728135322.go b/.history/api/myTest/testRoute/testroute_20220728135322.go new file mode 100644 index 0000000..b1fe778 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728135322.go @@ -0,0 +1,25 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + "strconv" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + name := ctx.Query("name") + age := ctx.Query("age") + newAge, err := strconv.Atoi(age) + + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + var p1 = Person{ + Name: name, + Age: newAge, + } + fmt.Printf("%#v\n", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728135351.go b/.history/api/myTest/testRoute/testroute_20220728135351.go new file mode 100644 index 0000000..ca6e939 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728135351.go @@ -0,0 +1,21 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + "strconv" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + var p1 = Person{ + Name: name, + Age: newAge, + } + fmt.Printf("%#v\n", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728135355.go b/.history/api/myTest/testRoute/testroute_20220728135355.go new file mode 100644 index 0000000..82cf3d2 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728135355.go @@ -0,0 +1,22 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + "strconv" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + ctx.Bind() + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + var p1 = Person{ + Name: name, + Age: newAge, + } + fmt.Printf("%#v\n", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728135358.go b/.history/api/myTest/testRoute/testroute_20220728135358.go new file mode 100644 index 0000000..97b9182 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728135358.go @@ -0,0 +1,18 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + "strconv" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + ctx.Bind() + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + fmt.Printf("%#v\n", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728135404.go b/.history/api/myTest/testRoute/testroute_20220728135404.go new file mode 100644 index 0000000..ebfae01 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728135404.go @@ -0,0 +1,19 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + "strconv" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + var p1 + ctx.Bind() + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + fmt.Printf("%#v\n", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728135406.go b/.history/api/myTest/testRoute/testroute_20220728135406.go new file mode 100644 index 0000000..2f1a3b3 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728135406.go @@ -0,0 +1,19 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + "strconv" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + var p1 Person + ctx.Bind() + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + fmt.Printf("%#v\n", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728135409.go b/.history/api/myTest/testRoute/testroute_20220728135409.go new file mode 100644 index 0000000..ab7cd84 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728135409.go @@ -0,0 +1,18 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + var p1 Person + ctx.Bind(&p1) + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + fmt.Printf("%#v\n", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728135416.go b/.history/api/myTest/testRoute/testroute_20220728135416.go new file mode 100644 index 0000000..d569ba9 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728135416.go @@ -0,0 +1,18 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + var p1 Person + err := ctx.Bind(&p1) + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + fmt.Printf("%#v\n", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728140526.go b/.history/api/myTest/testRoute/testroute_20220728140526.go new file mode 100644 index 0000000..b9dbf52 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728140526.go @@ -0,0 +1,19 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + + var p1 Person + err := ctx.Bind(&p1) + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + fmt.Printf("%#v\n", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728140530.go b/.history/api/myTest/testRoute/testroute_20220728140530.go new file mode 100644 index 0000000..529959b --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728140530.go @@ -0,0 +1,19 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + fmt.prin + var p1 Person + err := ctx.Bind(&p1) + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + fmt.Printf("%#v\n", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728140532.go b/.history/api/myTest/testRoute/testroute_20220728140532.go new file mode 100644 index 0000000..4bb3272 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728140532.go @@ -0,0 +1,19 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + fmt.Println() + var p1 Person + err := ctx.Bind(&p1) + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + fmt.Printf("%#v\n", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728140542.go b/.history/api/myTest/testRoute/testroute_20220728140542.go new file mode 100644 index 0000000..06a621d --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728140542.go @@ -0,0 +1,19 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + fmt.Println(ctx.Query("name")) + var p1 Person + err := ctx.Bind(&p1) + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + fmt.Printf("%#v\n", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728140543.go b/.history/api/myTest/testRoute/testroute_20220728140543.go new file mode 100644 index 0000000..ef9495a --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728140543.go @@ -0,0 +1,19 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + var p1 Person + fmt.Println(ctx.Query("name")) + err := ctx.Bind(&p1) + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + fmt.Printf("%#v\n", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728140545.go b/.history/api/myTest/testRoute/testroute_20220728140545.go new file mode 100644 index 0000000..06a621d --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728140545.go @@ -0,0 +1,19 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + fmt.Println(ctx.Query("name")) + var p1 Person + err := ctx.Bind(&p1) + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + fmt.Printf("%#v\n", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728140550.go b/.history/api/myTest/testRoute/testroute_20220728140550.go new file mode 100644 index 0000000..e923bd7 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728140550.go @@ -0,0 +1,20 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + fmt.Println(ctx.Query("name")) + fmt.Println(ctx.Query("age")s) + var p1 Person + err := ctx.Bind(&p1) + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + fmt.Printf("%#v\n", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728140551.go b/.history/api/myTest/testRoute/testroute_20220728140551.go new file mode 100644 index 0000000..4dd0190 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728140551.go @@ -0,0 +1,20 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + fmt.Println(ctx.Query("name")) + fmt.Println(ctx.Query("age")) + var p1 Person + err := ctx.Bind(&p1) + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + fmt.Printf("%#v\n", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728140612.go b/.history/api/myTest/testRoute/testroute_20220728140612.go new file mode 100644 index 0000000..c23962d --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728140612.go @@ -0,0 +1,21 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + + fmt.Println(ctx.Query("name")) + fmt.Println(ctx.Query("age")) + var p1 Person + err := ctx.Bind(&p1) + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + fmt.Printf("%#v\n", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728140619.go b/.history/api/myTest/testRoute/testroute_20220728140619.go new file mode 100644 index 0000000..c4ee17e --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728140619.go @@ -0,0 +1,20 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + + ctx.Query("name") + var p1 Person + err := ctx.Bind(&p1) + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + fmt.Printf("%#v\n", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728140627.go b/.history/api/myTest/testRoute/testroute_20220728140627.go new file mode 100644 index 0000000..2e43729 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728140627.go @@ -0,0 +1,20 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + + name := ctx.Query("name") + var p1 Person + err := ctx.Bind(&p1) + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + fmt.Printf("%#v\n", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728140637.go b/.history/api/myTest/testRoute/testroute_20220728140637.go new file mode 100644 index 0000000..5bbd028 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728140637.go @@ -0,0 +1,21 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + + name := ctx.Query("name") + fmt.pr + var p1 Person + err := ctx.Bind(&p1) + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + fmt.Printf("%#v\n", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728140639.go b/.history/api/myTest/testRoute/testroute_20220728140639.go new file mode 100644 index 0000000..e1464c8 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728140639.go @@ -0,0 +1,21 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + + name := ctx.Query("name") + fmt.Println(name) + var p1 Person + err := ctx.Bind(&p1) + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + fmt.Printf("%#v\n", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728140642.go b/.history/api/myTest/testRoute/testroute_20220728140642.go new file mode 100644 index 0000000..f781612 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728140642.go @@ -0,0 +1,21 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + + name := ctx.Query("name") + fmt.Printf(name) + var p1 Person + err := ctx.Bind(&p1) + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + fmt.Printf("%#v\n", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728140649.go b/.history/api/myTest/testRoute/testroute_20220728140649.go new file mode 100644 index 0000000..898f19e --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728140649.go @@ -0,0 +1,21 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + + name := ctx.Query("name") + fmt.Printf("传入的参数为:") + var p1 Person + err := ctx.Bind(&p1) + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + fmt.Printf("%#v\n", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728140654.go b/.history/api/myTest/testRoute/testroute_20220728140654.go new file mode 100644 index 0000000..d6a193e --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728140654.go @@ -0,0 +1,21 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + + name := ctx.Query("name") + fmt.Printf("传入的Name为:") + var p1 Person + err := ctx.Bind(&p1) + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + fmt.Printf("%#v\n", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728140658.go b/.history/api/myTest/testRoute/testroute_20220728140658.go new file mode 100644 index 0000000..3bf93a1 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728140658.go @@ -0,0 +1,21 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + + name := ctx.Query("name") + fmt.Printf("传入的Name为:%v", name) + var p1 Person + err := ctx.Bind(&p1) + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + fmt.Printf("%#v\n", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728140703.go b/.history/api/myTest/testRoute/testroute_20220728140703.go new file mode 100644 index 0000000..8fa8170 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728140703.go @@ -0,0 +1,21 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + + name := ctx.Query("name") + fmt.Printf("传入的Name为:%v\n", name) + var p1 Person + err := ctx.Bind(&p1) + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + fmt.Printf("%#v\n", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728140704.go b/.history/api/myTest/testRoute/testroute_20220728140704.go new file mode 100644 index 0000000..8fa8170 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728140704.go @@ -0,0 +1,21 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + + name := ctx.Query("name") + fmt.Printf("传入的Name为:%v\n", name) + var p1 Person + err := ctx.Bind(&p1) + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + fmt.Printf("%#v\n", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728140817.go b/.history/api/myTest/testRoute/testroute_20220728140817.go new file mode 100644 index 0000000..fdc19db --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728140817.go @@ -0,0 +1,21 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + + name := ctx.Query("name") + fmt.Printf("传入的Nma为:") + var p1 Person + err := ctx.Bind(&p1) + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + fmt.Printf("%#v\n", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728140825.go b/.history/api/myTest/testRoute/testroute_20220728140825.go new file mode 100644 index 0000000..6afa9b3 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728140825.go @@ -0,0 +1,21 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + + name := ctx.Query("name") + fmt.Printf("传入的Name为:%v",name) + var p1 Person + err := ctx.Bind(&p1) + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + fmt.Printf("%#v\n", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728140828.go b/.history/api/myTest/testRoute/testroute_20220728140828.go new file mode 100644 index 0000000..8fa8170 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728140828.go @@ -0,0 +1,21 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + + name := ctx.Query("name") + fmt.Printf("传入的Name为:%v\n", name) + var p1 Person + err := ctx.Bind(&p1) + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + fmt.Printf("%#v\n", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728140830.go b/.history/api/myTest/testRoute/testroute_20220728140830.go new file mode 100644 index 0000000..8fa8170 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728140830.go @@ -0,0 +1,21 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + + name := ctx.Query("name") + fmt.Printf("传入的Name为:%v\n", name) + var p1 Person + err := ctx.Bind(&p1) + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + fmt.Printf("%#v\n", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728141159.go b/.history/api/myTest/testRoute/testroute_20220728141159.go new file mode 100644 index 0000000..2c18a16 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728141159.go @@ -0,0 +1,21 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + + name := ctx.PostForm("name") + fmt.Printf("传入的Name为:%v\n", name) + var p1 Person + err := ctx.Bind(&p1) + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + fmt.Printf("%#v\n", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728145250.go b/.history/api/myTest/testRoute/testroute_20220728145250.go new file mode 100644 index 0000000..e48ef23 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728145250.go @@ -0,0 +1,22 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + + name := ctx.PostForm("name") + fmt.Printf("传入的Name为:%v\n", name) + var p1 Person + db + err := ctx.Bind(&p1) + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + fmt.Printf("%#v\n", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728145251.go b/.history/api/myTest/testRoute/testroute_20220728145251.go new file mode 100644 index 0000000..dbdbb55 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728145251.go @@ -0,0 +1,22 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + + name := ctx.PostForm("name") + fmt.Printf("传入的Name为:%v\n", name) + var p1 Person + + err := ctx.Bind(&p1) + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + fmt.Printf("%#v\n", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728145612.go b/.history/api/myTest/testRoute/testroute_20220728145612.go new file mode 100644 index 0000000..ab6cfeb --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728145612.go @@ -0,0 +1,22 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + + name := ctx.PostForm("name") + fmt.Printf("传入的Name为:%v\n", name) + var p1 Person + gor + err := ctx.Bind(&p1) + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + fmt.Printf("%#v\n", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728145615.go b/.history/api/myTest/testRoute/testroute_20220728145615.go new file mode 100644 index 0000000..5d739c1 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728145615.go @@ -0,0 +1,23 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" + "gorm.io/gorm" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + + name := ctx.PostForm("name") + fmt.Printf("传入的Name为:%v\n", name) + var p1 Person + gorm. + err := ctx.Bind(&p1) + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + fmt.Printf("%#v\n", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728145617.go b/.history/api/myTest/testRoute/testroute_20220728145617.go new file mode 100644 index 0000000..f8d1e1b --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728145617.go @@ -0,0 +1,23 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" + "gorm.io/gorm" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + + name := ctx.PostForm("name") + fmt.Printf("传入的Name为:%v\n", name) + var p1 Person + gorm.c + err := ctx.Bind(&p1) + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + fmt.Printf("%#v\n", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728145622.go b/.history/api/myTest/testRoute/testroute_20220728145622.go new file mode 100644 index 0000000..30cba48 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728145622.go @@ -0,0 +1,23 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" + "gorm.io/gorm" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + + name := ctx.PostForm("name") + fmt.Printf("传入的Name为:%v\n", name) + var p1 Person + gorm.Open(gorm.) + err := ctx.Bind(&p1) + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + fmt.Printf("%#v\n", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728145623.go b/.history/api/myTest/testRoute/testroute_20220728145623.go new file mode 100644 index 0000000..89a3a95 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728145623.go @@ -0,0 +1,23 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" + "gorm.io/gorm" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + + name := ctx.PostForm("name") + fmt.Printf("传入的Name为:%v\n", name) + var p1 Person + gorm.Open(gorm.c) + err := ctx.Bind(&p1) + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + fmt.Printf("%#v\n", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728145625.go b/.history/api/myTest/testRoute/testroute_20220728145625.go new file mode 100644 index 0000000..30c4fb1 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728145625.go @@ -0,0 +1,23 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" + "gorm.io/gorm" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + + name := ctx.PostForm("name") + fmt.Printf("传入的Name为:%v\n", name) + var p1 Person + gorm.Open(gorm.Config{}) + err := ctx.Bind(&p1) + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + fmt.Printf("%#v\n", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728145647.go b/.history/api/myTest/testRoute/testroute_20220728145647.go new file mode 100644 index 0000000..1987e94 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728145647.go @@ -0,0 +1,25 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" + "gorm.io/driver/mysql" + "gorm.io/gorm" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + + name := ctx.PostForm("name") + fmt.Printf("传入的Name为:%v\n", name) + var p1 Person + dsn := "user:pass@tcp(127.0.0.1:3306)/dbname?charset=utf8mb4&parseTime=True&loc=Local" + db, err := gorm.Open(mysql.Open(dsn), &gorm.Config{}) + err := ctx.Bind(&p1) + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + fmt.Printf("%#v\n", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728145651.go b/.history/api/myTest/testRoute/testroute_20220728145651.go new file mode 100644 index 0000000..3c85d88 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728145651.go @@ -0,0 +1,25 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" + "gorm.io/driver/mysql" + "gorm.io/gorm" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + + name := ctx.PostForm("name") + fmt.Printf("传入的Name为:%v\n", name) + var p1 Person + dsn := "user:pass@tcp(127.0.0.1:3306)/test?charset=utf8mb4&parseTime=True&loc=Local" + db, err := gorm.Open(mysql.Open(dsn), &gorm.Config{}) + err := ctx.Bind(&p1) + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + fmt.Printf("%#v\n", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728145656.go b/.history/api/myTest/testRoute/testroute_20220728145656.go new file mode 100644 index 0000000..d727c22 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728145656.go @@ -0,0 +1,25 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" + "gorm.io/driver/mysql" + "gorm.io/gorm" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + + name := ctx.PostForm("name") + fmt.Printf("传入的Name为:%v\n", name) + var p1 Person + dsn := "root:pass@tcp(127.0.0.1:3306)/test?charset=utf8mb4&parseTime=True&loc=Local" + db, err := gorm.Open(mysql.Open(dsn), &gorm.Config{}) + err := ctx.Bind(&p1) + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + fmt.Printf("%#v\n", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728145700.go b/.history/api/myTest/testRoute/testroute_20220728145700.go new file mode 100644 index 0000000..2c9f773 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728145700.go @@ -0,0 +1,25 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" + "gorm.io/driver/mysql" + "gorm.io/gorm" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + + name := ctx.PostForm("name") + fmt.Printf("传入的Name为:%v\n", name) + var p1 Person + dsn := "root:root@tcp(127.0.0.1:3306)/test?charset=utf8mb4&parseTime=True&loc=Local" + db, err := gorm.Open(mysql.Open(dsn), &gorm.Config{}) + err := ctx.Bind(&p1) + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + fmt.Printf("%#v\n", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728145701.go b/.history/api/myTest/testRoute/testroute_20220728145701.go new file mode 100644 index 0000000..2c9f773 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728145701.go @@ -0,0 +1,25 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" + "gorm.io/driver/mysql" + "gorm.io/gorm" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + + name := ctx.PostForm("name") + fmt.Printf("传入的Name为:%v\n", name) + var p1 Person + dsn := "root:root@tcp(127.0.0.1:3306)/test?charset=utf8mb4&parseTime=True&loc=Local" + db, err := gorm.Open(mysql.Open(dsn), &gorm.Config{}) + err := ctx.Bind(&p1) + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + fmt.Printf("%#v\n", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728145708.go b/.history/api/myTest/testRoute/testroute_20220728145708.go new file mode 100644 index 0000000..f004bd3 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728145708.go @@ -0,0 +1,25 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" + "gorm.io/driver/mysql" + "gorm.io/gorm" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + + name := ctx.PostForm("name") + fmt.Printf("传入的Name为:%v\n", name) + var p1 Person + dsn := "root:root@tcp(127.0.0.1:3306)/test?charset=utf8mb4&parseTime=True&loc=Local" + db, err := gorm.Open(mysql.Open(dsn), &gorm.Config{}) + db. + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + fmt.Printf("%#v\n", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728145710.go b/.history/api/myTest/testRoute/testroute_20220728145710.go new file mode 100644 index 0000000..7977044 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728145710.go @@ -0,0 +1,25 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" + "gorm.io/driver/mysql" + "gorm.io/gorm" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + + name := ctx.PostForm("name") + fmt.Printf("传入的Name为:%v\n", name) + var p1 Person + dsn := "root:root@tcp(127.0.0.1:3306)/test?charset=utf8mb4&parseTime=True&loc=Local" + db, err := gorm.Open(mysql.Open(dsn), &gorm.Config{}) + db.sele + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + fmt.Printf("%#v\n", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728145712.go b/.history/api/myTest/testRoute/testroute_20220728145712.go new file mode 100644 index 0000000..32f91b9 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728145712.go @@ -0,0 +1,25 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" + "gorm.io/driver/mysql" + "gorm.io/gorm" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + + name := ctx.PostForm("name") + fmt.Printf("传入的Name为:%v\n", name) + var p1 Person + dsn := "root:root@tcp(127.0.0.1:3306)/test?charset=utf8mb4&parseTime=True&loc=Local" + db, err := gorm.Open(mysql.Open(dsn), &gorm.Config{}) + db.Select() + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + fmt.Printf("%#v\n", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728145806.go b/.history/api/myTest/testRoute/testroute_20220728145806.go new file mode 100644 index 0000000..54a257e --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728145806.go @@ -0,0 +1,25 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" + "gorm.io/driver/mysql" + "gorm.io/gorm" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + + name := ctx.PostForm("name") + fmt.Printf("传入的Name为:%v\n", name) + var p1 Person + dsn := "root:root@tcp(127.0.0.1:3306)/test?charset=utf8mb4&parseTime=True&loc=Local" + db, err := gorm.Open(mysql.Open(dsn), &gorm.Config{}) + + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + fmt.Printf("%#v\n", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/testroute_20220728145926.go b/.history/api/myTest/testRoute/testroute_20220728145926.go new file mode 100644 index 0000000..dbdbb55 --- /dev/null +++ b/.history/api/myTest/testRoute/testroute_20220728145926.go @@ -0,0 +1,22 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + + name := ctx.PostForm("name") + fmt.Printf("传入的Name为:%v\n", name) + var p1 Person + + err := ctx.Bind(&p1) + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + fmt.Printf("%#v\n", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/.history/api/myTest/testRoute/type_20220728105357.go b/.history/api/myTest/testRoute/type_20220728105357.go new file mode 100644 index 0000000..e69de29 diff --git a/.history/api/myTest/testRoute/type_20220728105401.go b/.history/api/myTest/testRoute/type_20220728105401.go new file mode 100644 index 0000000..7f8513b --- /dev/null +++ b/.history/api/myTest/testRoute/type_20220728105401.go @@ -0,0 +1 @@ +pack \ No newline at end of file diff --git a/.history/api/myTest/testRoute/type_20220728105404.go b/.history/api/myTest/testRoute/type_20220728105404.go new file mode 100644 index 0000000..16e5d88 --- /dev/null +++ b/.history/api/myTest/testRoute/type_20220728105404.go @@ -0,0 +1 @@ +package mytests \ No newline at end of file diff --git a/.history/api/myTest/testRoute/type_20220728105405.go b/.history/api/myTest/testRoute/type_20220728105405.go new file mode 100644 index 0000000..2d1f664 --- /dev/null +++ b/.history/api/myTest/testRoute/type_20220728105405.go @@ -0,0 +1 @@ +package mytest diff --git a/.history/api/myTest/testRoute/type_20220728105423.go b/.history/api/myTest/testRoute/type_20220728105423.go new file mode 100644 index 0000000..9067dd1 --- /dev/null +++ b/.history/api/myTest/testRoute/type_20220728105423.go @@ -0,0 +1,2 @@ +package mytest + diff --git a/.history/api/myTest/testRoute/type_20220728105427.go b/.history/api/myTest/testRoute/type_20220728105427.go new file mode 100644 index 0000000..24cf1a3 --- /dev/null +++ b/.history/api/myTest/testRoute/type_20220728105427.go @@ -0,0 +1,3 @@ +package mytest + +type \ No newline at end of file diff --git a/.history/api/myTest/testRoute/type_20220728105434.go b/.history/api/myTest/testRoute/type_20220728105434.go new file mode 100644 index 0000000..9067dd1 --- /dev/null +++ b/.history/api/myTest/testRoute/type_20220728105434.go @@ -0,0 +1,2 @@ +package mytest + diff --git a/.history/api/myTest/testRoute/type_20220728105451.go b/.history/api/myTest/testRoute/type_20220728105451.go new file mode 100644 index 0000000..7c6e53e --- /dev/null +++ b/.history/api/myTest/testRoute/type_20220728105451.go @@ -0,0 +1 @@ +package mytestroute diff --git a/.history/api/myTest/testRoute/type_20220728105539.go b/.history/api/myTest/testRoute/type_20220728105539.go new file mode 100644 index 0000000..ddbbe2a --- /dev/null +++ b/.history/api/myTest/testRoute/type_20220728105539.go @@ -0,0 +1,3 @@ +package mytestroute + +type ApiMethod \ No newline at end of file diff --git a/.history/api/myTest/testRoute/type_20220728105541.go b/.history/api/myTest/testRoute/type_20220728105541.go new file mode 100644 index 0000000..e177103 --- /dev/null +++ b/.history/api/myTest/testRoute/type_20220728105541.go @@ -0,0 +1,3 @@ +package mytestroute + +type ApiMethod struct{} diff --git a/.history/api/myTest/testRoute/type_20220728105631.go b/.history/api/myTest/testRoute/type_20220728105631.go new file mode 100644 index 0000000..fc4632e --- /dev/null +++ b/.history/api/myTest/testRoute/type_20220728105631.go @@ -0,0 +1,9 @@ +package mytestroute + +type ApiMethod struct{} + +func (a *ApiMethod) Index(c *gin.Context) { + outputCont := publicmethod.MapOut[string]() + outputCont["index"] = "荣誉档案入口" + publicmethod.Result(0, outputCont, c) +} \ No newline at end of file diff --git a/.history/api/myTest/testRoute/type_20220728105639.go b/.history/api/myTest/testRoute/type_20220728105639.go new file mode 100644 index 0000000..40c8263 --- /dev/null +++ b/.history/api/myTest/testRoute/type_20220728105639.go @@ -0,0 +1,11 @@ +package mytestroute + +type ApiMethod struct{} + +// 实验入口 + +func (a *ApiMethod) Index(c *gin.Context) { + outputCont := publicmethod.MapOut[string]() + outputCont["index"] = "荣誉档案入口" + publicmethod.Result(0, outputCont, c) +} \ No newline at end of file diff --git a/.history/api/myTest/testRoute/type_20220728105641.go b/.history/api/myTest/testRoute/type_20220728105641.go new file mode 100644 index 0000000..e761c22 --- /dev/null +++ b/.history/api/myTest/testRoute/type_20220728105641.go @@ -0,0 +1,17 @@ +package mytestroute + +import ( + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +type ApiMethod struct{} + +// 实验入口 + +func (a *ApiMethod) Index(c *gin.Context) { + outputCont := publicmethod.MapOut[string]() + outputCont["index"] = "荣誉档案入口" + publicmethod.Result(0, outputCont, c) +} diff --git a/.history/api/myTest/testRoute/type_20220728105646.go b/.history/api/myTest/testRoute/type_20220728105646.go new file mode 100644 index 0000000..77b732e --- /dev/null +++ b/.history/api/myTest/testRoute/type_20220728105646.go @@ -0,0 +1,16 @@ +package mytestroute + +import ( + + "github.com/gin-gonic/gin" +) + +type ApiMethod struct{} + +// 实验入口 + +func (a *ApiMethod) Index(c *gin.Context) { + outputCont := publicmethod.MapOut[string]() + outputCont["index"] = "荣誉档案入口" + publicmethod.Result(0, outputCont, c) +} diff --git a/.history/api/myTest/testRoute/type_20220728105703.go b/.history/api/myTest/testRoute/type_20220728105703.go new file mode 100644 index 0000000..e761c22 --- /dev/null +++ b/.history/api/myTest/testRoute/type_20220728105703.go @@ -0,0 +1,17 @@ +package mytestroute + +import ( + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +type ApiMethod struct{} + +// 实验入口 + +func (a *ApiMethod) Index(c *gin.Context) { + outputCont := publicmethod.MapOut[string]() + outputCont["index"] = "荣誉档案入口" + publicmethod.Result(0, outputCont, c) +} diff --git a/.history/api/myTest/testRoute/type_20220728105710.go b/.history/api/myTest/testRoute/type_20220728105710.go new file mode 100644 index 0000000..e9542e3 --- /dev/null +++ b/.history/api/myTest/testRoute/type_20220728105710.go @@ -0,0 +1,17 @@ +package mytestroute + +import ( + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +type ApiMethod struct{} + +// 实验入口 + +func (a *ApiMethod) Index(c *gin.Context) { + outputCont := publicmethod.MapOut[string]() + outputCont["index"] = "" + publicmethod.Result(0, outputCont, c) +} diff --git a/.history/api/myTest/testRoute/type_20220728105716.go b/.history/api/myTest/testRoute/type_20220728105716.go new file mode 100644 index 0000000..6e4657f --- /dev/null +++ b/.history/api/myTest/testRoute/type_20220728105716.go @@ -0,0 +1,17 @@ +package mytestroute + +import ( + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +type ApiMethod struct{} + +// 实验入口 + +func (a *ApiMethod) Index(c *gin.Context) { + outputCont := publicmethod.MapOut[string]() + outputCont["index"] = "测试入口" + publicmethod.Result(0, outputCont, c) +} diff --git a/.history/api/myTest/testRoute/type_20220728105721.go b/.history/api/myTest/testRoute/type_20220728105721.go new file mode 100644 index 0000000..6e4657f --- /dev/null +++ b/.history/api/myTest/testRoute/type_20220728105721.go @@ -0,0 +1,17 @@ +package mytestroute + +import ( + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +type ApiMethod struct{} + +// 实验入口 + +func (a *ApiMethod) Index(c *gin.Context) { + outputCont := publicmethod.MapOut[string]() + outputCont["index"] = "测试入口" + publicmethod.Result(0, outputCont, c) +} diff --git a/.history/api/myTest/testRoute/type_20220728131004.go b/.history/api/myTest/testRoute/type_20220728131004.go new file mode 100644 index 0000000..01a2b16 --- /dev/null +++ b/.history/api/myTest/testRoute/type_20220728131004.go @@ -0,0 +1,19 @@ +package mytestroute + +import ( + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +type ApiMethod struct{} + +// 实验入口 + +func (a *ApiMethod) Index(c *gin.Context) { + outputCont := publicmethod.MapOut[string]() + outputCont["index"] = "测试入口" + publicmethod.Result(0, outputCont, c) +} + +type struct diff --git a/.history/api/myTest/testRoute/type_20220728131009.go b/.history/api/myTest/testRoute/type_20220728131009.go new file mode 100644 index 0000000..2559bf5 --- /dev/null +++ b/.history/api/myTest/testRoute/type_20220728131009.go @@ -0,0 +1,19 @@ +package mytestroute + +import ( + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +type ApiMethod struct{} + +// 实验入口 + +func (a *ApiMethod) Index(c *gin.Context) { + outputCont := publicmethod.MapOut[string]() + outputCont["index"] = "测试入口" + publicmethod.Result(0, outputCont, c) +} + +type Person struct diff --git a/.history/api/myTest/testRoute/type_20220728131014.go b/.history/api/myTest/testRoute/type_20220728131014.go new file mode 100644 index 0000000..76d8392 --- /dev/null +++ b/.history/api/myTest/testRoute/type_20220728131014.go @@ -0,0 +1,21 @@ +package mytestroute + +import ( + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +type ApiMethod struct{} + +// 实验入口 + +func (a *ApiMethod) Index(c *gin.Context) { + outputCont := publicmethod.MapOut[string]() + outputCont["index"] = "测试入口" + publicmethod.Result(0, outputCont, c) +} + +type Person struct{ + Name +} diff --git a/.history/api/myTest/testRoute/type_20220728131020.go b/.history/api/myTest/testRoute/type_20220728131020.go new file mode 100644 index 0000000..10a459d --- /dev/null +++ b/.history/api/myTest/testRoute/type_20220728131020.go @@ -0,0 +1,21 @@ +package mytestroute + +import ( + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +type ApiMethod struct{} + +// 实验入口 + +func (a *ApiMethod) Index(c *gin.Context) { + outputCont := publicmethod.MapOut[string]() + outputCont["index"] = "测试入口" + publicmethod.Result(0, outputCont, c) +} + +type Person struct{ + Name string `` +} diff --git a/.history/api/myTest/testRoute/type_20220728131032.go b/.history/api/myTest/testRoute/type_20220728131032.go new file mode 100644 index 0000000..c063a02 --- /dev/null +++ b/.history/api/myTest/testRoute/type_20220728131032.go @@ -0,0 +1,22 @@ +package mytestroute + +import ( + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +type ApiMethod struct{} + +// 实验入口 + +func (a *ApiMethod) Index(c *gin.Context) { + outputCont := publicmethod.MapOut[string]() + outputCont["index"] = "测试入口" + publicmethod.Result(0, outputCont, c) +} + +type Person struct{ + Name string `json:"name"` + Age int +} diff --git a/.history/api/myTest/testRoute/type_20220728131035.go b/.history/api/myTest/testRoute/type_20220728131035.go new file mode 100644 index 0000000..86aab25 --- /dev/null +++ b/.history/api/myTest/testRoute/type_20220728131035.go @@ -0,0 +1,22 @@ +package mytestroute + +import ( + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +type ApiMethod struct{} + +// 实验入口 + +func (a *ApiMethod) Index(c *gin.Context) { + outputCont := publicmethod.MapOut[string]() + outputCont["index"] = "测试入口" + publicmethod.Result(0, outputCont, c) +} + +type Person struct{ + Name string `json:"name"` + Age int `json:` +} diff --git a/.history/api/myTest/testRoute/type_20220728131039.go b/.history/api/myTest/testRoute/type_20220728131039.go new file mode 100644 index 0000000..909087c --- /dev/null +++ b/.history/api/myTest/testRoute/type_20220728131039.go @@ -0,0 +1,22 @@ +package mytestroute + +import ( + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +type ApiMethod struct{} + +// 实验入口 + +func (a *ApiMethod) Index(c *gin.Context) { + outputCont := publicmethod.MapOut[string]() + outputCont["index"] = "测试入口" + publicmethod.Result(0, outputCont, c) +} + +type Person struct { + Name string `json:"name"` + Age int `json:"age"` +} diff --git a/.history/api/myTest/testRoute/type_20220728131043.go b/.history/api/myTest/testRoute/type_20220728131043.go new file mode 100644 index 0000000..ea5a4f3 --- /dev/null +++ b/.history/api/myTest/testRoute/type_20220728131043.go @@ -0,0 +1,22 @@ +package mytestroute + +import ( + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +type ApiMethod struct{} + +// 实验入口 + +func (a *ApiMethod) Index(c *gin.Context) { + outputCont := publicmethod.MapOut[string]() + outputCont["index"] = "测试入口" + publicmethod.Result(0, outputCont, c) +} +// +type Person struct { + Name string `json:"name"` + Age int `json:"age"` +} diff --git a/.history/api/myTest/testRoute/type_20220728131048.go b/.history/api/myTest/testRoute/type_20220728131048.go new file mode 100644 index 0000000..757656c --- /dev/null +++ b/.history/api/myTest/testRoute/type_20220728131048.go @@ -0,0 +1,23 @@ +package mytestroute + +import ( + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +type ApiMethod struct{} + +// 实验入口 + +func (a *ApiMethod) Index(c *gin.Context) { + outputCont := publicmethod.MapOut[string]() + outputCont["index"] = "测试入口" + publicmethod.Result(0, outputCont, c) +} + +// 测试 +type Person struct { + Name string `json:"name"` + Age int `json:"age"` +} diff --git a/.history/api/myTest/testRoute/type_20220728131213.go b/.history/api/myTest/testRoute/type_20220728131213.go new file mode 100644 index 0000000..7b76e95 --- /dev/null +++ b/.history/api/myTest/testRoute/type_20220728131213.go @@ -0,0 +1,24 @@ +package mytestroute + +import ( + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +type ApiMethod struct{} + +// 实验入口 + +func (a *ApiMethod) Index(c *gin.Context) { + outputCont := publicmethod.MapOut[string]() + outputCont["index"] = "测试入口" + publicmethod.Result(0, outputCont, c) +} + +// 测试 +type Person struct { + id int `json:"name"` + Name string `json:"name"` + Age int `json:"age"` +} diff --git a/.history/api/myTest/testRoute/type_20220728131217.go b/.history/api/myTest/testRoute/type_20220728131217.go new file mode 100644 index 0000000..a5ee7c7 --- /dev/null +++ b/.history/api/myTest/testRoute/type_20220728131217.go @@ -0,0 +1,24 @@ +package mytestroute + +import ( + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +type ApiMethod struct{} + +// 实验入口 + +func (a *ApiMethod) Index(c *gin.Context) { + outputCont := publicmethod.MapOut[string]() + outputCont["index"] = "测试入口" + publicmethod.Result(0, outputCont, c) +} + +// 测试 +type Person struct { + Id int `json:"name"` + Name string `json:"name"` + Age int `json:"age"` +} diff --git a/.history/api/myTest/testRoute/type_20220728131218.go b/.history/api/myTest/testRoute/type_20220728131218.go new file mode 100644 index 0000000..a5ee7c7 --- /dev/null +++ b/.history/api/myTest/testRoute/type_20220728131218.go @@ -0,0 +1,24 @@ +package mytestroute + +import ( + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +type ApiMethod struct{} + +// 实验入口 + +func (a *ApiMethod) Index(c *gin.Context) { + outputCont := publicmethod.MapOut[string]() + outputCont["index"] = "测试入口" + publicmethod.Result(0, outputCont, c) +} + +// 测试 +type Person struct { + Id int `json:"name"` + Name string `json:"name"` + Age int `json:"age"` +} diff --git a/.history/api/myTest/testRoute/type_20220728131222.go b/.history/api/myTest/testRoute/type_20220728131222.go new file mode 100644 index 0000000..16c293c --- /dev/null +++ b/.history/api/myTest/testRoute/type_20220728131222.go @@ -0,0 +1,24 @@ +package mytestroute + +import ( + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +type ApiMethod struct{} + +// 实验入口 + +func (a *ApiMethod) Index(c *gin.Context) { + outputCont := publicmethod.MapOut[string]() + outputCont["index"] = "测试入口" + publicmethod.Result(0, outputCont, c) +} + +// 测试 +type Person struct { + Id int `json:"id"` + Name string `json:"name"` + Age int `json:"age"` +} diff --git a/.history/api/myTest/testRoute/type_20220728131841.go b/.history/api/myTest/testRoute/type_20220728131841.go new file mode 100644 index 0000000..e69de29 diff --git a/.history/api/myTest/testRoute/type_20220728131850.go b/.history/api/myTest/testRoute/type_20220728131850.go new file mode 100644 index 0000000..59c77e4 --- /dev/null +++ b/.history/api/myTest/testRoute/type_20220728131850.go @@ -0,0 +1 @@ +package \ No newline at end of file diff --git a/.history/api/myTest/testRoute/type_20220728131852.go b/.history/api/myTest/testRoute/type_20220728131852.go new file mode 100644 index 0000000..ddd1131 --- /dev/null +++ b/.history/api/myTest/testRoute/type_20220728131852.go @@ -0,0 +1,24 @@ + + +import ( + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +type ApiMethod struct{} + +// 实验入口 + +func (a *ApiMethod) Index(c *gin.Context) { + outputCont := publicmethod.MapOut[string]() + outputCont["index"] = "测试入口" + publicmethod.Result(0, outputCont, c) +} + +// 测试 +type Person struct { + Id int `json:"id"` + Name string `json:"name"` + Age int `json:"age"` +} diff --git a/.history/api/myTest/testRoute/type_20220728131856.go b/.history/api/myTest/testRoute/type_20220728131856.go new file mode 100644 index 0000000..ae7c3d0 --- /dev/null +++ b/.history/api/myTest/testRoute/type_20220728131856.go @@ -0,0 +1,24 @@ +package + +import ( + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +type ApiMethod struct{} + +// 实验入口 + +func (a *ApiMethod) Index(c *gin.Context) { + outputCont := publicmethod.MapOut[string]() + outputCont["index"] = "测试入口" + publicmethod.Result(0, outputCont, c) +} + +// 测试 +type Person struct { + Id int `json:"id"` + Name string `json:"name"` + Age int `json:"age"` +} diff --git a/.history/api/myTest/testRoute/type_20220728131900.go b/.history/api/myTest/testRoute/type_20220728131900.go new file mode 100644 index 0000000..74fe37e --- /dev/null +++ b/.history/api/myTest/testRoute/type_20220728131900.go @@ -0,0 +1,24 @@ +package testroute + +import ( + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +type ApiMethod struct{} + +// 实验入口 + +func (a *ApiMethod) Index(c *gin.Context) { + outputCont := publicmethod.MapOut[string]() + outputCont["index"] = "测试入口" + publicmethod.Result(0, outputCont, c) +} + +// 测试 +type Person struct { + Id int `json:"id"` + Name string `json:"name"` + Age int `json:"age"` +} diff --git a/.history/api/myTest/testRoute/type_20220728131902.go b/.history/api/myTest/testRoute/type_20220728131902.go new file mode 100644 index 0000000..74fe37e --- /dev/null +++ b/.history/api/myTest/testRoute/type_20220728131902.go @@ -0,0 +1,24 @@ +package testroute + +import ( + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +type ApiMethod struct{} + +// 实验入口 + +func (a *ApiMethod) Index(c *gin.Context) { + outputCont := publicmethod.MapOut[string]() + outputCont["index"] = "测试入口" + publicmethod.Result(0, outputCont, c) +} + +// 测试 +type Person struct { + Id int `json:"id"` + Name string `json:"name"` + Age int `json:"age"` +} diff --git a/.history/api/myTest/testRoute/type_20220728131917.go b/.history/api/myTest/testRoute/type_20220728131917.go new file mode 100644 index 0000000..74fe37e --- /dev/null +++ b/.history/api/myTest/testRoute/type_20220728131917.go @@ -0,0 +1,24 @@ +package testroute + +import ( + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +type ApiMethod struct{} + +// 实验入口 + +func (a *ApiMethod) Index(c *gin.Context) { + outputCont := publicmethod.MapOut[string]() + outputCont["index"] = "测试入口" + publicmethod.Result(0, outputCont, c) +} + +// 测试 +type Person struct { + Id int `json:"id"` + Name string `json:"name"` + Age int `json:"age"` +} diff --git a/.history/api/myTest/testRoute/type_20220728131937.go b/.history/api/myTest/testRoute/type_20220728131937.go new file mode 100644 index 0000000..74fe37e --- /dev/null +++ b/.history/api/myTest/testRoute/type_20220728131937.go @@ -0,0 +1,24 @@ +package testroute + +import ( + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +type ApiMethod struct{} + +// 实验入口 + +func (a *ApiMethod) Index(c *gin.Context) { + outputCont := publicmethod.MapOut[string]() + outputCont["index"] = "测试入口" + publicmethod.Result(0, outputCont, c) +} + +// 测试 +type Person struct { + Id int `json:"id"` + Name string `json:"name"` + Age int `json:"age"` +} diff --git a/.history/api/myTest/testRoute/type_20220728141047.go b/.history/api/myTest/testRoute/type_20220728141047.go new file mode 100644 index 0000000..9e88425 --- /dev/null +++ b/.history/api/myTest/testRoute/type_20220728141047.go @@ -0,0 +1,24 @@ +package testroute + +import ( + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +type ApiMethod struct{} + +// 实验入口 + +func (a *ApiMethod) Index(c *gin.Context) { + outputCont := publicmethod.MapOut[string]() + outputCont["index"] = "测试入口" + publicmethod.Result(0, outputCont, c) +} + +// 测试 +type Person struct { + Id int `form:"id" json:"id"` + Name string `json:"name"` + Age int `json:"age"` +} diff --git a/.history/api/myTest/testRoute/type_20220728141053.go b/.history/api/myTest/testRoute/type_20220728141053.go new file mode 100644 index 0000000..7e8f3d2 --- /dev/null +++ b/.history/api/myTest/testRoute/type_20220728141053.go @@ -0,0 +1,24 @@ +package testroute + +import ( + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +type ApiMethod struct{} + +// 实验入口 + +func (a *ApiMethod) Index(c *gin.Context) { + outputCont := publicmethod.MapOut[string]() + outputCont["index"] = "测试入口" + publicmethod.Result(0, outputCont, c) +} + +// 测试 +type Person struct { + Id int `form:"id" json:"id"` + Name string `form:"name" json:"name"` + Age int `json:"age"` +} diff --git a/.history/api/myTest/testRoute/type_20220728141058.go b/.history/api/myTest/testRoute/type_20220728141058.go new file mode 100644 index 0000000..5f6ab21 --- /dev/null +++ b/.history/api/myTest/testRoute/type_20220728141058.go @@ -0,0 +1,24 @@ +package testroute + +import ( + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +type ApiMethod struct{} + +// 实验入口 + +func (a *ApiMethod) Index(c *gin.Context) { + outputCont := publicmethod.MapOut[string]() + outputCont["index"] = "测试入口" + publicmethod.Result(0, outputCont, c) +} + +// 测试 +type Person struct { + Id int `form:"id" json:"id"` + Name string `form:"name" json:"name"` + Age int `json:"age" json:"age"` +} diff --git a/.history/api/myTest/testRoute/type_20220728141255.go b/.history/api/myTest/testRoute/type_20220728141255.go new file mode 100644 index 0000000..aed459e --- /dev/null +++ b/.history/api/myTest/testRoute/type_20220728141255.go @@ -0,0 +1,24 @@ +package testroute + +import ( + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +type ApiMethod struct{} + +// 实验入口 + +func (a *ApiMethod) Index(c *gin.Context) { + outputCont := publicmethod.MapOut[string]() + outputCont["index"] = "测试入口" + publicmethod.Result(0, outputCont, c) +} + +// 测试 +type Person struct { + Id int `form:"id" json:"id"` + Name string `form:"name" json:"name"` + Age int `form:"age" json:"age"` +} diff --git a/.history/api/myTest/testRoute/type_20220728145213.go b/.history/api/myTest/testRoute/type_20220728145213.go new file mode 100644 index 0000000..f1e6536 --- /dev/null +++ b/.history/api/myTest/testRoute/type_20220728145213.go @@ -0,0 +1,24 @@ +package testroute + +import ( + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +type ApiMethod struct{} + +// 实验入口 + +func (a *ApiMethod) Index(c *gin.Context) { + outputCont := publicmethod.MapOut[string]() + outputCont["index"] = "测试入口" + publicmethod.Result(0, outputCont, c) +} + +// 测试 +type Person struct { + Id int `form:"id" json:"id" mapstructure` + Name string `form:"name" json:"name"` + Age int `form:"age" json:"age"` +} diff --git a/.history/api/myTest/testRoute/type_20220728145219.go b/.history/api/myTest/testRoute/type_20220728145219.go new file mode 100644 index 0000000..fb0cc73 --- /dev/null +++ b/.history/api/myTest/testRoute/type_20220728145219.go @@ -0,0 +1,24 @@ +package testroute + +import ( + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +type ApiMethod struct{} + +// 实验入口 + +func (a *ApiMethod) Index(c *gin.Context) { + outputCont := publicmethod.MapOut[string]() + outputCont["index"] = "测试入口" + publicmethod.Result(0, outputCont, c) +} + +// 测试 +type Person struct { + Id int `form:"id" json:"id" mapstructure:"id"` + Name string `form:"name" json:"name"` + Age int `form:"age" json:"age"` +} diff --git a/.history/api/myTest/testRoute/type_20220728145226.go b/.history/api/myTest/testRoute/type_20220728145226.go new file mode 100644 index 0000000..a13a3ce --- /dev/null +++ b/.history/api/myTest/testRoute/type_20220728145226.go @@ -0,0 +1,24 @@ +package testroute + +import ( + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +type ApiMethod struct{} + +// 实验入口 + +func (a *ApiMethod) Index(c *gin.Context) { + outputCont := publicmethod.MapOut[string]() + outputCont["index"] = "测试入口" + publicmethod.Result(0, outputCont, c) +} + +// 测试 +type Person struct { + Id int `form:"id" json:"id" mapstructure:"id"` + Name string `form:"name" json:"name" mapstructure:"name"` + Age int `form:"age" json:"age"` +} diff --git a/.history/api/myTest/testRoute/type_20220728145231.go b/.history/api/myTest/testRoute/type_20220728145231.go new file mode 100644 index 0000000..30b5ae5 --- /dev/null +++ b/.history/api/myTest/testRoute/type_20220728145231.go @@ -0,0 +1,24 @@ +package testroute + +import ( + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +type ApiMethod struct{} + +// 实验入口 + +func (a *ApiMethod) Index(c *gin.Context) { + outputCont := publicmethod.MapOut[string]() + outputCont["index"] = "测试入口" + publicmethod.Result(0, outputCont, c) +} + +// 测试 +type Person struct { + Id int `form:"id" json:"id" mapstructure:"id"` + Name string `form:"name" json:"name" mapstructure:"name"` + Age int `form:"age" json:"age" mapstructure` +} diff --git a/.history/api/myTest/testRoute/type_20220728145233.go b/.history/api/myTest/testRoute/type_20220728145233.go new file mode 100644 index 0000000..b18daf0 --- /dev/null +++ b/.history/api/myTest/testRoute/type_20220728145233.go @@ -0,0 +1,24 @@ +package testroute + +import ( + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +type ApiMethod struct{} + +// 实验入口 + +func (a *ApiMethod) Index(c *gin.Context) { + outputCont := publicmethod.MapOut[string]() + outputCont["index"] = "测试入口" + publicmethod.Result(0, outputCont, c) +} + +// 测试 +type Person struct { + Id int `form:"id" json:"id" mapstructure:"id"` + Name string `form:"name" json:"name" mapstructure:"name"` + Age int `form:"age" json:"age" mapstructure:"age"` +} diff --git a/.history/apirouter/apishiyan/maptostruct_20220727153717.go b/.history/apirouter/apishiyan/maptostruct_20220727153717.go new file mode 100644 index 0000000..9ce27ba --- /dev/null +++ b/.history/apirouter/apishiyan/maptostruct_20220727153717.go @@ -0,0 +1,20 @@ +package apishiyan + +import ( + "key_performance_indicators/api/shiyan" + + "github.com/gin-gonic/gin" +) + +//实验 + +func (a *ApiRouter) RouterGroup(router *gin.RouterGroup) { + apiRouter := router.Group("shiyan") + + var methodBinding = shiyan.AppApiEntry.MapToStructApi + { + apiRouter.GET("", methodBinding.Index) //入口 + apiRouter.POST("", methodBinding.Index) //入口 + apiRouter.POST("maptostructshiyan", methodBinding.MapToStructShiyan) //map转struct + } +} diff --git a/.history/apirouter/apishiyan/maptostruct_20220728145139.go b/.history/apirouter/apishiyan/maptostruct_20220728145139.go new file mode 100644 index 0000000..9ce27ba --- /dev/null +++ b/.history/apirouter/apishiyan/maptostruct_20220728145139.go @@ -0,0 +1,20 @@ +package apishiyan + +import ( + "key_performance_indicators/api/shiyan" + + "github.com/gin-gonic/gin" +) + +//实验 + +func (a *ApiRouter) RouterGroup(router *gin.RouterGroup) { + apiRouter := router.Group("shiyan") + + var methodBinding = shiyan.AppApiEntry.MapToStructApi + { + apiRouter.GET("", methodBinding.Index) //入口 + apiRouter.POST("", methodBinding.Index) //入口 + apiRouter.POST("maptostructshiyan", methodBinding.MapToStructShiyan) //map转struct + } +} diff --git a/.history/apirouter/entry_20220727153717.go b/.history/apirouter/entry_20220727153717.go new file mode 100644 index 0000000..f1bbc6c --- /dev/null +++ b/.history/apirouter/entry_20220727153717.go @@ -0,0 +1,19 @@ +package apirouter + +import ( + "key_performance_indicators/apirouter/apishiyan" + "key_performance_indicators/apirouter/empower" + honorsRoute "key_performance_indicators/apirouter/v1/honorsRoute" + "key_performance_indicators/apirouter/verifyLogin" + // "key_performance_indicators/v1" +) + +//路由结构 +type RouterGroup struct { + EmpowerRouter empower.EmpowerApiRouter + VerifyLogin verifyLogin.ApiRouter + ShiyanApi apishiyan.ApiRouter + HonorsSouteRouter honorsRoute.ApiRouter +} + +var RouterGroupEntry = new(RouterGroup) diff --git a/.history/apirouter/entry_20220728102633.go b/.history/apirouter/entry_20220728102633.go new file mode 100644 index 0000000..f1bbc6c --- /dev/null +++ b/.history/apirouter/entry_20220728102633.go @@ -0,0 +1,19 @@ +package apirouter + +import ( + "key_performance_indicators/apirouter/apishiyan" + "key_performance_indicators/apirouter/empower" + honorsRoute "key_performance_indicators/apirouter/v1/honorsRoute" + "key_performance_indicators/apirouter/verifyLogin" + // "key_performance_indicators/v1" +) + +//路由结构 +type RouterGroup struct { + EmpowerRouter empower.EmpowerApiRouter + VerifyLogin verifyLogin.ApiRouter + ShiyanApi apishiyan.ApiRouter + HonorsSouteRouter honorsRoute.ApiRouter +} + +var RouterGroupEntry = new(RouterGroup) diff --git a/.history/apirouter/entry_20220728133925.go b/.history/apirouter/entry_20220728133925.go new file mode 100644 index 0000000..671d65b --- /dev/null +++ b/.history/apirouter/entry_20220728133925.go @@ -0,0 +1,20 @@ +package apirouter + +import ( + "key_performance_indicators/apirouter/apishiyan" + "key_performance_indicators/apirouter/empower" + honorsRoute "key_performance_indicators/apirouter/v1/honorsRoute" + "key_performance_indicators/apirouter/verifyLogin" + // "key_performance_indicators/v1" +) + +//路由结构 +type RouterGroup struct { + EmpowerRouter empower.EmpowerApiRouter + VerifyLogin verifyLogin.ApiRouter + ShiyanApi apishiyan.ApiRouter + HonorsSouteRouter honorsRoute.ApiRouter + MytestApi +} + +var RouterGroupEntry = new(RouterGroup) diff --git a/.history/apirouter/entry_20220728133930.go b/.history/apirouter/entry_20220728133930.go new file mode 100644 index 0000000..2012c38 --- /dev/null +++ b/.history/apirouter/entry_20220728133930.go @@ -0,0 +1,20 @@ +package apirouter + +import ( + "key_performance_indicators/apirouter/apishiyan" + "key_performance_indicators/apirouter/empower" + honorsRoute "key_performance_indicators/apirouter/v1/honorsRoute" + "key_performance_indicators/apirouter/verifyLogin" + // "key_performance_indicators/v1" +) + +//路由结构 +type RouterGroup struct { + EmpowerRouter empower.EmpowerApiRouter + VerifyLogin verifyLogin.ApiRouter + ShiyanApi apishiyan.ApiRouter + HonorsSouteRouter honorsRoute.ApiRouter + MytestApi +} + +var RouterGroupEntry = new(RouterGroup) diff --git a/.history/apirouter/entry_20220728133931.go b/.history/apirouter/entry_20220728133931.go new file mode 100644 index 0000000..c12f78d --- /dev/null +++ b/.history/apirouter/entry_20220728133931.go @@ -0,0 +1,20 @@ +package apirouter + +import ( + "key_performance_indicators/apirouter/apishiyan" + "key_performance_indicators/apirouter/empower" + honorsRoute "key_performance_indicators/apirouter/v1/honorsRoute" + "key_performance_indicators/apirouter/verifyLogin" + // "key_performance_indicators/v1" +) + +//路由结构 +type RouterGroup struct { + EmpowerRouter empower.EmpowerApiRouter + VerifyLogin verifyLogin.ApiRouter + ShiyanApi apishiyan.ApiRouter + HonorsSouteRouter honorsRoute.ApiRouter + MytestApi api +} + +var RouterGroupEntry = new(RouterGroup) diff --git a/.history/apirouter/entry_20220728133937.go b/.history/apirouter/entry_20220728133937.go new file mode 100644 index 0000000..2012c38 --- /dev/null +++ b/.history/apirouter/entry_20220728133937.go @@ -0,0 +1,20 @@ +package apirouter + +import ( + "key_performance_indicators/apirouter/apishiyan" + "key_performance_indicators/apirouter/empower" + honorsRoute "key_performance_indicators/apirouter/v1/honorsRoute" + "key_performance_indicators/apirouter/verifyLogin" + // "key_performance_indicators/v1" +) + +//路由结构 +type RouterGroup struct { + EmpowerRouter empower.EmpowerApiRouter + VerifyLogin verifyLogin.ApiRouter + ShiyanApi apishiyan.ApiRouter + HonorsSouteRouter honorsRoute.ApiRouter + MytestApi +} + +var RouterGroupEntry = new(RouterGroup) diff --git a/.history/apirouter/entry_20220728134020.go b/.history/apirouter/entry_20220728134020.go new file mode 100644 index 0000000..55071a4 --- /dev/null +++ b/.history/apirouter/entry_20220728134020.go @@ -0,0 +1,21 @@ +package apirouter + +import ( + mytest "key_performance_indicators/api/myTest" + "key_performance_indicators/apirouter/apishiyan" + "key_performance_indicators/apirouter/empower" + honorsRoute "key_performance_indicators/apirouter/v1/honorsRoute" + "key_performance_indicators/apirouter/verifyLogin" + // "key_performance_indicators/v1" +) + +//路由结构 +type RouterGroup struct { + EmpowerRouter empower.EmpowerApiRouter + VerifyLogin verifyLogin.ApiRouter + ShiyanApi apishiyan.ApiRouter + HonorsSouteRouter honorsRoute.ApiRouter + MytestApi mytest. +} + +var RouterGroupEntry = new(RouterGroup) diff --git a/.history/apirouter/entry_20220728134022.go b/.history/apirouter/entry_20220728134022.go new file mode 100644 index 0000000..8404fb0 --- /dev/null +++ b/.history/apirouter/entry_20220728134022.go @@ -0,0 +1,21 @@ +package apirouter + +import ( + mytest "key_performance_indicators/api/myTest" + "key_performance_indicators/apirouter/apishiyan" + "key_performance_indicators/apirouter/empower" + honorsRoute "key_performance_indicators/apirouter/v1/honorsRoute" + "key_performance_indicators/apirouter/verifyLogin" + // "key_performance_indicators/v1" +) + +//路由结构 +type RouterGroup struct { + EmpowerRouter empower.EmpowerApiRouter + VerifyLogin verifyLogin.ApiRouter + ShiyanApi apishiyan.ApiRouter + HonorsSouteRouter honorsRoute.ApiRouter + MytestApi mytest.ApiEntry +} + +var RouterGroupEntry = new(RouterGroup) diff --git a/.history/apirouter/entry_20220728134035.go b/.history/apirouter/entry_20220728134035.go new file mode 100644 index 0000000..b14c3b0 --- /dev/null +++ b/.history/apirouter/entry_20220728134035.go @@ -0,0 +1,21 @@ +package apirouter + +import ( + mytest "key_performance_indicators/api/myTest" + "key_performance_indicators/apirouter/apishiyan" + "key_performance_indicators/apirouter/empower" + honorsRoute "key_performance_indicators/apirouter/v1/honorsRoute" + "key_performance_indicators/apirouter/verifyLogin" + // "key_performance_indicators/v1" +) + +//路由结构 +type RouterGroup struct { + EmpowerRouter empower.EmpowerApiRouter + VerifyLogin verifyLogin.ApiRouter + ShiyanApi apishiyan.ApiRouter + HonorsSouteRouter honorsRoute.ApiRouter + MytestApi mytest.Tes +} + +var RouterGroupEntry = new(RouterGroup) diff --git a/.history/apirouter/entry_20220728134037.go b/.history/apirouter/entry_20220728134037.go new file mode 100644 index 0000000..0a71640 --- /dev/null +++ b/.history/apirouter/entry_20220728134037.go @@ -0,0 +1,21 @@ +package apirouter + +import ( + mytest "key_performance_indicators/api/myTest" + "key_performance_indicators/apirouter/apishiyan" + "key_performance_indicators/apirouter/empower" + honorsRoute "key_performance_indicators/apirouter/v1/honorsRoute" + "key_performance_indicators/apirouter/verifyLogin" + // "key_performance_indicators/v1" +) + +//路由结构 +type RouterGroup struct { + EmpowerRouter empower.EmpowerApiRouter + VerifyLogin verifyLogin.ApiRouter + ShiyanApi apishiyan.ApiRouter + HonorsSouteRouter honorsRoute.ApiRouter + MytestApi mytest.TestApi +} + +var RouterGroupEntry = new(RouterGroup) diff --git a/.history/apirouter/entry_20220728134041.go b/.history/apirouter/entry_20220728134041.go new file mode 100644 index 0000000..74e8306 --- /dev/null +++ b/.history/apirouter/entry_20220728134041.go @@ -0,0 +1,21 @@ +package apirouter + +import ( + mytest "key_performance_indicators/api/myTest" + "key_performance_indicators/apirouter/apishiyan" + "key_performance_indicators/apirouter/empower" + honorsRoute "key_performance_indicators/apirouter/v1/honorsRoute" + "key_performance_indicators/apirouter/verifyLogin" + // "key_performance_indicators/v1" +) + +//路由结构 +type RouterGroup struct { + EmpowerRouter empower.EmpowerApiRouter + VerifyLogin verifyLogin.ApiRouter + ShiyanApi apishiyan.ApiRouter + HonorsSouteRouter honorsRoute.ApiRouter + MytestApi test +} + +var RouterGroupEntry = new(RouterGroup) diff --git a/.history/apirouter/entry_20220728134046.go b/.history/apirouter/entry_20220728134046.go new file mode 100644 index 0000000..a7f33c1 --- /dev/null +++ b/.history/apirouter/entry_20220728134046.go @@ -0,0 +1,22 @@ +package apirouter + +import ( + mytest "key_performance_indicators/api/myTest" + testroute "key_performance_indicators/api/myTest/testRoute" + "key_performance_indicators/apirouter/apishiyan" + "key_performance_indicators/apirouter/empower" + honorsRoute "key_performance_indicators/apirouter/v1/honorsRoute" + "key_performance_indicators/apirouter/verifyLogin" + // "key_performance_indicators/v1" +) + +//路由结构 +type RouterGroup struct { + EmpowerRouter empower.EmpowerApiRouter + VerifyLogin verifyLogin.ApiRouter + ShiyanApi apishiyan.ApiRouter + HonorsSouteRouter honorsRoute.ApiRouter + MytestApi testroute. +} + +var RouterGroupEntry = new(RouterGroup) diff --git a/.history/apirouter/entry_20220728134050.go b/.history/apirouter/entry_20220728134050.go new file mode 100644 index 0000000..f6d2d91 --- /dev/null +++ b/.history/apirouter/entry_20220728134050.go @@ -0,0 +1,22 @@ +package apirouter + +import ( + mytest "key_performance_indicators/api/myTest" + testroute "key_performance_indicators/api/myTest/testRoute" + "key_performance_indicators/apirouter/apishiyan" + "key_performance_indicators/apirouter/empower" + honorsRoute "key_performance_indicators/apirouter/v1/honorsRoute" + "key_performance_indicators/apirouter/verifyLogin" + // "key_performance_indicators/v1" +) + +//路由结构 +type RouterGroup struct { + EmpowerRouter empower.EmpowerApiRouter + VerifyLogin verifyLogin.ApiRouter + ShiyanApi apishiyan.ApiRouter + HonorsSouteRouter honorsRoute.ApiRouter + MytestApi testroute.tes +} + +var RouterGroupEntry = new(RouterGroup) diff --git a/.history/apirouter/entry_20220728134052.go b/.history/apirouter/entry_20220728134052.go new file mode 100644 index 0000000..bd7df3e --- /dev/null +++ b/.history/apirouter/entry_20220728134052.go @@ -0,0 +1,22 @@ +package apirouter + +import ( + mytest "key_performance_indicators/api/myTest" + testroute "key_performance_indicators/api/myTest/testRoute" + "key_performance_indicators/apirouter/apishiyan" + "key_performance_indicators/apirouter/empower" + honorsRoute "key_performance_indicators/apirouter/v1/honorsRoute" + "key_performance_indicators/apirouter/verifyLogin" + // "key_performance_indicators/v1" +) + +//路由结构 +type RouterGroup struct { + EmpowerRouter empower.EmpowerApiRouter + VerifyLogin verifyLogin.ApiRouter + ShiyanApi apishiyan.ApiRouter + HonorsSouteRouter honorsRoute.ApiRouter + MytestApi testroute.TestApi +} + +var RouterGroupEntry = new(RouterGroup) diff --git a/.history/apirouter/entry_20220728134055.go b/.history/apirouter/entry_20220728134055.go new file mode 100644 index 0000000..c0c4185 --- /dev/null +++ b/.history/apirouter/entry_20220728134055.go @@ -0,0 +1,22 @@ +package apirouter + +import ( + mytest "key_performance_indicators/api/myTest" + testroute "key_performance_indicators/api/myTest/testRoute" + "key_performance_indicators/apirouter/apishiyan" + "key_performance_indicators/apirouter/empower" + honorsRoute "key_performance_indicators/apirouter/v1/honorsRoute" + "key_performance_indicators/apirouter/verifyLogin" + // "key_performance_indicators/v1" +) + +//路由结构 +type RouterGroup struct { + EmpowerRouter empower.EmpowerApiRouter + VerifyLogin verifyLogin.ApiRouter + ShiyanApi apishiyan.ApiRouter + HonorsSouteRouter honorsRoute.ApiRouter + MytestApi +} + +var RouterGroupEntry = new(RouterGroup) diff --git a/.history/apirouter/entry_20220728134102.go b/.history/apirouter/entry_20220728134102.go new file mode 100644 index 0000000..67598c6 --- /dev/null +++ b/.history/apirouter/entry_20220728134102.go @@ -0,0 +1,22 @@ +package apirouter + +import ( + mytest "key_performance_indicators/api/myTest" + testroute "key_performance_indicators/api/myTest/testRoute" + "key_performance_indicators/apirouter/apishiyan" + "key_performance_indicators/apirouter/empower" + honorsRoute "key_performance_indicators/apirouter/v1/honorsRoute" + "key_performance_indicators/apirouter/verifyLogin" + // "key_performance_indicators/v1" +) + +//路由结构 +type RouterGroup struct { + EmpowerRouter empower.EmpowerApiRouter + VerifyLogin verifyLogin.ApiRouter + ShiyanApi apishiyan.ApiRouter + HonorsSouteRouter honorsRoute.ApiRouter + MytestApi myt +} + +var RouterGroupEntry = new(RouterGroup) diff --git a/.history/apirouter/entry_20220728134104.go b/.history/apirouter/entry_20220728134104.go new file mode 100644 index 0000000..d5f9005 --- /dev/null +++ b/.history/apirouter/entry_20220728134104.go @@ -0,0 +1,22 @@ +package apirouter + +import ( + mytest "key_performance_indicators/api/myTest" + testroute "key_performance_indicators/api/myTest/testRoute" + "key_performance_indicators/apirouter/apishiyan" + "key_performance_indicators/apirouter/empower" + honorsRoute "key_performance_indicators/apirouter/v1/honorsRoute" + "key_performance_indicators/apirouter/verifyLogin" + // "key_performance_indicators/v1" +) + +//路由结构 +type RouterGroup struct { + EmpowerRouter empower.EmpowerApiRouter + VerifyLogin verifyLogin.ApiRouter + ShiyanApi apishiyan.ApiRouter + HonorsSouteRouter honorsRoute.ApiRouter + MytestApi mytest. +} + +var RouterGroupEntry = new(RouterGroup) diff --git a/.history/apirouter/entry_20220728134107.go b/.history/apirouter/entry_20220728134107.go new file mode 100644 index 0000000..e97938b --- /dev/null +++ b/.history/apirouter/entry_20220728134107.go @@ -0,0 +1,22 @@ +package apirouter + +import ( + mytest "key_performance_indicators/api/myTest" + testroute "key_performance_indicators/api/myTest/testRoute" + "key_performance_indicators/apirouter/apishiyan" + "key_performance_indicators/apirouter/empower" + honorsRoute "key_performance_indicators/apirouter/v1/honorsRoute" + "key_performance_indicators/apirouter/verifyLogin" + // "key_performance_indicators/v1" +) + +//路由结构 +type RouterGroup struct { + EmpowerRouter empower.EmpowerApiRouter + VerifyLogin verifyLogin.ApiRouter + ShiyanApi apishiyan.ApiRouter + HonorsSouteRouter honorsRoute.ApiRouter + MytestApi mytest.ApiEntry +} + +var RouterGroupEntry = new(RouterGroup) diff --git a/.history/apirouter/entry_20220728134113.go b/.history/apirouter/entry_20220728134113.go new file mode 100644 index 0000000..f1bbc6c --- /dev/null +++ b/.history/apirouter/entry_20220728134113.go @@ -0,0 +1,19 @@ +package apirouter + +import ( + "key_performance_indicators/apirouter/apishiyan" + "key_performance_indicators/apirouter/empower" + honorsRoute "key_performance_indicators/apirouter/v1/honorsRoute" + "key_performance_indicators/apirouter/verifyLogin" + // "key_performance_indicators/v1" +) + +//路由结构 +type RouterGroup struct { + EmpowerRouter empower.EmpowerApiRouter + VerifyLogin verifyLogin.ApiRouter + ShiyanApi apishiyan.ApiRouter + HonorsSouteRouter honorsRoute.ApiRouter +} + +var RouterGroupEntry = new(RouterGroup) diff --git a/.history/apirouter/entry_20220728134248.go b/.history/apirouter/entry_20220728134248.go new file mode 100644 index 0000000..845519b --- /dev/null +++ b/.history/apirouter/entry_20220728134248.go @@ -0,0 +1,20 @@ +package apirouter + +import ( + "key_performance_indicators/apirouter/apishiyan" + "key_performance_indicators/apirouter/empower" + honorsRoute "key_performance_indicators/apirouter/v1/honorsRoute" + "key_performance_indicators/apirouter/verifyLogin" + // "key_performance_indicators/v1" +) + +//路由结构 +type RouterGroup struct { + EmpowerRouter empower.EmpowerApiRouter + VerifyLogin verifyLogin.ApiRouter + ShiyanApi apishiyan.ApiRouter + HonorsSouteRouter honorsRoute.ApiRouter + +} + +var RouterGroupEntry = new(RouterGroup) diff --git a/.history/apirouter/entry_20220728134724.go b/.history/apirouter/entry_20220728134724.go new file mode 100644 index 0000000..4f7f7fc --- /dev/null +++ b/.history/apirouter/entry_20220728134724.go @@ -0,0 +1,20 @@ +package apirouter + +import ( + "key_performance_indicators/apirouter/apishiyan" + "key_performance_indicators/apirouter/empower" + honorsRoute "key_performance_indicators/apirouter/v1/honorsRoute" + "key_performance_indicators/apirouter/verifyLogin" + // "key_performance_indicators/v1" +) + +//路由结构 +type RouterGroup struct { + EmpowerRouter empower.EmpowerApiRouter + VerifyLogin verifyLogin.ApiRouter + ShiyanApi apishiyan.ApiRouter + HonorsSouteRouter honorsRoute.ApiRouter + MyTest +} + +var RouterGroupEntry = new(RouterGroup) diff --git a/.history/apirouter/entry_20220728134728.go b/.history/apirouter/entry_20220728134728.go new file mode 100644 index 0000000..fb4a50e --- /dev/null +++ b/.history/apirouter/entry_20220728134728.go @@ -0,0 +1,20 @@ +package apirouter + +import ( + "key_performance_indicators/apirouter/apishiyan" + "key_performance_indicators/apirouter/empower" + honorsRoute "key_performance_indicators/apirouter/v1/honorsRoute" + "key_performance_indicators/apirouter/verifyLogin" + // "key_performance_indicators/v1" +) + +//路由结构 +type RouterGroup struct { + EmpowerRouter empower.EmpowerApiRouter + VerifyLogin verifyLogin.ApiRouter + ShiyanApi apishiyan.ApiRouter + HonorsSouteRouter honorsRoute.ApiRouter + MyTest +} + +var RouterGroupEntry = new(RouterGroup) diff --git a/.history/apirouter/entry_20220728134743.go b/.history/apirouter/entry_20220728134743.go new file mode 100644 index 0000000..0730cdc --- /dev/null +++ b/.history/apirouter/entry_20220728134743.go @@ -0,0 +1,21 @@ +package apirouter + +import ( + mytest "key_performance_indicators/api/myTest" + "key_performance_indicators/apirouter/apishiyan" + "key_performance_indicators/apirouter/empower" + honorsRoute "key_performance_indicators/apirouter/v1/honorsRoute" + "key_performance_indicators/apirouter/verifyLogin" + // "key_performance_indicators/v1" +) + +//路由结构 +type RouterGroup struct { + EmpowerRouter empower.EmpowerApiRouter + VerifyLogin verifyLogin.ApiRouter + ShiyanApi apishiyan.ApiRouter + HonorsSouteRouter honorsRoute.ApiRouter + MyTest mytest +} + +var RouterGroupEntry = new(RouterGroup) diff --git a/.history/apirouter/entry_20220728134745.go b/.history/apirouter/entry_20220728134745.go new file mode 100644 index 0000000..82f8864 --- /dev/null +++ b/.history/apirouter/entry_20220728134745.go @@ -0,0 +1,21 @@ +package apirouter + +import ( + mytest "key_performance_indicators/api/myTest" + "key_performance_indicators/apirouter/apishiyan" + "key_performance_indicators/apirouter/empower" + honorsRoute "key_performance_indicators/apirouter/v1/honorsRoute" + "key_performance_indicators/apirouter/verifyLogin" + // "key_performance_indicators/v1" +) + +//路由结构 +type RouterGroup struct { + EmpowerRouter empower.EmpowerApiRouter + VerifyLogin verifyLogin.ApiRouter + ShiyanApi apishiyan.ApiRouter + HonorsSouteRouter honorsRoute.ApiRouter + MyTest mytest. +} + +var RouterGroupEntry = new(RouterGroup) diff --git a/.history/apirouter/entry_20220728134755.go b/.history/apirouter/entry_20220728134755.go new file mode 100644 index 0000000..c089bd1 --- /dev/null +++ b/.history/apirouter/entry_20220728134755.go @@ -0,0 +1,21 @@ +package apirouter + +import ( + mytest "key_performance_indicators/api/myTest" + "key_performance_indicators/apirouter/apishiyan" + "key_performance_indicators/apirouter/empower" + honorsRoute "key_performance_indicators/apirouter/v1/honorsRoute" + "key_performance_indicators/apirouter/verifyLogin" + // "key_performance_indicators/v1" +) + +//路由结构 +type RouterGroup struct { + EmpowerRouter empower.EmpowerApiRouter + VerifyLogin verifyLogin.ApiRouter + ShiyanApi apishiyan.ApiRouter + HonorsSouteRouter honorsRoute.ApiRouter + MyTest mytest.TestApi +} + +var RouterGroupEntry = new(RouterGroup) diff --git a/.history/apirouter/entry_20220728134850.go b/.history/apirouter/entry_20220728134850.go new file mode 100644 index 0000000..4813971 --- /dev/null +++ b/.history/apirouter/entry_20220728134850.go @@ -0,0 +1,21 @@ +package apirouter + +import ( + mytest "key_performance_indicators/apirouter/myTest" + "key_performance_indicators/apirouter/apishiyan" + "key_performance_indicators/apirouter/empower" + honorsRoute "key_performance_indicators/apirouter/v1/honorsRoute" + "key_performance_indicators/apirouter/verifyLogin" + // "key_performance_indicators/v1" +) + +//路由结构 +type RouterGroup struct { + EmpowerRouter empower.EmpowerApiRouter + VerifyLogin verifyLogin.ApiRouter + ShiyanApi apishiyan.ApiRouter + HonorsSouteRouter honorsRoute.ApiRouter + MyTest mytest.TestApi +} + +var RouterGroupEntry = new(RouterGroup) diff --git a/.history/apirouter/entry_20220728134852.go b/.history/apirouter/entry_20220728134852.go new file mode 100644 index 0000000..f59c655 --- /dev/null +++ b/.history/apirouter/entry_20220728134852.go @@ -0,0 +1,21 @@ +package apirouter + +import ( + "key_performance_indicators/apirouter/apishiyan" + "key_performance_indicators/apirouter/empower" + mytest "key_performance_indicators/apirouter/myTest" + honorsRoute "key_performance_indicators/apirouter/v1/honorsRoute" + "key_performance_indicators/apirouter/verifyLogin" + // "key_performance_indicators/v1" +) + +//路由结构 +type RouterGroup struct { + EmpowerRouter empower.EmpowerApiRouter + VerifyLogin verifyLogin.ApiRouter + ShiyanApi apishiyan.ApiRouter + HonorsSouteRouter honorsRoute.ApiRouter + MyTest mytest.TestApi +} + +var RouterGroupEntry = new(RouterGroup) diff --git a/.history/apirouter/entry_20220728134854.go b/.history/apirouter/entry_20220728134854.go new file mode 100644 index 0000000..f59c655 --- /dev/null +++ b/.history/apirouter/entry_20220728134854.go @@ -0,0 +1,21 @@ +package apirouter + +import ( + "key_performance_indicators/apirouter/apishiyan" + "key_performance_indicators/apirouter/empower" + mytest "key_performance_indicators/apirouter/myTest" + honorsRoute "key_performance_indicators/apirouter/v1/honorsRoute" + "key_performance_indicators/apirouter/verifyLogin" + // "key_performance_indicators/v1" +) + +//路由结构 +type RouterGroup struct { + EmpowerRouter empower.EmpowerApiRouter + VerifyLogin verifyLogin.ApiRouter + ShiyanApi apishiyan.ApiRouter + HonorsSouteRouter honorsRoute.ApiRouter + MyTest mytest.TestApi +} + +var RouterGroupEntry = new(RouterGroup) diff --git a/.history/apirouter/myTest/myTest_route_20220728104853.go b/.history/apirouter/myTest/myTest_route_20220728104853.go new file mode 100644 index 0000000..e69de29 diff --git a/.history/apirouter/myTest/myTest_route_20220728104907.go b/.history/apirouter/myTest/myTest_route_20220728104907.go new file mode 100644 index 0000000..d9f4502 --- /dev/null +++ b/.history/apirouter/myTest/myTest_route_20220728104907.go @@ -0,0 +1 @@ +pac \ No newline at end of file diff --git a/.history/apirouter/myTest/myTest_route_20220728104908.go b/.history/apirouter/myTest/myTest_route_20220728104908.go new file mode 100644 index 0000000..2d1f664 --- /dev/null +++ b/.history/apirouter/myTest/myTest_route_20220728104908.go @@ -0,0 +1 @@ +package mytest diff --git a/.history/apirouter/myTest/myTest_route_20220728104926.go b/.history/apirouter/myTest/myTest_route_20220728104926.go new file mode 100644 index 0000000..5c6e9a1 --- /dev/null +++ b/.history/apirouter/myTest/myTest_route_20220728104926.go @@ -0,0 +1,5 @@ +package mytest + +func () { + +} \ No newline at end of file diff --git a/.history/apirouter/myTest/myTest_route_20220728104939.go b/.history/apirouter/myTest/myTest_route_20220728104939.go new file mode 100644 index 0000000..fadfa6d --- /dev/null +++ b/.history/apirouter/myTest/myTest_route_20220728104939.go @@ -0,0 +1,5 @@ +package mytest + +func RouterGroup() { + +} \ No newline at end of file diff --git a/.history/apirouter/myTest/myTest_route_20220728104941.go b/.history/apirouter/myTest/myTest_route_20220728104941.go new file mode 100644 index 0000000..979d8f3 --- /dev/null +++ b/.history/apirouter/myTest/myTest_route_20220728104941.go @@ -0,0 +1,5 @@ +package mytest + +func ()RouterGroup() { + +} \ No newline at end of file diff --git a/.history/apirouter/myTest/myTest_route_20220728104946.go b/.history/apirouter/myTest/myTest_route_20220728104946.go new file mode 100644 index 0000000..6ac5e10 --- /dev/null +++ b/.history/apirouter/myTest/myTest_route_20220728104946.go @@ -0,0 +1,5 @@ +package mytest + +func (m *)RouterGroup() { + +} \ No newline at end of file diff --git a/.history/apirouter/myTest/myTest_route_20220728104952.go b/.history/apirouter/myTest/myTest_route_20220728104952.go new file mode 100644 index 0000000..647dff2 --- /dev/null +++ b/.history/apirouter/myTest/myTest_route_20220728104952.go @@ -0,0 +1,5 @@ +package mytest + +func (t T)RouterGroup() { + +} \ No newline at end of file diff --git a/.history/apirouter/myTest/myTest_route_20220728104955.go b/.history/apirouter/myTest/myTest_route_20220728104955.go new file mode 100644 index 0000000..a283ffa --- /dev/null +++ b/.history/apirouter/myTest/myTest_route_20220728104955.go @@ -0,0 +1,5 @@ +package mytest + +func (t *Te)RouterGroup() { + +} \ No newline at end of file diff --git a/.history/apirouter/myTest/myTest_route_20220728104956.go b/.history/apirouter/myTest/myTest_route_20220728104956.go new file mode 100644 index 0000000..98575ed --- /dev/null +++ b/.history/apirouter/myTest/myTest_route_20220728104956.go @@ -0,0 +1,5 @@ +package mytest + +func (t *TestApi) RouterGroup() { + +} diff --git a/.history/apirouter/myTest/myTest_route_20220728105027.go b/.history/apirouter/myTest/myTest_route_20220728105027.go new file mode 100644 index 0000000..98575ed --- /dev/null +++ b/.history/apirouter/myTest/myTest_route_20220728105027.go @@ -0,0 +1,5 @@ +package mytest + +func (t *TestApi) RouterGroup() { + +} diff --git a/.history/apirouter/myTest/myTest_route_20220728105055.go b/.history/apirouter/myTest/myTest_route_20220728105055.go new file mode 100644 index 0000000..d549616 --- /dev/null +++ b/.history/apirouter/myTest/myTest_route_20220728105055.go @@ -0,0 +1,5 @@ +package mytest + +func (t *TestApi) RouterGroup() { + +} diff --git a/.history/apirouter/myTest/myTest_route_20220728105105.go b/.history/apirouter/myTest/myTest_route_20220728105105.go new file mode 100644 index 0000000..d1d3e7d --- /dev/null +++ b/.history/apirouter/myTest/myTest_route_20220728105105.go @@ -0,0 +1,5 @@ +package mytest + +func (t *TestApi) RouterGroup(route *gin.r) { + +} diff --git a/.history/apirouter/myTest/myTest_route_20220728105106.go b/.history/apirouter/myTest/myTest_route_20220728105106.go new file mode 100644 index 0000000..b185819 --- /dev/null +++ b/.history/apirouter/myTest/myTest_route_20220728105106.go @@ -0,0 +1,5 @@ +package mytest + +func (t *TestApi) RouterGroup(route *gin.) { + +} diff --git a/.history/apirouter/myTest/myTest_route_20220728105112.go b/.history/apirouter/myTest/myTest_route_20220728105112.go new file mode 100644 index 0000000..1e2fb45 --- /dev/null +++ b/.history/apirouter/myTest/myTest_route_20220728105112.go @@ -0,0 +1,7 @@ +package mytest + +import "github.com/gin-gonic/gin" + +func (t *TestApi) RouterGroup(route *gin.RouterGroup) { + +} diff --git a/.history/apirouter/myTest/myTest_route_20220728105113.go b/.history/apirouter/myTest/myTest_route_20220728105113.go new file mode 100644 index 0000000..abee1c8 --- /dev/null +++ b/.history/apirouter/myTest/myTest_route_20220728105113.go @@ -0,0 +1,7 @@ +package mytest + +import "github.com/gin-gonic/gin" + +func (t *TestApi) RouterGroup(route *gin.RouterGroup) { + +} diff --git a/.history/apirouter/myTest/myTest_route_20220728105120.go b/.history/apirouter/myTest/myTest_route_20220728105120.go new file mode 100644 index 0000000..a9b4202 --- /dev/null +++ b/.history/apirouter/myTest/myTest_route_20220728105120.go @@ -0,0 +1,7 @@ +package mytest + +import "github.com/gin-gonic/gin" + +func (t *TestApi) RouterGroup(route *gin.RouterGroup) { + api +} diff --git a/.history/apirouter/myTest/myTest_route_20220728105128.go b/.history/apirouter/myTest/myTest_route_20220728105128.go new file mode 100644 index 0000000..9f16f96 --- /dev/null +++ b/.history/apirouter/myTest/myTest_route_20220728105128.go @@ -0,0 +1,7 @@ +package mytest + +import "github.com/gin-gonic/gin" + +func (t *TestApi) RouterGroup(route *gin.RouterGroup) { + apiRouter := +} diff --git a/.history/apirouter/myTest/myTest_route_20220728105130.go b/.history/apirouter/myTest/myTest_route_20220728105130.go new file mode 100644 index 0000000..af1fc43 --- /dev/null +++ b/.history/apirouter/myTest/myTest_route_20220728105130.go @@ -0,0 +1,7 @@ +package mytest + +import "github.com/gin-gonic/gin" + +func (t *TestApi) RouterGroup(route *gin.RouterGroup) { + apiRouter := t.RouterGroup() +} diff --git a/.history/apirouter/myTest/myTest_route_20220728105140.go b/.history/apirouter/myTest/myTest_route_20220728105140.go new file mode 100644 index 0000000..8a01d50 --- /dev/null +++ b/.history/apirouter/myTest/myTest_route_20220728105140.go @@ -0,0 +1,7 @@ +package mytest + +import "github.com/gin-gonic/gin" + +func (t *TestApi) RouterGroup(route *gin.RouterGroup) { + apiRouter := route.Group("") +} diff --git a/.history/apirouter/myTest/myTest_route_20220728105142.go b/.history/apirouter/myTest/myTest_route_20220728105142.go new file mode 100644 index 0000000..4d5e803 --- /dev/null +++ b/.history/apirouter/myTest/myTest_route_20220728105142.go @@ -0,0 +1,7 @@ +package mytest + +import "github.com/gin-gonic/gin" + +func (t *TestApi) RouterGroup(route *gin.RouterGroup) { + apiRouter := route.Group("/") +} diff --git a/.history/apirouter/myTest/myTest_route_20220728105146.go b/.history/apirouter/myTest/myTest_route_20220728105146.go new file mode 100644 index 0000000..9dc7463 --- /dev/null +++ b/.history/apirouter/myTest/myTest_route_20220728105146.go @@ -0,0 +1,7 @@ +package mytest + +import "github.com/gin-gonic/gin" + +func (t *TestApi) RouterGroup(route *gin.RouterGroup) { + apiRouter := route.Group("/myTes") +} diff --git a/.history/apirouter/myTest/myTest_route_20220728105147.go b/.history/apirouter/myTest/myTest_route_20220728105147.go new file mode 100644 index 0000000..8bde466 --- /dev/null +++ b/.history/apirouter/myTest/myTest_route_20220728105147.go @@ -0,0 +1,7 @@ +package mytest + +import "github.com/gin-gonic/gin" + +func (t *TestApi) RouterGroup(route *gin.RouterGroup) { + apiRouter := route.Group("/myTest") +} diff --git a/.history/apirouter/myTest/myTest_route_20220728105150.go b/.history/apirouter/myTest/myTest_route_20220728105150.go new file mode 100644 index 0000000..abfb0f0 --- /dev/null +++ b/.history/apirouter/myTest/myTest_route_20220728105150.go @@ -0,0 +1,8 @@ +package mytest + +import "github.com/gin-gonic/gin" + +func (t *TestApi) RouterGroup(route *gin.RouterGroup) { + apiRouter := route.Group("/myTest") + apiRouter. +} diff --git a/.history/apirouter/myTest/myTest_route_20220728105157.go b/.history/apirouter/myTest/myTest_route_20220728105157.go new file mode 100644 index 0000000..195276d --- /dev/null +++ b/.history/apirouter/myTest/myTest_route_20220728105157.go @@ -0,0 +1,8 @@ +package mytest + +import "github.com/gin-gonic/gin" + +func (t *TestApi) RouterGroup(route *gin.RouterGroup) { + apiRouter := route.Group("/myTest") + +} diff --git a/.history/apirouter/myTest/myTest_route_20220728105755.go b/.history/apirouter/myTest/myTest_route_20220728105755.go new file mode 100644 index 0000000..c2cbecb --- /dev/null +++ b/.history/apirouter/myTest/myTest_route_20220728105755.go @@ -0,0 +1,8 @@ +package mytest + +import "github.com/gin-gonic/gin" + +func (t *TestApi) RouterGroup(route *gin.RouterGroup) { + apiRouter := route.Group("/myTest") +// +} diff --git a/.history/apirouter/myTest/myTest_route_20220728105757.go b/.history/apirouter/myTest/myTest_route_20220728105757.go new file mode 100644 index 0000000..66028fc --- /dev/null +++ b/.history/apirouter/myTest/myTest_route_20220728105757.go @@ -0,0 +1,8 @@ +package mytest + +import "github.com/gin-gonic/gin" + +func (t *TestApi) RouterGroup(route *gin.RouterGroup) { + apiRouter := route.Group("/myTest") +/ +} diff --git a/.history/apirouter/myTest/myTest_route_20220728105758.go b/.history/apirouter/myTest/myTest_route_20220728105758.go new file mode 100644 index 0000000..36adc9f --- /dev/null +++ b/.history/apirouter/myTest/myTest_route_20220728105758.go @@ -0,0 +1,8 @@ +package mytest + +import "github.com/gin-gonic/gin" + +func (t *TestApi) RouterGroup(route *gin.RouterGroup) { + // apiRouter := route.Group("/myTest") +/ +} diff --git a/.history/apirouter/myTest/myTest_route_20220728105759.go b/.history/apirouter/myTest/myTest_route_20220728105759.go new file mode 100644 index 0000000..8d2ac61 --- /dev/null +++ b/.history/apirouter/myTest/myTest_route_20220728105759.go @@ -0,0 +1,8 @@ +package mytest + +import "github.com/gin-gonic/gin" + +func (t *TestApi) RouterGroup(route *gin.RouterGroup) { + // apiRouter := route.Group("/myTest") + +} diff --git a/.history/apirouter/myTest/myTest_route_20220728132849.go b/.history/apirouter/myTest/myTest_route_20220728132849.go new file mode 100644 index 0000000..195276d --- /dev/null +++ b/.history/apirouter/myTest/myTest_route_20220728132849.go @@ -0,0 +1,8 @@ +package mytest + +import "github.com/gin-gonic/gin" + +func (t *TestApi) RouterGroup(route *gin.RouterGroup) { + apiRouter := route.Group("/myTest") + +} diff --git a/.history/apirouter/myTest/myTest_route_20220728132850.go b/.history/apirouter/myTest/myTest_route_20220728132850.go new file mode 100644 index 0000000..efd5973 --- /dev/null +++ b/.history/apirouter/myTest/myTest_route_20220728132850.go @@ -0,0 +1,8 @@ +package mytest + +import "github.com/gin-gonic/gin" + +func (t *TestApi) RouterGroup(route *gin.RouterGroup) { + apiRouter := route.Group("/myTest") + +} diff --git a/.history/apirouter/myTest/myTest_route_20220728132907.go b/.history/apirouter/myTest/myTest_route_20220728132907.go new file mode 100644 index 0000000..7420236 --- /dev/null +++ b/.history/apirouter/myTest/myTest_route_20220728132907.go @@ -0,0 +1,9 @@ +package mytest + +import "github.com/gin-gonic/gin" + +func (t *TestApi) RouterGroup(route *gin.RouterGroup) { + apiRouter := route.Group("/myTest") + + var +} diff --git a/.history/apirouter/myTest/myTest_route_20220728133649.go b/.history/apirouter/myTest/myTest_route_20220728133649.go new file mode 100644 index 0000000..3a0936c --- /dev/null +++ b/.history/apirouter/myTest/myTest_route_20220728133649.go @@ -0,0 +1,9 @@ +package mytest + +import "github.com/gin-gonic/gin" + +func (t *TestApi) RouterGroup(route *gin.RouterGroup) { + apiRouter := route.Group("/myTest") + + var methodBinding = +} diff --git a/.history/apirouter/myTest/myTest_route_20220728133651.go b/.history/apirouter/myTest/myTest_route_20220728133651.go new file mode 100644 index 0000000..3a0936c --- /dev/null +++ b/.history/apirouter/myTest/myTest_route_20220728133651.go @@ -0,0 +1,9 @@ +package mytest + +import "github.com/gin-gonic/gin" + +func (t *TestApi) RouterGroup(route *gin.RouterGroup) { + apiRouter := route.Group("/myTest") + + var methodBinding = +} diff --git a/.history/apirouter/myTest/myTest_route_20220728133701.go b/.history/apirouter/myTest/myTest_route_20220728133701.go new file mode 100644 index 0000000..fb35df0 --- /dev/null +++ b/.history/apirouter/myTest/myTest_route_20220728133701.go @@ -0,0 +1,9 @@ +package mytest + +import "github.com/gin-gonic/gin" + +func (t *TestApi) RouterGroup(route *gin.RouterGroup) { + apiRouter := route.Group("/myTest") + + var methodBinding = t. +} diff --git a/.history/apirouter/myTest/myTest_route_20220728133702.go b/.history/apirouter/myTest/myTest_route_20220728133702.go new file mode 100644 index 0000000..3a0936c --- /dev/null +++ b/.history/apirouter/myTest/myTest_route_20220728133702.go @@ -0,0 +1,9 @@ +package mytest + +import "github.com/gin-gonic/gin" + +func (t *TestApi) RouterGroup(route *gin.RouterGroup) { + apiRouter := route.Group("/myTest") + + var methodBinding = +} diff --git a/.history/apirouter/myTest/myTest_route_20220728133710.go b/.history/apirouter/myTest/myTest_route_20220728133710.go new file mode 100644 index 0000000..3a0936c --- /dev/null +++ b/.history/apirouter/myTest/myTest_route_20220728133710.go @@ -0,0 +1,9 @@ +package mytest + +import "github.com/gin-gonic/gin" + +func (t *TestApi) RouterGroup(route *gin.RouterGroup) { + apiRouter := route.Group("/myTest") + + var methodBinding = +} diff --git a/.history/apirouter/myTest/myTest_route_20220728133719.go b/.history/apirouter/myTest/myTest_route_20220728133719.go new file mode 100644 index 0000000..6d8dfa6 --- /dev/null +++ b/.history/apirouter/myTest/myTest_route_20220728133719.go @@ -0,0 +1,13 @@ +package mytest + +import ( + mytest "key_performance_indicators/api/myTest" + + "github.com/gin-gonic/gin" +) + +func (t *TestApi) RouterGroup(route *gin.RouterGroup) { + apiRouter := route.Group("/myTest") + + var methodBinding = mytest. +} diff --git a/.history/apirouter/myTest/myTest_route_20220728133724.go b/.history/apirouter/myTest/myTest_route_20220728133724.go new file mode 100644 index 0000000..aca5f76 --- /dev/null +++ b/.history/apirouter/myTest/myTest_route_20220728133724.go @@ -0,0 +1,13 @@ +package mytest + +import ( + mytest "key_performance_indicators/api/myTest" + + "github.com/gin-gonic/gin" +) + +func (t *TestApi) RouterGroup(route *gin.RouterGroup) { + apiRouter := route.Group("/myTest") + + var methodBinding = mytest.ApiEntry.Test +} diff --git a/.history/apirouter/myTest/myTest_route_20220728133730.go b/.history/apirouter/myTest/myTest_route_20220728133730.go new file mode 100644 index 0000000..af6d70d --- /dev/null +++ b/.history/apirouter/myTest/myTest_route_20220728133730.go @@ -0,0 +1,13 @@ +package mytest + +import ( + mytest "key_performance_indicators/api/myTest" + + "github.com/gin-gonic/gin" +) + +func (t *TestApi) RouterGroup(route *gin.RouterGroup) { + apiRouter := route.Group("/myTest") + + var methodBinding = +} diff --git a/.history/apirouter/myTest/myTest_route_20220728133750.go b/.history/apirouter/myTest/myTest_route_20220728133750.go new file mode 100644 index 0000000..6d8dfa6 --- /dev/null +++ b/.history/apirouter/myTest/myTest_route_20220728133750.go @@ -0,0 +1,13 @@ +package mytest + +import ( + mytest "key_performance_indicators/api/myTest" + + "github.com/gin-gonic/gin" +) + +func (t *TestApi) RouterGroup(route *gin.RouterGroup) { + apiRouter := route.Group("/myTest") + + var methodBinding = mytest. +} diff --git a/.history/apirouter/myTest/myTest_route_20220728133753.go b/.history/apirouter/myTest/myTest_route_20220728133753.go new file mode 100644 index 0000000..b70a58e --- /dev/null +++ b/.history/apirouter/myTest/myTest_route_20220728133753.go @@ -0,0 +1,13 @@ +package mytest + +import ( + mytest "key_performance_indicators/api/myTest" + + "github.com/gin-gonic/gin" +) + +func (t *TestApi) RouterGroup(route *gin.RouterGroup) { + apiRouter := route.Group("/myTest") + + var methodBinding = mytest.AppApiEntry. +} diff --git a/.history/apirouter/myTest/myTest_route_20220728133755.go b/.history/apirouter/myTest/myTest_route_20220728133755.go new file mode 100644 index 0000000..09d7da1 --- /dev/null +++ b/.history/apirouter/myTest/myTest_route_20220728133755.go @@ -0,0 +1,14 @@ +package mytest + +import ( + mytest "key_performance_indicators/api/myTest" + + "github.com/gin-gonic/gin" +) + +func (t *TestApi) RouterGroup(route *gin.RouterGroup) { + apiRouter := route.Group("/myTest") + + var methodBinding = mytest.AppApiEntry.Test + +} diff --git a/.history/apirouter/myTest/myTest_route_20220728133757.go b/.history/apirouter/myTest/myTest_route_20220728133757.go new file mode 100644 index 0000000..709ac81 --- /dev/null +++ b/.history/apirouter/myTest/myTest_route_20220728133757.go @@ -0,0 +1,16 @@ +package mytest + +import ( + mytest "key_performance_indicators/api/myTest" + + "github.com/gin-gonic/gin" +) + +func (t *TestApi) RouterGroup(route *gin.RouterGroup) { + apiRouter := route.Group("/myTest") + + var methodBinding = mytest.AppApiEntry.Test + { + + } +} diff --git a/.history/apirouter/myTest/myTest_route_20220728133759.go b/.history/apirouter/myTest/myTest_route_20220728133759.go new file mode 100644 index 0000000..cb31d5a --- /dev/null +++ b/.history/apirouter/myTest/myTest_route_20220728133759.go @@ -0,0 +1,16 @@ +package mytest + +import ( + mytest "key_performance_indicators/api/myTest" + + "github.com/gin-gonic/gin" +) + +func (t *TestApi) RouterGroup(route *gin.RouterGroup) { + apiRouter := route.Group("/myTest") + + var methodBinding = mytest.AppApiEntry.Test + { + ap + } +} diff --git a/.history/apirouter/myTest/myTest_route_20220728133803.go b/.history/apirouter/myTest/myTest_route_20220728133803.go new file mode 100644 index 0000000..ffad631 --- /dev/null +++ b/.history/apirouter/myTest/myTest_route_20220728133803.go @@ -0,0 +1,16 @@ +package mytest + +import ( + mytest "key_performance_indicators/api/myTest" + + "github.com/gin-gonic/gin" +) + +func (t *TestApi) RouterGroup(route *gin.RouterGroup) { + apiRouter := route.Group("/myTest") + + var methodBinding = mytest.AppApiEntry.Test + { + api + } +} diff --git a/.history/apirouter/myTest/myTest_route_20220728133805.go b/.history/apirouter/myTest/myTest_route_20220728133805.go new file mode 100644 index 0000000..4be8d11 --- /dev/null +++ b/.history/apirouter/myTest/myTest_route_20220728133805.go @@ -0,0 +1,16 @@ +package mytest + +import ( + mytest "key_performance_indicators/api/myTest" + + "github.com/gin-gonic/gin" +) + +func (t *TestApi) RouterGroup(route *gin.RouterGroup) { + apiRouter := route.Group("/myTest") + + var methodBinding = mytest.AppApiEntry.Test + { + apiRouter. + } +} diff --git a/.history/apirouter/myTest/myTest_route_20220728133809.go b/.history/apirouter/myTest/myTest_route_20220728133809.go new file mode 100644 index 0000000..7b7eef5 --- /dev/null +++ b/.history/apirouter/myTest/myTest_route_20220728133809.go @@ -0,0 +1,16 @@ +package mytest + +import ( + mytest "key_performance_indicators/api/myTest" + + "github.com/gin-gonic/gin" +) + +func (t *TestApi) RouterGroup(route *gin.RouterGroup) { + apiRouter := route.Group("/myTest") + + var methodBinding = mytest.AppApiEntry.Test + { + apiRouter.GET("/") + } +} diff --git a/.history/apirouter/myTest/myTest_route_20220728133812.go b/.history/apirouter/myTest/myTest_route_20220728133812.go new file mode 100644 index 0000000..40eefa7 --- /dev/null +++ b/.history/apirouter/myTest/myTest_route_20220728133812.go @@ -0,0 +1,16 @@ +package mytest + +import ( + mytest "key_performance_indicators/api/myTest" + + "github.com/gin-gonic/gin" +) + +func (t *TestApi) RouterGroup(route *gin.RouterGroup) { + apiRouter := route.Group("/myTest") + + var methodBinding = mytest.AppApiEntry.Test + { + apiRouter.GET("/myTest") + } +} diff --git a/.history/apirouter/myTest/myTest_route_20220728133814.go b/.history/apirouter/myTest/myTest_route_20220728133814.go new file mode 100644 index 0000000..623aeb5 --- /dev/null +++ b/.history/apirouter/myTest/myTest_route_20220728133814.go @@ -0,0 +1,16 @@ +package mytest + +import ( + mytest "key_performance_indicators/api/myTest" + + "github.com/gin-gonic/gin" +) + +func (t *TestApi) RouterGroup(route *gin.RouterGroup) { + apiRouter := route.Group("/myTest") + + var methodBinding = mytest.AppApiEntry.Test + { + apiRouter.GET("/myTest`") + } +} diff --git a/.history/apirouter/myTest/myTest_route_20220728133815.go b/.history/apirouter/myTest/myTest_route_20220728133815.go new file mode 100644 index 0000000..40eefa7 --- /dev/null +++ b/.history/apirouter/myTest/myTest_route_20220728133815.go @@ -0,0 +1,16 @@ +package mytest + +import ( + mytest "key_performance_indicators/api/myTest" + + "github.com/gin-gonic/gin" +) + +func (t *TestApi) RouterGroup(route *gin.RouterGroup) { + apiRouter := route.Group("/myTest") + + var methodBinding = mytest.AppApiEntry.Test + { + apiRouter.GET("/myTest") + } +} diff --git a/.history/apirouter/myTest/myTest_route_20220728133817.go b/.history/apirouter/myTest/myTest_route_20220728133817.go new file mode 100644 index 0000000..ebfb387 --- /dev/null +++ b/.history/apirouter/myTest/myTest_route_20220728133817.go @@ -0,0 +1,16 @@ +package mytest + +import ( + mytest "key_performance_indicators/api/myTest" + + "github.com/gin-gonic/gin" +) + +func (t *TestApi) RouterGroup(route *gin.RouterGroup) { + apiRouter := route.Group("/myTest") + + var methodBinding = mytest.AppApiEntry.Test + { + apiRouter.GET("/myTest",) + } +} diff --git a/.history/apirouter/myTest/myTest_route_20220728133823.go b/.history/apirouter/myTest/myTest_route_20220728133823.go new file mode 100644 index 0000000..3bd5a06 --- /dev/null +++ b/.history/apirouter/myTest/myTest_route_20220728133823.go @@ -0,0 +1,16 @@ +package mytest + +import ( + mytest "key_performance_indicators/api/myTest" + + "github.com/gin-gonic/gin" +) + +func (t *TestApi) RouterGroup(route *gin.RouterGroup) { + apiRouter := route.Group("/myTest") + + var methodBinding = mytest.AppApiEntry.Test + { + apiRouter.GET("/myTest", methodBinding.MyTest) + } +} diff --git a/.history/apirouter/myTest/myTest_route_20220728133830.go b/.history/apirouter/myTest/myTest_route_20220728133830.go new file mode 100644 index 0000000..c372752 --- /dev/null +++ b/.history/apirouter/myTest/myTest_route_20220728133830.go @@ -0,0 +1,17 @@ +package mytest + +import ( + mytest "key_performance_indicators/api/myTest" + + "github.com/gin-gonic/gin" +) + +func (t *TestApi) RouterGroup(route *gin.RouterGroup) { + apiRouter := route.Group("/myTest") + + var methodBinding = mytest.AppApiEntry.Test + { + apiRouter.GET("/myTest", methodBinding.MyTest) + apiRouter.GET("/") + } +} diff --git a/.history/apirouter/myTest/myTest_route_20220728133832.go b/.history/apirouter/myTest/myTest_route_20220728133832.go new file mode 100644 index 0000000..552b7f0 --- /dev/null +++ b/.history/apirouter/myTest/myTest_route_20220728133832.go @@ -0,0 +1,17 @@ +package mytest + +import ( + mytest "key_performance_indicators/api/myTest" + + "github.com/gin-gonic/gin" +) + +func (t *TestApi) RouterGroup(route *gin.RouterGroup) { + apiRouter := route.Group("/myTest") + + var methodBinding = mytest.AppApiEntry.Test + { + apiRouter.GET("/myTest", methodBinding.MyTest) + apiRouter.GET("/",m) + } +} diff --git a/.history/apirouter/myTest/myTest_route_20220728133833.go b/.history/apirouter/myTest/myTest_route_20220728133833.go new file mode 100644 index 0000000..bd96f7c --- /dev/null +++ b/.history/apirouter/myTest/myTest_route_20220728133833.go @@ -0,0 +1,17 @@ +package mytest + +import ( + mytest "key_performance_indicators/api/myTest" + + "github.com/gin-gonic/gin" +) + +func (t *TestApi) RouterGroup(route *gin.RouterGroup) { + apiRouter := route.Group("/myTest") + + var methodBinding = mytest.AppApiEntry.Test + { + apiRouter.GET("/myTest", methodBinding.MyTest) + apiRouter.GET("/",methodBinding.Index) + } +} diff --git a/.history/apirouter/myTest/myTest_route_20220728133834.go b/.history/apirouter/myTest/myTest_route_20220728133834.go new file mode 100644 index 0000000..0660ab1 --- /dev/null +++ b/.history/apirouter/myTest/myTest_route_20220728133834.go @@ -0,0 +1,18 @@ +package mytest + +import ( + mytest "key_performance_indicators/api/myTest" + + "github.com/gin-gonic/gin" +) + +func (t *TestApi) RouterGroup(route *gin.RouterGroup) { + apiRouter := route.Group("/myTest") + + var methodBinding = mytest.AppApiEntry.Test + { + apiRouter.GET("/myTest", methodBinding.MyTest) + apiRouter.GET("/",methodBinding.Index) + apiRouter.GET("/",methodBinding.Index) + } +} diff --git a/.history/apirouter/myTest/myTest_route_20220728133838.go b/.history/apirouter/myTest/myTest_route_20220728133838.go new file mode 100644 index 0000000..500b551 --- /dev/null +++ b/.history/apirouter/myTest/myTest_route_20220728133838.go @@ -0,0 +1,18 @@ +package mytest + +import ( + mytest "key_performance_indicators/api/myTest" + + "github.com/gin-gonic/gin" +) + +func (t *TestApi) RouterGroup(route *gin.RouterGroup) { + apiRouter := route.Group("/myTest") + + var methodBinding = mytest.AppApiEntry.Test + { + apiRouter.GET("/myTest", methodBinding.MyTest) + apiRouter.GET("/", methodBinding.Index) + apiRouter.POST("/", methodBinding.Index) + } +} diff --git a/.history/apirouter/myTest/myTest_route_20220728133844.go b/.history/apirouter/myTest/myTest_route_20220728133844.go new file mode 100644 index 0000000..31c6bad --- /dev/null +++ b/.history/apirouter/myTest/myTest_route_20220728133844.go @@ -0,0 +1,18 @@ +package mytest + +import ( + mytest "key_performance_indicators/api/myTest" + + "github.com/gin-gonic/gin" +) + +func (t *TestApi) RouterGroup(route *gin.RouterGroup) { + apiRouter := route.Group("/myTest") + + var methodBinding = mytest.AppApiEntry.Test + { + apiRouter.POST("/myTest", methodBinding.MyTest) + apiRouter.GET("/", methodBinding.Index) + apiRouter.POST("/", methodBinding.Index) + } +} diff --git a/.history/apirouter/myTest/myTest_route_20220728140734.go b/.history/apirouter/myTest/myTest_route_20220728140734.go new file mode 100644 index 0000000..500b551 --- /dev/null +++ b/.history/apirouter/myTest/myTest_route_20220728140734.go @@ -0,0 +1,18 @@ +package mytest + +import ( + mytest "key_performance_indicators/api/myTest" + + "github.com/gin-gonic/gin" +) + +func (t *TestApi) RouterGroup(route *gin.RouterGroup) { + apiRouter := route.Group("/myTest") + + var methodBinding = mytest.AppApiEntry.Test + { + apiRouter.GET("/myTest", methodBinding.MyTest) + apiRouter.GET("/", methodBinding.Index) + apiRouter.POST("/", methodBinding.Index) + } +} diff --git a/.history/apirouter/myTest/myTest_route_20220728140931.go b/.history/apirouter/myTest/myTest_route_20220728140931.go new file mode 100644 index 0000000..31c6bad --- /dev/null +++ b/.history/apirouter/myTest/myTest_route_20220728140931.go @@ -0,0 +1,18 @@ +package mytest + +import ( + mytest "key_performance_indicators/api/myTest" + + "github.com/gin-gonic/gin" +) + +func (t *TestApi) RouterGroup(route *gin.RouterGroup) { + apiRouter := route.Group("/myTest") + + var methodBinding = mytest.AppApiEntry.Test + { + apiRouter.POST("/myTest", methodBinding.MyTest) + apiRouter.GET("/", methodBinding.Index) + apiRouter.POST("/", methodBinding.Index) + } +} diff --git a/.history/apirouter/myTest/type_20220728104752.go b/.history/apirouter/myTest/type_20220728104752.go new file mode 100644 index 0000000..e69de29 diff --git a/.history/apirouter/myTest/type_20220728104756.go b/.history/apirouter/myTest/type_20220728104756.go new file mode 100644 index 0000000..3d44f91 --- /dev/null +++ b/.history/apirouter/myTest/type_20220728104756.go @@ -0,0 +1 @@ +var \ No newline at end of file diff --git a/.history/apirouter/myTest/type_20220728104818.go b/.history/apirouter/myTest/type_20220728104818.go new file mode 100644 index 0000000..d9f4502 --- /dev/null +++ b/.history/apirouter/myTest/type_20220728104818.go @@ -0,0 +1 @@ +pac \ No newline at end of file diff --git a/.history/apirouter/myTest/type_20220728104822.go b/.history/apirouter/myTest/type_20220728104822.go new file mode 100644 index 0000000..1a47384 --- /dev/null +++ b/.history/apirouter/myTest/type_20220728104822.go @@ -0,0 +1,3 @@ +package mytest + +var \ No newline at end of file diff --git a/.history/apirouter/myTest/type_20220728104833.go b/.history/apirouter/myTest/type_20220728104833.go new file mode 100644 index 0000000..02be8ec --- /dev/null +++ b/.history/apirouter/myTest/type_20220728104833.go @@ -0,0 +1,3 @@ +package mytest + +var Test str \ No newline at end of file diff --git a/.history/apirouter/myTest/type_20220728104835.go b/.history/apirouter/myTest/type_20220728104835.go new file mode 100644 index 0000000..e612bf1 --- /dev/null +++ b/.history/apirouter/myTest/type_20220728104835.go @@ -0,0 +1,3 @@ +package mytest + +var Test struct{} \ No newline at end of file diff --git a/.history/apirouter/myTest/type_20220728104837.go b/.history/apirouter/myTest/type_20220728104837.go new file mode 100644 index 0000000..9aa7f64 --- /dev/null +++ b/.history/apirouter/myTest/type_20220728104837.go @@ -0,0 +1,3 @@ +package mytest + +var TestApi struct{} diff --git a/.history/apirouter/myTest/type_20220728105052.go b/.history/apirouter/myTest/type_20220728105052.go new file mode 100644 index 0000000..ee962b4 --- /dev/null +++ b/.history/apirouter/myTest/type_20220728105052.go @@ -0,0 +1,3 @@ +package mytest + +type TestApi struct{} diff --git a/.history/apirouter/myTest/type_20220728130856.go b/.history/apirouter/myTest/type_20220728130856.go new file mode 100644 index 0000000..ee484c0 --- /dev/null +++ b/.history/apirouter/myTest/type_20220728130856.go @@ -0,0 +1,4 @@ +package mytest + +type TestApi struct{} + diff --git a/.history/config/configApp/appConfig_20220727153717.yaml b/.history/config/configApp/appConfig_20220727153717.yaml new file mode 100644 index 0000000..7eda376 --- /dev/null +++ b/.history/config/configApp/appConfig_20220727153717.yaml @@ -0,0 +1,21 @@ + +#App主配置 +appsetup: + port: 6666 #服务端口 + readtime: 3600 #请求的读取操作在超时前的最大持续时间 + writetime : 3600 #回复的写入操作在超时前的最大持续时间 + appkey: 'heng_xin_gao_ke_AppKey' #应用程序密钥 + password: '123456789' #系统默认密码 + prefix: 'HXJT' #系统字段前缀 +logconfig: + path: 'log' #日志保存地址 +#验证码相关设置 +captcha: + key-long: 6 + img-width: 240 + img-height: 80 + +#Redis前缀 +redisprefix: + prefix: "HXGK_GO_ZhixingCollege" + alias: "dev" \ No newline at end of file diff --git a/.history/config/configApp/appConfig_20220728114508.yaml b/.history/config/configApp/appConfig_20220728114508.yaml new file mode 100644 index 0000000..7ef221a --- /dev/null +++ b/.history/config/configApp/appConfig_20220728114508.yaml @@ -0,0 +1,21 @@ + +#App主配置 +appsetup: + port: 8080 #服务端口 + readtime: 3600 #请求的读取操作在超时前的最大持续时间 + writetime : 3600 #回复的写入操作在超时前的最大持续时间 + appkey: 'heng_xin_gao_ke_AppKey' #应用程序密钥 + password: '123456789' #系统默认密码 + prefix: 'HXJT' #系统字段前缀 +logconfig: + path: 'log' #日志保存地址 +#验证码相关设置 +captcha: + key-long: 6 + img-width: 240 + img-height: 80 + +#Redis前缀 +redisprefix: + prefix: "HXGK_GO_ZhixingCollege" + alias: "dev" \ No newline at end of file diff --git a/.history/config/configApp/appConfig_20220728114533.yaml b/.history/config/configApp/appConfig_20220728114533.yaml new file mode 100644 index 0000000..7eda376 --- /dev/null +++ b/.history/config/configApp/appConfig_20220728114533.yaml @@ -0,0 +1,21 @@ + +#App主配置 +appsetup: + port: 6666 #服务端口 + readtime: 3600 #请求的读取操作在超时前的最大持续时间 + writetime : 3600 #回复的写入操作在超时前的最大持续时间 + appkey: 'heng_xin_gao_ke_AppKey' #应用程序密钥 + password: '123456789' #系统默认密码 + prefix: 'HXJT' #系统字段前缀 +logconfig: + path: 'log' #日志保存地址 +#验证码相关设置 +captcha: + key-long: 6 + img-width: 240 + img-height: 80 + +#Redis前缀 +redisprefix: + prefix: "HXGK_GO_ZhixingCollege" + alias: "dev" \ No newline at end of file diff --git a/.history/config/configApp/appConfig_20220728130428.yaml b/.history/config/configApp/appConfig_20220728130428.yaml new file mode 100644 index 0000000..7eda376 --- /dev/null +++ b/.history/config/configApp/appConfig_20220728130428.yaml @@ -0,0 +1,21 @@ + +#App主配置 +appsetup: + port: 6666 #服务端口 + readtime: 3600 #请求的读取操作在超时前的最大持续时间 + writetime : 3600 #回复的写入操作在超时前的最大持续时间 + appkey: 'heng_xin_gao_ke_AppKey' #应用程序密钥 + password: '123456789' #系统默认密码 + prefix: 'HXJT' #系统字段前缀 +logconfig: + path: 'log' #日志保存地址 +#验证码相关设置 +captcha: + key-long: 6 + img-width: 240 + img-height: 80 + +#Redis前缀 +redisprefix: + prefix: "HXGK_GO_ZhixingCollege" + alias: "dev" \ No newline at end of file diff --git a/.history/config/configDatabase/database_20220727153717.go b/.history/config/configDatabase/database_20220727153717.go new file mode 100644 index 0000000..03e714f --- /dev/null +++ b/.history/config/configDatabase/database_20220727153717.go @@ -0,0 +1,82 @@ +package configDatabase + +import ( + "fmt" + + "gorm.io/driver/mysql" + "gorm.io/gorm" + "gorm.io/gorm/logger" +) + +type MysqlSetUp struct { + MasterMysql MasterMysqlSetUp `mapstructure:"master" json:"master" yaml:"master"` //主数据库 + //其他数据库依次添加 + WechatMysql MasterMysqlSetUp `mapstructure:"wechat" json:"wechat" yaml:"wechat"` //微信数据库 + HrMysql MasterMysqlSetUp `mapstructure:"hrdatabase" json:"hrdatabase" yaml:"hrdatabase"` //HR数据库 + FileBookDate MasterMysqlSetUp `mapstructure:"fileBookDate" json:"fileBookDate" yaml:"fileBookDate"` //文档属性数据库 + ErrorSubjectDate MasterMysqlSetUp `mapstructure:"errorSubjectDate" json:"errorSubjectDate" yaml:"errorSubjectDate"` //错题库 + MyTestDate MasterMysqlSetUp `mapstructure:"myTestDate" json:"myTestDate" yaml:"myTestDate"` //自我测验 + ImageTextDate MasterMysqlSetUp `mapstructure:"imageTextDate" json:"imageTextDate" yaml:"imageTextDate"` //图文信息数据库 + ScoringDetailsDate MasterMysqlSetUp `mapstructure:"scoringDetailsDate" json:"scoringDetailsDate" yaml:"scoringDetailsDate"` //计分明细数据库 + QuestionsAnswersDate MasterMysqlSetUp `mapstructure:"questionsAnswersDate" json:"questionsAnswersDate" yaml:"questionsAnswersDate"` //趣味问答 + BillboardDate MasterMysqlSetUp `mapstructure:"billboardDate" json:"billboardDate" yaml:"billboardDate"` //风云榜统计数据库 + HealthReportDate MasterMysqlSetUp `mapstructure:"healthReportDate" json:"healthReportDate" yaml:"healthReportDate"` //健康上报数据库 + KpiDate MasterMysqlSetUp `mapstructure:"kpiDate" json:"kpiDate" yaml:"kpiDate"` //绩效考核数据库 + WechatCallBackLogDate MasterMysqlSetUp `mapstructure:"wechatCallBackLogDate" json:"wechatCallBackLogDate" yaml:"wechatCallBackLogDate"` //企业微信回调记录 + Managearchives MasterMysqlSetUp `mapstructure:"managearchives" json:"managearchives" yaml:"managearchives"` //管理档案 +} + +type MasterMysqlSetUp struct { + UrlPath string `mapstructure:"url_path" json:"url_path" yaml:"url_path"` // 服务器地址 + Port int `mapstructure:"port" json:"port" yaml:"port"` // 端口 + Charset string `mapstructure:"charset" json:"charset" yaml:"charset"` // 编码方式 + ParseTime bool `mapstructure:"parseTime" json:"parseTime" yaml:"parseTime"` // 是否自动转换时间 + Loc string `mapstructure:"loc" json:"loc" yaml:"loc"` // 时区 + Name string `mapstructure:"name" json:"name" yaml:"name"` // 数据库名称 + UserName string `mapstructure:"username" json:"username" yaml:"username"` // 账号 + PassWord string `mapstructure:"password" json:"password" yaml:"password"` // 密码 + MaxIdleConns int `mapstructure:"max_idle_conns" json:"max_idle_conns" yaml:"max_idle_conns"` // 最大空闲数 + MaxOpenConns int `mapstructure:"max_open_conns" json:"max_open_conns" yaml:"max_open_conns"` // 最大链接数 + GormLog bool `mapstructure:"gorm_log" json:"gorm_log" yaml:"gorm_log"` // 是否开启Gorm全局日志 +} + +func (m *MasterMysqlSetUp) SqlDsn() (dsnStr string) { + dsnStr = fmt.Sprintf("%v:%v@tcp(%v:%v)/%v?charset=%v", m.UserName, m.PassWord, m.UrlPath, m.Port, m.Name, m.Charset) + if m.ParseTime == true { + dsnStr = fmt.Sprintf("%v:%v@tcp(%v:%v)/%v?charset=%v&parseTime=%v&loc=%v", m.UserName, m.PassWord, m.UrlPath, m.Port, m.Name, m.Charset, m.ParseTime, m.Loc) + } + return +} + +func (m *MasterMysqlSetUp) OpenSql() *gorm.DB { + sqlConfig := mysql.Config{ + DSN: m.SqlDsn(), // DSN + DefaultStringSize: 255, // string 类型字段的默认长度 + DisableDatetimePrecision: true, // 禁用 datetime 精度,MySQL 5.6 之前的数据库不支持 + DontSupportRenameIndex: true, // 重命名索引时采用删除并新建的方式,MySQL 5.7 之前的数据库和 MariaDB 不支持重命名索引 + DontSupportRenameColumn: true, // 用 `change` 重命名列,MySQL 8 之前的数据库和 MariaDB 不支持重命名列 + SkipInitializeWithVersion: false, // 根据版本自动配置 + } + if m.GormLog == true { + if opDb, err := gorm.Open(mysql.New(sqlConfig), &gorm.Config{ + Logger: logger.Default.LogMode(logger.Info), + }); err != nil { + return nil + } else { + sqlDb, _ := opDb.DB() + sqlDb.SetMaxIdleConns(m.MaxIdleConns) + sqlDb.SetMaxOpenConns(m.MaxOpenConns) + return opDb + } + } else { + if opDb, err := gorm.Open(mysql.New(sqlConfig)); err != nil { + return nil + } else { + sqlDb, _ := opDb.DB() + sqlDb.SetMaxIdleConns(m.MaxIdleConns) + sqlDb.SetMaxOpenConns(m.MaxOpenConns) + return opDb + } + } + +} diff --git a/.history/config/configDatabase/database_20220727153717.yaml b/.history/config/configDatabase/database_20220727153717.yaml new file mode 100644 index 0000000..f57cc03 --- /dev/null +++ b/.history/config/configDatabase/database_20220727153717.yaml @@ -0,0 +1,192 @@ +#数据库配置 + +#主数据库 +master: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'hengxingaoke_tes' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: false #是否开启gorm日志 +#微信数据库 +wechat: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'wechatuser' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: false #是否开启gorm日志 +#HR数据库 +hrdatabase: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'human_resources_jindie' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 +#文档属性数据库 +fileBookDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'learn_message' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 +#错题库 +errorSubjectDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'wrong_question_bank' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 +#自我测验 +myTestDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'selftestdatabase' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#图文信息数据库 +imageTextDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'readdocument' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#计分明细数据库 +scoringDetailsDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'league_table_data' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#趣味问答 +questionsAnswersDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'ques_and_answers' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#风云榜统计数据库 +billboardDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'statisticsing' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#健康上报数据库 +healthReportDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'location' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#绩效考核数据库 +kpiDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'performanceappraisal' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#企业微信回调记录 +wechatCallBackLogDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'wechatlog' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#管理档案 +managearchives: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'manage_archives' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 \ No newline at end of file diff --git a/.history/config/configDatabase/database_20220728145336.yaml b/.history/config/configDatabase/database_20220728145336.yaml new file mode 100644 index 0000000..cd1c5dd --- /dev/null +++ b/.history/config/configDatabase/database_20220728145336.yaml @@ -0,0 +1,196 @@ +#数据库配置 + +#主数据库 +master: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'hengxingaoke_tes' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: false #是否开启gorm日志 +#微信数据库 +wechat: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'wechatuser' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: false #是否开启gorm日志 +#HR数据库 +hrdatabase: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'human_resources_jindie' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 +#文档属性数据库 +fileBookDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'learn_message' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 +#错题库 +errorSubjectDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'wrong_question_bank' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 +#自我测验 +myTestDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'selftestdatabase' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#图文信息数据库 +imageTextDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'readdocument' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#计分明细数据库 +scoringDetailsDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'league_table_data' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#趣味问答 +questionsAnswersDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'ques_and_answers' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#风云榜统计数据库 +billboardDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'statisticsing' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#健康上报数据库 +healthReportDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'location' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#绩效考核数据库 +kpiDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'performanceappraisal' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#企业微信回调记录 +wechatCallBackLogDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'wechatlog' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#管理档案 +managearchives: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'manage_archives' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + + + #测试数据库 + \ No newline at end of file diff --git a/.history/config/configDatabase/database_20220728145344.yaml b/.history/config/configDatabase/database_20220728145344.yaml new file mode 100644 index 0000000..8a532b6 --- /dev/null +++ b/.history/config/configDatabase/database_20220728145344.yaml @@ -0,0 +1,196 @@ +#数据库配置 + +#主数据库 +master: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'hengxingaoke_tes' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: false #是否开启gorm日志 +#微信数据库 +wechat: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'wechatuser' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: false #是否开启gorm日志 +#HR数据库 +hrdatabase: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'human_resources_jindie' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 +#文档属性数据库 +fileBookDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'learn_message' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 +#错题库 +errorSubjectDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'wrong_question_bank' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 +#自我测验 +myTestDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'selftestdatabase' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#图文信息数据库 +imageTextDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'readdocument' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#计分明细数据库 +scoringDetailsDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'league_table_data' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#趣味问答 +questionsAnswersDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'ques_and_answers' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#风云榜统计数据库 +billboardDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'statisticsing' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#健康上报数据库 +healthReportDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'location' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#绩效考核数据库 +kpiDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'performanceappraisal' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#企业微信回调记录 +wechatCallBackLogDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'wechatlog' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#管理档案 +managearchives: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'manage_archives' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + + + #测试数据库 + test \ No newline at end of file diff --git a/.history/config/configDatabase/database_20220728145347.yaml b/.history/config/configDatabase/database_20220728145347.yaml new file mode 100644 index 0000000..91e0f28 --- /dev/null +++ b/.history/config/configDatabase/database_20220728145347.yaml @@ -0,0 +1,197 @@ +#数据库配置 + +#主数据库 +master: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'hengxingaoke_tes' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: false #是否开启gorm日志 +#微信数据库 +wechat: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'wechatuser' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: false #是否开启gorm日志 +#HR数据库 +hrdatabase: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'human_resources_jindie' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 +#文档属性数据库 +fileBookDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'learn_message' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 +#错题库 +errorSubjectDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'wrong_question_bank' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 +#自我测验 +myTestDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'selftestdatabase' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#图文信息数据库 +imageTextDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'readdocument' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#计分明细数据库 +scoringDetailsDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'league_table_data' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#趣味问答 +questionsAnswersDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'ques_and_answers' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#风云榜统计数据库 +billboardDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'statisticsing' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#健康上报数据库 +healthReportDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'location' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#绩效考核数据库 +kpiDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'performanceappraisal' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#企业微信回调记录 +wechatCallBackLogDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'wechatlog' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#管理档案 +managearchives: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'manage_archives' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + + + #测试数据库 + test: + \ No newline at end of file diff --git a/.history/config/configDatabase/database_20220728145401.yaml b/.history/config/configDatabase/database_20220728145401.yaml new file mode 100644 index 0000000..ab7f1bb --- /dev/null +++ b/.history/config/configDatabase/database_20220728145401.yaml @@ -0,0 +1,197 @@ +#数据库配置 + +#主数据库 +master: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'hengxingaoke_tes' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: false #是否开启gorm日志 +#微信数据库 +wechat: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'wechatuser' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: false #是否开启gorm日志 +#HR数据库 +hrdatabase: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'human_resources_jindie' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 +#文档属性数据库 +fileBookDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'learn_message' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 +#错题库 +errorSubjectDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'wrong_question_bank' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 +#自我测验 +myTestDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'selftestdatabase' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#图文信息数据库 +imageTextDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'readdocument' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#计分明细数据库 +scoringDetailsDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'league_table_data' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#趣味问答 +questionsAnswersDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'ques_and_answers' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#风云榜统计数据库 +billboardDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'statisticsing' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#健康上报数据库 +healthReportDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'location' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#绩效考核数据库 +kpiDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'performanceappraisal' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#企业微信回调记录 +wechatCallBackLogDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'wechatlog' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#管理档案 +managearchives: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'manage_archives' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + + + #测试数据库 + test: + url_path:'127.0.0.1' \ No newline at end of file diff --git a/.history/config/configDatabase/database_20220728145405.yaml b/.history/config/configDatabase/database_20220728145405.yaml new file mode 100644 index 0000000..3d93bb6 --- /dev/null +++ b/.history/config/configDatabase/database_20220728145405.yaml @@ -0,0 +1,198 @@ +#数据库配置 + +#主数据库 +master: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'hengxingaoke_tes' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: false #是否开启gorm日志 +#微信数据库 +wechat: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'wechatuser' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: false #是否开启gorm日志 +#HR数据库 +hrdatabase: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'human_resources_jindie' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 +#文档属性数据库 +fileBookDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'learn_message' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 +#错题库 +errorSubjectDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'wrong_question_bank' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 +#自我测验 +myTestDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'selftestdatabase' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#图文信息数据库 +imageTextDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'readdocument' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#计分明细数据库 +scoringDetailsDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'league_table_data' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#趣味问答 +questionsAnswersDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'ques_and_answers' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#风云榜统计数据库 +billboardDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'statisticsing' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#健康上报数据库 +healthReportDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'location' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#绩效考核数据库 +kpiDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'performanceappraisal' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#企业微信回调记录 +wechatCallBackLogDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'wechatlog' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#管理档案 +managearchives: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'manage_archives' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + + + #测试数据库 + test: + url_path:'127.0.0.1' + \ No newline at end of file diff --git a/.history/config/configDatabase/database_20220728145407.yaml b/.history/config/configDatabase/database_20220728145407.yaml new file mode 100644 index 0000000..037651d --- /dev/null +++ b/.history/config/configDatabase/database_20220728145407.yaml @@ -0,0 +1,198 @@ +#数据库配置 + +#主数据库 +master: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'hengxingaoke_tes' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: false #是否开启gorm日志 +#微信数据库 +wechat: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'wechatuser' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: false #是否开启gorm日志 +#HR数据库 +hrdatabase: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'human_resources_jindie' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 +#文档属性数据库 +fileBookDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'learn_message' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 +#错题库 +errorSubjectDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'wrong_question_bank' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 +#自我测验 +myTestDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'selftestdatabase' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#图文信息数据库 +imageTextDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'readdocument' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#计分明细数据库 +scoringDetailsDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'league_table_data' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#趣味问答 +questionsAnswersDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'ques_and_answers' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#风云榜统计数据库 +billboardDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'statisticsing' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#健康上报数据库 +healthReportDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'location' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#绩效考核数据库 +kpiDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'performanceappraisal' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#企业微信回调记录 +wechatCallBackLogDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'wechatlog' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#管理档案 +managearchives: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'manage_archives' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + + + #测试数据库 + test: + url_path:'127.0.0.1' + port \ No newline at end of file diff --git a/.history/config/configDatabase/database_20220728145410.yaml b/.history/config/configDatabase/database_20220728145410.yaml new file mode 100644 index 0000000..5ec3b73 --- /dev/null +++ b/.history/config/configDatabase/database_20220728145410.yaml @@ -0,0 +1,198 @@ +#数据库配置 + +#主数据库 +master: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'hengxingaoke_tes' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: false #是否开启gorm日志 +#微信数据库 +wechat: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'wechatuser' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: false #是否开启gorm日志 +#HR数据库 +hrdatabase: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'human_resources_jindie' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 +#文档属性数据库 +fileBookDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'learn_message' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 +#错题库 +errorSubjectDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'wrong_question_bank' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 +#自我测验 +myTestDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'selftestdatabase' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#图文信息数据库 +imageTextDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'readdocument' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#计分明细数据库 +scoringDetailsDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'league_table_data' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#趣味问答 +questionsAnswersDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'ques_and_answers' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#风云榜统计数据库 +billboardDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'statisticsing' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#健康上报数据库 +healthReportDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'location' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#绩效考核数据库 +kpiDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'performanceappraisal' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#企业微信回调记录 +wechatCallBackLogDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'wechatlog' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#管理档案 +managearchives: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'manage_archives' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + + + #测试数据库 + test: + url_path:'127.0.0.1' + port:3306 \ No newline at end of file diff --git a/.history/config/configDatabase/database_20220728145419.yaml b/.history/config/configDatabase/database_20220728145419.yaml new file mode 100644 index 0000000..6c8fd3c --- /dev/null +++ b/.history/config/configDatabase/database_20220728145419.yaml @@ -0,0 +1,198 @@ +#数据库配置 + +#主数据库 +master: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'hengxingaoke_tes' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: false #是否开启gorm日志 +#微信数据库 +wechat: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'wechatuser' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: false #是否开启gorm日志 +#HR数据库 +hrdatabase: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'human_resources_jindie' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 +#文档属性数据库 +fileBookDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'learn_message' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 +#错题库 +errorSubjectDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'wrong_question_bank' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 +#自我测验 +myTestDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'selftestdatabase' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#图文信息数据库 +imageTextDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'readdocument' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#计分明细数据库 +scoringDetailsDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'league_table_data' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#趣味问答 +questionsAnswersDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'ques_and_answers' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#风云榜统计数据库 +billboardDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'statisticsing' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#健康上报数据库 +healthReportDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'location' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#绩效考核数据库 +kpiDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'performanceappraisal' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#企业微信回调记录 +wechatCallBackLogDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'wechatlog' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#管理档案 +managearchives: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'manage_archives' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + + + #测试数据库 + test: + url_path:'127.0.0.1' + port: 3306 \ No newline at end of file diff --git a/.history/config/configDatabase/database_20220728145420.yaml b/.history/config/configDatabase/database_20220728145420.yaml new file mode 100644 index 0000000..eb8078e --- /dev/null +++ b/.history/config/configDatabase/database_20220728145420.yaml @@ -0,0 +1,198 @@ +#数据库配置 + +#主数据库 +master: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'hengxingaoke_tes' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: false #是否开启gorm日志 +#微信数据库 +wechat: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'wechatuser' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: false #是否开启gorm日志 +#HR数据库 +hrdatabase: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'human_resources_jindie' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 +#文档属性数据库 +fileBookDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'learn_message' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 +#错题库 +errorSubjectDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'wrong_question_bank' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 +#自我测验 +myTestDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'selftestdatabase' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#图文信息数据库 +imageTextDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'readdocument' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#计分明细数据库 +scoringDetailsDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'league_table_data' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#趣味问答 +questionsAnswersDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'ques_and_answers' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#风云榜统计数据库 +billboardDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'statisticsing' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#健康上报数据库 +healthReportDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'location' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#绩效考核数据库 +kpiDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'performanceappraisal' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#企业微信回调记录 +wechatCallBackLogDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'wechatlog' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#管理档案 +managearchives: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'manage_archives' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + + + #测试数据库 + test: + url_path: '127.0.0.1' + port: 3306 \ No newline at end of file diff --git a/.history/config/configDatabase/database_20220728145421.yaml b/.history/config/configDatabase/database_20220728145421.yaml new file mode 100644 index 0000000..ba5b350 --- /dev/null +++ b/.history/config/configDatabase/database_20220728145421.yaml @@ -0,0 +1,199 @@ +#数据库配置 + +#主数据库 +master: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'hengxingaoke_tes' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: false #是否开启gorm日志 +#微信数据库 +wechat: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'wechatuser' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: false #是否开启gorm日志 +#HR数据库 +hrdatabase: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'human_resources_jindie' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 +#文档属性数据库 +fileBookDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'learn_message' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 +#错题库 +errorSubjectDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'wrong_question_bank' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 +#自我测验 +myTestDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'selftestdatabase' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#图文信息数据库 +imageTextDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'readdocument' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#计分明细数据库 +scoringDetailsDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'league_table_data' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#趣味问答 +questionsAnswersDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'ques_and_answers' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#风云榜统计数据库 +billboardDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'statisticsing' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#健康上报数据库 +healthReportDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'location' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#绩效考核数据库 +kpiDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'performanceappraisal' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#企业微信回调记录 +wechatCallBackLogDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'wechatlog' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#管理档案 +managearchives: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'manage_archives' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + + + #测试数据库 + test: + url_path: '127.0.0.1' + port: 3306 + \ No newline at end of file diff --git a/.history/config/configDatabase/database_20220728145428.yaml b/.history/config/configDatabase/database_20220728145428.yaml new file mode 100644 index 0000000..e3aaf84 --- /dev/null +++ b/.history/config/configDatabase/database_20220728145428.yaml @@ -0,0 +1,207 @@ +#数据库配置 + +#主数据库 +master: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'hengxingaoke_tes' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: false #是否开启gorm日志 +#微信数据库 +wechat: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'wechatuser' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: false #是否开启gorm日志 +#HR数据库 +hrdatabase: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'human_resources_jindie' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 +#文档属性数据库 +fileBookDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'learn_message' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 +#错题库 +errorSubjectDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'wrong_question_bank' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 +#自我测验 +myTestDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'selftestdatabase' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#图文信息数据库 +imageTextDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'readdocument' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#计分明细数据库 +scoringDetailsDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'league_table_data' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#趣味问答 +questionsAnswersDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'ques_and_answers' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#风云榜统计数据库 +billboardDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'statisticsing' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#健康上报数据库 +healthReportDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'location' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#绩效考核数据库 +kpiDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'performanceappraisal' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#企业微信回调记录 +wechatCallBackLogDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'wechatlog' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#管理档案 +managearchives: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'manage_archives' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + + + #测试数据库 + test: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'manage_archives' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 \ No newline at end of file diff --git a/.history/config/configDatabase/database_20220728145434.yaml b/.history/config/configDatabase/database_20220728145434.yaml new file mode 100644 index 0000000..8fd2f0b --- /dev/null +++ b/.history/config/configDatabase/database_20220728145434.yaml @@ -0,0 +1,207 @@ +#数据库配置 + +#主数据库 +master: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'hengxingaoke_tes' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: false #是否开启gorm日志 +#微信数据库 +wechat: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'wechatuser' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: false #是否开启gorm日志 +#HR数据库 +hrdatabase: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'human_resources_jindie' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 +#文档属性数据库 +fileBookDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'learn_message' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 +#错题库 +errorSubjectDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'wrong_question_bank' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 +#自我测验 +myTestDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'selftestdatabase' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#图文信息数据库 +imageTextDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'readdocument' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#计分明细数据库 +scoringDetailsDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'league_table_data' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#趣味问答 +questionsAnswersDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'ques_and_answers' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#风云榜统计数据库 +billboardDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'statisticsing' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#健康上报数据库 +healthReportDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'location' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#绩效考核数据库 +kpiDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'performanceappraisal' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#企业微信回调记录 +wechatCallBackLogDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'wechatlog' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#管理档案 +managearchives: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'manage_archives' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + + + #测试数据库 + test: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'manage_archives' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 \ No newline at end of file diff --git a/.history/config/configDatabase/database_20220728145440.yaml b/.history/config/configDatabase/database_20220728145440.yaml new file mode 100644 index 0000000..d6f1e62 --- /dev/null +++ b/.history/config/configDatabase/database_20220728145440.yaml @@ -0,0 +1,207 @@ +#数据库配置 + +#主数据库 +master: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'hengxingaoke_tes' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: false #是否开启gorm日志 +#微信数据库 +wechat: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'wechatuser' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: false #是否开启gorm日志 +#HR数据库 +hrdatabase: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'human_resources_jindie' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 +#文档属性数据库 +fileBookDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'learn_message' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 +#错题库 +errorSubjectDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'wrong_question_bank' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 +#自我测验 +myTestDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'selftestdatabase' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#图文信息数据库 +imageTextDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'readdocument' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#计分明细数据库 +scoringDetailsDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'league_table_data' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#趣味问答 +questionsAnswersDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'ques_and_answers' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#风云榜统计数据库 +billboardDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'statisticsing' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#健康上报数据库 +healthReportDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'location' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#绩效考核数据库 +kpiDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'performanceappraisal' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#企业微信回调记录 +wechatCallBackLogDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'wechatlog' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#管理档案 +managearchives: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'manage_archives' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + + + #测试数据库 + test: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'test' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 \ No newline at end of file diff --git a/.history/config/configDatabase/database_20220728145445.yaml b/.history/config/configDatabase/database_20220728145445.yaml new file mode 100644 index 0000000..47c1fdc --- /dev/null +++ b/.history/config/configDatabase/database_20220728145445.yaml @@ -0,0 +1,207 @@ +#数据库配置 + +#主数据库 +master: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'hengxingaoke_tes' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: false #是否开启gorm日志 +#微信数据库 +wechat: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'wechatuser' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: false #是否开启gorm日志 +#HR数据库 +hrdatabase: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'human_resources_jindie' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 +#文档属性数据库 +fileBookDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'learn_message' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 +#错题库 +errorSubjectDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'wrong_question_bank' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 +#自我测验 +myTestDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'selftestdatabase' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#图文信息数据库 +imageTextDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'readdocument' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#计分明细数据库 +scoringDetailsDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'league_table_data' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#趣味问答 +questionsAnswersDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'ques_and_answers' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#风云榜统计数据库 +billboardDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'statisticsing' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#健康上报数据库 +healthReportDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'location' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#绩效考核数据库 +kpiDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'performanceappraisal' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#企业微信回调记录 +wechatCallBackLogDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'wechatlog' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#管理档案 +managearchives: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'manage_archives' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + + + #测试数据库 + test: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'test' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 \ No newline at end of file diff --git a/.history/config/configDatabase/database_20220728145509.go b/.history/config/configDatabase/database_20220728145509.go new file mode 100644 index 0000000..d682609 --- /dev/null +++ b/.history/config/configDatabase/database_20220728145509.go @@ -0,0 +1,83 @@ +package configDatabase + +import ( + "fmt" + + "gorm.io/driver/mysql" + "gorm.io/gorm" + "gorm.io/gorm/logger" +) + +type MysqlSetUp struct { + MasterMysql MasterMysqlSetUp `mapstructure:"master" json:"master" yaml:"master"` //主数据库 + //其他数据库依次添加 + WechatMysql MasterMysqlSetUp `mapstructure:"wechat" json:"wechat" yaml:"wechat"` //微信数据库 + HrMysql MasterMysqlSetUp `mapstructure:"hrdatabase" json:"hrdatabase" yaml:"hrdatabase"` //HR数据库 + FileBookDate MasterMysqlSetUp `mapstructure:"fileBookDate" json:"fileBookDate" yaml:"fileBookDate"` //文档属性数据库 + ErrorSubjectDate MasterMysqlSetUp `mapstructure:"errorSubjectDate" json:"errorSubjectDate" yaml:"errorSubjectDate"` //错题库 + MyTestDate MasterMysqlSetUp `mapstructure:"myTestDate" json:"myTestDate" yaml:"myTestDate"` //自我测验 + ImageTextDate MasterMysqlSetUp `mapstructure:"imageTextDate" json:"imageTextDate" yaml:"imageTextDate"` //图文信息数据库 + ScoringDetailsDate MasterMysqlSetUp `mapstructure:"scoringDetailsDate" json:"scoringDetailsDate" yaml:"scoringDetailsDate"` //计分明细数据库 + QuestionsAnswersDate MasterMysqlSetUp `mapstructure:"questionsAnswersDate" json:"questionsAnswersDate" yaml:"questionsAnswersDate"` //趣味问答 + BillboardDate MasterMysqlSetUp `mapstructure:"billboardDate" json:"billboardDate" yaml:"billboardDate"` //风云榜统计数据库 + HealthReportDate MasterMysqlSetUp `mapstructure:"healthReportDate" json:"healthReportDate" yaml:"healthReportDate"` //健康上报数据库 + KpiDate MasterMysqlSetUp `mapstructure:"kpiDate" json:"kpiDate" yaml:"kpiDate"` //绩效考核数据库 + WechatCallBackLogDate MasterMysqlSetUp `mapstructure:"wechatCallBackLogDate" json:"wechatCallBackLogDate" yaml:"wechatCallBackLogDate"` //企业微信回调记录 + Managearchives MasterMysqlSetUp `mapstructure:"managearchives" json:"managearchives" yaml:"managearchives"` //管理档案 + test +} + +type MasterMysqlSetUp struct { + UrlPath string `mapstructure:"url_path" json:"url_path" yaml:"url_path"` // 服务器地址 + Port int `mapstructure:"port" json:"port" yaml:"port"` // 端口 + Charset string `mapstructure:"charset" json:"charset" yaml:"charset"` // 编码方式 + ParseTime bool `mapstructure:"parseTime" json:"parseTime" yaml:"parseTime"` // 是否自动转换时间 + Loc string `mapstructure:"loc" json:"loc" yaml:"loc"` // 时区 + Name string `mapstructure:"name" json:"name" yaml:"name"` // 数据库名称 + UserName string `mapstructure:"username" json:"username" yaml:"username"` // 账号 + PassWord string `mapstructure:"password" json:"password" yaml:"password"` // 密码 + MaxIdleConns int `mapstructure:"max_idle_conns" json:"max_idle_conns" yaml:"max_idle_conns"` // 最大空闲数 + MaxOpenConns int `mapstructure:"max_open_conns" json:"max_open_conns" yaml:"max_open_conns"` // 最大链接数 + GormLog bool `mapstructure:"gorm_log" json:"gorm_log" yaml:"gorm_log"` // 是否开启Gorm全局日志 +} + +func (m *MasterMysqlSetUp) SqlDsn() (dsnStr string) { + dsnStr = fmt.Sprintf("%v:%v@tcp(%v:%v)/%v?charset=%v", m.UserName, m.PassWord, m.UrlPath, m.Port, m.Name, m.Charset) + if m.ParseTime == true { + dsnStr = fmt.Sprintf("%v:%v@tcp(%v:%v)/%v?charset=%v&parseTime=%v&loc=%v", m.UserName, m.PassWord, m.UrlPath, m.Port, m.Name, m.Charset, m.ParseTime, m.Loc) + } + return +} + +func (m *MasterMysqlSetUp) OpenSql() *gorm.DB { + sqlConfig := mysql.Config{ + DSN: m.SqlDsn(), // DSN + DefaultStringSize: 255, // string 类型字段的默认长度 + DisableDatetimePrecision: true, // 禁用 datetime 精度,MySQL 5.6 之前的数据库不支持 + DontSupportRenameIndex: true, // 重命名索引时采用删除并新建的方式,MySQL 5.7 之前的数据库和 MariaDB 不支持重命名索引 + DontSupportRenameColumn: true, // 用 `change` 重命名列,MySQL 8 之前的数据库和 MariaDB 不支持重命名列 + SkipInitializeWithVersion: false, // 根据版本自动配置 + } + if m.GormLog == true { + if opDb, err := gorm.Open(mysql.New(sqlConfig), &gorm.Config{ + Logger: logger.Default.LogMode(logger.Info), + }); err != nil { + return nil + } else { + sqlDb, _ := opDb.DB() + sqlDb.SetMaxIdleConns(m.MaxIdleConns) + sqlDb.SetMaxOpenConns(m.MaxOpenConns) + return opDb + } + } else { + if opDb, err := gorm.Open(mysql.New(sqlConfig)); err != nil { + return nil + } else { + sqlDb, _ := opDb.DB() + sqlDb.SetMaxIdleConns(m.MaxIdleConns) + sqlDb.SetMaxOpenConns(m.MaxOpenConns) + return opDb + } + } + +} diff --git a/.history/config/configDatabase/database_20220728145515.go b/.history/config/configDatabase/database_20220728145515.go new file mode 100644 index 0000000..a5358e3 --- /dev/null +++ b/.history/config/configDatabase/database_20220728145515.go @@ -0,0 +1,83 @@ +package configDatabase + +import ( + "fmt" + + "gorm.io/driver/mysql" + "gorm.io/gorm" + "gorm.io/gorm/logger" +) + +type MysqlSetUp struct { + MasterMysql MasterMysqlSetUp `mapstructure:"master" json:"master" yaml:"master"` //主数据库 + //其他数据库依次添加 + WechatMysql MasterMysqlSetUp `mapstructure:"wechat" json:"wechat" yaml:"wechat"` //微信数据库 + HrMysql MasterMysqlSetUp `mapstructure:"hrdatabase" json:"hrdatabase" yaml:"hrdatabase"` //HR数据库 + FileBookDate MasterMysqlSetUp `mapstructure:"fileBookDate" json:"fileBookDate" yaml:"fileBookDate"` //文档属性数据库 + ErrorSubjectDate MasterMysqlSetUp `mapstructure:"errorSubjectDate" json:"errorSubjectDate" yaml:"errorSubjectDate"` //错题库 + MyTestDate MasterMysqlSetUp `mapstructure:"myTestDate" json:"myTestDate" yaml:"myTestDate"` //自我测验 + ImageTextDate MasterMysqlSetUp `mapstructure:"imageTextDate" json:"imageTextDate" yaml:"imageTextDate"` //图文信息数据库 + ScoringDetailsDate MasterMysqlSetUp `mapstructure:"scoringDetailsDate" json:"scoringDetailsDate" yaml:"scoringDetailsDate"` //计分明细数据库 + QuestionsAnswersDate MasterMysqlSetUp `mapstructure:"questionsAnswersDate" json:"questionsAnswersDate" yaml:"questionsAnswersDate"` //趣味问答 + BillboardDate MasterMysqlSetUp `mapstructure:"billboardDate" json:"billboardDate" yaml:"billboardDate"` //风云榜统计数据库 + HealthReportDate MasterMysqlSetUp `mapstructure:"healthReportDate" json:"healthReportDate" yaml:"healthReportDate"` //健康上报数据库 + KpiDate MasterMysqlSetUp `mapstructure:"kpiDate" json:"kpiDate" yaml:"kpiDate"` //绩效考核数据库 + WechatCallBackLogDate MasterMysqlSetUp `mapstructure:"wechatCallBackLogDate" json:"wechatCallBackLogDate" yaml:"wechatCallBackLogDate"` //企业微信回调记录 + Managearchives MasterMysqlSetUp `mapstructure:"managearchives" json:"managearchives" yaml:"managearchives"` //管理档案 + Test +} + +type MasterMysqlSetUp struct { + UrlPath string `mapstructure:"url_path" json:"url_path" yaml:"url_path"` // 服务器地址 + Port int `mapstructure:"port" json:"port" yaml:"port"` // 端口 + Charset string `mapstructure:"charset" json:"charset" yaml:"charset"` // 编码方式 + ParseTime bool `mapstructure:"parseTime" json:"parseTime" yaml:"parseTime"` // 是否自动转换时间 + Loc string `mapstructure:"loc" json:"loc" yaml:"loc"` // 时区 + Name string `mapstructure:"name" json:"name" yaml:"name"` // 数据库名称 + UserName string `mapstructure:"username" json:"username" yaml:"username"` // 账号 + PassWord string `mapstructure:"password" json:"password" yaml:"password"` // 密码 + MaxIdleConns int `mapstructure:"max_idle_conns" json:"max_idle_conns" yaml:"max_idle_conns"` // 最大空闲数 + MaxOpenConns int `mapstructure:"max_open_conns" json:"max_open_conns" yaml:"max_open_conns"` // 最大链接数 + GormLog bool `mapstructure:"gorm_log" json:"gorm_log" yaml:"gorm_log"` // 是否开启Gorm全局日志 +} + +func (m *MasterMysqlSetUp) SqlDsn() (dsnStr string) { + dsnStr = fmt.Sprintf("%v:%v@tcp(%v:%v)/%v?charset=%v", m.UserName, m.PassWord, m.UrlPath, m.Port, m.Name, m.Charset) + if m.ParseTime == true { + dsnStr = fmt.Sprintf("%v:%v@tcp(%v:%v)/%v?charset=%v&parseTime=%v&loc=%v", m.UserName, m.PassWord, m.UrlPath, m.Port, m.Name, m.Charset, m.ParseTime, m.Loc) + } + return +} + +func (m *MasterMysqlSetUp) OpenSql() *gorm.DB { + sqlConfig := mysql.Config{ + DSN: m.SqlDsn(), // DSN + DefaultStringSize: 255, // string 类型字段的默认长度 + DisableDatetimePrecision: true, // 禁用 datetime 精度,MySQL 5.6 之前的数据库不支持 + DontSupportRenameIndex: true, // 重命名索引时采用删除并新建的方式,MySQL 5.7 之前的数据库和 MariaDB 不支持重命名索引 + DontSupportRenameColumn: true, // 用 `change` 重命名列,MySQL 8 之前的数据库和 MariaDB 不支持重命名列 + SkipInitializeWithVersion: false, // 根据版本自动配置 + } + if m.GormLog == true { + if opDb, err := gorm.Open(mysql.New(sqlConfig), &gorm.Config{ + Logger: logger.Default.LogMode(logger.Info), + }); err != nil { + return nil + } else { + sqlDb, _ := opDb.DB() + sqlDb.SetMaxIdleConns(m.MaxIdleConns) + sqlDb.SetMaxOpenConns(m.MaxOpenConns) + return opDb + } + } else { + if opDb, err := gorm.Open(mysql.New(sqlConfig)); err != nil { + return nil + } else { + sqlDb, _ := opDb.DB() + sqlDb.SetMaxIdleConns(m.MaxIdleConns) + sqlDb.SetMaxOpenConns(m.MaxOpenConns) + return opDb + } + } + +} diff --git a/.history/config/configDatabase/database_20220728145523.go b/.history/config/configDatabase/database_20220728145523.go new file mode 100644 index 0000000..85bc93b --- /dev/null +++ b/.history/config/configDatabase/database_20220728145523.go @@ -0,0 +1,83 @@ +package configDatabase + +import ( + "fmt" + + "gorm.io/driver/mysql" + "gorm.io/gorm" + "gorm.io/gorm/logger" +) + +type MysqlSetUp struct { + MasterMysql MasterMysqlSetUp `mapstructure:"master" json:"master" yaml:"master"` //主数据库 + //其他数据库依次添加 + WechatMysql MasterMysqlSetUp `mapstructure:"wechat" json:"wechat" yaml:"wechat"` //微信数据库 + HrMysql MasterMysqlSetUp `mapstructure:"hrdatabase" json:"hrdatabase" yaml:"hrdatabase"` //HR数据库 + FileBookDate MasterMysqlSetUp `mapstructure:"fileBookDate" json:"fileBookDate" yaml:"fileBookDate"` //文档属性数据库 + ErrorSubjectDate MasterMysqlSetUp `mapstructure:"errorSubjectDate" json:"errorSubjectDate" yaml:"errorSubjectDate"` //错题库 + MyTestDate MasterMysqlSetUp `mapstructure:"myTestDate" json:"myTestDate" yaml:"myTestDate"` //自我测验 + ImageTextDate MasterMysqlSetUp `mapstructure:"imageTextDate" json:"imageTextDate" yaml:"imageTextDate"` //图文信息数据库 + ScoringDetailsDate MasterMysqlSetUp `mapstructure:"scoringDetailsDate" json:"scoringDetailsDate" yaml:"scoringDetailsDate"` //计分明细数据库 + QuestionsAnswersDate MasterMysqlSetUp `mapstructure:"questionsAnswersDate" json:"questionsAnswersDate" yaml:"questionsAnswersDate"` //趣味问答 + BillboardDate MasterMysqlSetUp `mapstructure:"billboardDate" json:"billboardDate" yaml:"billboardDate"` //风云榜统计数据库 + HealthReportDate MasterMysqlSetUp `mapstructure:"healthReportDate" json:"healthReportDate" yaml:"healthReportDate"` //健康上报数据库 + KpiDate MasterMysqlSetUp `mapstructure:"kpiDate" json:"kpiDate" yaml:"kpiDate"` //绩效考核数据库 + WechatCallBackLogDate MasterMysqlSetUp `mapstructure:"wechatCallBackLogDate" json:"wechatCallBackLogDate" yaml:"wechatCallBackLogDate"` //企业微信回调记录 + Managearchives MasterMysqlSetUp `mapstructure:"managearchives" json:"managearchives" yaml:"managearchives"` //管理档案 + Test MasterMysqlSetUp +} + +type MasterMysqlSetUp struct { + UrlPath string `mapstructure:"url_path" json:"url_path" yaml:"url_path"` // 服务器地址 + Port int `mapstructure:"port" json:"port" yaml:"port"` // 端口 + Charset string `mapstructure:"charset" json:"charset" yaml:"charset"` // 编码方式 + ParseTime bool `mapstructure:"parseTime" json:"parseTime" yaml:"parseTime"` // 是否自动转换时间 + Loc string `mapstructure:"loc" json:"loc" yaml:"loc"` // 时区 + Name string `mapstructure:"name" json:"name" yaml:"name"` // 数据库名称 + UserName string `mapstructure:"username" json:"username" yaml:"username"` // 账号 + PassWord string `mapstructure:"password" json:"password" yaml:"password"` // 密码 + MaxIdleConns int `mapstructure:"max_idle_conns" json:"max_idle_conns" yaml:"max_idle_conns"` // 最大空闲数 + MaxOpenConns int `mapstructure:"max_open_conns" json:"max_open_conns" yaml:"max_open_conns"` // 最大链接数 + GormLog bool `mapstructure:"gorm_log" json:"gorm_log" yaml:"gorm_log"` // 是否开启Gorm全局日志 +} + +func (m *MasterMysqlSetUp) SqlDsn() (dsnStr string) { + dsnStr = fmt.Sprintf("%v:%v@tcp(%v:%v)/%v?charset=%v", m.UserName, m.PassWord, m.UrlPath, m.Port, m.Name, m.Charset) + if m.ParseTime == true { + dsnStr = fmt.Sprintf("%v:%v@tcp(%v:%v)/%v?charset=%v&parseTime=%v&loc=%v", m.UserName, m.PassWord, m.UrlPath, m.Port, m.Name, m.Charset, m.ParseTime, m.Loc) + } + return +} + +func (m *MasterMysqlSetUp) OpenSql() *gorm.DB { + sqlConfig := mysql.Config{ + DSN: m.SqlDsn(), // DSN + DefaultStringSize: 255, // string 类型字段的默认长度 + DisableDatetimePrecision: true, // 禁用 datetime 精度,MySQL 5.6 之前的数据库不支持 + DontSupportRenameIndex: true, // 重命名索引时采用删除并新建的方式,MySQL 5.7 之前的数据库和 MariaDB 不支持重命名索引 + DontSupportRenameColumn: true, // 用 `change` 重命名列,MySQL 8 之前的数据库和 MariaDB 不支持重命名列 + SkipInitializeWithVersion: false, // 根据版本自动配置 + } + if m.GormLog == true { + if opDb, err := gorm.Open(mysql.New(sqlConfig), &gorm.Config{ + Logger: logger.Default.LogMode(logger.Info), + }); err != nil { + return nil + } else { + sqlDb, _ := opDb.DB() + sqlDb.SetMaxIdleConns(m.MaxIdleConns) + sqlDb.SetMaxOpenConns(m.MaxOpenConns) + return opDb + } + } else { + if opDb, err := gorm.Open(mysql.New(sqlConfig)); err != nil { + return nil + } else { + sqlDb, _ := opDb.DB() + sqlDb.SetMaxIdleConns(m.MaxIdleConns) + sqlDb.SetMaxOpenConns(m.MaxOpenConns) + return opDb + } + } + +} diff --git a/.history/config/configDatabase/database_20220728145525.go b/.history/config/configDatabase/database_20220728145525.go new file mode 100644 index 0000000..fe9561a --- /dev/null +++ b/.history/config/configDatabase/database_20220728145525.go @@ -0,0 +1,83 @@ +package configDatabase + +import ( + "fmt" + + "gorm.io/driver/mysql" + "gorm.io/gorm" + "gorm.io/gorm/logger" +) + +type MysqlSetUp struct { + MasterMysql MasterMysqlSetUp `mapstructure:"master" json:"master" yaml:"master"` //主数据库 + //其他数据库依次添加 + WechatMysql MasterMysqlSetUp `mapstructure:"wechat" json:"wechat" yaml:"wechat"` //微信数据库 + HrMysql MasterMysqlSetUp `mapstructure:"hrdatabase" json:"hrdatabase" yaml:"hrdatabase"` //HR数据库 + FileBookDate MasterMysqlSetUp `mapstructure:"fileBookDate" json:"fileBookDate" yaml:"fileBookDate"` //文档属性数据库 + ErrorSubjectDate MasterMysqlSetUp `mapstructure:"errorSubjectDate" json:"errorSubjectDate" yaml:"errorSubjectDate"` //错题库 + MyTestDate MasterMysqlSetUp `mapstructure:"myTestDate" json:"myTestDate" yaml:"myTestDate"` //自我测验 + ImageTextDate MasterMysqlSetUp `mapstructure:"imageTextDate" json:"imageTextDate" yaml:"imageTextDate"` //图文信息数据库 + ScoringDetailsDate MasterMysqlSetUp `mapstructure:"scoringDetailsDate" json:"scoringDetailsDate" yaml:"scoringDetailsDate"` //计分明细数据库 + QuestionsAnswersDate MasterMysqlSetUp `mapstructure:"questionsAnswersDate" json:"questionsAnswersDate" yaml:"questionsAnswersDate"` //趣味问答 + BillboardDate MasterMysqlSetUp `mapstructure:"billboardDate" json:"billboardDate" yaml:"billboardDate"` //风云榜统计数据库 + HealthReportDate MasterMysqlSetUp `mapstructure:"healthReportDate" json:"healthReportDate" yaml:"healthReportDate"` //健康上报数据库 + KpiDate MasterMysqlSetUp `mapstructure:"kpiDate" json:"kpiDate" yaml:"kpiDate"` //绩效考核数据库 + WechatCallBackLogDate MasterMysqlSetUp `mapstructure:"wechatCallBackLogDate" json:"wechatCallBackLogDate" yaml:"wechatCallBackLogDate"` //企业微信回调记录 + Managearchives MasterMysqlSetUp `mapstructure:"managearchives" json:"managearchives" yaml:"managearchives"` //管理档案 + Test MasterMysqlSetUp +} + +type MasterMysqlSetUp struct { + UrlPath string `mapstructure:"url_path" json:"url_path" yaml:"url_path"` // 服务器地址 + Port int `mapstructure:"port" json:"port" yaml:"port"` // 端口 + Charset string `mapstructure:"charset" json:"charset" yaml:"charset"` // 编码方式 + ParseTime bool `mapstructure:"parseTime" json:"parseTime" yaml:"parseTime"` // 是否自动转换时间 + Loc string `mapstructure:"loc" json:"loc" yaml:"loc"` // 时区 + Name string `mapstructure:"name" json:"name" yaml:"name"` // 数据库名称 + UserName string `mapstructure:"username" json:"username" yaml:"username"` // 账号 + PassWord string `mapstructure:"password" json:"password" yaml:"password"` // 密码 + MaxIdleConns int `mapstructure:"max_idle_conns" json:"max_idle_conns" yaml:"max_idle_conns"` // 最大空闲数 + MaxOpenConns int `mapstructure:"max_open_conns" json:"max_open_conns" yaml:"max_open_conns"` // 最大链接数 + GormLog bool `mapstructure:"gorm_log" json:"gorm_log" yaml:"gorm_log"` // 是否开启Gorm全局日志 +} + +func (m *MasterMysqlSetUp) SqlDsn() (dsnStr string) { + dsnStr = fmt.Sprintf("%v:%v@tcp(%v:%v)/%v?charset=%v", m.UserName, m.PassWord, m.UrlPath, m.Port, m.Name, m.Charset) + if m.ParseTime == true { + dsnStr = fmt.Sprintf("%v:%v@tcp(%v:%v)/%v?charset=%v&parseTime=%v&loc=%v", m.UserName, m.PassWord, m.UrlPath, m.Port, m.Name, m.Charset, m.ParseTime, m.Loc) + } + return +} + +func (m *MasterMysqlSetUp) OpenSql() *gorm.DB { + sqlConfig := mysql.Config{ + DSN: m.SqlDsn(), // DSN + DefaultStringSize: 255, // string 类型字段的默认长度 + DisableDatetimePrecision: true, // 禁用 datetime 精度,MySQL 5.6 之前的数据库不支持 + DontSupportRenameIndex: true, // 重命名索引时采用删除并新建的方式,MySQL 5.7 之前的数据库和 MariaDB 不支持重命名索引 + DontSupportRenameColumn: true, // 用 `change` 重命名列,MySQL 8 之前的数据库和 MariaDB 不支持重命名列 + SkipInitializeWithVersion: false, // 根据版本自动配置 + } + if m.GormLog == true { + if opDb, err := gorm.Open(mysql.New(sqlConfig), &gorm.Config{ + Logger: logger.Default.LogMode(logger.Info), + }); err != nil { + return nil + } else { + sqlDb, _ := opDb.DB() + sqlDb.SetMaxIdleConns(m.MaxIdleConns) + sqlDb.SetMaxOpenConns(m.MaxOpenConns) + return opDb + } + } else { + if opDb, err := gorm.Open(mysql.New(sqlConfig)); err != nil { + return nil + } else { + sqlDb, _ := opDb.DB() + sqlDb.SetMaxIdleConns(m.MaxIdleConns) + sqlDb.SetMaxOpenConns(m.MaxOpenConns) + return opDb + } + } + +} diff --git a/.history/config/configDatabase/database_20220728145530.go b/.history/config/configDatabase/database_20220728145530.go new file mode 100644 index 0000000..7d6ddab --- /dev/null +++ b/.history/config/configDatabase/database_20220728145530.go @@ -0,0 +1,83 @@ +package configDatabase + +import ( + "fmt" + + "gorm.io/driver/mysql" + "gorm.io/gorm" + "gorm.io/gorm/logger" +) + +type MysqlSetUp struct { + MasterMysql MasterMysqlSetUp `mapstructure:"master" json:"master" yaml:"master"` //主数据库 + //其他数据库依次添加 + WechatMysql MasterMysqlSetUp `mapstructure:"wechat" json:"wechat" yaml:"wechat"` //微信数据库 + HrMysql MasterMysqlSetUp `mapstructure:"hrdatabase" json:"hrdatabase" yaml:"hrdatabase"` //HR数据库 + FileBookDate MasterMysqlSetUp `mapstructure:"fileBookDate" json:"fileBookDate" yaml:"fileBookDate"` //文档属性数据库 + ErrorSubjectDate MasterMysqlSetUp `mapstructure:"errorSubjectDate" json:"errorSubjectDate" yaml:"errorSubjectDate"` //错题库 + MyTestDate MasterMysqlSetUp `mapstructure:"myTestDate" json:"myTestDate" yaml:"myTestDate"` //自我测验 + ImageTextDate MasterMysqlSetUp `mapstructure:"imageTextDate" json:"imageTextDate" yaml:"imageTextDate"` //图文信息数据库 + ScoringDetailsDate MasterMysqlSetUp `mapstructure:"scoringDetailsDate" json:"scoringDetailsDate" yaml:"scoringDetailsDate"` //计分明细数据库 + QuestionsAnswersDate MasterMysqlSetUp `mapstructure:"questionsAnswersDate" json:"questionsAnswersDate" yaml:"questionsAnswersDate"` //趣味问答 + BillboardDate MasterMysqlSetUp `mapstructure:"billboardDate" json:"billboardDate" yaml:"billboardDate"` //风云榜统计数据库 + HealthReportDate MasterMysqlSetUp `mapstructure:"healthReportDate" json:"healthReportDate" yaml:"healthReportDate"` //健康上报数据库 + KpiDate MasterMysqlSetUp `mapstructure:"kpiDate" json:"kpiDate" yaml:"kpiDate"` //绩效考核数据库 + WechatCallBackLogDate MasterMysqlSetUp `mapstructure:"wechatCallBackLogDate" json:"wechatCallBackLogDate" yaml:"wechatCallBackLogDate"` //企业微信回调记录 + Managearchives MasterMysqlSetUp `mapstructure:"managearchives" json:"managearchives" yaml:"managearchives"` //管理档案 + Test MasterMysqlSetUp `mapstructure:"managearchives" json:"managearchives" yaml:"managearchives"` +} + +type MasterMysqlSetUp struct { + UrlPath string `mapstructure:"url_path" json:"url_path" yaml:"url_path"` // 服务器地址 + Port int `mapstructure:"port" json:"port" yaml:"port"` // 端口 + Charset string `mapstructure:"charset" json:"charset" yaml:"charset"` // 编码方式 + ParseTime bool `mapstructure:"parseTime" json:"parseTime" yaml:"parseTime"` // 是否自动转换时间 + Loc string `mapstructure:"loc" json:"loc" yaml:"loc"` // 时区 + Name string `mapstructure:"name" json:"name" yaml:"name"` // 数据库名称 + UserName string `mapstructure:"username" json:"username" yaml:"username"` // 账号 + PassWord string `mapstructure:"password" json:"password" yaml:"password"` // 密码 + MaxIdleConns int `mapstructure:"max_idle_conns" json:"max_idle_conns" yaml:"max_idle_conns"` // 最大空闲数 + MaxOpenConns int `mapstructure:"max_open_conns" json:"max_open_conns" yaml:"max_open_conns"` // 最大链接数 + GormLog bool `mapstructure:"gorm_log" json:"gorm_log" yaml:"gorm_log"` // 是否开启Gorm全局日志 +} + +func (m *MasterMysqlSetUp) SqlDsn() (dsnStr string) { + dsnStr = fmt.Sprintf("%v:%v@tcp(%v:%v)/%v?charset=%v", m.UserName, m.PassWord, m.UrlPath, m.Port, m.Name, m.Charset) + if m.ParseTime == true { + dsnStr = fmt.Sprintf("%v:%v@tcp(%v:%v)/%v?charset=%v&parseTime=%v&loc=%v", m.UserName, m.PassWord, m.UrlPath, m.Port, m.Name, m.Charset, m.ParseTime, m.Loc) + } + return +} + +func (m *MasterMysqlSetUp) OpenSql() *gorm.DB { + sqlConfig := mysql.Config{ + DSN: m.SqlDsn(), // DSN + DefaultStringSize: 255, // string 类型字段的默认长度 + DisableDatetimePrecision: true, // 禁用 datetime 精度,MySQL 5.6 之前的数据库不支持 + DontSupportRenameIndex: true, // 重命名索引时采用删除并新建的方式,MySQL 5.7 之前的数据库和 MariaDB 不支持重命名索引 + DontSupportRenameColumn: true, // 用 `change` 重命名列,MySQL 8 之前的数据库和 MariaDB 不支持重命名列 + SkipInitializeWithVersion: false, // 根据版本自动配置 + } + if m.GormLog == true { + if opDb, err := gorm.Open(mysql.New(sqlConfig), &gorm.Config{ + Logger: logger.Default.LogMode(logger.Info), + }); err != nil { + return nil + } else { + sqlDb, _ := opDb.DB() + sqlDb.SetMaxIdleConns(m.MaxIdleConns) + sqlDb.SetMaxOpenConns(m.MaxOpenConns) + return opDb + } + } else { + if opDb, err := gorm.Open(mysql.New(sqlConfig)); err != nil { + return nil + } else { + sqlDb, _ := opDb.DB() + sqlDb.SetMaxIdleConns(m.MaxIdleConns) + sqlDb.SetMaxOpenConns(m.MaxOpenConns) + return opDb + } + } + +} diff --git a/.history/config/configDatabase/database_20220728145534.go b/.history/config/configDatabase/database_20220728145534.go new file mode 100644 index 0000000..ec3d4c7 --- /dev/null +++ b/.history/config/configDatabase/database_20220728145534.go @@ -0,0 +1,83 @@ +package configDatabase + +import ( + "fmt" + + "gorm.io/driver/mysql" + "gorm.io/gorm" + "gorm.io/gorm/logger" +) + +type MysqlSetUp struct { + MasterMysql MasterMysqlSetUp `mapstructure:"master" json:"master" yaml:"master"` //主数据库 + //其他数据库依次添加 + WechatMysql MasterMysqlSetUp `mapstructure:"wechat" json:"wechat" yaml:"wechat"` //微信数据库 + HrMysql MasterMysqlSetUp `mapstructure:"hrdatabase" json:"hrdatabase" yaml:"hrdatabase"` //HR数据库 + FileBookDate MasterMysqlSetUp `mapstructure:"fileBookDate" json:"fileBookDate" yaml:"fileBookDate"` //文档属性数据库 + ErrorSubjectDate MasterMysqlSetUp `mapstructure:"errorSubjectDate" json:"errorSubjectDate" yaml:"errorSubjectDate"` //错题库 + MyTestDate MasterMysqlSetUp `mapstructure:"myTestDate" json:"myTestDate" yaml:"myTestDate"` //自我测验 + ImageTextDate MasterMysqlSetUp `mapstructure:"imageTextDate" json:"imageTextDate" yaml:"imageTextDate"` //图文信息数据库 + ScoringDetailsDate MasterMysqlSetUp `mapstructure:"scoringDetailsDate" json:"scoringDetailsDate" yaml:"scoringDetailsDate"` //计分明细数据库 + QuestionsAnswersDate MasterMysqlSetUp `mapstructure:"questionsAnswersDate" json:"questionsAnswersDate" yaml:"questionsAnswersDate"` //趣味问答 + BillboardDate MasterMysqlSetUp `mapstructure:"billboardDate" json:"billboardDate" yaml:"billboardDate"` //风云榜统计数据库 + HealthReportDate MasterMysqlSetUp `mapstructure:"healthReportDate" json:"healthReportDate" yaml:"healthReportDate"` //健康上报数据库 + KpiDate MasterMysqlSetUp `mapstructure:"kpiDate" json:"kpiDate" yaml:"kpiDate"` //绩效考核数据库 + WechatCallBackLogDate MasterMysqlSetUp `mapstructure:"wechatCallBackLogDate" json:"wechatCallBackLogDate" yaml:"wechatCallBackLogDate"` //企业微信回调记录 + Managearchives MasterMysqlSetUp `mapstructure:"managearchives" json:"managearchives" yaml:"managearchives"` //管理档案 + Test MasterMysqlSetUp `mapstructure:"test" json:"managearchives" yaml:"managearchives"` +} + +type MasterMysqlSetUp struct { + UrlPath string `mapstructure:"url_path" json:"url_path" yaml:"url_path"` // 服务器地址 + Port int `mapstructure:"port" json:"port" yaml:"port"` // 端口 + Charset string `mapstructure:"charset" json:"charset" yaml:"charset"` // 编码方式 + ParseTime bool `mapstructure:"parseTime" json:"parseTime" yaml:"parseTime"` // 是否自动转换时间 + Loc string `mapstructure:"loc" json:"loc" yaml:"loc"` // 时区 + Name string `mapstructure:"name" json:"name" yaml:"name"` // 数据库名称 + UserName string `mapstructure:"username" json:"username" yaml:"username"` // 账号 + PassWord string `mapstructure:"password" json:"password" yaml:"password"` // 密码 + MaxIdleConns int `mapstructure:"max_idle_conns" json:"max_idle_conns" yaml:"max_idle_conns"` // 最大空闲数 + MaxOpenConns int `mapstructure:"max_open_conns" json:"max_open_conns" yaml:"max_open_conns"` // 最大链接数 + GormLog bool `mapstructure:"gorm_log" json:"gorm_log" yaml:"gorm_log"` // 是否开启Gorm全局日志 +} + +func (m *MasterMysqlSetUp) SqlDsn() (dsnStr string) { + dsnStr = fmt.Sprintf("%v:%v@tcp(%v:%v)/%v?charset=%v", m.UserName, m.PassWord, m.UrlPath, m.Port, m.Name, m.Charset) + if m.ParseTime == true { + dsnStr = fmt.Sprintf("%v:%v@tcp(%v:%v)/%v?charset=%v&parseTime=%v&loc=%v", m.UserName, m.PassWord, m.UrlPath, m.Port, m.Name, m.Charset, m.ParseTime, m.Loc) + } + return +} + +func (m *MasterMysqlSetUp) OpenSql() *gorm.DB { + sqlConfig := mysql.Config{ + DSN: m.SqlDsn(), // DSN + DefaultStringSize: 255, // string 类型字段的默认长度 + DisableDatetimePrecision: true, // 禁用 datetime 精度,MySQL 5.6 之前的数据库不支持 + DontSupportRenameIndex: true, // 重命名索引时采用删除并新建的方式,MySQL 5.7 之前的数据库和 MariaDB 不支持重命名索引 + DontSupportRenameColumn: true, // 用 `change` 重命名列,MySQL 8 之前的数据库和 MariaDB 不支持重命名列 + SkipInitializeWithVersion: false, // 根据版本自动配置 + } + if m.GormLog == true { + if opDb, err := gorm.Open(mysql.New(sqlConfig), &gorm.Config{ + Logger: logger.Default.LogMode(logger.Info), + }); err != nil { + return nil + } else { + sqlDb, _ := opDb.DB() + sqlDb.SetMaxIdleConns(m.MaxIdleConns) + sqlDb.SetMaxOpenConns(m.MaxOpenConns) + return opDb + } + } else { + if opDb, err := gorm.Open(mysql.New(sqlConfig)); err != nil { + return nil + } else { + sqlDb, _ := opDb.DB() + sqlDb.SetMaxIdleConns(m.MaxIdleConns) + sqlDb.SetMaxOpenConns(m.MaxOpenConns) + return opDb + } + } + +} diff --git a/.history/config/configDatabase/database_20220728145539.go b/.history/config/configDatabase/database_20220728145539.go new file mode 100644 index 0000000..03e714f --- /dev/null +++ b/.history/config/configDatabase/database_20220728145539.go @@ -0,0 +1,82 @@ +package configDatabase + +import ( + "fmt" + + "gorm.io/driver/mysql" + "gorm.io/gorm" + "gorm.io/gorm/logger" +) + +type MysqlSetUp struct { + MasterMysql MasterMysqlSetUp `mapstructure:"master" json:"master" yaml:"master"` //主数据库 + //其他数据库依次添加 + WechatMysql MasterMysqlSetUp `mapstructure:"wechat" json:"wechat" yaml:"wechat"` //微信数据库 + HrMysql MasterMysqlSetUp `mapstructure:"hrdatabase" json:"hrdatabase" yaml:"hrdatabase"` //HR数据库 + FileBookDate MasterMysqlSetUp `mapstructure:"fileBookDate" json:"fileBookDate" yaml:"fileBookDate"` //文档属性数据库 + ErrorSubjectDate MasterMysqlSetUp `mapstructure:"errorSubjectDate" json:"errorSubjectDate" yaml:"errorSubjectDate"` //错题库 + MyTestDate MasterMysqlSetUp `mapstructure:"myTestDate" json:"myTestDate" yaml:"myTestDate"` //自我测验 + ImageTextDate MasterMysqlSetUp `mapstructure:"imageTextDate" json:"imageTextDate" yaml:"imageTextDate"` //图文信息数据库 + ScoringDetailsDate MasterMysqlSetUp `mapstructure:"scoringDetailsDate" json:"scoringDetailsDate" yaml:"scoringDetailsDate"` //计分明细数据库 + QuestionsAnswersDate MasterMysqlSetUp `mapstructure:"questionsAnswersDate" json:"questionsAnswersDate" yaml:"questionsAnswersDate"` //趣味问答 + BillboardDate MasterMysqlSetUp `mapstructure:"billboardDate" json:"billboardDate" yaml:"billboardDate"` //风云榜统计数据库 + HealthReportDate MasterMysqlSetUp `mapstructure:"healthReportDate" json:"healthReportDate" yaml:"healthReportDate"` //健康上报数据库 + KpiDate MasterMysqlSetUp `mapstructure:"kpiDate" json:"kpiDate" yaml:"kpiDate"` //绩效考核数据库 + WechatCallBackLogDate MasterMysqlSetUp `mapstructure:"wechatCallBackLogDate" json:"wechatCallBackLogDate" yaml:"wechatCallBackLogDate"` //企业微信回调记录 + Managearchives MasterMysqlSetUp `mapstructure:"managearchives" json:"managearchives" yaml:"managearchives"` //管理档案 +} + +type MasterMysqlSetUp struct { + UrlPath string `mapstructure:"url_path" json:"url_path" yaml:"url_path"` // 服务器地址 + Port int `mapstructure:"port" json:"port" yaml:"port"` // 端口 + Charset string `mapstructure:"charset" json:"charset" yaml:"charset"` // 编码方式 + ParseTime bool `mapstructure:"parseTime" json:"parseTime" yaml:"parseTime"` // 是否自动转换时间 + Loc string `mapstructure:"loc" json:"loc" yaml:"loc"` // 时区 + Name string `mapstructure:"name" json:"name" yaml:"name"` // 数据库名称 + UserName string `mapstructure:"username" json:"username" yaml:"username"` // 账号 + PassWord string `mapstructure:"password" json:"password" yaml:"password"` // 密码 + MaxIdleConns int `mapstructure:"max_idle_conns" json:"max_idle_conns" yaml:"max_idle_conns"` // 最大空闲数 + MaxOpenConns int `mapstructure:"max_open_conns" json:"max_open_conns" yaml:"max_open_conns"` // 最大链接数 + GormLog bool `mapstructure:"gorm_log" json:"gorm_log" yaml:"gorm_log"` // 是否开启Gorm全局日志 +} + +func (m *MasterMysqlSetUp) SqlDsn() (dsnStr string) { + dsnStr = fmt.Sprintf("%v:%v@tcp(%v:%v)/%v?charset=%v", m.UserName, m.PassWord, m.UrlPath, m.Port, m.Name, m.Charset) + if m.ParseTime == true { + dsnStr = fmt.Sprintf("%v:%v@tcp(%v:%v)/%v?charset=%v&parseTime=%v&loc=%v", m.UserName, m.PassWord, m.UrlPath, m.Port, m.Name, m.Charset, m.ParseTime, m.Loc) + } + return +} + +func (m *MasterMysqlSetUp) OpenSql() *gorm.DB { + sqlConfig := mysql.Config{ + DSN: m.SqlDsn(), // DSN + DefaultStringSize: 255, // string 类型字段的默认长度 + DisableDatetimePrecision: true, // 禁用 datetime 精度,MySQL 5.6 之前的数据库不支持 + DontSupportRenameIndex: true, // 重命名索引时采用删除并新建的方式,MySQL 5.7 之前的数据库和 MariaDB 不支持重命名索引 + DontSupportRenameColumn: true, // 用 `change` 重命名列,MySQL 8 之前的数据库和 MariaDB 不支持重命名列 + SkipInitializeWithVersion: false, // 根据版本自动配置 + } + if m.GormLog == true { + if opDb, err := gorm.Open(mysql.New(sqlConfig), &gorm.Config{ + Logger: logger.Default.LogMode(logger.Info), + }); err != nil { + return nil + } else { + sqlDb, _ := opDb.DB() + sqlDb.SetMaxIdleConns(m.MaxIdleConns) + sqlDb.SetMaxOpenConns(m.MaxOpenConns) + return opDb + } + } else { + if opDb, err := gorm.Open(mysql.New(sqlConfig)); err != nil { + return nil + } else { + sqlDb, _ := opDb.DB() + sqlDb.SetMaxIdleConns(m.MaxIdleConns) + sqlDb.SetMaxOpenConns(m.MaxOpenConns) + return opDb + } + } + +} diff --git a/.history/config/configDatabase/database_20220728145546.yaml b/.history/config/configDatabase/database_20220728145546.yaml new file mode 100644 index 0000000..5aacf0f --- /dev/null +++ b/.history/config/configDatabase/database_20220728145546.yaml @@ -0,0 +1,192 @@ +#数据库配置 + +#主数据库 +master: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'hengxingaoke_tes' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: false #是否开启gorm日志 +#微信数据库 +wechat: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'wechatuser' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: false #是否开启gorm日志 +#HR数据库 +hrdatabase: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'human_resources_jindie' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 +#文档属性数据库 +fileBookDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'learn_message' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 +#错题库 +errorSubjectDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'wrong_question_bank' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 +#自我测验 +myTestDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'selftestdatabase' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#图文信息数据库 +imageTextDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'readdocument' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#计分明细数据库 +scoringDetailsDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'league_table_data' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#趣味问答 +questionsAnswersDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'ques_and_answers' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#风云榜统计数据库 +billboardDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'statisticsing' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#健康上报数据库 +healthReportDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'location' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#绩效考核数据库 +kpiDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'performanceappraisal' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#企业微信回调记录 +wechatCallBackLogDate: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'wechatlog' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 + +#管理档案 +managearchives: + url_path: '127.0.0.1' #数据库地址 + port: 3306 #数据库端口 + charset: 'utf8mb4' #数据库编码方式 + parseTime: 'True' #是否自动转换时间 + loc: 'Local' #时区 + name: 'manage_archives' #数据库名称 + username: 'root' #数据库用户民 + password: 'root' #数据库密码 + max_idle_conns: 100 #最大空闲数量 + max_open_conns: 1500 #最大打开数量 + gorm_log: true #是否开启gorm日志 diff --git a/.history/go_20220728113319.mod b/.history/go_20220728113319.mod new file mode 100644 index 0000000..666f6f8 --- /dev/null +++ b/.history/go_20220728113319.mod @@ -0,0 +1,55 @@ +module key_performance_indicators + +go 1.18 + +require ( + github.com/flipped-aurora/gin-vue-admin/server v0.0.0-20220724010254-afab1fdbce13 + github.com/fsnotify/fsnotify v1.5.4 + github.com/gin-gonic/gin v1.8.1 + github.com/go-redis/redis/v8 v8.11.5 + github.com/mitchellh/mapstructure v1.5.0 + github.com/mojocn/base64Captcha v1.3.5 + github.com/mozillazg/go-pinyin v0.19.0 + github.com/spf13/viper v1.12.0 + gorm.io/driver/mysql v1.3.5 + gorm.io/gorm v1.23.8 +) + +require ( + github.com/cespare/xxhash/v2 v2.1.2 // indirect + github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect + github.com/flipped-aurora/gin-vue-admin v2.5.3+incompatible // indirect + github.com/gin-contrib/sse v0.1.0 // indirect + github.com/go-playground/locales v0.14.0 // indirect + github.com/go-playground/universal-translator v0.18.0 // indirect + github.com/go-playground/validator/v10 v10.10.0 // indirect + github.com/go-sql-driver/mysql v1.6.0 // indirect + github.com/goccy/go-json v0.9.7 // indirect + github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 // indirect + github.com/hashicorp/hcl v1.0.0 // indirect + github.com/jinzhu/inflection v1.0.0 // indirect + github.com/jinzhu/now v1.1.5 // indirect + github.com/json-iterator/go v1.1.12 // indirect + github.com/leodido/go-urn v1.2.1 // indirect + github.com/magiconair/properties v1.8.6 // indirect + github.com/mattn/go-isatty v0.0.14 // indirect + github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect + github.com/modern-go/reflect2 v1.0.2 // indirect + github.com/pelletier/go-toml v1.9.5 // indirect + github.com/pelletier/go-toml/v2 v2.0.1 // indirect + github.com/spf13/afero v1.8.2 // indirect + github.com/spf13/cast v1.5.0 // indirect + github.com/spf13/jwalterweatherman v1.1.0 // indirect + github.com/spf13/pflag v1.0.5 // indirect + github.com/subosito/gotenv v1.3.0 // indirect + github.com/ugorji/go/codec v1.2.7 // indirect + golang.org/x/crypto v0.0.0-20220411220226-7b82a4e95df4 // indirect + golang.org/x/image v0.0.0-20210220032944-ac19c3e999fb // indirect + golang.org/x/net v0.0.0-20220520000938-2e3eb7b945c2 // indirect + golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a // indirect + golang.org/x/text v0.3.7 // indirect + google.golang.org/protobuf v1.28.0 // indirect + gopkg.in/ini.v1 v1.66.4 // indirect + gopkg.in/yaml.v2 v2.4.0 // indirect + gopkg.in/yaml.v3 v3.0.0 // indirect +) diff --git a/.history/go_20220728113347.mod b/.history/go_20220728113347.mod new file mode 100644 index 0000000..666f6f8 --- /dev/null +++ b/.history/go_20220728113347.mod @@ -0,0 +1,55 @@ +module key_performance_indicators + +go 1.18 + +require ( + github.com/flipped-aurora/gin-vue-admin/server v0.0.0-20220724010254-afab1fdbce13 + github.com/fsnotify/fsnotify v1.5.4 + github.com/gin-gonic/gin v1.8.1 + github.com/go-redis/redis/v8 v8.11.5 + github.com/mitchellh/mapstructure v1.5.0 + github.com/mojocn/base64Captcha v1.3.5 + github.com/mozillazg/go-pinyin v0.19.0 + github.com/spf13/viper v1.12.0 + gorm.io/driver/mysql v1.3.5 + gorm.io/gorm v1.23.8 +) + +require ( + github.com/cespare/xxhash/v2 v2.1.2 // indirect + github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect + github.com/flipped-aurora/gin-vue-admin v2.5.3+incompatible // indirect + github.com/gin-contrib/sse v0.1.0 // indirect + github.com/go-playground/locales v0.14.0 // indirect + github.com/go-playground/universal-translator v0.18.0 // indirect + github.com/go-playground/validator/v10 v10.10.0 // indirect + github.com/go-sql-driver/mysql v1.6.0 // indirect + github.com/goccy/go-json v0.9.7 // indirect + github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 // indirect + github.com/hashicorp/hcl v1.0.0 // indirect + github.com/jinzhu/inflection v1.0.0 // indirect + github.com/jinzhu/now v1.1.5 // indirect + github.com/json-iterator/go v1.1.12 // indirect + github.com/leodido/go-urn v1.2.1 // indirect + github.com/magiconair/properties v1.8.6 // indirect + github.com/mattn/go-isatty v0.0.14 // indirect + github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect + github.com/modern-go/reflect2 v1.0.2 // indirect + github.com/pelletier/go-toml v1.9.5 // indirect + github.com/pelletier/go-toml/v2 v2.0.1 // indirect + github.com/spf13/afero v1.8.2 // indirect + github.com/spf13/cast v1.5.0 // indirect + github.com/spf13/jwalterweatherman v1.1.0 // indirect + github.com/spf13/pflag v1.0.5 // indirect + github.com/subosito/gotenv v1.3.0 // indirect + github.com/ugorji/go/codec v1.2.7 // indirect + golang.org/x/crypto v0.0.0-20220411220226-7b82a4e95df4 // indirect + golang.org/x/image v0.0.0-20210220032944-ac19c3e999fb // indirect + golang.org/x/net v0.0.0-20220520000938-2e3eb7b945c2 // indirect + golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a // indirect + golang.org/x/text v0.3.7 // indirect + google.golang.org/protobuf v1.28.0 // indirect + gopkg.in/ini.v1 v1.66.4 // indirect + gopkg.in/yaml.v2 v2.4.0 // indirect + gopkg.in/yaml.v3 v3.0.0 // indirect +) diff --git a/.history/go_20220728113424.mod b/.history/go_20220728113424.mod new file mode 100644 index 0000000..8616d06 --- /dev/null +++ b/.history/go_20220728113424.mod @@ -0,0 +1,55 @@ +module key_performance_indicators + +go 1.18 + +require ( + // github.com/flipped-aurora/gin-vue-admin/server v0.0.0-20220724010254-afab1fdbce13 + github.com/fsnotify/fsnotify v1.5.4 + github.com/gin-gonic/gin v1.8.1 + github.com/go-redis/redis/v8 v8.11.5 + github.com/mitchellh/mapstructure v1.5.0 + github.com/mojocn/base64Captcha v1.3.5 + github.com/mozillazg/go-pinyin v0.19.0 + github.com/spf13/viper v1.12.0 + gorm.io/driver/mysql v1.3.5 + gorm.io/gorm v1.23.8 +) + +require ( + github.com/cespare/xxhash/v2 v2.1.2 // indirect + github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect + github.com/flipped-aurora/gin-vue-admin v2.5.3+incompatible // indirect + github.com/gin-contrib/sse v0.1.0 // indirect + github.com/go-playground/locales v0.14.0 // indirect + github.com/go-playground/universal-translator v0.18.0 // indirect + github.com/go-playground/validator/v10 v10.10.0 // indirect + github.com/go-sql-driver/mysql v1.6.0 // indirect + github.com/goccy/go-json v0.9.7 // indirect + github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 // indirect + github.com/hashicorp/hcl v1.0.0 // indirect + github.com/jinzhu/inflection v1.0.0 // indirect + github.com/jinzhu/now v1.1.5 // indirect + github.com/json-iterator/go v1.1.12 // indirect + github.com/leodido/go-urn v1.2.1 // indirect + github.com/magiconair/properties v1.8.6 // indirect + github.com/mattn/go-isatty v0.0.14 // indirect + github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect + github.com/modern-go/reflect2 v1.0.2 // indirect + github.com/pelletier/go-toml v1.9.5 // indirect + github.com/pelletier/go-toml/v2 v2.0.1 // indirect + github.com/spf13/afero v1.8.2 // indirect + github.com/spf13/cast v1.5.0 // indirect + github.com/spf13/jwalterweatherman v1.1.0 // indirect + github.com/spf13/pflag v1.0.5 // indirect + github.com/subosito/gotenv v1.3.0 // indirect + github.com/ugorji/go/codec v1.2.7 // indirect + golang.org/x/crypto v0.0.0-20220411220226-7b82a4e95df4 // indirect + golang.org/x/image v0.0.0-20210220032944-ac19c3e999fb // indirect + golang.org/x/net v0.0.0-20220520000938-2e3eb7b945c2 // indirect + golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a // indirect + golang.org/x/text v0.3.7 // indirect + google.golang.org/protobuf v1.28.0 // indirect + gopkg.in/ini.v1 v1.66.4 // indirect + gopkg.in/yaml.v2 v2.4.0 // indirect + gopkg.in/yaml.v3 v3.0.0 // indirect +) diff --git a/.history/go_20220728113427.mod b/.history/go_20220728113427.mod new file mode 100644 index 0000000..8616d06 --- /dev/null +++ b/.history/go_20220728113427.mod @@ -0,0 +1,55 @@ +module key_performance_indicators + +go 1.18 + +require ( + // github.com/flipped-aurora/gin-vue-admin/server v0.0.0-20220724010254-afab1fdbce13 + github.com/fsnotify/fsnotify v1.5.4 + github.com/gin-gonic/gin v1.8.1 + github.com/go-redis/redis/v8 v8.11.5 + github.com/mitchellh/mapstructure v1.5.0 + github.com/mojocn/base64Captcha v1.3.5 + github.com/mozillazg/go-pinyin v0.19.0 + github.com/spf13/viper v1.12.0 + gorm.io/driver/mysql v1.3.5 + gorm.io/gorm v1.23.8 +) + +require ( + github.com/cespare/xxhash/v2 v2.1.2 // indirect + github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect + github.com/flipped-aurora/gin-vue-admin v2.5.3+incompatible // indirect + github.com/gin-contrib/sse v0.1.0 // indirect + github.com/go-playground/locales v0.14.0 // indirect + github.com/go-playground/universal-translator v0.18.0 // indirect + github.com/go-playground/validator/v10 v10.10.0 // indirect + github.com/go-sql-driver/mysql v1.6.0 // indirect + github.com/goccy/go-json v0.9.7 // indirect + github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 // indirect + github.com/hashicorp/hcl v1.0.0 // indirect + github.com/jinzhu/inflection v1.0.0 // indirect + github.com/jinzhu/now v1.1.5 // indirect + github.com/json-iterator/go v1.1.12 // indirect + github.com/leodido/go-urn v1.2.1 // indirect + github.com/magiconair/properties v1.8.6 // indirect + github.com/mattn/go-isatty v0.0.14 // indirect + github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect + github.com/modern-go/reflect2 v1.0.2 // indirect + github.com/pelletier/go-toml v1.9.5 // indirect + github.com/pelletier/go-toml/v2 v2.0.1 // indirect + github.com/spf13/afero v1.8.2 // indirect + github.com/spf13/cast v1.5.0 // indirect + github.com/spf13/jwalterweatherman v1.1.0 // indirect + github.com/spf13/pflag v1.0.5 // indirect + github.com/subosito/gotenv v1.3.0 // indirect + github.com/ugorji/go/codec v1.2.7 // indirect + golang.org/x/crypto v0.0.0-20220411220226-7b82a4e95df4 // indirect + golang.org/x/image v0.0.0-20210220032944-ac19c3e999fb // indirect + golang.org/x/net v0.0.0-20220520000938-2e3eb7b945c2 // indirect + golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a // indirect + golang.org/x/text v0.3.7 // indirect + google.golang.org/protobuf v1.28.0 // indirect + gopkg.in/ini.v1 v1.66.4 // indirect + gopkg.in/yaml.v2 v2.4.0 // indirect + gopkg.in/yaml.v3 v3.0.0 // indirect +) diff --git a/.history/go_20220728113449.mod b/.history/go_20220728113449.mod new file mode 100644 index 0000000..666f6f8 --- /dev/null +++ b/.history/go_20220728113449.mod @@ -0,0 +1,55 @@ +module key_performance_indicators + +go 1.18 + +require ( + github.com/flipped-aurora/gin-vue-admin/server v0.0.0-20220724010254-afab1fdbce13 + github.com/fsnotify/fsnotify v1.5.4 + github.com/gin-gonic/gin v1.8.1 + github.com/go-redis/redis/v8 v8.11.5 + github.com/mitchellh/mapstructure v1.5.0 + github.com/mojocn/base64Captcha v1.3.5 + github.com/mozillazg/go-pinyin v0.19.0 + github.com/spf13/viper v1.12.0 + gorm.io/driver/mysql v1.3.5 + gorm.io/gorm v1.23.8 +) + +require ( + github.com/cespare/xxhash/v2 v2.1.2 // indirect + github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect + github.com/flipped-aurora/gin-vue-admin v2.5.3+incompatible // indirect + github.com/gin-contrib/sse v0.1.0 // indirect + github.com/go-playground/locales v0.14.0 // indirect + github.com/go-playground/universal-translator v0.18.0 // indirect + github.com/go-playground/validator/v10 v10.10.0 // indirect + github.com/go-sql-driver/mysql v1.6.0 // indirect + github.com/goccy/go-json v0.9.7 // indirect + github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 // indirect + github.com/hashicorp/hcl v1.0.0 // indirect + github.com/jinzhu/inflection v1.0.0 // indirect + github.com/jinzhu/now v1.1.5 // indirect + github.com/json-iterator/go v1.1.12 // indirect + github.com/leodido/go-urn v1.2.1 // indirect + github.com/magiconair/properties v1.8.6 // indirect + github.com/mattn/go-isatty v0.0.14 // indirect + github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect + github.com/modern-go/reflect2 v1.0.2 // indirect + github.com/pelletier/go-toml v1.9.5 // indirect + github.com/pelletier/go-toml/v2 v2.0.1 // indirect + github.com/spf13/afero v1.8.2 // indirect + github.com/spf13/cast v1.5.0 // indirect + github.com/spf13/jwalterweatherman v1.1.0 // indirect + github.com/spf13/pflag v1.0.5 // indirect + github.com/subosito/gotenv v1.3.0 // indirect + github.com/ugorji/go/codec v1.2.7 // indirect + golang.org/x/crypto v0.0.0-20220411220226-7b82a4e95df4 // indirect + golang.org/x/image v0.0.0-20210220032944-ac19c3e999fb // indirect + golang.org/x/net v0.0.0-20220520000938-2e3eb7b945c2 // indirect + golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a // indirect + golang.org/x/text v0.3.7 // indirect + google.golang.org/protobuf v1.28.0 // indirect + gopkg.in/ini.v1 v1.66.4 // indirect + gopkg.in/yaml.v2 v2.4.0 // indirect + gopkg.in/yaml.v3 v3.0.0 // indirect +) diff --git a/.history/initialization/app/run_20220727152945.go b/.history/initialization/app/run_20220727152945.go new file mode 100644 index 0000000..d22ac79 --- /dev/null +++ b/.history/initialization/app/run_20220727152945.go @@ -0,0 +1,27 @@ +package app + +import ( + "fmt" + "key_performance_indicators/initialization" + "key_performance_indicators/initialization/route" + "key_performance_indicators/overall" +) + +type server interface { + ListenAndServe() error +} + +//启动服务 +func RunItem() { + //加载基础配置 + // var appConfig configApp.Server + initialization.RunViper(&overall.CONSTANT_CONFIG) + // fmt.Printf("----------->%v", overall.CONSTANT_CONFIG) + routers := route.InitialRouter() + portStr := fmt.Sprintf(":%d", overall.CONSTANT_CONFIG.Appsetup.Port) + startUp := InitServer(portStr, routers) + + fmt.Printf("\n\n默认API运行地址:http://127.0.0.1%s\n", portStr) + runErr := startUp.ListenAndServe().Error() + panic(fmt.Errorf(runErr)) +} diff --git a/.history/initialization/app/run_20220728114254.go b/.history/initialization/app/run_20220728114254.go new file mode 100644 index 0000000..794b40c --- /dev/null +++ b/.history/initialization/app/run_20220728114254.go @@ -0,0 +1,27 @@ +package app + +import ( + "fmt" + "key_performance_indicators/initialization" + "key_performance_indicators/initialization/route" + "key_performance_indicators/overall" +) + +type server interface { + ListenAndServe() error +} + +//启动服务 +func RunItem() { + //加载基础配置 + // var appConfig configApp.Server + initialization.RunViper(&overall.CONSTANT_CONFIG) + // fmt.Printf("----------->%v", overall.CONSTANT_CONFIG) + routers := route.InitialRouter() + portStr := fmt.Sprintf(":%d", overall.CONSTANT_CONFIG.Appsetup.Port) + startUp := InitServer(portStr, routers) + + fmt.Printf("\n\n默认API运行地址:http://127.0.0.1%s\n", portStr) + runErr := startUp.ListenAndServe().Error() + panic(fmt.Errorf(runErr)) +} diff --git a/.history/initialization/app/run_20220728114258.go b/.history/initialization/app/run_20220728114258.go new file mode 100644 index 0000000..954f21e --- /dev/null +++ b/.history/initialization/app/run_20220728114258.go @@ -0,0 +1,27 @@ +package app + +import ( + "fmt" + "key_performance_indicators/initialization" + "key_performance_indicators/initialization/route" + "key_performance_indicators/overall" +) + +type server interface { + ListenAndServe() error +} + +//启动服务 +func RunItem() { + //加载基础配置 + // var appConfig configApp.Server + initialization.RunViper(&overall.CONSTANT_CONFIG) + // fmt.Printf("----------->%v", overall.CONSTANT_CONFIG) + routers := route.InitialRouter() + portStr := fmt.Sprintf(":%d", overall.CONSTANT_CONFIG.Appsetup.Port) + startUp := InitServer(portStr, routers) + startUp. + fmt.Printf("\n\n默认API运行地址:http://127.0.0.1%s\n", portStr) + runErr := startUp.ListenAndServe().Error() + panic(fmt.Errorf(runErr)) +} diff --git a/.history/initialization/app/run_20220728114300.go b/.history/initialization/app/run_20220728114300.go new file mode 100644 index 0000000..0b7cdd7 --- /dev/null +++ b/.history/initialization/app/run_20220728114300.go @@ -0,0 +1,26 @@ +package app + +import ( + "fmt" + "key_performance_indicators/initialization" + "key_performance_indicators/initialization/route" + "key_performance_indicators/overall" +) + +type server interface { + ListenAndServe() error +} + +//启动服务 +func RunItem() { + //加载基础配置 + // var appConfig configApp.Server + initialization.RunViper(&overall.CONSTANT_CONFIG) + // fmt.Printf("----------->%v", overall.CONSTANT_CONFIG) + routers := route.InitialRouter() + portStr := fmt.Sprintf(":%d", overall.CONSTANT_CONFIG.Appsetup.Port) + startUp := InitServer(portStr, routers) + fmt.Printf("\n\n默认API运行地址:http://127.0.0.1%s\n", portStr) + runErr := startUp.ListenAndServe().Error() + panic(fmt.Errorf(runErr)) +} diff --git a/.history/initialization/route/initRoute_20220727153717.go b/.history/initialization/route/initRoute_20220727153717.go new file mode 100644 index 0000000..8cfe284 --- /dev/null +++ b/.history/initialization/route/initRoute_20220727153717.go @@ -0,0 +1,59 @@ +package route + +import ( + "key_performance_indicators/apirouter" + "key_performance_indicators/identification/interceptor" + + "github.com/gin-gonic/gin" +) + +//初始化主路由 +func InitialRouter() *gin.Engine { + var router = gin.Default() + + //app默认相应 + appLoadRouterGroup := router.Group("") + { + + // 跨域设置 + // router.Use(middleware.CrossDomainRequest()) // 如需跨域可以打开 + //app默认相应 + appLoadRouterGroup.GET("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + appLoadRouterGroup.POST("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + //实验路由 + shiyanApi := apirouter.RouterGroupEntry.ShiyanApi + { + shiyanApi.RouterGroup(appLoadRouterGroup) + } + //OAuth 2.0 授权 + oAuthEmpowerApi := apirouter.RouterGroupEntry.EmpowerRouter + { + oAuthEmpowerApi.RouterGroup(appLoadRouterGroup) + } + //登录验证 + loginVerifyApi := apirouter.RouterGroupEntry.VerifyLogin + { + loginVerifyApi.RouterGroup(appLoadRouterGroup) + } + } + + //验证身份接口 + VerifyIdentity := router.Group("") + VerifyIdentity.Use(interceptor.AuthenticateUser()).Use(interceptor.VerifyUrl()) + { + //v1版本接口 + version1Api := apirouter.RouterGroupEntry.HonorsSouteRouter + version1Api.RouterGroup(VerifyIdentity) + } + //Token身份验证 + VerifyIdentityToken := router.Group("") + VerifyIdentityToken.Use(interceptor.IdentificationToken()) + { + + } + return router +} diff --git a/.history/initialization/route/initRoute_20220728100325.go b/.history/initialization/route/initRoute_20220728100325.go new file mode 100644 index 0000000..86090f2 --- /dev/null +++ b/.history/initialization/route/initRoute_20220728100325.go @@ -0,0 +1,60 @@ +package route + +import ( + "key_performance_indicators/apirouter" + "key_performance_indicators/identification/interceptor" + + "github.com/gin-gonic/gin" +) + +//初始化主路由 +func InitialRouter() *gin.Engine { + var router = gin.Default() + + //app默认相应 + appLoadRouterGroup := router.Group("") + { + + // 跨域设置 + // router.Use(middleware.CrossDomainRequest()) // 如需跨域可以打开 + //app默认相应 + appLoadRouterGroup.GET("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + appLoadRouterGroup.POST("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + //实验路由 + shiyanApi := apirouter.RouterGroupEntry.ShiyanApi + apirouter + { + shiyanApi.RouterGroup(appLoadRouterGroup) + } + //OAuth 2.0 授权 + oAuthEmpowerApi := apirouter.RouterGroupEntry.EmpowerRouter + { + oAuthEmpowerApi.RouterGroup(appLoadRouterGroup) + } + //登录验证 + loginVerifyApi := apirouter.RouterGroupEntry.VerifyLogin + { + loginVerifyApi.RouterGroup(appLoadRouterGroup) + } + } + + //验证身份接口 + VerifyIdentity := router.Group("") + VerifyIdentity.Use(interceptor.AuthenticateUser()).Use(interceptor.VerifyUrl()) + { + //v1版本接口 + version1Api := apirouter.RouterGroupEntry.HonorsSouteRouter + version1Api.RouterGroup(VerifyIdentity) + } + //Token身份验证 + VerifyIdentityToken := router.Group("") + VerifyIdentityToken.Use(interceptor.IdentificationToken()) + { + + } + return router +} diff --git a/.history/initialization/route/initRoute_20220728100326.go b/.history/initialization/route/initRoute_20220728100326.go new file mode 100644 index 0000000..a7e70dd --- /dev/null +++ b/.history/initialization/route/initRoute_20220728100326.go @@ -0,0 +1,60 @@ +package route + +import ( + "key_performance_indicators/apirouter" + "key_performance_indicators/identification/interceptor" + + "github.com/gin-gonic/gin" +) + +//初始化主路由 +func InitialRouter() *gin.Engine { + var router = gin.Default() + + //app默认相应 + appLoadRouterGroup := router.Group("") + { + + // 跨域设置 + // router.Use(middleware.CrossDomainRequest()) // 如需跨域可以打开 + //app默认相应 + appLoadRouterGroup.GET("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + appLoadRouterGroup.POST("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + //实验路由 + shiyanApi := apirouter.RouterGroupEntry.ShiyanApi + apirouter. + { + shiyanApi.RouterGroup(appLoadRouterGroup) + } + //OAuth 2.0 授权 + oAuthEmpowerApi := apirouter.RouterGroupEntry.EmpowerRouter + { + oAuthEmpowerApi.RouterGroup(appLoadRouterGroup) + } + //登录验证 + loginVerifyApi := apirouter.RouterGroupEntry.VerifyLogin + { + loginVerifyApi.RouterGroup(appLoadRouterGroup) + } + } + + //验证身份接口 + VerifyIdentity := router.Group("") + VerifyIdentity.Use(interceptor.AuthenticateUser()).Use(interceptor.VerifyUrl()) + { + //v1版本接口 + version1Api := apirouter.RouterGroupEntry.HonorsSouteRouter + version1Api.RouterGroup(VerifyIdentity) + } + //Token身份验证 + VerifyIdentityToken := router.Group("") + VerifyIdentityToken.Use(interceptor.IdentificationToken()) + { + + } + return router +} diff --git a/.history/initialization/route/initRoute_20220728100330.go b/.history/initialization/route/initRoute_20220728100330.go new file mode 100644 index 0000000..f1b4d5c --- /dev/null +++ b/.history/initialization/route/initRoute_20220728100330.go @@ -0,0 +1,60 @@ +package route + +import ( + "key_performance_indicators/apirouter" + "key_performance_indicators/identification/interceptor" + + "github.com/gin-gonic/gin" +) + +//初始化主路由 +func InitialRouter() *gin.Engine { + var router = gin.Default() + + //app默认相应 + appLoadRouterGroup := router.Group("") + { + + // 跨域设置 + // router.Use(middleware.CrossDomainRequest()) // 如需跨域可以打开 + //app默认相应 + appLoadRouterGroup.GET("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + appLoadRouterGroup.POST("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + //实验路由 + shiyanApi := apirouter.RouterGroupEntry.ShiyanApi + apirouter.r + { + shiyanApi.RouterGroup(appLoadRouterGroup) + } + //OAuth 2.0 授权 + oAuthEmpowerApi := apirouter.RouterGroupEntry.EmpowerRouter + { + oAuthEmpowerApi.RouterGroup(appLoadRouterGroup) + } + //登录验证 + loginVerifyApi := apirouter.RouterGroupEntry.VerifyLogin + { + loginVerifyApi.RouterGroup(appLoadRouterGroup) + } + } + + //验证身份接口 + VerifyIdentity := router.Group("") + VerifyIdentity.Use(interceptor.AuthenticateUser()).Use(interceptor.VerifyUrl()) + { + //v1版本接口 + version1Api := apirouter.RouterGroupEntry.HonorsSouteRouter + version1Api.RouterGroup(VerifyIdentity) + } + //Token身份验证 + VerifyIdentityToken := router.Group("") + VerifyIdentityToken.Use(interceptor.IdentificationToken()) + { + + } + return router +} diff --git a/.history/initialization/route/initRoute_20220728100331.go b/.history/initialization/route/initRoute_20220728100331.go new file mode 100644 index 0000000..a7e70dd --- /dev/null +++ b/.history/initialization/route/initRoute_20220728100331.go @@ -0,0 +1,60 @@ +package route + +import ( + "key_performance_indicators/apirouter" + "key_performance_indicators/identification/interceptor" + + "github.com/gin-gonic/gin" +) + +//初始化主路由 +func InitialRouter() *gin.Engine { + var router = gin.Default() + + //app默认相应 + appLoadRouterGroup := router.Group("") + { + + // 跨域设置 + // router.Use(middleware.CrossDomainRequest()) // 如需跨域可以打开 + //app默认相应 + appLoadRouterGroup.GET("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + appLoadRouterGroup.POST("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + //实验路由 + shiyanApi := apirouter.RouterGroupEntry.ShiyanApi + apirouter. + { + shiyanApi.RouterGroup(appLoadRouterGroup) + } + //OAuth 2.0 授权 + oAuthEmpowerApi := apirouter.RouterGroupEntry.EmpowerRouter + { + oAuthEmpowerApi.RouterGroup(appLoadRouterGroup) + } + //登录验证 + loginVerifyApi := apirouter.RouterGroupEntry.VerifyLogin + { + loginVerifyApi.RouterGroup(appLoadRouterGroup) + } + } + + //验证身份接口 + VerifyIdentity := router.Group("") + VerifyIdentity.Use(interceptor.AuthenticateUser()).Use(interceptor.VerifyUrl()) + { + //v1版本接口 + version1Api := apirouter.RouterGroupEntry.HonorsSouteRouter + version1Api.RouterGroup(VerifyIdentity) + } + //Token身份验证 + VerifyIdentityToken := router.Group("") + VerifyIdentityToken.Use(interceptor.IdentificationToken()) + { + + } + return router +} diff --git a/.history/initialization/route/initRoute_20220728100336.go b/.history/initialization/route/initRoute_20220728100336.go new file mode 100644 index 0000000..8cfe284 --- /dev/null +++ b/.history/initialization/route/initRoute_20220728100336.go @@ -0,0 +1,59 @@ +package route + +import ( + "key_performance_indicators/apirouter" + "key_performance_indicators/identification/interceptor" + + "github.com/gin-gonic/gin" +) + +//初始化主路由 +func InitialRouter() *gin.Engine { + var router = gin.Default() + + //app默认相应 + appLoadRouterGroup := router.Group("") + { + + // 跨域设置 + // router.Use(middleware.CrossDomainRequest()) // 如需跨域可以打开 + //app默认相应 + appLoadRouterGroup.GET("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + appLoadRouterGroup.POST("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + //实验路由 + shiyanApi := apirouter.RouterGroupEntry.ShiyanApi + { + shiyanApi.RouterGroup(appLoadRouterGroup) + } + //OAuth 2.0 授权 + oAuthEmpowerApi := apirouter.RouterGroupEntry.EmpowerRouter + { + oAuthEmpowerApi.RouterGroup(appLoadRouterGroup) + } + //登录验证 + loginVerifyApi := apirouter.RouterGroupEntry.VerifyLogin + { + loginVerifyApi.RouterGroup(appLoadRouterGroup) + } + } + + //验证身份接口 + VerifyIdentity := router.Group("") + VerifyIdentity.Use(interceptor.AuthenticateUser()).Use(interceptor.VerifyUrl()) + { + //v1版本接口 + version1Api := apirouter.RouterGroupEntry.HonorsSouteRouter + version1Api.RouterGroup(VerifyIdentity) + } + //Token身份验证 + VerifyIdentityToken := router.Group("") + VerifyIdentityToken.Use(interceptor.IdentificationToken()) + { + + } + return router +} diff --git a/.history/initialization/route/initRoute_20220728101939.go b/.history/initialization/route/initRoute_20220728101939.go new file mode 100644 index 0000000..8f28d61 --- /dev/null +++ b/.history/initialization/route/initRoute_20220728101939.go @@ -0,0 +1,60 @@ +package route + +import ( + "key_performance_indicators/apirouter" + "key_performance_indicators/identification/interceptor" + + "github.com/gin-gonic/gin" +) + +//初始化主路由 +func InitialRouter() *gin.Engine { + var router = gin.Default() + + //app默认相应 + appLoadRouterGroup := router.Group("") + { + + // 跨域设置 + // router.Use(middleware.CrossDomainRequest()) // 如需跨域可以打开 + //app默认相应 + appLoadRouterGroup.GET("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + appLoadRouterGroup.POST("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + //实验路由 + shiyanApi := apirouter.RouterGroupEntry.ShiyanApi + api + { + shiyanApi.RouterGroup(appLoadRouterGroup) + } + //OAuth 2.0 授权 + oAuthEmpowerApi := apirouter.RouterGroupEntry.EmpowerRouter + { + oAuthEmpowerApi.RouterGroup(appLoadRouterGroup) + } + //登录验证 + loginVerifyApi := apirouter.RouterGroupEntry.VerifyLogin + { + loginVerifyApi.RouterGroup(appLoadRouterGroup) + } + } + + //验证身份接口 + VerifyIdentity := router.Group("") + VerifyIdentity.Use(interceptor.AuthenticateUser()).Use(interceptor.VerifyUrl()) + { + //v1版本接口 + version1Api := apirouter.RouterGroupEntry.HonorsSouteRouter + version1Api.RouterGroup(VerifyIdentity) + } + //Token身份验证 + VerifyIdentityToken := router.Group("") + VerifyIdentityToken.Use(interceptor.IdentificationToken()) + { + + } + return router +} diff --git a/.history/initialization/route/initRoute_20220728101941.go b/.history/initialization/route/initRoute_20220728101941.go new file mode 100644 index 0000000..a7e70dd --- /dev/null +++ b/.history/initialization/route/initRoute_20220728101941.go @@ -0,0 +1,60 @@ +package route + +import ( + "key_performance_indicators/apirouter" + "key_performance_indicators/identification/interceptor" + + "github.com/gin-gonic/gin" +) + +//初始化主路由 +func InitialRouter() *gin.Engine { + var router = gin.Default() + + //app默认相应 + appLoadRouterGroup := router.Group("") + { + + // 跨域设置 + // router.Use(middleware.CrossDomainRequest()) // 如需跨域可以打开 + //app默认相应 + appLoadRouterGroup.GET("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + appLoadRouterGroup.POST("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + //实验路由 + shiyanApi := apirouter.RouterGroupEntry.ShiyanApi + apirouter. + { + shiyanApi.RouterGroup(appLoadRouterGroup) + } + //OAuth 2.0 授权 + oAuthEmpowerApi := apirouter.RouterGroupEntry.EmpowerRouter + { + oAuthEmpowerApi.RouterGroup(appLoadRouterGroup) + } + //登录验证 + loginVerifyApi := apirouter.RouterGroupEntry.VerifyLogin + { + loginVerifyApi.RouterGroup(appLoadRouterGroup) + } + } + + //验证身份接口 + VerifyIdentity := router.Group("") + VerifyIdentity.Use(interceptor.AuthenticateUser()).Use(interceptor.VerifyUrl()) + { + //v1版本接口 + version1Api := apirouter.RouterGroupEntry.HonorsSouteRouter + version1Api.RouterGroup(VerifyIdentity) + } + //Token身份验证 + VerifyIdentityToken := router.Group("") + VerifyIdentityToken.Use(interceptor.IdentificationToken()) + { + + } + return router +} diff --git a/.history/initialization/route/initRoute_20220728101942.go b/.history/initialization/route/initRoute_20220728101942.go new file mode 100644 index 0000000..13fcbdd --- /dev/null +++ b/.history/initialization/route/initRoute_20220728101942.go @@ -0,0 +1,60 @@ +package route + +import ( + "key_performance_indicators/apirouter" + "key_performance_indicators/identification/interceptor" + + "github.com/gin-gonic/gin" +) + +//初始化主路由 +func InitialRouter() *gin.Engine { + var router = gin.Default() + + //app默认相应 + appLoadRouterGroup := router.Group("") + { + + // 跨域设置 + // router.Use(middleware.CrossDomainRequest()) // 如需跨域可以打开 + //app默认相应 + appLoadRouterGroup.GET("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + appLoadRouterGroup.POST("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + //实验路由 + shiyanApi := apirouter.RouterGroupEntry.ShiyanApi + apirouter.RouterGroup + { + shiyanApi.RouterGroup(appLoadRouterGroup) + } + //OAuth 2.0 授权 + oAuthEmpowerApi := apirouter.RouterGroupEntry.EmpowerRouter + { + oAuthEmpowerApi.RouterGroup(appLoadRouterGroup) + } + //登录验证 + loginVerifyApi := apirouter.RouterGroupEntry.VerifyLogin + { + loginVerifyApi.RouterGroup(appLoadRouterGroup) + } + } + + //验证身份接口 + VerifyIdentity := router.Group("") + VerifyIdentity.Use(interceptor.AuthenticateUser()).Use(interceptor.VerifyUrl()) + { + //v1版本接口 + version1Api := apirouter.RouterGroupEntry.HonorsSouteRouter + version1Api.RouterGroup(VerifyIdentity) + } + //Token身份验证 + VerifyIdentityToken := router.Group("") + VerifyIdentityToken.Use(interceptor.IdentificationToken()) + { + + } + return router +} diff --git a/.history/initialization/route/initRoute_20220728101945.go b/.history/initialization/route/initRoute_20220728101945.go new file mode 100644 index 0000000..d7df77a --- /dev/null +++ b/.history/initialization/route/initRoute_20220728101945.go @@ -0,0 +1,60 @@ +package route + +import ( + "key_performance_indicators/apirouter" + "key_performance_indicators/identification/interceptor" + + "github.com/gin-gonic/gin" +) + +//初始化主路由 +func InitialRouter() *gin.Engine { + var router = gin.Default() + + //app默认相应 + appLoadRouterGroup := router.Group("") + { + + // 跨域设置 + // router.Use(middleware.CrossDomainRequest()) // 如需跨域可以打开 + //app默认相应 + appLoadRouterGroup.GET("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + appLoadRouterGroup.POST("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + //实验路由 + shiyanApi := apirouter.RouterGroupEntry.ShiyanApi + apirouter.RouterGroupEntry.shi + { + shiyanApi.RouterGroup(appLoadRouterGroup) + } + //OAuth 2.0 授权 + oAuthEmpowerApi := apirouter.RouterGroupEntry.EmpowerRouter + { + oAuthEmpowerApi.RouterGroup(appLoadRouterGroup) + } + //登录验证 + loginVerifyApi := apirouter.RouterGroupEntry.VerifyLogin + { + loginVerifyApi.RouterGroup(appLoadRouterGroup) + } + } + + //验证身份接口 + VerifyIdentity := router.Group("") + VerifyIdentity.Use(interceptor.AuthenticateUser()).Use(interceptor.VerifyUrl()) + { + //v1版本接口 + version1Api := apirouter.RouterGroupEntry.HonorsSouteRouter + version1Api.RouterGroup(VerifyIdentity) + } + //Token身份验证 + VerifyIdentityToken := router.Group("") + VerifyIdentityToken.Use(interceptor.IdentificationToken()) + { + + } + return router +} diff --git a/.history/initialization/route/initRoute_20220728101948.go b/.history/initialization/route/initRoute_20220728101948.go new file mode 100644 index 0000000..e2e19f6 --- /dev/null +++ b/.history/initialization/route/initRoute_20220728101948.go @@ -0,0 +1,60 @@ +package route + +import ( + "key_performance_indicators/apirouter" + "key_performance_indicators/identification/interceptor" + + "github.com/gin-gonic/gin" +) + +//初始化主路由 +func InitialRouter() *gin.Engine { + var router = gin.Default() + + //app默认相应 + appLoadRouterGroup := router.Group("") + { + + // 跨域设置 + // router.Use(middleware.CrossDomainRequest()) // 如需跨域可以打开 + //app默认相应 + appLoadRouterGroup.GET("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + appLoadRouterGroup.POST("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + //实验路由 + shiyanApi := apirouter.RouterGroupEntry.ShiyanApi + apirouter.RouterGroupEntry.ShiyanApi + { + shiyanApi.RouterGroup(appLoadRouterGroup) + } + //OAuth 2.0 授权 + oAuthEmpowerApi := apirouter.RouterGroupEntry.EmpowerRouter + { + oAuthEmpowerApi.RouterGroup(appLoadRouterGroup) + } + //登录验证 + loginVerifyApi := apirouter.RouterGroupEntry.VerifyLogin + { + loginVerifyApi.RouterGroup(appLoadRouterGroup) + } + } + + //验证身份接口 + VerifyIdentity := router.Group("") + VerifyIdentity.Use(interceptor.AuthenticateUser()).Use(interceptor.VerifyUrl()) + { + //v1版本接口 + version1Api := apirouter.RouterGroupEntry.HonorsSouteRouter + version1Api.RouterGroup(VerifyIdentity) + } + //Token身份验证 + VerifyIdentityToken := router.Group("") + VerifyIdentityToken.Use(interceptor.IdentificationToken()) + { + + } + return router +} diff --git a/.history/initialization/route/initRoute_20220728101952.go b/.history/initialization/route/initRoute_20220728101952.go new file mode 100644 index 0000000..8ff7e27 --- /dev/null +++ b/.history/initialization/route/initRoute_20220728101952.go @@ -0,0 +1,60 @@ +package route + +import ( + "key_performance_indicators/apirouter" + "key_performance_indicators/identification/interceptor" + + "github.com/gin-gonic/gin" +) + +//初始化主路由 +func InitialRouter() *gin.Engine { + var router = gin.Default() + + //app默认相应 + appLoadRouterGroup := router.Group("") + { + + // 跨域设置 + // router.Use(middleware.CrossDomainRequest()) // 如需跨域可以打开 + //app默认相应 + appLoadRouterGroup.GET("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + appLoadRouterGroup.POST("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + //实验路由 + shiyanApi := apirouter.RouterGroupEntry.ShiyanApi + apirouter.RouterGroupEntry.ShiyanApi. + { + shiyanApi.RouterGroup(appLoadRouterGroup) + } + //OAuth 2.0 授权 + oAuthEmpowerApi := apirouter.RouterGroupEntry.EmpowerRouter + { + oAuthEmpowerApi.RouterGroup(appLoadRouterGroup) + } + //登录验证 + loginVerifyApi := apirouter.RouterGroupEntry.VerifyLogin + { + loginVerifyApi.RouterGroup(appLoadRouterGroup) + } + } + + //验证身份接口 + VerifyIdentity := router.Group("") + VerifyIdentity.Use(interceptor.AuthenticateUser()).Use(interceptor.VerifyUrl()) + { + //v1版本接口 + version1Api := apirouter.RouterGroupEntry.HonorsSouteRouter + version1Api.RouterGroup(VerifyIdentity) + } + //Token身份验证 + VerifyIdentityToken := router.Group("") + VerifyIdentityToken.Use(interceptor.IdentificationToken()) + { + + } + return router +} diff --git a/.history/initialization/route/initRoute_20220728101956.go b/.history/initialization/route/initRoute_20220728101956.go new file mode 100644 index 0000000..2ba7214 --- /dev/null +++ b/.history/initialization/route/initRoute_20220728101956.go @@ -0,0 +1,60 @@ +package route + +import ( + "key_performance_indicators/apirouter" + "key_performance_indicators/identification/interceptor" + + "github.com/gin-gonic/gin" +) + +//初始化主路由 +func InitialRouter() *gin.Engine { + var router = gin.Default() + + //app默认相应 + appLoadRouterGroup := router.Group("") + { + + // 跨域设置 + // router.Use(middleware.CrossDomainRequest()) // 如需跨域可以打开 + //app默认相应 + appLoadRouterGroup.GET("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + appLoadRouterGroup.POST("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + //实验路由 + shiyanApi := apirouter.RouterGroupEntry.ShiyanApi + apirouter.RouterGroupEntry.ShiyanApi.RouterGroup() + { + shiyanApi.RouterGroup(appLoadRouterGroup) + } + //OAuth 2.0 授权 + oAuthEmpowerApi := apirouter.RouterGroupEntry.EmpowerRouter + { + oAuthEmpowerApi.RouterGroup(appLoadRouterGroup) + } + //登录验证 + loginVerifyApi := apirouter.RouterGroupEntry.VerifyLogin + { + loginVerifyApi.RouterGroup(appLoadRouterGroup) + } + } + + //验证身份接口 + VerifyIdentity := router.Group("") + VerifyIdentity.Use(interceptor.AuthenticateUser()).Use(interceptor.VerifyUrl()) + { + //v1版本接口 + version1Api := apirouter.RouterGroupEntry.HonorsSouteRouter + version1Api.RouterGroup(VerifyIdentity) + } + //Token身份验证 + VerifyIdentityToken := router.Group("") + VerifyIdentityToken.Use(interceptor.IdentificationToken()) + { + + } + return router +} diff --git a/.history/initialization/route/initRoute_20220728102000.go b/.history/initialization/route/initRoute_20220728102000.go new file mode 100644 index 0000000..8cfe284 --- /dev/null +++ b/.history/initialization/route/initRoute_20220728102000.go @@ -0,0 +1,59 @@ +package route + +import ( + "key_performance_indicators/apirouter" + "key_performance_indicators/identification/interceptor" + + "github.com/gin-gonic/gin" +) + +//初始化主路由 +func InitialRouter() *gin.Engine { + var router = gin.Default() + + //app默认相应 + appLoadRouterGroup := router.Group("") + { + + // 跨域设置 + // router.Use(middleware.CrossDomainRequest()) // 如需跨域可以打开 + //app默认相应 + appLoadRouterGroup.GET("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + appLoadRouterGroup.POST("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + //实验路由 + shiyanApi := apirouter.RouterGroupEntry.ShiyanApi + { + shiyanApi.RouterGroup(appLoadRouterGroup) + } + //OAuth 2.0 授权 + oAuthEmpowerApi := apirouter.RouterGroupEntry.EmpowerRouter + { + oAuthEmpowerApi.RouterGroup(appLoadRouterGroup) + } + //登录验证 + loginVerifyApi := apirouter.RouterGroupEntry.VerifyLogin + { + loginVerifyApi.RouterGroup(appLoadRouterGroup) + } + } + + //验证身份接口 + VerifyIdentity := router.Group("") + VerifyIdentity.Use(interceptor.AuthenticateUser()).Use(interceptor.VerifyUrl()) + { + //v1版本接口 + version1Api := apirouter.RouterGroupEntry.HonorsSouteRouter + version1Api.RouterGroup(VerifyIdentity) + } + //Token身份验证 + VerifyIdentityToken := router.Group("") + VerifyIdentityToken.Use(interceptor.IdentificationToken()) + { + + } + return router +} diff --git a/.history/initialization/route/initRoute_20220728102704.go b/.history/initialization/route/initRoute_20220728102704.go new file mode 100644 index 0000000..8e7409d --- /dev/null +++ b/.history/initialization/route/initRoute_20220728102704.go @@ -0,0 +1,60 @@ +package route + +import ( + "key_performance_indicators/apirouter" + "key_performance_indicators/identification/interceptor" + + "github.com/gin-gonic/gin" +) + +//初始化主路由 +func InitialRouter() *gin.Engine { + var router = gin.Default() + + //app默认相应 + appLoadRouterGroup := router.Group("") + { + + // 跨域设置 + // router.Use(middleware.CrossDomainRequest()) // 如需跨域可以打开 + //app默认相应 + appLoadRouterGroup.GET("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + appLoadRouterGroup.POST("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + //实验路由 + api. + shiyanApi := apirouter.RouterGroupEntry.ShiyanApi + { + shiyanApi.RouterGroup(appLoadRouterGroup) + } + //OAuth 2.0 授权 + oAuthEmpowerApi := apirouter.RouterGroupEntry.EmpowerRouter + { + oAuthEmpowerApi.RouterGroup(appLoadRouterGroup) + } + //登录验证 + loginVerifyApi := apirouter.RouterGroupEntry.VerifyLogin + { + loginVerifyApi.RouterGroup(appLoadRouterGroup) + } + } + + //验证身份接口 + VerifyIdentity := router.Group("") + VerifyIdentity.Use(interceptor.AuthenticateUser()).Use(interceptor.VerifyUrl()) + { + //v1版本接口 + version1Api := apirouter.RouterGroupEntry.HonorsSouteRouter + version1Api.RouterGroup(VerifyIdentity) + } + //Token身份验证 + VerifyIdentityToken := router.Group("") + VerifyIdentityToken.Use(interceptor.IdentificationToken()) + { + + } + return router +} diff --git a/.history/initialization/route/initRoute_20220728102708.go b/.history/initialization/route/initRoute_20220728102708.go new file mode 100644 index 0000000..55438e0 --- /dev/null +++ b/.history/initialization/route/initRoute_20220728102708.go @@ -0,0 +1,61 @@ +package route + +import ( + "key_performance_indicators/apirouter" + "key_performance_indicators/identification/interceptor" + + "github.com/flipped-aurora/gin-vue-admin/server/plugin/email/api" + "github.com/gin-gonic/gin" +) + +//初始化主路由 +func InitialRouter() *gin.Engine { + var router = gin.Default() + + //app默认相应 + appLoadRouterGroup := router.Group("") + { + + // 跨域设置 + // router.Use(middleware.CrossDomainRequest()) // 如需跨域可以打开 + //app默认相应 + appLoadRouterGroup.GET("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + appLoadRouterGroup.POST("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + //实验路由 + api.ApiGroup + shiyanApi := apirouter.RouterGroupEntry.ShiyanApi + { + shiyanApi.RouterGroup(appLoadRouterGroup) + } + //OAuth 2.0 授权 + oAuthEmpowerApi := apirouter.RouterGroupEntry.EmpowerRouter + { + oAuthEmpowerApi.RouterGroup(appLoadRouterGroup) + } + //登录验证 + loginVerifyApi := apirouter.RouterGroupEntry.VerifyLogin + { + loginVerifyApi.RouterGroup(appLoadRouterGroup) + } + } + + //验证身份接口 + VerifyIdentity := router.Group("") + VerifyIdentity.Use(interceptor.AuthenticateUser()).Use(interceptor.VerifyUrl()) + { + //v1版本接口 + version1Api := apirouter.RouterGroupEntry.HonorsSouteRouter + version1Api.RouterGroup(VerifyIdentity) + } + //Token身份验证 + VerifyIdentityToken := router.Group("") + VerifyIdentityToken.Use(interceptor.IdentificationToken()) + { + + } + return router +} diff --git a/.history/initialization/route/initRoute_20220728102712.go b/.history/initialization/route/initRoute_20220728102712.go new file mode 100644 index 0000000..73fdd3a --- /dev/null +++ b/.history/initialization/route/initRoute_20220728102712.go @@ -0,0 +1,61 @@ +package route + +import ( + "key_performance_indicators/apirouter" + "key_performance_indicators/identification/interceptor" + + "github.com/flipped-aurora/gin-vue-admin/server/plugin/email/api" + "github.com/gin-gonic/gin" +) + +//初始化主路由 +func InitialRouter() *gin.Engine { + var router = gin.Default() + + //app默认相应 + appLoadRouterGroup := router.Group("") + { + + // 跨域设置 + // router.Use(middleware.CrossDomainRequest()) // 如需跨域可以打开 + //app默认相应 + appLoadRouterGroup.GET("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + appLoadRouterGroup.POST("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + //实验路由 + apirouter. + shiyanApi := apirouter.RouterGroupEntry.ShiyanApi + { + shiyanApi.RouterGroup(appLoadRouterGroup) + } + //OAuth 2.0 授权 + oAuthEmpowerApi := apirouter.RouterGroupEntry.EmpowerRouter + { + oAuthEmpowerApi.RouterGroup(appLoadRouterGroup) + } + //登录验证 + loginVerifyApi := apirouter.RouterGroupEntry.VerifyLogin + { + loginVerifyApi.RouterGroup(appLoadRouterGroup) + } + } + + //验证身份接口 + VerifyIdentity := router.Group("") + VerifyIdentity.Use(interceptor.AuthenticateUser()).Use(interceptor.VerifyUrl()) + { + //v1版本接口 + version1Api := apirouter.RouterGroupEntry.HonorsSouteRouter + version1Api.RouterGroup(VerifyIdentity) + } + //Token身份验证 + VerifyIdentityToken := router.Group("") + VerifyIdentityToken.Use(interceptor.IdentificationToken()) + { + + } + return router +} diff --git a/.history/initialization/route/initRoute_20220728102715.go b/.history/initialization/route/initRoute_20220728102715.go new file mode 100644 index 0000000..38f9425 --- /dev/null +++ b/.history/initialization/route/initRoute_20220728102715.go @@ -0,0 +1,61 @@ +package route + +import ( + "key_performance_indicators/apirouter" + "key_performance_indicators/identification/interceptor" + + "github.com/flipped-aurora/gin-vue-admin/server/plugin/email/api" + "github.com/gin-gonic/gin" +) + +//初始化主路由 +func InitialRouter() *gin.Engine { + var router = gin.Default() + + //app默认相应 + appLoadRouterGroup := router.Group("") + { + + // 跨域设置 + // router.Use(middleware.CrossDomainRequest()) // 如需跨域可以打开 + //app默认相应 + appLoadRouterGroup.GET("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + appLoadRouterGroup.POST("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + //实验路由 + apirouter.RouterGroupEntry. + shiyanApi := apirouter.RouterGroupEntry.ShiyanApi + { + shiyanApi.RouterGroup(appLoadRouterGroup) + } + //OAuth 2.0 授权 + oAuthEmpowerApi := apirouter.RouterGroupEntry.EmpowerRouter + { + oAuthEmpowerApi.RouterGroup(appLoadRouterGroup) + } + //登录验证 + loginVerifyApi := apirouter.RouterGroupEntry.VerifyLogin + { + loginVerifyApi.RouterGroup(appLoadRouterGroup) + } + } + + //验证身份接口 + VerifyIdentity := router.Group("") + VerifyIdentity.Use(interceptor.AuthenticateUser()).Use(interceptor.VerifyUrl()) + { + //v1版本接口 + version1Api := apirouter.RouterGroupEntry.HonorsSouteRouter + version1Api.RouterGroup(VerifyIdentity) + } + //Token身份验证 + VerifyIdentityToken := router.Group("") + VerifyIdentityToken.Use(interceptor.IdentificationToken()) + { + + } + return router +} diff --git a/.history/initialization/route/initRoute_20220728102719.go b/.history/initialization/route/initRoute_20220728102719.go new file mode 100644 index 0000000..9910cd9 --- /dev/null +++ b/.history/initialization/route/initRoute_20220728102719.go @@ -0,0 +1,61 @@ +package route + +import ( + "key_performance_indicators/apirouter" + "key_performance_indicators/identification/interceptor" + + "github.com/flipped-aurora/gin-vue-admin/server/plugin/email/api" + "github.com/gin-gonic/gin" +) + +//初始化主路由 +func InitialRouter() *gin.Engine { + var router = gin.Default() + + //app默认相应 + appLoadRouterGroup := router.Group("") + { + + // 跨域设置 + // router.Use(middleware.CrossDomainRequest()) // 如需跨域可以打开 + //app默认相应 + appLoadRouterGroup.GET("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + appLoadRouterGroup.POST("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + //实验路由 + + shiyanApi := apirouter.RouterGroupEntry.ShiyanApi + { + shiyanApi.RouterGroup(appLoadRouterGroup) + } + //OAuth 2.0 授权 + oAuthEmpowerApi := apirouter.RouterGroupEntry.EmpowerRouter + { + oAuthEmpowerApi.RouterGroup(appLoadRouterGroup) + } + //登录验证 + loginVerifyApi := apirouter.RouterGroupEntry.VerifyLogin + { + loginVerifyApi.RouterGroup(appLoadRouterGroup) + } + } + + //验证身份接口 + VerifyIdentity := router.Group("") + VerifyIdentity.Use(interceptor.AuthenticateUser()).Use(interceptor.VerifyUrl()) + { + //v1版本接口 + version1Api := apirouter.RouterGroupEntry.HonorsSouteRouter + version1Api.RouterGroup(VerifyIdentity) + } + //Token身份验证 + VerifyIdentityToken := router.Group("") + VerifyIdentityToken.Use(interceptor.IdentificationToken()) + { + + } + return router +} diff --git a/.history/initialization/route/initRoute_20220728102725.go b/.history/initialization/route/initRoute_20220728102725.go new file mode 100644 index 0000000..c6e9efd --- /dev/null +++ b/.history/initialization/route/initRoute_20220728102725.go @@ -0,0 +1,61 @@ +package route + +import ( + "key_performance_indicators/apirouter" + "key_performance_indicators/identification/interceptor" + + "github.com/flipped-aurora/gin-vue-admin/server/plugin/email/api" + "github.com/gin-gonic/gin" +) + +//初始化主路由 +func InitialRouter() *gin.Engine { + var router = gin.Default() + + //app默认相应 + appLoadRouterGroup := router.Group("") + { + + // 跨域设置 + // router.Use(middleware.CrossDomainRequest()) // 如需跨域可以打开 + //app默认相应 + appLoadRouterGroup.GET("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + appLoadRouterGroup.POST("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + //实验路由 + api + shiyanApi := apirouter.RouterGroupEntry.ShiyanApi + { + shiyanApi.RouterGroup(appLoadRouterGroup) + } + //OAuth 2.0 授权 + oAuthEmpowerApi := apirouter.RouterGroupEntry.EmpowerRouter + { + oAuthEmpowerApi.RouterGroup(appLoadRouterGroup) + } + //登录验证 + loginVerifyApi := apirouter.RouterGroupEntry.VerifyLogin + { + loginVerifyApi.RouterGroup(appLoadRouterGroup) + } + } + + //验证身份接口 + VerifyIdentity := router.Group("") + VerifyIdentity.Use(interceptor.AuthenticateUser()).Use(interceptor.VerifyUrl()) + { + //v1版本接口 + version1Api := apirouter.RouterGroupEntry.HonorsSouteRouter + version1Api.RouterGroup(VerifyIdentity) + } + //Token身份验证 + VerifyIdentityToken := router.Group("") + VerifyIdentityToken.Use(interceptor.IdentificationToken()) + { + + } + return router +} diff --git a/.history/initialization/route/initRoute_20220728102727.go b/.history/initialization/route/initRoute_20220728102727.go new file mode 100644 index 0000000..5131755 --- /dev/null +++ b/.history/initialization/route/initRoute_20220728102727.go @@ -0,0 +1,60 @@ +package route + +import ( + "key_performance_indicators/apirouter" + "key_performance_indicators/identification/interceptor" + + "github.com/gin-gonic/gin" +) + +//初始化主路由 +func InitialRouter() *gin.Engine { + var router = gin.Default() + + //app默认相应 + appLoadRouterGroup := router.Group("") + { + + // 跨域设置 + // router.Use(middleware.CrossDomainRequest()) // 如需跨域可以打开 + //app默认相应 + appLoadRouterGroup.GET("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + appLoadRouterGroup.POST("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + //实验路由 + + shiyanApi := apirouter.RouterGroupEntry.ShiyanApi + { + shiyanApi.RouterGroup(appLoadRouterGroup) + } + //OAuth 2.0 授权 + oAuthEmpowerApi := apirouter.RouterGroupEntry.EmpowerRouter + { + oAuthEmpowerApi.RouterGroup(appLoadRouterGroup) + } + //登录验证 + loginVerifyApi := apirouter.RouterGroupEntry.VerifyLogin + { + loginVerifyApi.RouterGroup(appLoadRouterGroup) + } + } + + //验证身份接口 + VerifyIdentity := router.Group("") + VerifyIdentity.Use(interceptor.AuthenticateUser()).Use(interceptor.VerifyUrl()) + { + //v1版本接口 + version1Api := apirouter.RouterGroupEntry.HonorsSouteRouter + version1Api.RouterGroup(VerifyIdentity) + } + //Token身份验证 + VerifyIdentityToken := router.Group("") + VerifyIdentityToken.Use(interceptor.IdentificationToken()) + { + + } + return router +} diff --git a/.history/initialization/route/initRoute_20220728103308.go b/.history/initialization/route/initRoute_20220728103308.go new file mode 100644 index 0000000..5131755 --- /dev/null +++ b/.history/initialization/route/initRoute_20220728103308.go @@ -0,0 +1,60 @@ +package route + +import ( + "key_performance_indicators/apirouter" + "key_performance_indicators/identification/interceptor" + + "github.com/gin-gonic/gin" +) + +//初始化主路由 +func InitialRouter() *gin.Engine { + var router = gin.Default() + + //app默认相应 + appLoadRouterGroup := router.Group("") + { + + // 跨域设置 + // router.Use(middleware.CrossDomainRequest()) // 如需跨域可以打开 + //app默认相应 + appLoadRouterGroup.GET("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + appLoadRouterGroup.POST("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + //实验路由 + + shiyanApi := apirouter.RouterGroupEntry.ShiyanApi + { + shiyanApi.RouterGroup(appLoadRouterGroup) + } + //OAuth 2.0 授权 + oAuthEmpowerApi := apirouter.RouterGroupEntry.EmpowerRouter + { + oAuthEmpowerApi.RouterGroup(appLoadRouterGroup) + } + //登录验证 + loginVerifyApi := apirouter.RouterGroupEntry.VerifyLogin + { + loginVerifyApi.RouterGroup(appLoadRouterGroup) + } + } + + //验证身份接口 + VerifyIdentity := router.Group("") + VerifyIdentity.Use(interceptor.AuthenticateUser()).Use(interceptor.VerifyUrl()) + { + //v1版本接口 + version1Api := apirouter.RouterGroupEntry.HonorsSouteRouter + version1Api.RouterGroup(VerifyIdentity) + } + //Token身份验证 + VerifyIdentityToken := router.Group("") + VerifyIdentityToken.Use(interceptor.IdentificationToken()) + { + + } + return router +} diff --git a/.history/initialization/route/initRoute_20220728132817.go b/.history/initialization/route/initRoute_20220728132817.go new file mode 100644 index 0000000..56d7e6f --- /dev/null +++ b/.history/initialization/route/initRoute_20220728132817.go @@ -0,0 +1,61 @@ +package route + +import ( + "key_performance_indicators/apirouter" + "key_performance_indicators/identification/interceptor" + + "github.com/gin-gonic/gin" +) + +//初始化主路由 +func InitialRouter() *gin.Engine { + var router = gin.Default() + + //app默认相应 + appLoadRouterGroup := router.Group("") + { + + // 跨域设置 + // router.Use(middleware.CrossDomainRequest()) // 如需跨域可以打开 + //app默认相应 + appLoadRouterGroup.GET("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + appLoadRouterGroup.POST("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + //实验路由 + + shiyanApi := apirouter.RouterGroupEntry.ShiyanApi + { + shiyanApi.RouterGroup(appLoadRouterGroup) + } + //OAuth 2.0 授权 + oAuthEmpowerApi := apirouter.RouterGroupEntry.EmpowerRouter + { + oAuthEmpowerApi.RouterGroup(appLoadRouterGroup) + } + //登录验证 + loginVerifyApi := apirouter.RouterGroupEntry.VerifyLogin + { + loginVerifyApi.RouterGroup(appLoadRouterGroup) + } + + } + + //验证身份接口 + VerifyIdentity := router.Group("") + VerifyIdentity.Use(interceptor.AuthenticateUser()).Use(interceptor.VerifyUrl()) + { + //v1版本接口 + version1Api := apirouter.RouterGroupEntry.HonorsSouteRouter + version1Api.RouterGroup(VerifyIdentity) + } + //Token身份验证 + VerifyIdentityToken := router.Group("") + VerifyIdentityToken.Use(interceptor.IdentificationToken()) + { + + } + return router +} diff --git a/.history/initialization/route/initRoute_20220728133859.go b/.history/initialization/route/initRoute_20220728133859.go new file mode 100644 index 0000000..df8cf8c --- /dev/null +++ b/.history/initialization/route/initRoute_20220728133859.go @@ -0,0 +1,63 @@ +package route + +import ( + "key_performance_indicators/apirouter" + "key_performance_indicators/identification/interceptor" + + "github.com/gin-gonic/gin" +) + +//初始化主路由 +func InitialRouter() *gin.Engine { + var router = gin.Default() + + //app默认相应 + appLoadRouterGroup := router.Group("") + { + + // 跨域设置 + // router.Use(middleware.CrossDomainRequest()) // 如需跨域可以打开 + //app默认相应 + appLoadRouterGroup.GET("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + appLoadRouterGroup.POST("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + //实验路由 + + shiyanApi := apirouter.RouterGroupEntry.ShiyanApi + { + shiyanApi.RouterGroup(appLoadRouterGroup) + } + //OAuth 2.0 授权 + oAuthEmpowerApi := apirouter.RouterGroupEntry.EmpowerRouter + { + oAuthEmpowerApi.RouterGroup(appLoadRouterGroup) + } + //登录验证 + loginVerifyApi := apirouter.RouterGroupEntry.VerifyLogin + { + loginVerifyApi.RouterGroup(appLoadRouterGroup) + } + + // 自定义测试 + + } + + //验证身份接口 + VerifyIdentity := router.Group("") + VerifyIdentity.Use(interceptor.AuthenticateUser()).Use(interceptor.VerifyUrl()) + { + //v1版本接口 + version1Api := apirouter.RouterGroupEntry.HonorsSouteRouter + version1Api.RouterGroup(VerifyIdentity) + } + //Token身份验证 + VerifyIdentityToken := router.Group("") + VerifyIdentityToken.Use(interceptor.IdentificationToken()) + { + + } + return router +} diff --git a/.history/initialization/route/initRoute_20220728133901.go b/.history/initialization/route/initRoute_20220728133901.go new file mode 100644 index 0000000..ad2e661 --- /dev/null +++ b/.history/initialization/route/initRoute_20220728133901.go @@ -0,0 +1,63 @@ +package route + +import ( + "key_performance_indicators/apirouter" + "key_performance_indicators/identification/interceptor" + + "github.com/gin-gonic/gin" +) + +//初始化主路由 +func InitialRouter() *gin.Engine { + var router = gin.Default() + + //app默认相应 + appLoadRouterGroup := router.Group("") + { + + // 跨域设置 + // router.Use(middleware.CrossDomainRequest()) // 如需跨域可以打开 + //app默认相应 + appLoadRouterGroup.GET("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + appLoadRouterGroup.POST("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + //实验路由 + + shiyanApi := apirouter.RouterGroupEntry.ShiyanApi + { + shiyanApi.RouterGroup(appLoadRouterGroup) + } + //OAuth 2.0 授权 + oAuthEmpowerApi := apirouter.RouterGroupEntry.EmpowerRouter + { + oAuthEmpowerApi.RouterGroup(appLoadRouterGroup) + } + //登录验证 + loginVerifyApi := apirouter.RouterGroupEntry.VerifyLogin + { + loginVerifyApi.RouterGroup(appLoadRouterGroup) + } + + // 自定义测试 + my + } + + //验证身份接口 + VerifyIdentity := router.Group("") + VerifyIdentity.Use(interceptor.AuthenticateUser()).Use(interceptor.VerifyUrl()) + { + //v1版本接口 + version1Api := apirouter.RouterGroupEntry.HonorsSouteRouter + version1Api.RouterGroup(VerifyIdentity) + } + //Token身份验证 + VerifyIdentityToken := router.Group("") + VerifyIdentityToken.Use(interceptor.IdentificationToken()) + { + + } + return router +} diff --git a/.history/initialization/route/initRoute_20220728133902.go b/.history/initialization/route/initRoute_20220728133902.go new file mode 100644 index 0000000..6d0d075 --- /dev/null +++ b/.history/initialization/route/initRoute_20220728133902.go @@ -0,0 +1,64 @@ +package route + +import ( + mytest "key_performance_indicators/api/myTest" + "key_performance_indicators/apirouter" + "key_performance_indicators/identification/interceptor" + + "github.com/gin-gonic/gin" +) + +//初始化主路由 +func InitialRouter() *gin.Engine { + var router = gin.Default() + + //app默认相应 + appLoadRouterGroup := router.Group("") + { + + // 跨域设置 + // router.Use(middleware.CrossDomainRequest()) // 如需跨域可以打开 + //app默认相应 + appLoadRouterGroup.GET("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + appLoadRouterGroup.POST("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + //实验路由 + + shiyanApi := apirouter.RouterGroupEntry.ShiyanApi + { + shiyanApi.RouterGroup(appLoadRouterGroup) + } + //OAuth 2.0 授权 + oAuthEmpowerApi := apirouter.RouterGroupEntry.EmpowerRouter + { + oAuthEmpowerApi.RouterGroup(appLoadRouterGroup) + } + //登录验证 + loginVerifyApi := apirouter.RouterGroupEntry.VerifyLogin + { + loginVerifyApi.RouterGroup(appLoadRouterGroup) + } + + // 自定义测试 + mytest + } + + //验证身份接口 + VerifyIdentity := router.Group("") + VerifyIdentity.Use(interceptor.AuthenticateUser()).Use(interceptor.VerifyUrl()) + { + //v1版本接口 + version1Api := apirouter.RouterGroupEntry.HonorsSouteRouter + version1Api.RouterGroup(VerifyIdentity) + } + //Token身份验证 + VerifyIdentityToken := router.Group("") + VerifyIdentityToken.Use(interceptor.IdentificationToken()) + { + + } + return router +} diff --git a/.history/initialization/route/initRoute_20220728133904.go b/.history/initialization/route/initRoute_20220728133904.go new file mode 100644 index 0000000..67d0997 --- /dev/null +++ b/.history/initialization/route/initRoute_20220728133904.go @@ -0,0 +1,64 @@ +package route + +import ( + mytest "key_performance_indicators/api/myTest" + "key_performance_indicators/apirouter" + "key_performance_indicators/identification/interceptor" + + "github.com/gin-gonic/gin" +) + +//初始化主路由 +func InitialRouter() *gin.Engine { + var router = gin.Default() + + //app默认相应 + appLoadRouterGroup := router.Group("") + { + + // 跨域设置 + // router.Use(middleware.CrossDomainRequest()) // 如需跨域可以打开 + //app默认相应 + appLoadRouterGroup.GET("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + appLoadRouterGroup.POST("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + //实验路由 + + shiyanApi := apirouter.RouterGroupEntry.ShiyanApi + { + shiyanApi.RouterGroup(appLoadRouterGroup) + } + //OAuth 2.0 授权 + oAuthEmpowerApi := apirouter.RouterGroupEntry.EmpowerRouter + { + oAuthEmpowerApi.RouterGroup(appLoadRouterGroup) + } + //登录验证 + loginVerifyApi := apirouter.RouterGroupEntry.VerifyLogin + { + loginVerifyApi.RouterGroup(appLoadRouterGroup) + } + + // 自定义测试 + + } + + //验证身份接口 + VerifyIdentity := router.Group("") + VerifyIdentity.Use(interceptor.AuthenticateUser()).Use(interceptor.VerifyUrl()) + { + //v1版本接口 + version1Api := apirouter.RouterGroupEntry.HonorsSouteRouter + version1Api.RouterGroup(VerifyIdentity) + } + //Token身份验证 + VerifyIdentityToken := router.Group("") + VerifyIdentityToken.Use(interceptor.IdentificationToken()) + { + + } + return router +} diff --git a/.history/initialization/route/initRoute_20220728133912.go b/.history/initialization/route/initRoute_20220728133912.go new file mode 100644 index 0000000..f093b3c --- /dev/null +++ b/.history/initialization/route/initRoute_20220728133912.go @@ -0,0 +1,64 @@ +package route + +import ( + mytest "key_performance_indicators/api/myTest" + "key_performance_indicators/apirouter" + "key_performance_indicators/identification/interceptor" + + "github.com/gin-gonic/gin" +) + +//初始化主路由 +func InitialRouter() *gin.Engine { + var router = gin.Default() + + //app默认相应 + appLoadRouterGroup := router.Group("") + { + + // 跨域设置 + // router.Use(middleware.CrossDomainRequest()) // 如需跨域可以打开 + //app默认相应 + appLoadRouterGroup.GET("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + appLoadRouterGroup.POST("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + //实验路由 + + shiyanApi := apirouter.RouterGroupEntry.ShiyanApi + { + shiyanApi.RouterGroup(appLoadRouterGroup) + } + //OAuth 2.0 授权 + oAuthEmpowerApi := apirouter.RouterGroupEntry.EmpowerRouter + { + oAuthEmpowerApi.RouterGroup(appLoadRouterGroup) + } + //登录验证 + loginVerifyApi := apirouter.RouterGroupEntry.VerifyLogin + { + loginVerifyApi.RouterGroup(appLoadRouterGroup) + } + + // 自定义测试 + mytestapi := apirouter. + } + + //验证身份接口 + VerifyIdentity := router.Group("") + VerifyIdentity.Use(interceptor.AuthenticateUser()).Use(interceptor.VerifyUrl()) + { + //v1版本接口 + version1Api := apirouter.RouterGroupEntry.HonorsSouteRouter + version1Api.RouterGroup(VerifyIdentity) + } + //Token身份验证 + VerifyIdentityToken := router.Group("") + VerifyIdentityToken.Use(interceptor.IdentificationToken()) + { + + } + return router +} diff --git a/.history/initialization/route/initRoute_20220728133915.go b/.history/initialization/route/initRoute_20220728133915.go new file mode 100644 index 0000000..742de15 --- /dev/null +++ b/.history/initialization/route/initRoute_20220728133915.go @@ -0,0 +1,64 @@ +package route + +import ( + mytest "key_performance_indicators/api/myTest" + "key_performance_indicators/apirouter" + "key_performance_indicators/identification/interceptor" + + "github.com/gin-gonic/gin" +) + +//初始化主路由 +func InitialRouter() *gin.Engine { + var router = gin.Default() + + //app默认相应 + appLoadRouterGroup := router.Group("") + { + + // 跨域设置 + // router.Use(middleware.CrossDomainRequest()) // 如需跨域可以打开 + //app默认相应 + appLoadRouterGroup.GET("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + appLoadRouterGroup.POST("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + //实验路由 + + shiyanApi := apirouter.RouterGroupEntry.ShiyanApi + { + shiyanApi.RouterGroup(appLoadRouterGroup) + } + //OAuth 2.0 授权 + oAuthEmpowerApi := apirouter.RouterGroupEntry.EmpowerRouter + { + oAuthEmpowerApi.RouterGroup(appLoadRouterGroup) + } + //登录验证 + loginVerifyApi := apirouter.RouterGroupEntry.VerifyLogin + { + loginVerifyApi.RouterGroup(appLoadRouterGroup) + } + + // 自定义测试 + mytestapi := apirouter.ro + } + + //验证身份接口 + VerifyIdentity := router.Group("") + VerifyIdentity.Use(interceptor.AuthenticateUser()).Use(interceptor.VerifyUrl()) + { + //v1版本接口 + version1Api := apirouter.RouterGroupEntry.HonorsSouteRouter + version1Api.RouterGroup(VerifyIdentity) + } + //Token身份验证 + VerifyIdentityToken := router.Group("") + VerifyIdentityToken.Use(interceptor.IdentificationToken()) + { + + } + return router +} diff --git a/.history/initialization/route/initRoute_20220728133917.go b/.history/initialization/route/initRoute_20220728133917.go new file mode 100644 index 0000000..94a7be4 --- /dev/null +++ b/.history/initialization/route/initRoute_20220728133917.go @@ -0,0 +1,64 @@ +package route + +import ( + mytest "key_performance_indicators/api/myTest" + "key_performance_indicators/apirouter" + "key_performance_indicators/identification/interceptor" + + "github.com/gin-gonic/gin" +) + +//初始化主路由 +func InitialRouter() *gin.Engine { + var router = gin.Default() + + //app默认相应 + appLoadRouterGroup := router.Group("") + { + + // 跨域设置 + // router.Use(middleware.CrossDomainRequest()) // 如需跨域可以打开 + //app默认相应 + appLoadRouterGroup.GET("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + appLoadRouterGroup.POST("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + //实验路由 + + shiyanApi := apirouter.RouterGroupEntry.ShiyanApi + { + shiyanApi.RouterGroup(appLoadRouterGroup) + } + //OAuth 2.0 授权 + oAuthEmpowerApi := apirouter.RouterGroupEntry.EmpowerRouter + { + oAuthEmpowerApi.RouterGroup(appLoadRouterGroup) + } + //登录验证 + loginVerifyApi := apirouter.RouterGroupEntry.VerifyLogin + { + loginVerifyApi.RouterGroup(appLoadRouterGroup) + } + + // 自定义测试 + mytestapi := apirouter.RouterGroupEntry. + } + + //验证身份接口 + VerifyIdentity := router.Group("") + VerifyIdentity.Use(interceptor.AuthenticateUser()).Use(interceptor.VerifyUrl()) + { + //v1版本接口 + version1Api := apirouter.RouterGroupEntry.HonorsSouteRouter + version1Api.RouterGroup(VerifyIdentity) + } + //Token身份验证 + VerifyIdentityToken := router.Group("") + VerifyIdentityToken.Use(interceptor.IdentificationToken()) + { + + } + return router +} diff --git a/.history/initialization/route/initRoute_20220728134902.go b/.history/initialization/route/initRoute_20220728134902.go new file mode 100644 index 0000000..c388fbf --- /dev/null +++ b/.history/initialization/route/initRoute_20220728134902.go @@ -0,0 +1,64 @@ +package route + +import ( + mytest "key_performance_indicators/api/myTest" + "key_performance_indicators/apirouter" + "key_performance_indicators/identification/interceptor" + + "github.com/gin-gonic/gin" +) + +//初始化主路由 +func InitialRouter() *gin.Engine { + var router = gin.Default() + + //app默认相应 + appLoadRouterGroup := router.Group("") + { + + // 跨域设置 + // router.Use(middleware.CrossDomainRequest()) // 如需跨域可以打开 + //app默认相应 + appLoadRouterGroup.GET("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + appLoadRouterGroup.POST("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + //实验路由 + + shiyanApi := apirouter.RouterGroupEntry.ShiyanApi + { + shiyanApi.RouterGroup(appLoadRouterGroup) + } + //OAuth 2.0 授权 + oAuthEmpowerApi := apirouter.RouterGroupEntry.EmpowerRouter + { + oAuthEmpowerApi.RouterGroup(appLoadRouterGroup) + } + //登录验证 + loginVerifyApi := apirouter.RouterGroupEntry.VerifyLogin + { + loginVerifyApi.RouterGroup(appLoadRouterGroup) + } + + // 自定义测试 + mytestapi := apirouter.RouterGroupEntry.v + } + + //验证身份接口 + VerifyIdentity := router.Group("") + VerifyIdentity.Use(interceptor.AuthenticateUser()).Use(interceptor.VerifyUrl()) + { + //v1版本接口 + version1Api := apirouter.RouterGroupEntry.HonorsSouteRouter + version1Api.RouterGroup(VerifyIdentity) + } + //Token身份验证 + VerifyIdentityToken := router.Group("") + VerifyIdentityToken.Use(interceptor.IdentificationToken()) + { + + } + return router +} diff --git a/.history/initialization/route/initRoute_20220728134903.go b/.history/initialization/route/initRoute_20220728134903.go new file mode 100644 index 0000000..94a7be4 --- /dev/null +++ b/.history/initialization/route/initRoute_20220728134903.go @@ -0,0 +1,64 @@ +package route + +import ( + mytest "key_performance_indicators/api/myTest" + "key_performance_indicators/apirouter" + "key_performance_indicators/identification/interceptor" + + "github.com/gin-gonic/gin" +) + +//初始化主路由 +func InitialRouter() *gin.Engine { + var router = gin.Default() + + //app默认相应 + appLoadRouterGroup := router.Group("") + { + + // 跨域设置 + // router.Use(middleware.CrossDomainRequest()) // 如需跨域可以打开 + //app默认相应 + appLoadRouterGroup.GET("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + appLoadRouterGroup.POST("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + //实验路由 + + shiyanApi := apirouter.RouterGroupEntry.ShiyanApi + { + shiyanApi.RouterGroup(appLoadRouterGroup) + } + //OAuth 2.0 授权 + oAuthEmpowerApi := apirouter.RouterGroupEntry.EmpowerRouter + { + oAuthEmpowerApi.RouterGroup(appLoadRouterGroup) + } + //登录验证 + loginVerifyApi := apirouter.RouterGroupEntry.VerifyLogin + { + loginVerifyApi.RouterGroup(appLoadRouterGroup) + } + + // 自定义测试 + mytestapi := apirouter.RouterGroupEntry. + } + + //验证身份接口 + VerifyIdentity := router.Group("") + VerifyIdentity.Use(interceptor.AuthenticateUser()).Use(interceptor.VerifyUrl()) + { + //v1版本接口 + version1Api := apirouter.RouterGroupEntry.HonorsSouteRouter + version1Api.RouterGroup(VerifyIdentity) + } + //Token身份验证 + VerifyIdentityToken := router.Group("") + VerifyIdentityToken.Use(interceptor.IdentificationToken()) + { + + } + return router +} diff --git a/.history/initialization/route/initRoute_20220728134904.go b/.history/initialization/route/initRoute_20220728134904.go new file mode 100644 index 0000000..cf7e251 --- /dev/null +++ b/.history/initialization/route/initRoute_20220728134904.go @@ -0,0 +1,64 @@ +package route + +import ( + mytest "key_performance_indicators/api/myTest" + "key_performance_indicators/apirouter" + "key_performance_indicators/identification/interceptor" + + "github.com/gin-gonic/gin" +) + +//初始化主路由 +func InitialRouter() *gin.Engine { + var router = gin.Default() + + //app默认相应 + appLoadRouterGroup := router.Group("") + { + + // 跨域设置 + // router.Use(middleware.CrossDomainRequest()) // 如需跨域可以打开 + //app默认相应 + appLoadRouterGroup.GET("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + appLoadRouterGroup.POST("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + //实验路由 + + shiyanApi := apirouter.RouterGroupEntry.ShiyanApi + { + shiyanApi.RouterGroup(appLoadRouterGroup) + } + //OAuth 2.0 授权 + oAuthEmpowerApi := apirouter.RouterGroupEntry.EmpowerRouter + { + oAuthEmpowerApi.RouterGroup(appLoadRouterGroup) + } + //登录验证 + loginVerifyApi := apirouter.RouterGroupEntry.VerifyLogin + { + loginVerifyApi.RouterGroup(appLoadRouterGroup) + } + + // 自定义测试 + mytestapi := apirouter.RouterGroupEntry + } + + //验证身份接口 + VerifyIdentity := router.Group("") + VerifyIdentity.Use(interceptor.AuthenticateUser()).Use(interceptor.VerifyUrl()) + { + //v1版本接口 + version1Api := apirouter.RouterGroupEntry.HonorsSouteRouter + version1Api.RouterGroup(VerifyIdentity) + } + //Token身份验证 + VerifyIdentityToken := router.Group("") + VerifyIdentityToken.Use(interceptor.IdentificationToken()) + { + + } + return router +} diff --git a/.history/initialization/route/initRoute_20220728134907.go b/.history/initialization/route/initRoute_20220728134907.go new file mode 100644 index 0000000..94a7be4 --- /dev/null +++ b/.history/initialization/route/initRoute_20220728134907.go @@ -0,0 +1,64 @@ +package route + +import ( + mytest "key_performance_indicators/api/myTest" + "key_performance_indicators/apirouter" + "key_performance_indicators/identification/interceptor" + + "github.com/gin-gonic/gin" +) + +//初始化主路由 +func InitialRouter() *gin.Engine { + var router = gin.Default() + + //app默认相应 + appLoadRouterGroup := router.Group("") + { + + // 跨域设置 + // router.Use(middleware.CrossDomainRequest()) // 如需跨域可以打开 + //app默认相应 + appLoadRouterGroup.GET("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + appLoadRouterGroup.POST("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + //实验路由 + + shiyanApi := apirouter.RouterGroupEntry.ShiyanApi + { + shiyanApi.RouterGroup(appLoadRouterGroup) + } + //OAuth 2.0 授权 + oAuthEmpowerApi := apirouter.RouterGroupEntry.EmpowerRouter + { + oAuthEmpowerApi.RouterGroup(appLoadRouterGroup) + } + //登录验证 + loginVerifyApi := apirouter.RouterGroupEntry.VerifyLogin + { + loginVerifyApi.RouterGroup(appLoadRouterGroup) + } + + // 自定义测试 + mytestapi := apirouter.RouterGroupEntry. + } + + //验证身份接口 + VerifyIdentity := router.Group("") + VerifyIdentity.Use(interceptor.AuthenticateUser()).Use(interceptor.VerifyUrl()) + { + //v1版本接口 + version1Api := apirouter.RouterGroupEntry.HonorsSouteRouter + version1Api.RouterGroup(VerifyIdentity) + } + //Token身份验证 + VerifyIdentityToken := router.Group("") + VerifyIdentityToken.Use(interceptor.IdentificationToken()) + { + + } + return router +} diff --git a/.history/initialization/route/initRoute_20220728134910.go b/.history/initialization/route/initRoute_20220728134910.go new file mode 100644 index 0000000..de9f01f --- /dev/null +++ b/.history/initialization/route/initRoute_20220728134910.go @@ -0,0 +1,64 @@ +package route + +import ( + mytest "key_performance_indicators/api/myTest" + "key_performance_indicators/apirouter" + "key_performance_indicators/identification/interceptor" + + "github.com/gin-gonic/gin" +) + +//初始化主路由 +func InitialRouter() *gin.Engine { + var router = gin.Default() + + //app默认相应 + appLoadRouterGroup := router.Group("") + { + + // 跨域设置 + // router.Use(middleware.CrossDomainRequest()) // 如需跨域可以打开 + //app默认相应 + appLoadRouterGroup.GET("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + appLoadRouterGroup.POST("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + //实验路由 + + shiyanApi := apirouter.RouterGroupEntry.ShiyanApi + { + shiyanApi.RouterGroup(appLoadRouterGroup) + } + //OAuth 2.0 授权 + oAuthEmpowerApi := apirouter.RouterGroupEntry.EmpowerRouter + { + oAuthEmpowerApi.RouterGroup(appLoadRouterGroup) + } + //登录验证 + loginVerifyApi := apirouter.RouterGroupEntry.VerifyLogin + { + loginVerifyApi.RouterGroup(appLoadRouterGroup) + } + + // 自定义测试 + mytestapi := apirouter.RouterGroupEntry.MyTest + } + + //验证身份接口 + VerifyIdentity := router.Group("") + VerifyIdentity.Use(interceptor.AuthenticateUser()).Use(interceptor.VerifyUrl()) + { + //v1版本接口 + version1Api := apirouter.RouterGroupEntry.HonorsSouteRouter + version1Api.RouterGroup(VerifyIdentity) + } + //Token身份验证 + VerifyIdentityToken := router.Group("") + VerifyIdentityToken.Use(interceptor.IdentificationToken()) + { + + } + return router +} diff --git a/.history/initialization/route/initRoute_20220728134911.go b/.history/initialization/route/initRoute_20220728134911.go new file mode 100644 index 0000000..fed2907 --- /dev/null +++ b/.history/initialization/route/initRoute_20220728134911.go @@ -0,0 +1,65 @@ +package route + +import ( + mytest "key_performance_indicators/api/myTest" + "key_performance_indicators/apirouter" + "key_performance_indicators/identification/interceptor" + + "github.com/gin-gonic/gin" +) + +//初始化主路由 +func InitialRouter() *gin.Engine { + var router = gin.Default() + + //app默认相应 + appLoadRouterGroup := router.Group("") + { + + // 跨域设置 + // router.Use(middleware.CrossDomainRequest()) // 如需跨域可以打开 + //app默认相应 + appLoadRouterGroup.GET("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + appLoadRouterGroup.POST("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + //实验路由 + + shiyanApi := apirouter.RouterGroupEntry.ShiyanApi + { + shiyanApi.RouterGroup(appLoadRouterGroup) + } + //OAuth 2.0 授权 + oAuthEmpowerApi := apirouter.RouterGroupEntry.EmpowerRouter + { + oAuthEmpowerApi.RouterGroup(appLoadRouterGroup) + } + //登录验证 + loginVerifyApi := apirouter.RouterGroupEntry.VerifyLogin + { + loginVerifyApi.RouterGroup(appLoadRouterGroup) + } + + // 自定义测试 + mytestapi := apirouter.RouterGroupEntry.MyTest + + } + + //验证身份接口 + VerifyIdentity := router.Group("") + VerifyIdentity.Use(interceptor.AuthenticateUser()).Use(interceptor.VerifyUrl()) + { + //v1版本接口 + version1Api := apirouter.RouterGroupEntry.HonorsSouteRouter + version1Api.RouterGroup(VerifyIdentity) + } + //Token身份验证 + VerifyIdentityToken := router.Group("") + VerifyIdentityToken.Use(interceptor.IdentificationToken()) + { + + } + return router +} diff --git a/.history/initialization/route/initRoute_20220728134912.go b/.history/initialization/route/initRoute_20220728134912.go new file mode 100644 index 0000000..9ea95c6 --- /dev/null +++ b/.history/initialization/route/initRoute_20220728134912.go @@ -0,0 +1,67 @@ +package route + +import ( + mytest "key_performance_indicators/api/myTest" + "key_performance_indicators/apirouter" + "key_performance_indicators/identification/interceptor" + + "github.com/gin-gonic/gin" +) + +//初始化主路由 +func InitialRouter() *gin.Engine { + var router = gin.Default() + + //app默认相应 + appLoadRouterGroup := router.Group("") + { + + // 跨域设置 + // router.Use(middleware.CrossDomainRequest()) // 如需跨域可以打开 + //app默认相应 + appLoadRouterGroup.GET("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + appLoadRouterGroup.POST("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + //实验路由 + + shiyanApi := apirouter.RouterGroupEntry.ShiyanApi + { + shiyanApi.RouterGroup(appLoadRouterGroup) + } + //OAuth 2.0 授权 + oAuthEmpowerApi := apirouter.RouterGroupEntry.EmpowerRouter + { + oAuthEmpowerApi.RouterGroup(appLoadRouterGroup) + } + //登录验证 + loginVerifyApi := apirouter.RouterGroupEntry.VerifyLogin + { + loginVerifyApi.RouterGroup(appLoadRouterGroup) + } + + // 自定义测试 + mytestapi := apirouter.RouterGroupEntry.MyTest + { + + } + } + + //验证身份接口 + VerifyIdentity := router.Group("") + VerifyIdentity.Use(interceptor.AuthenticateUser()).Use(interceptor.VerifyUrl()) + { + //v1版本接口 + version1Api := apirouter.RouterGroupEntry.HonorsSouteRouter + version1Api.RouterGroup(VerifyIdentity) + } + //Token身份验证 + VerifyIdentityToken := router.Group("") + VerifyIdentityToken.Use(interceptor.IdentificationToken()) + { + + } + return router +} diff --git a/.history/initialization/route/initRoute_20220728134917.go b/.history/initialization/route/initRoute_20220728134917.go new file mode 100644 index 0000000..33679af --- /dev/null +++ b/.history/initialization/route/initRoute_20220728134917.go @@ -0,0 +1,67 @@ +package route + +import ( + mytest "key_performance_indicators/api/myTest" + "key_performance_indicators/apirouter" + "key_performance_indicators/identification/interceptor" + + "github.com/gin-gonic/gin" +) + +//初始化主路由 +func InitialRouter() *gin.Engine { + var router = gin.Default() + + //app默认相应 + appLoadRouterGroup := router.Group("") + { + + // 跨域设置 + // router.Use(middleware.CrossDomainRequest()) // 如需跨域可以打开 + //app默认相应 + appLoadRouterGroup.GET("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + appLoadRouterGroup.POST("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + //实验路由 + + shiyanApi := apirouter.RouterGroupEntry.ShiyanApi + { + shiyanApi.RouterGroup(appLoadRouterGroup) + } + //OAuth 2.0 授权 + oAuthEmpowerApi := apirouter.RouterGroupEntry.EmpowerRouter + { + oAuthEmpowerApi.RouterGroup(appLoadRouterGroup) + } + //登录验证 + loginVerifyApi := apirouter.RouterGroupEntry.VerifyLogin + { + loginVerifyApi.RouterGroup(appLoadRouterGroup) + } + + // 自定义测试 + mytestapi := apirouter.RouterGroupEntry.MyTest + { + mytestapi. + } + } + + //验证身份接口 + VerifyIdentity := router.Group("") + VerifyIdentity.Use(interceptor.AuthenticateUser()).Use(interceptor.VerifyUrl()) + { + //v1版本接口 + version1Api := apirouter.RouterGroupEntry.HonorsSouteRouter + version1Api.RouterGroup(VerifyIdentity) + } + //Token身份验证 + VerifyIdentityToken := router.Group("") + VerifyIdentityToken.Use(interceptor.IdentificationToken()) + { + + } + return router +} diff --git a/.history/initialization/route/initRoute_20220728134920.go b/.history/initialization/route/initRoute_20220728134920.go new file mode 100644 index 0000000..68e47e4 --- /dev/null +++ b/.history/initialization/route/initRoute_20220728134920.go @@ -0,0 +1,66 @@ +package route + +import ( + "key_performance_indicators/apirouter" + "key_performance_indicators/identification/interceptor" + + "github.com/gin-gonic/gin" +) + +//初始化主路由 +func InitialRouter() *gin.Engine { + var router = gin.Default() + + //app默认相应 + appLoadRouterGroup := router.Group("") + { + + // 跨域设置 + // router.Use(middleware.CrossDomainRequest()) // 如需跨域可以打开 + //app默认相应 + appLoadRouterGroup.GET("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + appLoadRouterGroup.POST("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + //实验路由 + + shiyanApi := apirouter.RouterGroupEntry.ShiyanApi + { + shiyanApi.RouterGroup(appLoadRouterGroup) + } + //OAuth 2.0 授权 + oAuthEmpowerApi := apirouter.RouterGroupEntry.EmpowerRouter + { + oAuthEmpowerApi.RouterGroup(appLoadRouterGroup) + } + //登录验证 + loginVerifyApi := apirouter.RouterGroupEntry.VerifyLogin + { + loginVerifyApi.RouterGroup(appLoadRouterGroup) + } + + // 自定义测试 + mytestapi := apirouter.RouterGroupEntry.MyTest + { + mytestapi.RouterGroup(appLoadRouterGroup) + } + } + + //验证身份接口 + VerifyIdentity := router.Group("") + VerifyIdentity.Use(interceptor.AuthenticateUser()).Use(interceptor.VerifyUrl()) + { + //v1版本接口 + version1Api := apirouter.RouterGroupEntry.HonorsSouteRouter + version1Api.RouterGroup(VerifyIdentity) + } + //Token身份验证 + VerifyIdentityToken := router.Group("") + VerifyIdentityToken.Use(interceptor.IdentificationToken()) + { + + } + return router +} diff --git a/README.md b/README.md index 0891571..df391cf 100644 --- a/README.md +++ b/README.md @@ -55,5 +55,3 @@ md5(md5(md5(CodeString)+md5(AppKey))+AppKey) ``` - -123 \ No newline at end of file diff --git a/api/myTest/entry.go b/api/myTest/entry.go new file mode 100644 index 0000000..71e4fb8 --- /dev/null +++ b/api/myTest/entry.go @@ -0,0 +1,9 @@ +package mytest + +import testroute "key_performance_indicators/api/myTest/testRoute" + +type ApiEntry struct { + Test testroute.ApiMethod +} + +var AppApiEntry = new(ApiEntry) diff --git a/api/myTest/testRoute/testroute.go b/api/myTest/testRoute/testroute.go new file mode 100644 index 0000000..dbdbb55 --- /dev/null +++ b/api/myTest/testRoute/testroute.go @@ -0,0 +1,22 @@ +package testroute + +import ( + "fmt" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +func (a *ApiMethod) MyTest(ctx *gin.Context) { + + name := ctx.PostForm("name") + fmt.Printf("传入的Name为:%v\n", name) + var p1 Person + + err := ctx.Bind(&p1) + if err != nil { + publicmethod.Result(1, err.Error(), ctx) + } + fmt.Printf("%#v\n", p1) + publicmethod.Result(0, p1, ctx) +} diff --git a/api/myTest/testRoute/type.go b/api/myTest/testRoute/type.go new file mode 100644 index 0000000..b18daf0 --- /dev/null +++ b/api/myTest/testRoute/type.go @@ -0,0 +1,24 @@ +package testroute + +import ( + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +type ApiMethod struct{} + +// 实验入口 + +func (a *ApiMethod) Index(c *gin.Context) { + outputCont := publicmethod.MapOut[string]() + outputCont["index"] = "测试入口" + publicmethod.Result(0, outputCont, c) +} + +// 测试 +type Person struct { + Id int `form:"id" json:"id" mapstructure:"id"` + Name string `form:"name" json:"name" mapstructure:"name"` + Age int `form:"age" json:"age" mapstructure:"age"` +} diff --git a/apirouter/entry.go b/apirouter/entry.go index f1bbc6c..f59c655 100644 --- a/apirouter/entry.go +++ b/apirouter/entry.go @@ -3,6 +3,7 @@ package apirouter import ( "key_performance_indicators/apirouter/apishiyan" "key_performance_indicators/apirouter/empower" + mytest "key_performance_indicators/apirouter/myTest" honorsRoute "key_performance_indicators/apirouter/v1/honorsRoute" "key_performance_indicators/apirouter/verifyLogin" // "key_performance_indicators/v1" @@ -14,6 +15,7 @@ type RouterGroup struct { VerifyLogin verifyLogin.ApiRouter ShiyanApi apishiyan.ApiRouter HonorsSouteRouter honorsRoute.ApiRouter + MyTest mytest.TestApi } var RouterGroupEntry = new(RouterGroup) diff --git a/apirouter/myTest/myTest_route.go b/apirouter/myTest/myTest_route.go new file mode 100644 index 0000000..31c6bad --- /dev/null +++ b/apirouter/myTest/myTest_route.go @@ -0,0 +1,18 @@ +package mytest + +import ( + mytest "key_performance_indicators/api/myTest" + + "github.com/gin-gonic/gin" +) + +func (t *TestApi) RouterGroup(route *gin.RouterGroup) { + apiRouter := route.Group("/myTest") + + var methodBinding = mytest.AppApiEntry.Test + { + apiRouter.POST("/myTest", methodBinding.MyTest) + apiRouter.GET("/", methodBinding.Index) + apiRouter.POST("/", methodBinding.Index) + } +} diff --git a/apirouter/myTest/type.go b/apirouter/myTest/type.go new file mode 100644 index 0000000..ee484c0 --- /dev/null +++ b/apirouter/myTest/type.go @@ -0,0 +1,4 @@ +package mytest + +type TestApi struct{} + diff --git a/config/configDatabase/database.yaml b/config/configDatabase/database.yaml index f57cc03..5aacf0f 100644 --- a/config/configDatabase/database.yaml +++ b/config/configDatabase/database.yaml @@ -189,4 +189,4 @@ managearchives: password: 'root' #数据库密码 max_idle_conns: 100 #最大空闲数量 max_open_conns: 1500 #最大打开数量 - gorm_log: true #是否开启gorm日志 \ No newline at end of file + gorm_log: true #是否开启gorm日志 diff --git a/go.mod b/go.mod index 0d5caef..666f6f8 100644 --- a/go.mod +++ b/go.mod @@ -18,6 +18,7 @@ require ( require ( github.com/cespare/xxhash/v2 v2.1.2 // indirect github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect + github.com/flipped-aurora/gin-vue-admin v2.5.3+incompatible // indirect github.com/gin-contrib/sse v0.1.0 // indirect github.com/go-playground/locales v0.14.0 // indirect github.com/go-playground/universal-translator v0.18.0 // indirect diff --git a/go.sum b/go.sum index f1d8dd0..13396dc 100644 --- a/go.sum +++ b/go.sum @@ -109,6 +109,8 @@ github.com/envoyproxy/go-control-plane v0.9.7/go.mod h1:cwu0lG7PUMfa9snN8LXBig5y github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= +github.com/flipped-aurora/gin-vue-admin v2.5.3+incompatible h1:mG1w66R+x64jwD58gS9CD2U3ANe/ZuYdXRYI308THK4= +github.com/flipped-aurora/gin-vue-admin v2.5.3+incompatible/go.mod h1:u2AAv8vODUyu6ga0P5mhCEqYW+IWRwKJdiynW8N3jdE= github.com/flipped-aurora/gin-vue-admin/server v0.0.0-20220724010254-afab1fdbce13 h1:SO0hu+Lqk8ZsKmk7iUgRW5sA5Dapm5vGqUthx0Gh/kM= github.com/flipped-aurora/gin-vue-admin/server v0.0.0-20220724010254-afab1fdbce13/go.mod h1:6XkcinjHeTsfYUk3IseBHy+0f8JP1lwsxHP+UzrxYEw= github.com/flipped-aurora/ws v1.0.2/go.mod h1:RdyM2Fnvxx7f7A6WSmU1aAhDrQIAVW7LS/0LsAUE5mE= diff --git a/initialization/app/run.go b/initialization/app/run.go index d22ac79..0b7cdd7 100644 --- a/initialization/app/run.go +++ b/initialization/app/run.go @@ -20,7 +20,6 @@ func RunItem() { routers := route.InitialRouter() portStr := fmt.Sprintf(":%d", overall.CONSTANT_CONFIG.Appsetup.Port) startUp := InitServer(portStr, routers) - fmt.Printf("\n\n默认API运行地址:http://127.0.0.1%s\n", portStr) runErr := startUp.ListenAndServe().Error() panic(fmt.Errorf(runErr)) diff --git a/initialization/route/initRoute.go b/initialization/route/initRoute.go index 8cfe284..68e47e4 100644 --- a/initialization/route/initRoute.go +++ b/initialization/route/initRoute.go @@ -25,6 +25,7 @@ func InitialRouter() *gin.Engine { c.JSON(0, "通讯成功!") }) //实验路由 + shiyanApi := apirouter.RouterGroupEntry.ShiyanApi { shiyanApi.RouterGroup(appLoadRouterGroup) @@ -39,6 +40,12 @@ func InitialRouter() *gin.Engine { { loginVerifyApi.RouterGroup(appLoadRouterGroup) } + + // 自定义测试 + mytestapi := apirouter.RouterGroupEntry.MyTest + { + mytestapi.RouterGroup(appLoadRouterGroup) + } } //验证身份接口