From 32983ebcfd694b2c8e2eed2f2e240224a32c7cad Mon Sep 17 00:00:00 2001 From: erdanergou Date: Sat, 30 Jul 2022 11:28:05 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8D=A3=E8=AA=89=E6=A8=A1=E5=9D=97=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E6=9F=A5=E8=AF=A2=E5=9B=BE=E7=89=87=E5=B9=B6=E8=BF=94?= =?UTF-8?q?=E5=9B=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../operate_photo_20220730095126.go | 29 ++++++++ .../operate_photo_20220730095127.go | 30 ++++++++ .../operate_photo_20220730095743.go | 30 ++++++++ .../operate_photo_20220730095746.go | 30 ++++++++ .../operate_photo_20220730095751.go | 30 ++++++++ .../operate_photo_20220730095812.go | 30 ++++++++ .../operate_photo_20220730095813.go | 30 ++++++++ .../operate_photo_20220730095818.go | 30 ++++++++ .../operate_photo_20220730095823.go | 30 ++++++++ .../operate_photo_20220730095902.go | 30 ++++++++ .../operate_photo_20220730095909.go | 30 ++++++++ .../operate_photo_20220730101039.go | 31 ++++++++ .../operate_photo_20220730101047.go | 31 ++++++++ .../operate_photo_20220730101049.go | 31 ++++++++ .../operate_photo_20220730101052.go | 31 ++++++++ .../operate_photo_20220730101054.go | 31 ++++++++ .../operate_photo_20220730101056.go | 31 ++++++++ .../operate_photo_20220730101100.go | 31 ++++++++ .../operate_photo_20220730101107.go | 31 ++++++++ .../operate_photo_20220730101141.go | 31 ++++++++ .../operate_photo_20220730101147.go | 31 ++++++++ .../operate_photo_20220730101148.go | 31 ++++++++ .../operate_photo_20220730101201.go | 32 +++++++++ .../operate_photo_20220730101204.go | 32 +++++++++ .../operate_photo_20220730101209.go | 31 ++++++++ .../operate_photo_20220730101213.go | 30 ++++++++ .../operate_photo_20220730101223.go | 28 ++++++++ .../operate_photo_20220730101233.go | 28 ++++++++ .../operate_photo_20220730101242.go | 27 +++++++ .../operate_photo_20220730101246.go | 27 +++++++ .../operate_photo_20220730101248.go | 27 +++++++ .../operate_photo_20220730101252.go | 31 ++++++++ .../operate_photo_20220730101254.go | 31 ++++++++ .../operate_photo_20220730101303.go | 32 +++++++++ .../operate_photo_20220730101306.go | 32 +++++++++ .../operate_photo_20220730101314.go | 32 +++++++++ .../operate_photo_20220730101323.go | 31 ++++++++ .../operate_photo_20220730101325.go | 31 ++++++++ .../operate_photo_20220730101330.go | 31 ++++++++ .../operate_photo_20220730101351.go | 30 ++++++++ .../operate_photo_20220730101353.go | 30 ++++++++ .../operate_photo_20220730101400.go | 31 ++++++++ .../operate_photo_20220730101412.go | 28 ++++++++ .../operate_photo_20220730101638.go | 26 +++++++ .../operate_photo_20220730101912.go | 26 +++++++ .../operate_photo_20220730101917.go | 27 +++++++ .../operate_photo_20220730101919.go | 27 +++++++ .../operate_photo_20220730101927.go | 27 +++++++ .../operate_photo_20220730101930.go | 26 +++++++ .../operate_photo_20220730101931.go | 26 +++++++ .../operate_photo_20220730101932.go | 26 +++++++ .../operate_photo_20220730101934.go | 26 +++++++ .../operate_photo_20220730101957.go | 26 +++++++ .../operate_photo_20220730102014.go | 26 +++++++ .../operate_photo_20220730102020.go | 26 +++++++ .../operate_photo_20220730102021.go | 26 +++++++ .../operate_photo_20220730102309.go | 27 +++++++ .../operate_photo_20220730102443.go | 27 +++++++ .../operate_photo_20220730102444.go | 27 +++++++ .../operate_photo_20220730102448.go | 27 +++++++ .../operate_photo_20220730102451.go | 27 +++++++ .../operate_photo_20220730102456.go | 27 +++++++ .../operate_photo_20220730102457.go | 27 +++++++ .../operate_photo_20220730102500.go | 27 +++++++ .../operate_photo_20220730102502.go | 27 +++++++ .../operate_photo_20220730102507.go | 27 +++++++ .../operate_photo_20220730102508.go | 27 +++++++ .../operate_photo_20220730102516.go | 27 +++++++ .../operate_photo_20220730102812.go | 25 +++++++ .../operate_photo_20220730103004.go | 26 +++++++ .../operate_photo_20220730103014.go | 26 +++++++ .../operate_photo_20220730103019.go | 26 +++++++ .../operate_photo_20220730103021.go | 26 +++++++ .../operate_photo_20220730103023.go | 26 +++++++ .../operate_photo_20220730103028.go | 26 +++++++ .../operate_photo_20220730103029.go | 26 +++++++ .../operate_photo_20220730103032.go | 25 +++++++ .../operate_photo_20220730103206.go | 26 +++++++ .../operate_photo_20220730103215.go | 26 +++++++ .../operate_photo_20220730103218.go | 26 +++++++ .../operate_photo_20220730103219.go | 26 +++++++ .../operate_photo_20220730103221.go | 26 +++++++ .../operate_photo_20220730103227.go | 26 +++++++ .../operate_photo_20220730103232.go | 26 +++++++ .../operate_photo_20220730103234.go | 26 +++++++ .../operate_photo_20220730103237.go | 26 +++++++ .../operate_photo_20220730103243.go | 26 +++++++ .../operate_photo_20220730103305.go | 26 +++++++ .../operate_photo_20220730103308.go | 26 +++++++ .../operate_photo_20220730103312.go | 26 +++++++ .../operate_photo_20220730103316.go | 26 +++++++ .../operate_photo_20220730103318.go | 26 +++++++ .../operate_photo_20220730103333.go | 26 +++++++ .../operate_photo_20220730103335.go | 26 +++++++ .../operate_photo_20220730103339.go | 26 +++++++ .../operate_photo_20220730103340.go | 26 +++++++ .../operate_photo_20220730103342.go | 26 +++++++ .../operate_photo_20220730103344.go | 26 +++++++ .../operate_photo_20220730103347.go | 26 +++++++ .../operate_photo_20220730103351.go | 26 +++++++ .../operate_photo_20220730103352.go | 26 +++++++ .../operate_photo_20220730103507.go | 26 +++++++ .../operate_photo_20220730103509.go | 26 +++++++ .../operate_photo_20220730103511.go | 26 +++++++ .../operate_photo_20220730103515.go | 26 +++++++ .../operate_photo_20220730103516.go | 26 +++++++ .../operate_photo_20220730103517.go | 26 +++++++ .../operate_photo_20220730103536.go | 26 +++++++ .../operate_photo_20220730103538.go | 26 +++++++ .../operate_photo_20220730103541.go | 26 +++++++ .../operate_photo_20220730103544.go | 26 +++++++ .../operate_photo_20220730103548.go | 26 +++++++ .../operate_photo_20220730103550.go | 26 +++++++ .../operate_photo_20220730103601.go | 26 +++++++ .../operate_photo_20220730103605.go | 26 +++++++ .../operate_photo_20220730103608.go | 26 +++++++ .../operate_photo_20220730103630.go | 26 +++++++ .../operate_photo_20220730103633.go | 26 +++++++ .../operate_photo_20220730103634.go | 26 +++++++ .../operate_photo_20220730103644.go | 26 +++++++ .../operate_photo_20220730103647.go | 26 +++++++ .../operate_photo_20220730103654.go | 27 +++++++ .../operate_photo_20220730103656.go | 27 +++++++ .../operate_photo_20220730103659.go | 27 +++++++ .../operate_photo_20220730103701.go | 27 +++++++ .../operate_photo_20220730103702.go | 27 +++++++ .../operate_photo_20220730103709.go | 27 +++++++ .../operate_photo_20220730103713.go | 27 +++++++ .../operate_photo_20220730103716.go | 27 +++++++ .../operate_photo_20220730103717.go | 27 +++++++ .../operate_photo_20220730103723.go | 28 ++++++++ .../operate_photo_20220730103725.go | 28 ++++++++ .../operate_photo_20220730103733.go | 28 ++++++++ .../operate_photo_20220730103734.go | 28 ++++++++ .../operate_photo_20220730103736.go | 28 ++++++++ .../operate_photo_20220730103746.go | 28 ++++++++ .../operate_photo_20220730103751.go | 28 ++++++++ .../operate_photo_20220730103754.go | 28 ++++++++ .../operate_photo_20220730103808.go | 28 ++++++++ .../operate_photo_20220730103810.go | 28 ++++++++ .../operate_photo_20220730103812.go | 28 ++++++++ .../operate_photo_20220730103818.go | 28 ++++++++ .../operate_photo_20220730103820.go | 28 ++++++++ .../operate_photo_20220730103829.go | 28 ++++++++ .../operate_photo_20220730103832.go | 28 ++++++++ .../operate_photo_20220730103833.go | 28 ++++++++ .../operate_photo_20220730103855.go | 29 ++++++++ .../operate_photo_20220730104105.go | 26 +++++++ .../operate_photo_20220730104106.go | 26 +++++++ .../operate_photo_20220730104141.go | 26 +++++++ .../operate_photo_20220730104148.go | 26 +++++++ .../operate_photo_20220730104154.go | 26 +++++++ .../operate_photo_20220730104202.go | 26 +++++++ .../operate_photo_20220730104833.go | 25 +++++++ .../honoraryArchives/type_20220730103453.go | 71 ++++++++++++++++++ .../honoraryArchives/type_20220730103455.go | 72 +++++++++++++++++++ .../honoraryArchives/type_20220730103456.go | 71 ++++++++++++++++++ .../honoraryArchives/type_20220730103458.go | 71 ++++++++++++++++++ .../honoraryArchives/type_20220730103500.go | 71 ++++++++++++++++++ .../honoraryArchives/type_20220730103502.go | 71 ++++++++++++++++++ .../honors_route_20220730103936.go | 31 ++++++++ .../honors_route_20220730104854.go | 31 ++++++++ .../honors_route_20220730104908.go | 31 ++++++++ .../route/initRoute_20220730104956.go | 66 +++++++++++++++++ .../route/initRoute_20220730110049.go | 67 +++++++++++++++++ .../route/initRoute_20220730110055.go | 67 +++++++++++++++++ .../route/initRoute_20220730110200.go | 67 +++++++++++++++++ .../route/initRoute_20220730110201.go | 67 +++++++++++++++++ .../route/initRoute_20220730110203.go | 67 +++++++++++++++++ .../honoraryArchives/operate_photo.go | 11 +-- api/version1/honoraryArchives/type.go | 1 + apirouter/v1/honorsRoute/honors_route.go | 2 - initialization/route/initRoute.go | 5 +- 173 files changed, 5172 insertions(+), 12 deletions(-) create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730095126.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730095127.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730095743.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730095746.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730095751.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730095812.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730095813.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730095818.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730095823.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730095902.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730095909.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730101039.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730101047.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730101049.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730101052.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730101054.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730101056.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730101100.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730101107.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730101141.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730101147.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730101148.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730101201.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730101204.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730101209.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730101213.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730101223.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730101233.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730101242.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730101246.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730101248.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730101252.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730101254.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730101303.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730101306.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730101314.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730101323.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730101325.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730101330.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730101351.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730101353.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730101400.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730101412.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730101638.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730101912.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730101917.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730101919.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730101927.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730101930.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730101931.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730101932.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730101934.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730101957.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730102014.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730102020.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730102021.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730102309.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730102443.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730102444.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730102448.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730102451.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730102456.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730102457.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730102500.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730102502.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730102507.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730102508.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730102516.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730102812.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103004.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103014.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103019.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103021.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103023.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103028.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103029.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103032.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103206.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103215.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103218.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103219.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103221.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103227.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103232.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103234.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103237.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103243.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103305.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103308.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103312.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103316.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103318.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103333.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103335.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103339.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103340.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103342.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103344.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103347.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103351.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103352.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103507.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103509.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103511.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103515.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103516.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103517.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103536.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103538.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103541.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103544.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103548.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103550.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103601.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103605.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103608.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103630.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103633.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103634.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103644.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103647.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103654.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103656.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103659.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103701.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103702.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103709.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103713.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103716.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103717.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103723.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103725.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103733.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103734.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103736.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103746.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103751.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103754.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103808.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103810.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103812.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103818.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103820.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103829.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103832.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103833.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730103855.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730104105.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730104106.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730104141.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730104148.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730104154.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730104202.go create mode 100644 .history/api/version1/honoraryArchives/operate_photo_20220730104833.go create mode 100644 .history/api/version1/honoraryArchives/type_20220730103453.go create mode 100644 .history/api/version1/honoraryArchives/type_20220730103455.go create mode 100644 .history/api/version1/honoraryArchives/type_20220730103456.go create mode 100644 .history/api/version1/honoraryArchives/type_20220730103458.go create mode 100644 .history/api/version1/honoraryArchives/type_20220730103500.go create mode 100644 .history/api/version1/honoraryArchives/type_20220730103502.go create mode 100644 .history/apirouter/v1/honorsRoute/honors_route_20220730103936.go create mode 100644 .history/apirouter/v1/honorsRoute/honors_route_20220730104854.go create mode 100644 .history/apirouter/v1/honorsRoute/honors_route_20220730104908.go create mode 100644 .history/initialization/route/initRoute_20220730104956.go create mode 100644 .history/initialization/route/initRoute_20220730110049.go create mode 100644 .history/initialization/route/initRoute_20220730110055.go create mode 100644 .history/initialization/route/initRoute_20220730110200.go create mode 100644 .history/initialization/route/initRoute_20220730110201.go create mode 100644 .history/initialization/route/initRoute_20220730110203.go diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730095126.go b/.history/api/version1/honoraryArchives/operate_photo_20220730095126.go new file mode 100644 index 0000000..f625c9d --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730095126.go @@ -0,0 +1,29 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + if err != nil { + publicmethod.Result(107, err, c) + return + } + + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730095127.go b/.history/api/version1/honoraryArchives/operate_photo_20220730095127.go new file mode 100644 index 0000000..b6ca6d5 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730095127.go @@ -0,0 +1,30 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + + if err != nil { + publicmethod.Result(107, err, c) + return + } + + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730095743.go b/.history/api/version1/honoraryArchives/operate_photo_20220730095743.go new file mode 100644 index 0000000..b6ca6d5 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730095743.go @@ -0,0 +1,30 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + + if err != nil { + publicmethod.Result(107, err, c) + return + } + + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730095746.go b/.history/api/version1/honoraryArchives/operate_photo_20220730095746.go new file mode 100644 index 0000000..0ca0b8e --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730095746.go @@ -0,0 +1,30 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + photoGalleryByAscriptionId. + if err != nil { + publicmethod.Result(107, err, c) + return + } + + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730095751.go b/.history/api/version1/honoraryArchives/operate_photo_20220730095751.go new file mode 100644 index 0000000..b6ca6d5 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730095751.go @@ -0,0 +1,30 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + + if err != nil { + publicmethod.Result(107, err, c) + return + } + + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730095812.go b/.history/api/version1/honoraryArchives/operate_photo_20220730095812.go new file mode 100644 index 0000000..7db7df8 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730095812.go @@ -0,0 +1,30 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + re + if err != nil { + publicmethod.Result(107, err, c) + return + } + + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730095813.go b/.history/api/version1/honoraryArchives/operate_photo_20220730095813.go new file mode 100644 index 0000000..b6ca6d5 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730095813.go @@ -0,0 +1,30 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + + if err != nil { + publicmethod.Result(107, err, c) + return + } + + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730095818.go b/.history/api/version1/honoraryArchives/operate_photo_20220730095818.go new file mode 100644 index 0000000..0ca0b8e --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730095818.go @@ -0,0 +1,30 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + photoGalleryByAscriptionId. + if err != nil { + publicmethod.Result(107, err, c) + return + } + + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730095823.go b/.history/api/version1/honoraryArchives/operate_photo_20220730095823.go new file mode 100644 index 0000000..b6ca6d5 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730095823.go @@ -0,0 +1,30 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + + if err != nil { + publicmethod.Result(107, err, c) + return + } + + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730095902.go b/.history/api/version1/honoraryArchives/operate_photo_20220730095902.go new file mode 100644 index 0000000..f055666 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730095902.go @@ -0,0 +1,30 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + dbGrom + if err != nil { + publicmethod.Result(107, err, c) + return + } + + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730095909.go b/.history/api/version1/honoraryArchives/operate_photo_20220730095909.go new file mode 100644 index 0000000..b6ca6d5 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730095909.go @@ -0,0 +1,30 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + + if err != nil { + publicmethod.Result(107, err, c) + return + } + + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730101039.go b/.history/api/version1/honoraryArchives/operate_photo_20220730101039.go new file mode 100644 index 0000000..1fbcd26 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730101039.go @@ -0,0 +1,31 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + overall. + if err != nil { + publicmethod.Result(107, err, c) + return + } + + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730101047.go b/.history/api/version1/honoraryArchives/operate_photo_20220730101047.go new file mode 100644 index 0000000..a11cd88 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730101047.go @@ -0,0 +1,31 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + overall.cons + if err != nil { + publicmethod.Result(107, err, c) + return + } + + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730101049.go b/.history/api/version1/honoraryArchives/operate_photo_20220730101049.go new file mode 100644 index 0000000..cf35c9e --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730101049.go @@ -0,0 +1,31 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + overall.consatan + if err != nil { + publicmethod.Result(107, err, c) + return + } + + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730101052.go b/.history/api/version1/honoraryArchives/operate_photo_20220730101052.go new file mode 100644 index 0000000..61e4a11 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730101052.go @@ -0,0 +1,31 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + overall.consatant + if err != nil { + publicmethod.Result(107, err, c) + return + } + + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730101054.go b/.history/api/version1/honoraryArchives/operate_photo_20220730101054.go new file mode 100644 index 0000000..c4fc869 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730101054.go @@ -0,0 +1,31 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + overall.consat + if err != nil { + publicmethod.Result(107, err, c) + return + } + + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730101056.go b/.history/api/version1/honoraryArchives/operate_photo_20220730101056.go new file mode 100644 index 0000000..d2145f0 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730101056.go @@ -0,0 +1,31 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + overall.consatnt + if err != nil { + publicmethod.Result(107, err, c) + return + } + + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730101100.go b/.history/api/version1/honoraryArchives/operate_photo_20220730101100.go new file mode 100644 index 0000000..1694ac7 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730101100.go @@ -0,0 +1,31 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + overall.consatnt_Db_ + if err != nil { + publicmethod.Result(107, err, c) + return + } + + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730101107.go b/.history/api/version1/honoraryArchives/operate_photo_20220730101107.go new file mode 100644 index 0000000..05ca004 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730101107.go @@ -0,0 +1,31 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + + if err != nil { + publicmethod.Result(107, err, c) + return + } + + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730101141.go b/.history/api/version1/honoraryArchives/operate_photo_20220730101141.go new file mode 100644 index 0000000..05ca004 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730101141.go @@ -0,0 +1,31 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + + if err != nil { + publicmethod.Result(107, err, c) + return + } + + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730101147.go b/.history/api/version1/honoraryArchives/operate_photo_20220730101147.go new file mode 100644 index 0000000..09c47af --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730101147.go @@ -0,0 +1,31 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + overall.CONSTANT_DB_MANAGE_ARCHIVES + if err != nil { + publicmethod.Result(107, err, c) + return + } + + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730101148.go b/.history/api/version1/honoraryArchives/operate_photo_20220730101148.go new file mode 100644 index 0000000..4452603 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730101148.go @@ -0,0 +1,31 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + overall.CONSTANT_DB_MANAGE_ARCHIVES. + if err != nil { + publicmethod.Result(107, err, c) + return + } + + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730101201.go b/.history/api/version1/honoraryArchives/operate_photo_20220730101201.go new file mode 100644 index 0000000..7965eaf --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730101201.go @@ -0,0 +1,32 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + overall.CONSTANT_DB_MANAGE_ARCHIVES + over + if err != nil { + publicmethod.Result(107, err, c) + return + } + + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730101204.go b/.history/api/version1/honoraryArchives/operate_photo_20220730101204.go new file mode 100644 index 0000000..72b7d9d --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730101204.go @@ -0,0 +1,32 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + overall.CONSTANT_DB_MANAGE_ARCHIVES + over + // if err != nil { + // publicmethod.Result(107, err, c) + // return + // } + + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730101209.go b/.history/api/version1/honoraryArchives/operate_photo_20220730101209.go new file mode 100644 index 0000000..6cb597e --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730101209.go @@ -0,0 +1,31 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + overall. + // if err != nil { + // publicmethod.Result(107, err, c) + // return + // } + + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730101213.go b/.history/api/version1/honoraryArchives/operate_photo_20220730101213.go new file mode 100644 index 0000000..3b33411 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730101213.go @@ -0,0 +1,30 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + overall. + // if err != nil { + // publicmethod.Result(107, err, c) + // return + // } + + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730101223.go b/.history/api/version1/honoraryArchives/operate_photo_20220730101223.go new file mode 100644 index 0000000..39548e4 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730101223.go @@ -0,0 +1,28 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + overall. + // if err != nil { + // publicmethod.Result(107, err, c) + // return + // } + + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730101233.go b/.history/api/version1/honoraryArchives/operate_photo_20220730101233.go new file mode 100644 index 0000000..9fcbac2 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730101233.go @@ -0,0 +1,28 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + overall. + // if err != nil { + // publicmethod.Result(107, err, c) + // return + // } + + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730101242.go b/.history/api/version1/honoraryArchives/operate_photo_20220730101242.go new file mode 100644 index 0000000..075c426 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730101242.go @@ -0,0 +1,27 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + o + // if err != nil { + // publicmethod.Result(107, err, c) + // return + // } + + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730101246.go b/.history/api/version1/honoraryArchives/operate_photo_20220730101246.go new file mode 100644 index 0000000..075c426 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730101246.go @@ -0,0 +1,27 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + o + // if err != nil { + // publicmethod.Result(107, err, c) + // return + // } + + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730101248.go b/.history/api/version1/honoraryArchives/operate_photo_20220730101248.go new file mode 100644 index 0000000..c102b7b --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730101248.go @@ -0,0 +1,27 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + + // if err != nil { + // publicmethod.Result(107, err, c) + // return + // } + + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730101252.go b/.history/api/version1/honoraryArchives/operate_photo_20220730101252.go new file mode 100644 index 0000000..4452603 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730101252.go @@ -0,0 +1,31 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + overall.CONSTANT_DB_MANAGE_ARCHIVES. + if err != nil { + publicmethod.Result(107, err, c) + return + } + + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730101254.go b/.history/api/version1/honoraryArchives/operate_photo_20220730101254.go new file mode 100644 index 0000000..09c47af --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730101254.go @@ -0,0 +1,31 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + overall.CONSTANT_DB_MANAGE_ARCHIVES + if err != nil { + publicmethod.Result(107, err, c) + return + } + + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730101303.go b/.history/api/version1/honoraryArchives/operate_photo_20220730101303.go new file mode 100644 index 0000000..8fa949b --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730101303.go @@ -0,0 +1,32 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + o + err := nil + if err != nil { + publicmethod.Result(107, err, c) + return + } + + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730101306.go b/.history/api/version1/honoraryArchives/operate_photo_20220730101306.go new file mode 100644 index 0000000..1e95a14 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730101306.go @@ -0,0 +1,32 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + overall. + err := nil + if err != nil { + publicmethod.Result(107, err, c) + return + } + + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730101314.go b/.history/api/version1/honoraryArchives/operate_photo_20220730101314.go new file mode 100644 index 0000000..fc2dfe3 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730101314.go @@ -0,0 +1,32 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + overall. + err nil + if err != nil { + publicmethod.Result(107, err, c) + return + } + + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730101323.go b/.history/api/version1/honoraryArchives/operate_photo_20220730101323.go new file mode 100644 index 0000000..1124c3f --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730101323.go @@ -0,0 +1,31 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + err := error. + if err != nil { + publicmethod.Result(107, err, c) + return + } + + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730101325.go b/.history/api/version1/honoraryArchives/operate_photo_20220730101325.go new file mode 100644 index 0000000..59529c3 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730101325.go @@ -0,0 +1,31 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + // "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + err := error. + if err != nil { + publicmethod.Result(107, err, c) + return + } + + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730101330.go b/.history/api/version1/honoraryArchives/operate_photo_20220730101330.go new file mode 100644 index 0000000..59529c3 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730101330.go @@ -0,0 +1,31 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + // "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + err := error. + if err != nil { + publicmethod.Result(107, err, c) + return + } + + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730101351.go b/.history/api/version1/honoraryArchives/operate_photo_20220730101351.go new file mode 100644 index 0000000..43fc363 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730101351.go @@ -0,0 +1,30 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + er + if err != nil { + publicmethod.Result(107, err, c) + return + } + + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730101353.go b/.history/api/version1/honoraryArchives/operate_photo_20220730101353.go new file mode 100644 index 0000000..665051d --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730101353.go @@ -0,0 +1,30 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + error. + if err != nil { + publicmethod.Result(107, err, c) + return + } + + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730101400.go b/.history/api/version1/honoraryArchives/operate_photo_20220730101400.go new file mode 100644 index 0000000..1124c3f --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730101400.go @@ -0,0 +1,31 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + err := error. + if err != nil { + publicmethod.Result(107, err, c) + return + } + + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730101412.go b/.history/api/version1/honoraryArchives/operate_photo_20220730101412.go new file mode 100644 index 0000000..fc56412 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730101412.go @@ -0,0 +1,28 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.HonoraryArchives{}).Where("state BETWEEN ? AND ?", 1, 2) + + + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730101638.go b/.history/api/version1/honoraryArchives/operate_photo_20220730101638.go new file mode 100644 index 0000000..88289dd --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730101638.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.HonoraryArchives{}).Where("state BETWEEN ? AND ?", 1, 2) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730101912.go b/.history/api/version1/honoraryArchives/operate_photo_20220730101912.go new file mode 100644 index 0000000..92d2ebe --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730101912.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + // gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.HonoraryArchives{}).Where("state BETWEEN ? AND ?", 1, 2) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730101917.go b/.history/api/version1/honoraryArchives/operate_photo_20220730101917.go new file mode 100644 index 0000000..afd17db --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730101917.go @@ -0,0 +1,27 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + // gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.HonoraryArchives{}).Where("state BETWEEN ? AND ?", 1, 2) + overall.con + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730101919.go b/.history/api/version1/honoraryArchives/operate_photo_20220730101919.go new file mode 100644 index 0000000..d2e384d --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730101919.go @@ -0,0 +1,27 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + // gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.HonoraryArchives{}).Where("state BETWEEN ? AND ?", 1, 2) + overall.cona + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730101927.go b/.history/api/version1/honoraryArchives/operate_photo_20220730101927.go new file mode 100644 index 0000000..1768683 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730101927.go @@ -0,0 +1,27 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + // gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.HonoraryArchives{}).Where("state BETWEEN ? AND ?", 1, 2) + // overall.cona + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730101930.go b/.history/api/version1/honoraryArchives/operate_photo_20220730101930.go new file mode 100644 index 0000000..92d2ebe --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730101930.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + // gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.HonoraryArchives{}).Where("state BETWEEN ? AND ?", 1, 2) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730101931.go b/.history/api/version1/honoraryArchives/operate_photo_20220730101931.go new file mode 100644 index 0000000..7f0511f --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730101931.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + // gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.HonoraryArchives{}).Where("state BETWEEN ? AND ?", 1, 2) + // publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730101932.go b/.history/api/version1/honoraryArchives/operate_photo_20220730101932.go new file mode 100644 index 0000000..92d2ebe --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730101932.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + // gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.HonoraryArchives{}).Where("state BETWEEN ? AND ?", 1, 2) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730101934.go b/.history/api/version1/honoraryArchives/operate_photo_20220730101934.go new file mode 100644 index 0000000..88289dd --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730101934.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.HonoraryArchives{}).Where("state BETWEEN ? AND ?", 1, 2) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730101957.go b/.history/api/version1/honoraryArchives/operate_photo_20220730101957.go new file mode 100644 index 0000000..a7c0692 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730101957.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.HonoraryArchives{}) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730102014.go b/.history/api/version1/honoraryArchives/operate_photo_20220730102014.go new file mode 100644 index 0000000..dd2d20f --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730102014.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730102020.go b/.history/api/version1/honoraryArchives/operate_photo_20220730102020.go new file mode 100644 index 0000000..26794e8 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730102020.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730102021.go b/.history/api/version1/honoraryArchives/operate_photo_20220730102021.go new file mode 100644 index 0000000..1c249c8 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730102021.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730102309.go b/.history/api/version1/honoraryArchives/operate_photo_20220730102309.go new file mode 100644 index 0000000..2d1acbb --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730102309.go @@ -0,0 +1,27 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb. + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730102443.go b/.history/api/version1/honoraryArchives/operate_photo_20220730102443.go new file mode 100644 index 0000000..0824c26 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730102443.go @@ -0,0 +1,27 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.wher + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730102444.go b/.history/api/version1/honoraryArchives/operate_photo_20220730102444.go new file mode 100644 index 0000000..dc65b25 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730102444.go @@ -0,0 +1,27 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where() + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730102448.go b/.history/api/version1/honoraryArchives/operate_photo_20220730102448.go new file mode 100644 index 0000000..0340453 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730102448.go @@ -0,0 +1,27 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where("") + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730102451.go b/.history/api/version1/honoraryArchives/operate_photo_20220730102451.go new file mode 100644 index 0000000..bd8f771 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730102451.go @@ -0,0 +1,27 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where("as") + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730102456.go b/.history/api/version1/honoraryArchives/operate_photo_20220730102456.go new file mode 100644 index 0000000..52375e4 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730102456.go @@ -0,0 +1,27 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(whe) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730102457.go b/.history/api/version1/honoraryArchives/operate_photo_20220730102457.go new file mode 100644 index 0000000..21075f8 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730102457.go @@ -0,0 +1,27 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730102500.go b/.history/api/version1/honoraryArchives/operate_photo_20220730102500.go new file mode 100644 index 0000000..96113d6 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730102500.go @@ -0,0 +1,27 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find() + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730102502.go b/.history/api/version1/honoraryArchives/operate_photo_20220730102502.go new file mode 100644 index 0000000..660a452 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730102502.go @@ -0,0 +1,27 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730102507.go b/.history/api/version1/honoraryArchives/operate_photo_20220730102507.go new file mode 100644 index 0000000..050667b --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730102507.go @@ -0,0 +1,27 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730102508.go b/.history/api/version1/honoraryArchives/operate_photo_20220730102508.go new file mode 100644 index 0000000..050667b --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730102508.go @@ -0,0 +1,27 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730102516.go b/.history/api/version1/honoraryArchives/operate_photo_20220730102516.go new file mode 100644 index 0000000..050667b --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730102516.go @@ -0,0 +1,27 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + // photoUrl := photoGalleryByAscriptionId.Url + // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730102812.go b/.history/api/version1/honoraryArchives/operate_photo_20220730102812.go new file mode 100644 index 0000000..9ad1e73 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730102812.go @@ -0,0 +1,25 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103004.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103004.go new file mode 100644 index 0000000..e9fce06 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103004.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + publicmethod.ResultList() +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103014.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103014.go new file mode 100644 index 0000000..a2de2df --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103014.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + publicmethod.ResultList(0,) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103019.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103019.go new file mode 100644 index 0000000..c6c2b9f --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103019.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + publicmethod.ResultList(0,req) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103021.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103021.go new file mode 100644 index 0000000..2e6d74c --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103021.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + publicmethod.ResultList(0,request) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103023.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103023.go new file mode 100644 index 0000000..3a88689 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103023.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + publicmethod.ResultList(0,requestD) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103028.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103028.go new file mode 100644 index 0000000..19ef528 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103028.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + publicmethod.ResultList(0,requestData.P) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103029.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103029.go new file mode 100644 index 0000000..b51ada9 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103029.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + publicmethod.ResultList(0,requestData.) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103032.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103032.go new file mode 100644 index 0000000..9ad1e73 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103032.go @@ -0,0 +1,25 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103206.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103206.go new file mode 100644 index 0000000..17a801d --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103206.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103215.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103215.go new file mode 100644 index 0000000..a368174 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103215.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + publicmethod +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103218.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103218.go new file mode 100644 index 0000000..88b9b7a --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103218.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + publicmethod.Resu +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103219.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103219.go new file mode 100644 index 0000000..e9fce06 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103219.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + publicmethod.ResultList() +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103221.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103221.go new file mode 100644 index 0000000..a2de2df --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103221.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + publicmethod.ResultList(0,) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103227.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103227.go new file mode 100644 index 0000000..e820ad3 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103227.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + publicmethod.ResultList(0,1,) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103232.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103232.go new file mode 100644 index 0000000..df50277 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103232.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + publicmethod.ResultList(0,p) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103234.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103234.go new file mode 100644 index 0000000..7df406b --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103234.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + publicmethod.ResultList(0,ov) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103237.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103237.go new file mode 100644 index 0000000..eeb8faa --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103237.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + publicmethod.ResultList(0,overall.) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103243.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103243.go new file mode 100644 index 0000000..e9fce06 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103243.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + publicmethod.ResultList() +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103305.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103305.go new file mode 100644 index 0000000..c24e36b --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103305.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + publicmethod.ResultList(0,public) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103308.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103308.go new file mode 100644 index 0000000..d11c81c --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103308.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + publicmethod.ResultList(0,publicmethod.LimitPage(.)) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103312.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103312.go new file mode 100644 index 0000000..3887a82 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103312.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + publicmethod.ResultList(0,publicmethod.pa) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103316.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103316.go new file mode 100644 index 0000000..db2748e --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103316.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + publicmethod.ResultList(0,publicmethod.PagesTurn.) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103318.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103318.go new file mode 100644 index 0000000..1930796 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103318.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + publicmethod.ResultList(0,publicmethod.PagesTurn.Page,) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103333.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103333.go new file mode 100644 index 0000000..fb78db5 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103333.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + publicmethod.ResultList(0,publicmethod.PagesTurn.Page,publi) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103335.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103335.go new file mode 100644 index 0000000..5f5d1f3 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103335.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + publicmethod.ResultList(0,publicmethod.PagesTurn.Page,publicmethod.) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103339.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103339.go new file mode 100644 index 0000000..c59ffe7 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103339.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + publicmethod.ResultList(0,publicmethod.PagesTurn.Page,publicmethod.pag) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103340.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103340.go new file mode 100644 index 0000000..67956af --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103340.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + publicmethod.ResultList(0,publicmethod.PagesTurn.Page,publicmethod.PagesTurn.) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103342.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103342.go new file mode 100644 index 0000000..eab09f1 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103342.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + publicmethod.ResultList(0,publicmethod.PagesTurn.Page,publicmethod.PagesTurn.PageSize) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103344.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103344.go new file mode 100644 index 0000000..b650510 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103344.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + publicmethod.ResultList(0,publicmethod.PagesTurn.Page,publicmethod.PagesTurn.PageSize,) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103347.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103347.go new file mode 100644 index 0000000..d775ce5 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103347.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + publicmethod.ResultList(0,publicmethod.PagesTurn.Page,publicmethod.PagesTurn.PageSize,len()) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103351.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103351.go new file mode 100644 index 0000000..0299e01 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103351.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + publicmethod.ResultList(0,publicmethod.PagesTurn.Page,publicmethod.PagesTurn.PageSize,len(photoGalleryByAscriptionId)) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103352.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103352.go new file mode 100644 index 0000000..a338cfd --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103352.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + publicmethod.ResultList(0, publicmethod.PagesTurn.Page, publicmethod.PagesTurn.PageSize, len(photoGalleryByAscriptionId)) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103507.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103507.go new file mode 100644 index 0000000..b81d371 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103507.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + publicmethod.ResultList(0, pr, publicmethod.PagesTurn.PageSize, len(photoGalleryByAscriptionId)) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103509.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103509.go new file mode 100644 index 0000000..843af6f --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103509.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + publicmethod.ResultList(0, req, publicmethod.PagesTurn.PageSize, len(photoGalleryByAscriptionId)) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103511.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103511.go new file mode 100644 index 0000000..2179637 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103511.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + publicmethod.ResultList(0, requestData.Page, publicmethod.PagesTurn.PageSize, len(photoGalleryByAscriptionId)) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103515.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103515.go new file mode 100644 index 0000000..7c052f6 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103515.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + publicmethod.ResultList(0, requestData.Page, req.PageSize, len(photoGalleryByAscriptionId)) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103516.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103516.go new file mode 100644 index 0000000..1338e38 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103516.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + publicmethod.ResultList(0, requestData.Page, requestData.PageSize.PageSize, len(photoGalleryByAscriptionId)) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103517.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103517.go new file mode 100644 index 0000000..3f988c6 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103517.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + publicmethod.ResultList(0, requestData.Page, requestData.PageSize, len(photoGalleryByAscriptionId)) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103536.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103536.go new file mode 100644 index 0000000..ddee245 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103536.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + publicmethod.ResultList(0, requestData.Page, requestData.PageSize, len(photoGalleryByAscriptionId),) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103538.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103538.go new file mode 100644 index 0000000..6f823ba --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103538.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + publicmethod.ResultList(0, requestData.Page, requestData.PageSize, len(photoGalleryByAscriptionId),pho) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103541.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103541.go new file mode 100644 index 0000000..ddee245 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103541.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + publicmethod.ResultList(0, requestData.Page, requestData.PageSize, len(photoGalleryByAscriptionId),) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103544.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103544.go new file mode 100644 index 0000000..6f823ba --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103544.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + publicmethod.ResultList(0, requestData.Page, requestData.PageSize, len(photoGalleryByAscriptionId),pho) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103548.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103548.go new file mode 100644 index 0000000..2306ec7 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103548.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + publicmethod.ResultList(0, requestData.Page, requestData.PageSize, len(photoGalleryByAscriptionId),photoG) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103550.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103550.go new file mode 100644 index 0000000..9834ec1 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103550.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + publicmethod.ResultList(0, requestData.Page, requestData.PageSize, len(photoGalleryByAscriptionId),photoGalleryByAscriptionId,) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103601.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103601.go new file mode 100644 index 0000000..c6c48f1 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103601.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + publicmethod.ResultList(0, requestData.Page, requestData.PageSize, len(photoGalleryByAscriptionId),,photoGalleryByAscriptionId,) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103605.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103605.go new file mode 100644 index 0000000..404d00a --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103605.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + publicmethod.ResultList(0, requestData.Page, requestData.PageSize, len(photoGalleryByAscriptionId),t,photoGalleryByAscriptionId,) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103608.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103608.go new file mode 100644 index 0000000..c6c48f1 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103608.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + publicmethod.ResultList(0, requestData.Page, requestData.PageSize, len(photoGalleryByAscriptionId),,photoGalleryByAscriptionId,) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103630.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103630.go new file mode 100644 index 0000000..a52bc11 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103630.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + publicmethod.ResultList(0, requestData.Page, requestData.PageSize, len(photoGalleryByAscriptionId),gorm,photoGalleryByAscriptionId,) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103633.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103633.go new file mode 100644 index 0000000..87fa9f7 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103633.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + publicmethod.ResultList(0, requestData.Page, requestData.PageSize, len(photoGalleryByAscriptionId),gormDb.coun,photoGalleryByAscriptionId,) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103634.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103634.go new file mode 100644 index 0000000..5e4d1a1 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103634.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + publicmethod.ResultList(0, requestData.Page, requestData.PageSize, len(photoGalleryByAscriptionId),gormDb.Count(),photoGalleryByAscriptionId,) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103644.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103644.go new file mode 100644 index 0000000..d9ffbff --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103644.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + publicmethod.ResultList(0, requestData.Page, requestData.PageSize, len(photoGalleryByAscriptionId),gormDb.Count(&),photoGalleryByAscriptionId,) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103647.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103647.go new file mode 100644 index 0000000..5e4d1a1 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103647.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + publicmethod.ResultList(0, requestData.Page, requestData.PageSize, len(photoGalleryByAscriptionId),gormDb.Count(),photoGalleryByAscriptionId,) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103654.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103654.go new file mode 100644 index 0000000..030a1d0 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103654.go @@ -0,0 +1,27 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + total + publicmethod.ResultList(0, requestData.Page, requestData.PageSize, len(photoGalleryByAscriptionId),,photoGalleryByAscriptionId,) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103656.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103656.go new file mode 100644 index 0000000..030a1d0 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103656.go @@ -0,0 +1,27 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + total + publicmethod.ResultList(0, requestData.Page, requestData.PageSize, len(photoGalleryByAscriptionId),,photoGalleryByAscriptionId,) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103659.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103659.go new file mode 100644 index 0000000..d524ff3 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103659.go @@ -0,0 +1,27 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + var total + publicmethod.ResultList(0, requestData.Page, requestData.PageSize, len(photoGalleryByAscriptionId),,photoGalleryByAscriptionId,) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103701.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103701.go new file mode 100644 index 0000000..1164e8f --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103701.go @@ -0,0 +1,27 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + var total int + publicmethod.ResultList(0, requestData.Page, requestData.PageSize, len(photoGalleryByAscriptionId),,photoGalleryByAscriptionId,) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103702.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103702.go new file mode 100644 index 0000000..c4c20bb --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103702.go @@ -0,0 +1,27 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + var total int + publicmethod.ResultList(0, requestData.Page, requestData.PageSize, len(photoGalleryByAscriptionId),gormDb.Count(),photoGalleryByAscriptionId,) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103709.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103709.go new file mode 100644 index 0000000..4108c49 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103709.go @@ -0,0 +1,27 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + var total int + publicmethod.ResultList(0, requestData.Page, requestData.PageSize, len(photoGalleryByAscriptionId), int64(total), photoGalleryByAscriptionId) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103713.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103713.go new file mode 100644 index 0000000..1d01a07 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103713.go @@ -0,0 +1,27 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + var total int64 + publicmethod.ResultList(0, requestData.Page, requestData.PageSize, len(photoGalleryByAscriptionId), int64(total), photoGalleryByAscriptionId) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103716.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103716.go new file mode 100644 index 0000000..5a7e892 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103716.go @@ -0,0 +1,27 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + var total int64 + publicmethod.ResultList(0, requestData.Page, requestData.PageSize, len(photoGalleryByAscriptionId), total), photoGalleryByAscriptionId) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103717.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103717.go new file mode 100644 index 0000000..d99d432 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103717.go @@ -0,0 +1,27 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + var total int64 + publicmethod.ResultList(0, requestData.Page, requestData.PageSize, len(photoGalleryByAscriptionId), total, photoGalleryByAscriptionId) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103723.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103723.go new file mode 100644 index 0000000..ff36526 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103723.go @@ -0,0 +1,28 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + var total int64 + + publicmethod.ResultList(0, requestData.Page, requestData.PageSize, len(photoGalleryByAscriptionId), total, photoGalleryByAscriptionId) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103725.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103725.go new file mode 100644 index 0000000..ab024fa --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103725.go @@ -0,0 +1,28 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + var total int64 + db.co + publicmethod.ResultList(0, requestData.Page, requestData.PageSize, len(photoGalleryByAscriptionId), total, photoGalleryByAscriptionId) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103733.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103733.go new file mode 100644 index 0000000..0da87a0 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103733.go @@ -0,0 +1,28 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + var total int64 + gormDb.Count() + publicmethod.ResultList(0, requestData.Page, requestData.PageSize, len(photoGalleryByAscriptionId), total, photoGalleryByAscriptionId) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103734.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103734.go new file mode 100644 index 0000000..1850b7d --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103734.go @@ -0,0 +1,28 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + var total int64 + gormDb.Count(&) + publicmethod.ResultList(0, requestData.Page, requestData.PageSize, len(photoGalleryByAscriptionId), total, photoGalleryByAscriptionId) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103736.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103736.go new file mode 100644 index 0000000..d7b6ae2 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103736.go @@ -0,0 +1,28 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + var total int64 + gormDb.Count(&total) + publicmethod.ResultList(0, requestData.Page, requestData.PageSize, len(photoGalleryByAscriptionId), total, photoGalleryByAscriptionId) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103746.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103746.go new file mode 100644 index 0000000..c11dab1 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103746.go @@ -0,0 +1,28 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + var total int64 + gormDb.Count(&total) + publicmethod.ResultList(0, requestData.Page, requestData.PageSize, len(photoGalleryByAscriptionId), total, ,photoGalleryByAscriptionId) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103751.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103751.go new file mode 100644 index 0000000..b9dbc3a --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103751.go @@ -0,0 +1,28 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + var total int64 + gormDb.Count(&total) + publicmethod.ResultList(0, requestData.Page, requestData.PageSize, len(photoGalleryByAscriptionId), total, c,photoGalleryByAscriptionId) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103754.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103754.go new file mode 100644 index 0000000..43b41d1 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103754.go @@ -0,0 +1,28 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + var total int64 + gormDb.Count(&total) + publicmethod.ResultList(0, requestData.Page, requestData.PageSize, len(photoGalleryByAscriptionId), total,photoGalleryByAscriptionId) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103808.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103808.go new file mode 100644 index 0000000..1cc1390 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103808.go @@ -0,0 +1,28 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + var total int64 + gormDb.Count(&total) + publicmethod.ResultList(0, requestData.Page, requestData.PageSize, total,photoGalleryByAscriptionId) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103810.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103810.go new file mode 100644 index 0000000..7825d9a --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103810.go @@ -0,0 +1,28 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + var total int64 + gormDb.Count(&total) + publicmethod.ResultList(0, requestData.Page, requestData.PageSize, total,len(photoGalleryByAscriptionId),,photoGalleryByAscriptionId) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103812.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103812.go new file mode 100644 index 0000000..3e31e57 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103812.go @@ -0,0 +1,28 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + var total int64 + gormDb.Count(&total) + publicmethod.ResultList(0, requestData.Page, requestData.PageSize, total, len(photoGalleryByAscriptionId), photoGalleryByAscriptionId) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103818.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103818.go new file mode 100644 index 0000000..f94c96d --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103818.go @@ -0,0 +1,28 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + var total int64 + gormDb.Count(&total) + publicmethod.ResultList(0, requestData.Page, requestData.PageSize, total, len(photoGalleryByAscriptionId), photoGalleryByAscriptionId,) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103820.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103820.go new file mode 100644 index 0000000..564ee6a --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103820.go @@ -0,0 +1,28 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + var total int64 + gormDb.Count(&total) + publicmethod.ResultList(0, requestData.Page, requestData.PageSize, total, len(photoGalleryByAscriptionId), photoGalleryByAscriptionId, c) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103829.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103829.go new file mode 100644 index 0000000..def7197 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103829.go @@ -0,0 +1,28 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + var total int64 + gormDb.Count(&total) + publicmethod.ResultList(0, requestData.Page, requestData.PageSize, total, intlen(photoGalleryByAscriptionId), photoGalleryByAscriptionId, c) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103832.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103832.go new file mode 100644 index 0000000..8b165df --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103832.go @@ -0,0 +1,28 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + var total int64 + gormDb.Count(&total) + publicmethod.ResultList(0, requestData.Page, requestData.PageSize, total, int64(len(photoGalleryByAscriptionId), photoGalleryByAscriptionId, c) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103833.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103833.go new file mode 100644 index 0000000..db4dfbc --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103833.go @@ -0,0 +1,28 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + var total int64 + gormDb.Count(&total) + publicmethod.ResultList(0, requestData.Page, requestData.PageSize, total, int64(len(photoGalleryByAscriptionId)), photoGalleryByAscriptionId, c) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730103855.go b/.history/api/version1/honoraryArchives/operate_photo_20220730103855.go new file mode 100644 index 0000000..7644e37 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730103855.go @@ -0,0 +1,29 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + + var total int64 + gormDb.Count(&total) + publicmethod.ResultList(0, requestData.Page, requestData.PageSize, total, int64(len(photoGalleryByAscriptionId)), photoGalleryByAscriptionId, c) +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730104105.go b/.history/api/version1/honoraryArchives/operate_photo_20220730104105.go new file mode 100644 index 0000000..8dc122b --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730104105.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730104106.go b/.history/api/version1/honoraryArchives/operate_photo_20220730104106.go new file mode 100644 index 0000000..8dc122b --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730104106.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730104141.go b/.history/api/version1/honoraryArchives/operate_photo_20220730104141.go new file mode 100644 index 0000000..1f13969 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730104141.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}). + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730104148.go b/.history/api/version1/honoraryArchives/operate_photo_20220730104148.go new file mode 100644 index 0000000..dc41c5e --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730104148.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}).Where("state bet") + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730104154.go b/.history/api/version1/honoraryArchives/operate_photo_20220730104154.go new file mode 100644 index 0000000..29862c2 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730104154.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}).Where("state = ?") + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730104202.go b/.history/api/version1/honoraryArchives/operate_photo_20220730104202.go new file mode 100644 index 0000000..c4a4cc3 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730104202.go @@ -0,0 +1,26 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}).Where("state = ?", 1) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 + +} diff --git a/.history/api/version1/honoraryArchives/operate_photo_20220730104833.go b/.history/api/version1/honoraryArchives/operate_photo_20220730104833.go new file mode 100644 index 0000000..a081b17 --- /dev/null +++ b/.history/api/version1/honoraryArchives/operate_photo_20220730104833.go @@ -0,0 +1,25 @@ +package honoraryArchives + +import ( + "key_performance_indicators/models" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +// 查询图片 +func (a *ApiMethod) ReviewImage(c *gin.Context) { + var requestData photoKey //声明荣誉图片字段 + c.ShouldBindJSON(&requestData) //进行Json绑定 + if requestData.Id == "" { + publicmethod.Result(101, requestData, c) + return + } + var photoGalleryByAscriptionId []models.PhotosGallery + where := publicmethod.MapOut[string]() + where["ascriptionid"] = requestData.Id + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}).Where("state = ?", 1) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) + publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 +} diff --git a/.history/api/version1/honoraryArchives/type_20220730103453.go b/.history/api/version1/honoraryArchives/type_20220730103453.go new file mode 100644 index 0000000..a99741a --- /dev/null +++ b/.history/api/version1/honoraryArchives/type_20220730103453.go @@ -0,0 +1,71 @@ +package honoraryArchives + +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 honorListKey struct { + publicmethod.PagesTurn + Name string `json:"name"` //名称 + IssuingAgency string `json:"issuingagency"` //发放单位 + Carrier int `json:"carrier"` //载体 + AwardTimeBegin string `json:"awardtimebegin"` //获奖时间 + AwardTimeEnd string `json:"awardtimeend"` //获奖时间 + Organize string `json:"organize"` //行政组织 + UserKey string `json:"userkey"` //人员Key +} + +//添加荣誉 +type addHonorCont struct { + addCarrierCont + IssuingAgency string `json:"issuingagency"` //发放单位 + Carrier int64 `json:"carrier"` //载体 + AwardTime string `json:"awardtime"` //获奖时间 + EfficientDate string `json:"efficientDate"` //有效期限 + Organize string `json:"organize"` //行政组织 + UserKey string `json:"userkey"` //人员Key + Remark string `json:"remark"` //备注 + ImgUrl []publicmethod.PubilcImageCont `json:"imgurl"` //图片集 +} + +//编辑荣誉 +type eidtHonorCont struct { + publicmethod.PublicId + addHonorCont +} + +//载体类型查询字段 +type carrierListKey struct { + publicmethod.PagesTurn + addCarrierCont +} + +//添加载体类型 +type addCarrierCont struct { + Name string `json:"name"` //名称 +} + +//编辑载体类型 +type eidyCarrierCont struct { + publicmethod.PublicId + addCarrierCont +} + +// 荣誉图片字段 +type photoKey struct { + publicmethod.PublicId + addHonorCont + publ +} diff --git a/.history/api/version1/honoraryArchives/type_20220730103455.go b/.history/api/version1/honoraryArchives/type_20220730103455.go new file mode 100644 index 0000000..41a7fe3 --- /dev/null +++ b/.history/api/version1/honoraryArchives/type_20220730103455.go @@ -0,0 +1,72 @@ +package honoraryArchives + +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 honorListKey struct { + publicmethod.PagesTurn + Name string `json:"name"` //名称 + IssuingAgency string `json:"issuingagency"` //发放单位 + Carrier int `json:"carrier"` //载体 + AwardTimeBegin string `json:"awardtimebegin"` //获奖时间 + AwardTimeEnd string `json:"awardtimeend"` //获奖时间 + Organize string `json:"organize"` //行政组织 + UserKey string `json:"userkey"` //人员Key +} + +//添加荣誉 +type addHonorCont struct { + addCarrierCont + IssuingAgency string `json:"issuingagency"` //发放单位 + Carrier int64 `json:"carrier"` //载体 + AwardTime string `json:"awardtime"` //获奖时间 + EfficientDate string `json:"efficientDate"` //有效期限 + Organize string `json:"organize"` //行政组织 + UserKey string `json:"userkey"` //人员Key + Remark string `json:"remark"` //备注 + ImgUrl []publicmethod.PubilcImageCont `json:"imgurl"` //图片集 +} + +//编辑荣誉 +type eidtHonorCont struct { + publicmethod.PublicId + addHonorCont +} + +//载体类型查询字段 +type carrierListKey struct { + publicmethod.PagesTurn + addCarrierCont +} + +//添加载体类型 +type addCarrierCont struct { + Name string `json:"name"` //名称 +} + +//编辑载体类型 +type eidyCarrierCont struct { + publicmethod.PublicId + addCarrierCont +} + +// 荣誉图片字段 +type photoKey struct { + publicmethod.PublicId + addHonorCont + publicmethod.PublicId + +} diff --git a/.history/api/version1/honoraryArchives/type_20220730103456.go b/.history/api/version1/honoraryArchives/type_20220730103456.go new file mode 100644 index 0000000..a99741a --- /dev/null +++ b/.history/api/version1/honoraryArchives/type_20220730103456.go @@ -0,0 +1,71 @@ +package honoraryArchives + +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 honorListKey struct { + publicmethod.PagesTurn + Name string `json:"name"` //名称 + IssuingAgency string `json:"issuingagency"` //发放单位 + Carrier int `json:"carrier"` //载体 + AwardTimeBegin string `json:"awardtimebegin"` //获奖时间 + AwardTimeEnd string `json:"awardtimeend"` //获奖时间 + Organize string `json:"organize"` //行政组织 + UserKey string `json:"userkey"` //人员Key +} + +//添加荣誉 +type addHonorCont struct { + addCarrierCont + IssuingAgency string `json:"issuingagency"` //发放单位 + Carrier int64 `json:"carrier"` //载体 + AwardTime string `json:"awardtime"` //获奖时间 + EfficientDate string `json:"efficientDate"` //有效期限 + Organize string `json:"organize"` //行政组织 + UserKey string `json:"userkey"` //人员Key + Remark string `json:"remark"` //备注 + ImgUrl []publicmethod.PubilcImageCont `json:"imgurl"` //图片集 +} + +//编辑荣誉 +type eidtHonorCont struct { + publicmethod.PublicId + addHonorCont +} + +//载体类型查询字段 +type carrierListKey struct { + publicmethod.PagesTurn + addCarrierCont +} + +//添加载体类型 +type addCarrierCont struct { + Name string `json:"name"` //名称 +} + +//编辑载体类型 +type eidyCarrierCont struct { + publicmethod.PublicId + addCarrierCont +} + +// 荣誉图片字段 +type photoKey struct { + publicmethod.PublicId + addHonorCont + publ +} diff --git a/.history/api/version1/honoraryArchives/type_20220730103458.go b/.history/api/version1/honoraryArchives/type_20220730103458.go new file mode 100644 index 0000000..ff0d305 --- /dev/null +++ b/.history/api/version1/honoraryArchives/type_20220730103458.go @@ -0,0 +1,71 @@ +package honoraryArchives + +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 honorListKey struct { + publicmethod.PagesTurn + Name string `json:"name"` //名称 + IssuingAgency string `json:"issuingagency"` //发放单位 + Carrier int `json:"carrier"` //载体 + AwardTimeBegin string `json:"awardtimebegin"` //获奖时间 + AwardTimeEnd string `json:"awardtimeend"` //获奖时间 + Organize string `json:"organize"` //行政组织 + UserKey string `json:"userkey"` //人员Key +} + +//添加荣誉 +type addHonorCont struct { + addCarrierCont + IssuingAgency string `json:"issuingagency"` //发放单位 + Carrier int64 `json:"carrier"` //载体 + AwardTime string `json:"awardtime"` //获奖时间 + EfficientDate string `json:"efficientDate"` //有效期限 + Organize string `json:"organize"` //行政组织 + UserKey string `json:"userkey"` //人员Key + Remark string `json:"remark"` //备注 + ImgUrl []publicmethod.PubilcImageCont `json:"imgurl"` //图片集 +} + +//编辑荣誉 +type eidtHonorCont struct { + publicmethod.PublicId + addHonorCont +} + +//载体类型查询字段 +type carrierListKey struct { + publicmethod.PagesTurn + addCarrierCont +} + +//添加载体类型 +type addCarrierCont struct { + Name string `json:"name"` //名称 +} + +//编辑载体类型 +type eidyCarrierCont struct { + publicmethod.PublicId + addCarrierCont +} + +// 荣誉图片字段 +type photoKey struct { + publicmethod.PublicId + addHonorCont + public +} diff --git a/.history/api/version1/honoraryArchives/type_20220730103500.go b/.history/api/version1/honoraryArchives/type_20220730103500.go new file mode 100644 index 0000000..9a98617 --- /dev/null +++ b/.history/api/version1/honoraryArchives/type_20220730103500.go @@ -0,0 +1,71 @@ +package honoraryArchives + +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 honorListKey struct { + publicmethod.PagesTurn + Name string `json:"name"` //名称 + IssuingAgency string `json:"issuingagency"` //发放单位 + Carrier int `json:"carrier"` //载体 + AwardTimeBegin string `json:"awardtimebegin"` //获奖时间 + AwardTimeEnd string `json:"awardtimeend"` //获奖时间 + Organize string `json:"organize"` //行政组织 + UserKey string `json:"userkey"` //人员Key +} + +//添加荣誉 +type addHonorCont struct { + addCarrierCont + IssuingAgency string `json:"issuingagency"` //发放单位 + Carrier int64 `json:"carrier"` //载体 + AwardTime string `json:"awardtime"` //获奖时间 + EfficientDate string `json:"efficientDate"` //有效期限 + Organize string `json:"organize"` //行政组织 + UserKey string `json:"userkey"` //人员Key + Remark string `json:"remark"` //备注 + ImgUrl []publicmethod.PubilcImageCont `json:"imgurl"` //图片集 +} + +//编辑荣誉 +type eidtHonorCont struct { + publicmethod.PublicId + addHonorCont +} + +//载体类型查询字段 +type carrierListKey struct { + publicmethod.PagesTurn + addCarrierCont +} + +//添加载体类型 +type addCarrierCont struct { + Name string `json:"name"` //名称 +} + +//编辑载体类型 +type eidyCarrierCont struct { + publicmethod.PublicId + addCarrierCont +} + +// 荣誉图片字段 +type photoKey struct { + publicmethod.PublicId + addHonorCont + publicmethod. +} diff --git a/.history/api/version1/honoraryArchives/type_20220730103502.go b/.history/api/version1/honoraryArchives/type_20220730103502.go new file mode 100644 index 0000000..b67e81e --- /dev/null +++ b/.history/api/version1/honoraryArchives/type_20220730103502.go @@ -0,0 +1,71 @@ +package honoraryArchives + +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 honorListKey struct { + publicmethod.PagesTurn + Name string `json:"name"` //名称 + IssuingAgency string `json:"issuingagency"` //发放单位 + Carrier int `json:"carrier"` //载体 + AwardTimeBegin string `json:"awardtimebegin"` //获奖时间 + AwardTimeEnd string `json:"awardtimeend"` //获奖时间 + Organize string `json:"organize"` //行政组织 + UserKey string `json:"userkey"` //人员Key +} + +//添加荣誉 +type addHonorCont struct { + addCarrierCont + IssuingAgency string `json:"issuingagency"` //发放单位 + Carrier int64 `json:"carrier"` //载体 + AwardTime string `json:"awardtime"` //获奖时间 + EfficientDate string `json:"efficientDate"` //有效期限 + Organize string `json:"organize"` //行政组织 + UserKey string `json:"userkey"` //人员Key + Remark string `json:"remark"` //备注 + ImgUrl []publicmethod.PubilcImageCont `json:"imgurl"` //图片集 +} + +//编辑荣誉 +type eidtHonorCont struct { + publicmethod.PublicId + addHonorCont +} + +//载体类型查询字段 +type carrierListKey struct { + publicmethod.PagesTurn + addCarrierCont +} + +//添加载体类型 +type addCarrierCont struct { + Name string `json:"name"` //名称 +} + +//编辑载体类型 +type eidyCarrierCont struct { + publicmethod.PublicId + addCarrierCont +} + +// 荣誉图片字段 +type photoKey struct { + publicmethod.PublicId + addHonorCont + publicmethod.PagesTurn +} diff --git a/.history/apirouter/v1/honorsRoute/honors_route_20220730103936.go b/.history/apirouter/v1/honorsRoute/honors_route_20220730103936.go new file mode 100644 index 0000000..e024864 --- /dev/null +++ b/.history/apirouter/v1/honorsRoute/honors_route_20220730103936.go @@ -0,0 +1,31 @@ +package honorsRoute + +import ( + "key_performance_indicators/api/version1" + + "github.com/gin-gonic/gin" +) + +//荣誉墙 +func (a *ApiRouter) RouterGroup(router *gin.RouterGroup) { + apiRouter := router.Group("honors") + + var methodBinding = version1.AppApiEntry.HonorsApi + { + apiRouter.GET("", methodBinding.Index) //入口 + apiRouter.POST("", methodBinding.Index) //入口 + apiRouter.POST("honorlist", methodBinding.HonorList) //荣誉列表 + apiRouter.POST("addhonorcont", methodBinding.AddHonorCont) //添加荣誉 + apiRouter.POST("eidyhonorcont", methodBinding.EidyHonorCont) //编辑荣誉 + apiRouter.POST("eidyhonorcontstate", methodBinding.EidyHonorContState) //编辑荣誉状态 + + //载体类型 + apiRouter.POST("carrierlist", methodBinding.CarrierList) //载体类型列表 + apiRouter.POST("addcarrier", methodBinding.AddCarrier) //添加载体类型 + apiRouter.POST("eidycarrier", methodBinding.EidyCarrier) //编辑载体类型 + apiRouter.POST("eidycarrierstate", methodBinding.EidyCarrierState) //编辑载体类型状态 + + // 查看图片 + apiRouter.POST("reviewimage", methodBinding.ReviewImage) // 查看图片 + } +} diff --git a/.history/apirouter/v1/honorsRoute/honors_route_20220730104854.go b/.history/apirouter/v1/honorsRoute/honors_route_20220730104854.go new file mode 100644 index 0000000..e024864 --- /dev/null +++ b/.history/apirouter/v1/honorsRoute/honors_route_20220730104854.go @@ -0,0 +1,31 @@ +package honorsRoute + +import ( + "key_performance_indicators/api/version1" + + "github.com/gin-gonic/gin" +) + +//荣誉墙 +func (a *ApiRouter) RouterGroup(router *gin.RouterGroup) { + apiRouter := router.Group("honors") + + var methodBinding = version1.AppApiEntry.HonorsApi + { + apiRouter.GET("", methodBinding.Index) //入口 + apiRouter.POST("", methodBinding.Index) //入口 + apiRouter.POST("honorlist", methodBinding.HonorList) //荣誉列表 + apiRouter.POST("addhonorcont", methodBinding.AddHonorCont) //添加荣誉 + apiRouter.POST("eidyhonorcont", methodBinding.EidyHonorCont) //编辑荣誉 + apiRouter.POST("eidyhonorcontstate", methodBinding.EidyHonorContState) //编辑荣誉状态 + + //载体类型 + apiRouter.POST("carrierlist", methodBinding.CarrierList) //载体类型列表 + apiRouter.POST("addcarrier", methodBinding.AddCarrier) //添加载体类型 + apiRouter.POST("eidycarrier", methodBinding.EidyCarrier) //编辑载体类型 + apiRouter.POST("eidycarrierstate", methodBinding.EidyCarrierState) //编辑载体类型状态 + + // 查看图片 + apiRouter.POST("reviewimage", methodBinding.ReviewImage) // 查看图片 + } +} diff --git a/.history/apirouter/v1/honorsRoute/honors_route_20220730104908.go b/.history/apirouter/v1/honorsRoute/honors_route_20220730104908.go new file mode 100644 index 0000000..e024864 --- /dev/null +++ b/.history/apirouter/v1/honorsRoute/honors_route_20220730104908.go @@ -0,0 +1,31 @@ +package honorsRoute + +import ( + "key_performance_indicators/api/version1" + + "github.com/gin-gonic/gin" +) + +//荣誉墙 +func (a *ApiRouter) RouterGroup(router *gin.RouterGroup) { + apiRouter := router.Group("honors") + + var methodBinding = version1.AppApiEntry.HonorsApi + { + apiRouter.GET("", methodBinding.Index) //入口 + apiRouter.POST("", methodBinding.Index) //入口 + apiRouter.POST("honorlist", methodBinding.HonorList) //荣誉列表 + apiRouter.POST("addhonorcont", methodBinding.AddHonorCont) //添加荣誉 + apiRouter.POST("eidyhonorcont", methodBinding.EidyHonorCont) //编辑荣誉 + apiRouter.POST("eidyhonorcontstate", methodBinding.EidyHonorContState) //编辑荣誉状态 + + //载体类型 + apiRouter.POST("carrierlist", methodBinding.CarrierList) //载体类型列表 + apiRouter.POST("addcarrier", methodBinding.AddCarrier) //添加载体类型 + apiRouter.POST("eidycarrier", methodBinding.EidyCarrier) //编辑载体类型 + apiRouter.POST("eidycarrierstate", methodBinding.EidyCarrierState) //编辑载体类型状态 + + // 查看图片 + apiRouter.POST("reviewimage", methodBinding.ReviewImage) // 查看图片 + } +} diff --git a/.history/initialization/route/initRoute_20220730104956.go b/.history/initialization/route/initRoute_20220730104956.go new file mode 100644 index 0000000..f826297 --- /dev/null +++ b/.history/initialization/route/initRoute_20220730104956.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/.history/initialization/route/initRoute_20220730110049.go b/.history/initialization/route/initRoute_20220730110049.go new file mode 100644 index 0000000..6f18fc6 --- /dev/null +++ b/.history/initialization/route/initRoute_20220730110049.go @@ -0,0 +1,67 @@ +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()) + { + version1Api := apirouter.RouterGroupEntry.HonorsSouteRouter + version1Api.RouterGroup(VerifyIdentity) + } + return router +} diff --git a/.history/initialization/route/initRoute_20220730110055.go b/.history/initialization/route/initRoute_20220730110055.go new file mode 100644 index 0000000..0662e0c --- /dev/null +++ b/.history/initialization/route/initRoute_20220730110055.go @@ -0,0 +1,67 @@ +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()) + { + version1Api := apirouter.RouterGroupEntry.HonorsSouteRouter + version1Api.RouterGroup(VerifyIdentityToken) + } + return router +} diff --git a/.history/initialization/route/initRoute_20220730110200.go b/.history/initialization/route/initRoute_20220730110200.go new file mode 100644 index 0000000..1ade059 --- /dev/null +++ b/.history/initialization/route/initRoute_20220730110200.go @@ -0,0 +1,67 @@ +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()) + { + version1Api := apirouter.RouterGroupEntry.HonorsSouteRouter + version1Api.RouterGroup(VerifyIdentityToken) + } + return router +} diff --git a/.history/initialization/route/initRoute_20220730110201.go b/.history/initialization/route/initRoute_20220730110201.go new file mode 100644 index 0000000..0662e0c --- /dev/null +++ b/.history/initialization/route/initRoute_20220730110201.go @@ -0,0 +1,67 @@ +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()) + { + version1Api := apirouter.RouterGroupEntry.HonorsSouteRouter + version1Api.RouterGroup(VerifyIdentityToken) + } + return router +} diff --git a/.history/initialization/route/initRoute_20220730110203.go b/.history/initialization/route/initRoute_20220730110203.go new file mode 100644 index 0000000..0662e0c --- /dev/null +++ b/.history/initialization/route/initRoute_20220730110203.go @@ -0,0 +1,67 @@ +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()) + { + version1Api := apirouter.RouterGroupEntry.HonorsSouteRouter + version1Api.RouterGroup(VerifyIdentityToken) + } + return router +} diff --git a/api/version1/honoraryArchives/operate_photo.go b/api/version1/honoraryArchives/operate_photo.go index 9244e28..a081b17 100644 --- a/api/version1/honoraryArchives/operate_photo.go +++ b/api/version1/honoraryArchives/operate_photo.go @@ -2,6 +2,7 @@ package honoraryArchives import ( "key_performance_indicators/models" + "key_performance_indicators/overall" "key_performance_indicators/overall/publicmethod" "github.com/gin-gonic/gin" @@ -18,13 +19,7 @@ func (a *ApiMethod) ReviewImage(c *gin.Context) { var photoGalleryByAscriptionId []models.PhotosGallery where := publicmethod.MapOut[string]() where["ascriptionid"] = requestData.Id - err := nil - if err != nil { - publicmethod.Result(107, err, c) - return - } - + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&models.PhotosGallery{}).Where("state = ?", 1) + gormDb.Where(where).Find(&photoGalleryByAscriptionId) publicmethod.Result(0, photoGalleryByAscriptionId, c) // 将查询结果返回 - // photoUrl := photoGalleryByAscriptionId.Url - // publicmethod.Result(0, photoUrl, c) // 将查询结果返回 } diff --git a/api/version1/honoraryArchives/type.go b/api/version1/honoraryArchives/type.go index edfd486..b67e81e 100644 --- a/api/version1/honoraryArchives/type.go +++ b/api/version1/honoraryArchives/type.go @@ -67,4 +67,5 @@ type eidyCarrierCont struct { type photoKey struct { publicmethod.PublicId addHonorCont + publicmethod.PagesTurn } diff --git a/apirouter/v1/honorsRoute/honors_route.go b/apirouter/v1/honorsRoute/honors_route.go index 4aa89c3..e024864 100644 --- a/apirouter/v1/honorsRoute/honors_route.go +++ b/apirouter/v1/honorsRoute/honors_route.go @@ -27,7 +27,5 @@ func (a *ApiRouter) RouterGroup(router *gin.RouterGroup) { // 查看图片 apiRouter.POST("reviewimage", methodBinding.ReviewImage) // 查看图片 - apiRouter.POST("editimage", methodBinding.EditImage) // 编辑图片 - apiRouter.POST("delimage", methodBinding.DelImage) // 删除图片 } } diff --git a/initialization/route/initRoute.go b/initialization/route/initRoute.go index 6ccd457..0662e0c 100644 --- a/initialization/route/initRoute.go +++ b/initialization/route/initRoute.go @@ -50,7 +50,7 @@ func InitialRouter() *gin.Engine { //验证身份接口 VerifyIdentity := router.Group("") - // VerifyIdentity.Use(interceptor.AuthenticateUser()).Use(interceptor.VerifyUrl()) + VerifyIdentity.Use(interceptor.AuthenticateUser()).Use(interceptor.VerifyUrl()) { //v1版本接口 version1Api := apirouter.RouterGroupEntry.HonorsSouteRouter @@ -60,7 +60,8 @@ func InitialRouter() *gin.Engine { VerifyIdentityToken := router.Group("") VerifyIdentityToken.Use(interceptor.IdentificationToken()) { - + version1Api := apirouter.RouterGroupEntry.HonorsSouteRouter + version1Api.RouterGroup(VerifyIdentityToken) } return router }