From 67db169162b858ee0e1121ad043e6298cabd371d Mon Sep 17 00:00:00 2001 From: erdanergou Date: Mon, 22 Aug 2022 16:54:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E7=8E=B0=E5=9B=BE=E6=96=87=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E7=9A=84=E5=A2=9E=E5=88=A0=E6=94=B9=E6=9F=A5=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E4=BB=A5=E5=8F=8A=E5=9B=BE=E6=96=87=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E8=AF=84=E8=AE=BA=E7=9A=84=E6=9F=A5=E3=80=81=E5=88=A0=E3=80=81?= =?UTF-8?q?=E4=B8=8E=E9=83=A8=E5=88=86=E4=BF=AE=E6=94=B9=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=EF=BC=88=E7=8A=B6=E6=80=81=E4=BF=AE=E6=94=B9=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .history/DevLog_20220821093312.md | 0 .history/DevLog_20220821093320.md | 1 + .history/DevLog_20220821093327.md | 1 + .history/DevLog_20220821093330.md | 1 + .history/DevLog_20220821093339.md | 1 + .history/DevLog_20220821093349.md | 3 + .history/DevLog_20220821093351.md | 3 + .history/DevLog_20220821093355.md | 3 + .history/DevLog_20220821093402.md | 3 + .history/DevLog_20220821093407.md | 4 + .history/DevLog_20220821093408.md | 5 + .history/DevLog_20220821093416.md | 6 + .history/DevLog_20220821093423.md | 6 + .history/DevLog_20220821093426.md | 6 + .history/DevLog_20220821093432.md | 6 + .history/DevLog_20220821093446.md | 5 + .history/DevLog_20220821093449.md | 5 + .history/DevLog_20220821093455.md | 5 + .history/DevLog_20220821093517.md | 5 + .history/DevLog_20220821093520.md | 7 + .history/DevLog_20220821093522.md | 8 + .history/DevLog_20220821093525.md | 8 + .history/DevLog_20220821093529.md | 8 + .history/DevLog_20220821093534.md | 8 + .history/DevLog_20220821093542.md | 8 + .history/DevLog_20220821093552.md | 9 + .history/DevLog_20220821093555.md | 9 + .history/DevLog_20220821093612.md | 9 + .history/DevLog_20220821093617.md | 9 + .history/DevLog_20220821093618.md | 9 + .history/DevLog_20220821093626.md | 10 + .history/DevLog_20220821093627.md | 10 + .history/DevLog_20220821093630.md | 10 + .history/DevLog_20220821093642.md | 10 + .history/DevLog_20220821093649.md | 10 + .history/DevLog_20220821093650.md | 11 + .history/DevLog_20220821093653.md | 11 + .history/DevLog_20220821093701.md | 11 + .history/DevLog_20220821093705.md | 12 + .history/DevLog_20220821093715.md | 12 + .history/DevLog_20220821093719.md | 13 + .history/DevLog_20220821093731.md | 13 + .history/DevLog_20220821093736.md | 14 + .history/DevLog_20220821093742.md | 14 + .history/DevLog_20220821093744.md | 14 + .history/DevLog_20220821093748.md | 15 + .history/DevLog_20220821093753.md | 15 + .history/DevLog_20220821093757.md | 16 + .history/DevLog_20220821093805.md | 16 + .history/DevLog_20220821093810.md | 16 + .history/DevLog_20220821093817.md | 17 + .history/DevLog_20220821093822.md | 17 + .history/DevLog_20220821093823.md | 17 + .history/DevLog_20220821093830.md | 17 + .history/DevLog_20220821093837.md | 17 + .history/DevLog_20220821093854.md | 17 + .history/DevLog_20220821093856.md | 17 + .history/DevLog_20220821093857.md | 17 + .history/DevLog_20220821093908.md | 17 + .history/DevLog_20220821093913.md | 17 + .history/DevLog_20220821093923.md | 17 + .history/DevLog_20220821093927.md | 17 + .history/DevLog_20220821093934.md | 17 + .history/DevLog_20220821093937.md | 17 + .history/DevLog_20220821093952.md | 17 + .history/DevLog_20220821094000.md | 17 + .history/DevLog_20220821094006.md | 17 + .history/DevLog_20220821094008.md | 17 + .history/DevLog_20220821094011.md | 17 + .history/DevLog_20220821094013.md | 17 + .history/DevLog_20220821094017.md | 17 + .history/DevLog_20220821094037.md | 17 + .history/DevLog_20220821094040.md | 17 + .history/DevLog_20220821094043.md | 17 + .history/DevLog_20220821094105.md | 17 + .history/DevLog_20220821094108.md | 17 + .history/DevLog_20220821094117.md | 17 + .history/DevLog_20220821094121.md | 18 + .../bookimg/bookimg_20220821094513.go | 0 .../bookimg/bookimg_20220821094524.go | 1 + .../bookimg/bookimg_20220821094535.go | 1 + .../bookimg/bookimg_20220821101003.go | 3 + .../bookimg/bookimg_20220821101008.go | 3 + .../bookimg/bookimg_20220821101013.go | 3 + .../bookimg/bookimg_20220821101016.go | 3 + .../bookimg/bookimg_20220821101044.go | 3 + .../bookimg/bookimg_20220821101045.go | 3 + .../bookimg/bookimg_20220821101055.go | 5 + .../bookimg/bookimg_20220821101056.go | 7 + .../bookimg/bookimg_20220821101100.go | 7 + .../bookimg/bookimg_20220821101117.go | 7 + .../bookimg/bookimg_20220821101127.go | 8 + .../bookimg/bookimg_20220821101128.go | 8 + .../bookimg/bookimg_20220821101130.go | 8 + .../bookimg/bookimg_20220821101133.go | 8 + .../bookimg/bookimg_20220821101141.go | 9 + .../bookimg/bookimg_20220821101144.go | 9 + .../bookimg/bookimg_20220821101147.go | 9 + .../bookimg/bookimg_20220821101151.go | 9 + .../bookimg/bookimg_20220821101155.go | 9 + .../bookimg/bookimg_20220821101159.go | 9 + .../bookimg/bookimg_20220821101502.go | 10 + .../version1/bookimg/type_20220819154849.go | 0 .../version1/bookimg/type_20220819154856.go | 1 + .../version1/bookimg/type_20220819154906.go | 2 + .../version1/bookimg/type_20220819154907.go | 3 + .../version1/bookimg/type_20220821095211.go | 9 + .../version1/bookimg/type_20220821095212.go | 15 + .../version1/bookimg/type_20220821095221.go | 15 + .../version1/bookimg/type_20220821095230.go | 15 + .../version1/bookimg/type_20220821095659.go | 16 + .../version1/bookimg/type_20220821095723.go | 17 + .../version1/bookimg/type_20220821095731.go | 16 + .../version1/bookimg/type_20220821095738.go | 18 + .../version1/bookimg/type_20220821095837.go | 18 + .../version1/bookimg/type_20220821095840.go | 18 + .../version1/bookimg/type_20220821095847.go | 18 + .../version1/bookimg/type_20220821095852.go | 19 + .../version1/bookimg/type_20220821095854.go | 20 + .../version1/bookimg/type_20220821095900.go | 20 + .../version1/bookimg/type_20220821095905.go | 20 + .../version1/bookimg/type_20220821095913.go | 20 + .../version1/bookimg/type_20220821095915.go | 20 + .../version1/bookimg/type_20220821095920.go | 21 + .../version1/bookimg/type_20220821095923.go | 21 + .../version1/bookimg/type_20220821095927.go | 21 + .../version1/bookimg/type_20220821095932.go | 22 + .../version1/bookimg/type_20220821095936.go | 22 + .../version1/bookimg/type_20220821095941.go | 22 + .../version1/bookimg/type_20220821095951.go | 22 + .../version1/bookimg/type_20220821095954.go | 23 + .../version1/bookimg/type_20220821100049.go | 23 + .../version1/bookimg/type_20220821100109.go | 23 + .../version1/bookimg/type_20220821100111.go | 23 + .../version1/bookimg/type_20220821100116.go | 23 + .../version1/bookimg/type_20220821100130.go | 24 + .../version1/bookimg/type_20220821100139.go | 24 + .../version1/bookimg/type_20220821100143.go | 24 + .../version1/bookimg/type_20220821100316.go | 24 + .../version1/bookimg/type_20220821100323.go | 25 + .../version1/bookimg/type_20220821100336.go | 25 + .../version1/bookimg/type_20220821100349.go | 25 + .../version1/bookimg/type_20220821100350.go | 25 + .../version1/bookimg/type_20220821100353.go | 25 + .../version1/bookimg/type_20220821100354.go | 26 + .../version1/bookimg/type_20220821100411.go | 26 + .../version1/bookimg/type_20220821100418.go | 26 + .../version1/bookimg/type_20220821100428.go | 27 + .../version1/bookimg/type_20220821100440.go | 27 + .../version1/bookimg/type_20220821100447.go | 28 + .../version1/bookimg/type_20220821100500.go | 28 + .../version1/bookimg/type_20220821100509.go | 28 + .../version1/bookimg/type_20220821100511.go | 28 + .../version1/bookimg/type_20220821100515.go | 28 + .../version1/bookimg/type_20220821100517.go | 28 + .../version1/bookimg/type_20220821100521.go | 28 + .../version1/bookimg/type_20220821100524.go | 29 + .../version1/bookimg/type_20220821100554.go | 29 + .../version1/bookimg/type_20220821100602.go | 30 + .../version1/bookimg/type_20220821100627.go | 30 + .../version1/bookimg/type_20220821100633.go | 30 + .../version1/bookimg/type_20220821100643.go | 30 + .../version1/bookimg/type_20220821100645.go | 31 + .../version1/bookimg/type_20220821100706.go | 31 + .../version1/bookimg/type_20220821100721.go | 31 + .../version1/bookimg/type_20220821100729.go | 31 + .../version1/bookimg/type_20220821100732.go | 31 + .../version1/bookimg/type_20220821100734.go | 31 + .../version1/bookimg/type_20220821100736.go | 31 + .../version1/bookimg/type_20220821100751.go | 31 + .../version1/bookimg/type_20220821100754.go | 31 + .../version1/bookimg/type_20220821100801.go | 31 + .../version1/bookimg/type_20220821100806.go | 31 + .../version1/bookimg/type_20220821100814.go | 31 + .../version1/bookimg/type_20220821100820.go | 31 + .../version1/bookimg/type_20220821100827.go | 31 + .../version1/bookimg/type_20220821100837.go | 31 + .../version1/bookimg/type_20220821100840.go | 31 + .../version1/bookimg/type_20220821100847.go | 31 + .../version1/bookimg/type_20220821100848.go | 31 + .../version1/bookimg/type_20220821100918.go | 31 + .../version1/bookimg/type_20220821101032.go | 31 + .../version1/bookimg/type_20220821101035.go | 31 + .../version1/bookimg/type_20220821101037.go | 31 + .../qualitativekpi_20220818143450.go | 1202 +++++++++++++++++ .../qualitativekpi_20220819105656.go | 1202 +++++++++++++++++ .../qualitativekpi_20220819105657.go | 1202 +++++++++++++++++ .history/api/version1/entry_20220818143450.go | 19 + .history/api/version1/entry_20220821094905.go | 20 + .history/api/version1/entry_20220821094921.go | 21 + .history/api/version1/entry_20220821094923.go | 21 + .history/api/version1/entry_20220821094927.go | 21 + .history/api/version1/entry_20220821094930.go | 21 + .history/api/version1/entry_20220821094931.go | 21 + .history/api/version1/entry_20220821094933.go | 21 + .history/api/version1/entry_20220821095004.go | 21 + .history/api/version1/entry_20220821095034.go | 21 + .history/api/version1/entry_20220821095037.go | 21 + .history/api/version1/entry_20220821095039.go | 21 + .history/api/version1/entry_20220821095045.go | 21 + .history/apirouter/entry_20220818143450.go | 23 + .history/apirouter/entry_20220821094226.go | 24 + .history/apirouter/entry_20220821094233.go | 24 + .history/apirouter/entry_20220821094237.go | 24 + .history/apirouter/entry_20220821094241.go | 24 + .history/apirouter/entry_20220821094256.go | 25 + .history/apirouter/entry_20220821094258.go | 25 + .history/apirouter/entry_20220821094331.go | 25 + .../bookimg/bookimg_route_20220819155956.go | 0 .../bookimg/bookimg_route_20220819160001.go | 1 + .../bookimg/bookimg_route_20220819160002.go | 1 + .../bookimg/bookimg_route_20220819160014.go | 4 + .../bookimg/bookimg_route_20220819160018.go | 5 + .../bookimg/bookimg_route_20220819160020.go | 5 + .../bookimg/bookimg_route_20220819160024.go | 5 + .../bookimg/bookimg_route_20220819160025.go | 5 + .../bookimg/bookimg_route_20220819160033.go | 5 + .../bookimg/bookimg_route_20220819160035.go | 5 + .../bookimg/bookimg_route_20220819160036.go | 5 + .../bookimg/bookimg_route_20220819160037.go | 7 + .../bookimg/bookimg_route_20220819160043.go | 8 + .../bookimg/bookimg_route_20220819160047.go | 8 + .../bookimg/bookimg_route_20220819160058.go | 8 + .../bookimg/bookimg_route_20220819160102.go | 8 + .../bookimg/bookimg_route_20220819160122.go | 8 + .../bookimg/bookimg_route_20220819160126.go | 9 + .../bookimg/bookimg_route_20220819160136.go | 10 + .../bookimg/bookimg_route_20220819160138.go | 10 + .../bookimg/bookimg_route_20220819160139.go | 10 + .../bookimg/bookimg_route_20220819160144.go | 10 + .../bookimg/bookimg_route_20220819160148.go | 10 + .../bookimg/bookimg_route_20220819160152.go | 10 + .../bookimg/bookimg_route_20220819160155.go | 10 + .../bookimg/bookimg_route_20220819160157.go | 9 + .../bookimg/bookimg_route_20220821094745.go | 9 + .../bookimg/bookimg_route_20220821094807.go | 11 + .../bookimg/bookimg_route_20220821094809.go | 11 + .../bookimg/bookimg_route_20220821094813.go | 15 + .../bookimg/bookimg_route_20220821094816.go | 15 + .../bookimg/bookimg_route_20220821094830.go | 14 + .../bookimg/bookimg_route_20220821094833.go | 15 + .../bookimg/bookimg_route_20220821094835.go | 15 + .../bookimg/bookimg_route_20220821094840.go | 15 + .../bookimg/bookimg_route_20220821095055.go | 15 + .../bookimg/bookimg_route_20220821095058.go | 15 + .../bookimg/bookimg_route_20220821095103.go | 14 + .../bookimg/bookimg_route_20220821095124.go | 13 + .../bookimg/bookimg_route_20220821095128.go | 16 + .../bookimg/bookimg_route_20220821095134.go | 16 + .../bookimg/bookimg_route_20220821095135.go | 16 + .../bookimg/bookimg_route_20220821095136.go | 16 + .../bookimg/bookimg_route_20220821095145.go | 17 + .../bookimg/bookimg_route_20220821095232.go | 18 + .../v1/bookimg/type_20220819155901.go | 0 .../v1/bookimg/type_20220819155909.go | 1 + .../v1/bookimg/type_20220819155915.go | 2 + .../v1/bookimg/type_20220819155916.go | 2 + .../v1/bookimg/type_20220819155923.go | 2 + .../v1/bookimg/type_20220819155925.go | 3 + .../v1/bookimg/type_20220819155930.go | 4 + .../v1/bookimg/type_20220819155932.go | 4 + .../v1/bookimg/type_20220819155938.go | 4 + .../v1/bookimg/type_20220819155940.go | 4 + .../v1/bookimg/type_20220821094618.go | 6 + .../v1/bookimg/type_20220821094625.go | 4 + .../v1/bookimg/type_20220821094633.go | 6 + .../v1/bookimg/type_20220821094637.go | 6 + .../v1/bookimg/type_20220821094638.go | 6 + .../v1/bookimg/type_20220821094645.go | 6 + .../v1/bookimg/type_20220821094647.go | 8 + .../v1/bookimg/type_20220821094653.go | 8 + .../v1/bookimg/type_20220821094656.go | 8 + .../v1/bookimg/type_20220821094657.go | 8 + .../v1/bookimg/type_20220821094659.go | 8 + .../v1/bookimg/type_20220821094700.go | 10 + .../v1/bookimg/type_20220821094704.go | 10 + .../v1/bookimg/type_20220821094739.go | 4 + .../initialization/app/run_20220818143450.go | 27 + .../initialization/app/run_20220819150713.go | 27 + .../route/initRoute_20220818143450.go | 69 + .../route/initRoute_20220821094324.go | 69 + .history/main_20220818143106.go | 17 + .history/main_20220819150513.go | 17 + .history/main_20220819150514.go | 17 + .../grocerystore/redis_20220818143106.go | 380 ++++++ .../grocerystore/redis_20220819082152.go | 380 ++++++ .../grocerystore/redis_20220819082153.go | 380 ++++++ .../archives_type_20220821083755.go | 0 .../archives_type_20220821083815.go | 1 + .../archives_type_20220821083847.go | 1 + .../archives_type_20220821083858.go | 5 + .../archives_type_20220821083900.go | 6 + .../archives_type_20220821083902.go | 6 + .../archives_type_20220821083905.go | 6 + .../archives_type_20220821083910.go | 6 + .../archives_type_20220821083916.go | 6 + .../archives_type_20220821083918.go | 6 + .../archives_type_20220821083920.go | 6 + .../archives_type_20220821083923.go | 6 + .../archives_type_20220821083929.go | 6 + .../archives_type_20220821083932.go | 6 + .../archives_type_20220821083933.go | 6 + .../archives_type_20220821083939.go | 6 + .../archives_type_20220821083940.go | 6 + .../archives_type_20220821083945.go | 6 + .../archives_type_20220821083947.go | 6 + .../archives_type_20220821083953.go | 6 + .../archives_type_20220821084000.go | 6 + .../archives_type_20220821084008.go | 7 + .../archives_type_20220821084012.go | 7 + .../archives_type_20220821084015.go | 7 + .../archives_type_20220821084016.go | 7 + .../archives_type_20220821084019.go | 7 + .../archives_type_20220821084026.go | 7 + .../archives_type_20220821084028.go | 7 + .../archives_type_20220821084033.go | 7 + .../archives_type_20220821084037.go | 7 + .../archives_type_20220821084039.go | 7 + .../archives_type_20220821084048.go | 7 + .../archives_type_20220821084049.go | 7 + .../archives_type_20220821084056.go | 8 + .../archives_type_20220821084059.go | 8 + .../archives_type_20220821084105.go | 8 + .../archives_type_20220821084108.go | 8 + .../archives_type_20220821084111.go | 8 + .../archives_type_20220821084114.go | 8 + .../archives_type_20220821084118.go | 8 + .../archives_type_20220821084121.go | 8 + .../archives_type_20220821084130.go | 8 + .../archives_type_20220821084134.go | 8 + .../archives_type_20220821084135.go | 8 + .../archives_type_20220821084140.go | 8 + .../archives_type_20220821084142.go | 8 + .../archives_type_20220821084146.go | 8 + .../archives_type_20220821084148.go | 9 + .../archives_type_20220821084156.go | 9 + .../archives_type_20220821084158.go | 9 + .../archives_type_20220821084200.go | 9 + .../archives_type_20220821084203.go | 9 + .../archives_type_20220821084204.go | 9 + .../archives_type_20220821084207.go | 9 + .../archives_type_20220821084211.go | 9 + .../archives_type_20220821084215.go | 9 + .../archives_type_20220821084227.go | 9 + .../archives_type_20220821084231.go | 9 + .../archives_type_20220821084234.go | 9 + .../archives_type_20220821084236.go | 10 + .../archives_type_20220821084242.go | 10 + .../archives_type_20220821084244.go | 10 + .../archives_type_20220821084245.go | 10 + .../archives_type_20220821084249.go | 10 + .../archives_type_20220821084258.go | 10 + .../archives_type_20220821084300.go | 10 + .../archives_type_20220821084307.go | 10 + .../archives_type_20220821084309.go | 11 + .../archives_type_20220821084315.go | 11 + .../archives_type_20220821084319.go | 11 + .../archives_type_20220821084324.go | 11 + .../archives_type_20220821084329.go | 11 + .../archives_type_20220821084331.go | 11 + .../archives_type_20220821084339.go | 11 + .../archives_type_20220821084340.go | 12 + .../archives_type_20220821084349.go | 12 + .../archives_type_20220821084352.go | 12 + .../archives_type_20220821084357.go | 12 + .../archives_type_20220821084411.go | 12 + .../archives_type_20220821084414.go | 12 + .../archives_type_20220821084417.go | 12 + .../archives_type_20220821084421.go | 12 + .../archives_type_20220821084423.go | 14 + .../archives_type_20220821084430.go | 40 + .../archives_type_20220821084434.go | 40 + .../archives_type_20220821084437.go | 40 + .../archives_type_20220821084445.go | 45 + .../archives_type_20220821084452.go | 40 + .../archives_type_20220821084457.go | 40 + .../archives_type_20220821084458.go | 40 + .../archives_type_20220821084459.go | 45 + .../archives_type_20220821084503.go | 45 + .../archives_type_20220821084513.go | 45 + .../archives_type_20220821084515.go | 45 + .../archives_type_20220821084519.go | 45 + .../archives_type_20220821084523.go | 45 + .../archives_type_20220821084526.go | 45 + .../archives_type_20220821091226.go | 45 + .../archives_type_20220821093001.go | 45 + .../archives_type_20220821093002.go | 45 + .../archives_type_20220821093005.go | 45 + .../bookattribute_20220821084648.go | 0 .../bookattribute_20220821084652.go | 1 + .../bookattribute_20220821084654.go | 0 .../bookattribute_20220821084655.go | 0 .../bookattribute_20220821084658.go | 1 + .../bookattribute_20220821084702.go | 1 + .../bookattribute_20220821084703.go | 1 + .../bookattribute_20220821084710.go | 3 + .../bookattribute_20220821084713.go | 3 + .../bookattribute_20220821084715.go | 3 + .../bookattribute_20220821084718.go | 3 + .../bookattribute_20220821084720.go | 3 + .../bookattribute_20220821084724.go | 4 + .../bookattribute_20220821084726.go | 5 + .../bookattribute_20220821084735.go | 5 + .../bookattribute_20220821084740.go | 6 + .../bookattribute_20220821084742.go | 7 + .../bookattribute_20220821084752.go | 6 + .../bookattribute_20220821084757.go | 6 + .../bookattribute_20220821084801.go | 6 + .../bookattribute_20220821084803.go | 7 + .../bookattribute_20220821084816.go | 7 + .../bookattribute_20220821084818.go | 7 + .../bookattribute_20220821084824.go | 7 + .../bookattribute_20220821084828.go | 7 + .../bookattribute_20220821084831.go | 7 + .../bookattribute_20220821084839.go | 7 + .../bookattribute_20220821084843.go | 7 + .../bookattribute_20220821084854.go | 7 + .../bookattribute_20220821084859.go | 7 + .../bookattribute_20220821084901.go | 8 + .../bookattribute_20220821084908.go | 9 + .../bookattribute_20220821084911.go | 9 + .../bookattribute_20220821084915.go | 9 + .../bookattribute_20220821084918.go | 9 + .../bookattribute_20220821084928.go | 8 + .../bookattribute_20220821084930.go | 9 + .../bookattribute_20220821084936.go | 9 + .../bookattribute_20220821084937.go | 9 + .../bookattribute_20220821084941.go | 9 + .../bookattribute_20220821084943.go | 9 + .../bookattribute_20220821084947.go | 9 + .../bookattribute_20220821084948.go | 9 + .../bookattribute_20220821084957.go | 9 + .../bookattribute_20220821085000.go | 10 + .../bookattribute_20220821085005.go | 11 + .../bookattribute_20220821085010.go | 11 + .../bookattribute_20220821085013.go | 11 + .../bookattribute_20220821085016.go | 11 + .../bookattribute_20220821085019.go | 11 + .../bookattribute_20220821085020.go | 11 + .../bookattribute_20220821085024.go | 10 + .../bookattribute_20220821085026.go | 11 + .../bookattribute_20220821085035.go | 11 + .../bookattribute_20220821085040.go | 10 + .../bookattribute_20220821085054.go | 11 + .../bookattribute_20220821085058.go | 11 + .../bookattribute_20220821085102.go | 11 + .../bookattribute_20220821085103.go | 11 + .../bookattribute_20220821085109.go | 11 + .../bookattribute_20220821085123.go | 11 + .../bookattribute_20220821085125.go | 12 + .../bookattribute_20220821085134.go | 12 + .../bookattribute_20220821085137.go | 12 + .../bookattribute_20220821085139.go | 12 + .../bookattribute_20220821085141.go | 12 + .../bookattribute_20220821085142.go | 12 + .../bookattribute_20220821085147.go | 12 + .../bookattribute_20220821085151.go | 12 + .../bookattribute_20220821085157.go | 12 + .../bookattribute_20220821085201.go | 12 + .../bookattribute_20220821085202.go | 12 + .../bookattribute_20220821085204.go | 12 + .../bookattribute_20220821085216.go | 12 + .../bookattribute_20220821085218.go | 12 + .../bookattribute_20220821085229.go | 13 + .../bookattribute_20220821085233.go | 13 + .../bookattribute_20220821085236.go | 13 + .../bookattribute_20220821085239.go | 13 + .../bookattribute_20220821085243.go | 13 + .../bookattribute_20220821085247.go | 13 + .../bookattribute_20220821085254.go | 13 + .../bookattribute_20220821085258.go | 13 + .../bookattribute_20220821085301.go | 13 + .../bookattribute_20220821085317.go | 14 + .../bookattribute_20220821085323.go | 41 + .../bookattribute_20220821085326.go | 41 + .../bookattribute_20220821085330.go | 41 + .../bookattribute_20220821085332.go | 41 + .../bookattribute_20220821085333.go | 41 + .../bookattribute_20220821085334.go | 46 + .../bookattribute_20220821085346.go | 46 + .../bookattribute_20220821085349.go | 46 + .../bookattribute_20220821085352.go | 46 + .../bookattribute_20220821091221.go | 46 + .../bookattribute_20220821091222.go | 46 + .../bookattribute_20220821091223.go | 46 + .../bookattribute_20220821091224.go | 46 + .../bookattribute_20220821092834.go | 46 + .../bookattribute_20220821092837.go | 46 + .../bookattribute_20220821092840.go | 46 + .../modelbookimg/discussmsg_20220821085412.go | 0 .../modelbookimg/discussmsg_20220821085417.go | 1 + .../modelbookimg/discussmsg_20220821085419.go | 1 + .../modelbookimg/discussmsg_20220821085421.go | 1 + .../modelbookimg/discussmsg_20220821085423.go | 1 + .../modelbookimg/discussmsg_20220821085429.go | 1 + .../modelbookimg/discussmsg_20220821085436.go | 3 + .../modelbookimg/discussmsg_20220821085441.go | 5 + .../modelbookimg/discussmsg_20220821085444.go | 5 + .../modelbookimg/discussmsg_20220821085445.go | 5 + .../modelbookimg/discussmsg_20220821085448.go | 4 + .../modelbookimg/discussmsg_20220821085453.go | 6 + .../modelbookimg/discussmsg_20220821085456.go | 5 + .../modelbookimg/discussmsg_20220821085458.go | 6 + .../modelbookimg/discussmsg_20220821085522.go | 6 + .../modelbookimg/discussmsg_20220821085528.go | 6 + .../modelbookimg/discussmsg_20220821085545.go | 7 + .../modelbookimg/discussmsg_20220821085550.go | 7 + .../modelbookimg/discussmsg_20220821085552.go | 7 + .../modelbookimg/discussmsg_20220821085554.go | 7 + .../modelbookimg/discussmsg_20220821085603.go | 7 + .../modelbookimg/discussmsg_20220821085613.go | 7 + .../modelbookimg/discussmsg_20220821085622.go | 8 + .../modelbookimg/discussmsg_20220821085629.go | 8 + .../modelbookimg/discussmsg_20220821085637.go | 8 + .../modelbookimg/discussmsg_20220821085653.go | 8 + .../modelbookimg/discussmsg_20220821085654.go | 8 + .../modelbookimg/discussmsg_20220821085658.go | 9 + .../modelbookimg/discussmsg_20220821085704.go | 9 + .../modelbookimg/discussmsg_20220821085709.go | 9 + .../modelbookimg/discussmsg_20220821085713.go | 9 + .../modelbookimg/discussmsg_20220821085723.go | 9 + .../modelbookimg/discussmsg_20220821085725.go | 9 + .../modelbookimg/discussmsg_20220821085727.go | 10 + .../modelbookimg/discussmsg_20220821085732.go | 10 + .../modelbookimg/discussmsg_20220821085734.go | 10 + .../modelbookimg/discussmsg_20220821085736.go | 10 + .../modelbookimg/discussmsg_20220821085740.go | 10 + .../modelbookimg/discussmsg_20220821085745.go | 10 + .../modelbookimg/discussmsg_20220821085749.go | 10 + .../modelbookimg/discussmsg_20220821085752.go | 10 + .../modelbookimg/discussmsg_20220821085755.go | 10 + .../modelbookimg/discussmsg_20220821085803.go | 10 + .../modelbookimg/discussmsg_20220821085808.go | 10 + .../modelbookimg/discussmsg_20220821085812.go | 10 + .../modelbookimg/discussmsg_20220821085817.go | 10 + .../modelbookimg/discussmsg_20220821085819.go | 11 + .../modelbookimg/discussmsg_20220821085826.go | 11 + .../modelbookimg/discussmsg_20220821085828.go | 11 + .../modelbookimg/discussmsg_20220821085830.go | 11 + .../modelbookimg/discussmsg_20220821085850.go | 11 + .../modelbookimg/discussmsg_20220821085853.go | 11 + .../modelbookimg/discussmsg_20220821085856.go | 11 + .../modelbookimg/discussmsg_20220821085900.go | 11 + .../modelbookimg/discussmsg_20220821085904.go | 11 + .../modelbookimg/discussmsg_20220821085908.go | 11 + .../modelbookimg/discussmsg_20220821085919.go | 11 + .../modelbookimg/discussmsg_20220821085924.go | 11 + .../modelbookimg/discussmsg_20220821085927.go | 11 + .../modelbookimg/discussmsg_20220821085931.go | 11 + .../modelbookimg/discussmsg_20220821085933.go | 11 + .../modelbookimg/discussmsg_20220821085935.go | 11 + .../modelbookimg/discussmsg_20220821085947.go | 11 + .../modelbookimg/discussmsg_20220821085955.go | 12 + .../modelbookimg/discussmsg_20220821085956.go | 12 + .../modelbookimg/discussmsg_20220821090000.go | 12 + .../modelbookimg/discussmsg_20220821090002.go | 12 + .../modelbookimg/discussmsg_20220821090004.go | 12 + .../modelbookimg/discussmsg_20220821090008.go | 12 + .../modelbookimg/discussmsg_20220821090014.go | 12 + .../modelbookimg/discussmsg_20220821090018.go | 12 + .../modelbookimg/discussmsg_20220821090023.go | 12 + .../modelbookimg/discussmsg_20220821090028.go | 12 + .../modelbookimg/discussmsg_20220821090030.go | 12 + .../modelbookimg/discussmsg_20220821090032.go | 12 + .../modelbookimg/discussmsg_20220821090038.go | 12 + .../modelbookimg/discussmsg_20220821090046.go | 12 + .../modelbookimg/discussmsg_20220821090049.go | 12 + .../modelbookimg/discussmsg_20220821090052.go | 12 + .../modelbookimg/discussmsg_20220821090056.go | 12 + .../modelbookimg/discussmsg_20220821090100.go | 13 + .../modelbookimg/discussmsg_20220821090106.go | 14 + .../modelbookimg/discussmsg_20220821090108.go | 14 + .../modelbookimg/discussmsg_20220821090111.go | 14 + .../modelbookimg/discussmsg_20220821090114.go | 14 + .../modelbookimg/discussmsg_20220821090116.go | 14 + .../modelbookimg/discussmsg_20220821090123.go | 14 + .../modelbookimg/discussmsg_20220821090135.go | 13 + .../modelbookimg/discussmsg_20220821090137.go | 15 + .../modelbookimg/discussmsg_20220821090139.go | 13 + .../modelbookimg/discussmsg_20220821090140.go | 13 + .../modelbookimg/discussmsg_20220821090147.go | 13 + .../modelbookimg/discussmsg_20220821090151.go | 14 + .../modelbookimg/discussmsg_20220821090201.go | 14 + .../modelbookimg/discussmsg_20220821090204.go | 14 + .../modelbookimg/discussmsg_20220821090209.go | 14 + .../modelbookimg/discussmsg_20220821090214.go | 14 + .../modelbookimg/discussmsg_20220821090219.go | 14 + .../modelbookimg/discussmsg_20220821090224.go | 14 + .../modelbookimg/discussmsg_20220821090227.go | 14 + .../modelbookimg/discussmsg_20220821090231.go | 14 + .../modelbookimg/discussmsg_20220821090233.go | 15 + .../modelbookimg/discussmsg_20220821090251.go | 15 + .../modelbookimg/discussmsg_20220821090255.go | 15 + .../modelbookimg/discussmsg_20220821090303.go | 15 + .../modelbookimg/discussmsg_20220821090307.go | 15 + .../modelbookimg/discussmsg_20220821090311.go | 15 + .../modelbookimg/discussmsg_20220821090314.go | 15 + .../modelbookimg/discussmsg_20220821090326.go | 15 + .../modelbookimg/discussmsg_20220821090338.go | 15 + .../modelbookimg/discussmsg_20220821090340.go | 15 + .../modelbookimg/discussmsg_20220821090342.go | 15 + .../modelbookimg/discussmsg_20220821090411.go | 15 + .../modelbookimg/discussmsg_20220821090413.go | 15 + .../modelbookimg/discussmsg_20220821090420.go | 44 + .../modelbookimg/discussmsg_20220821090427.go | 44 + .../modelbookimg/discussmsg_20220821090430.go | 44 + .../modelbookimg/discussmsg_20220821090436.go | 48 + .../modelbookimg/discussmsg_20220821090441.go | 48 + .../modelbookimg/discussmsg_20220821090447.go | 48 + .../modelbookimg/discussmsg_20220821090452.go | 48 + .../modelbookimg/discussmsg_20220821091214.go | 48 + .../modelbookimg/discussmsg_20220821091215.go | 48 + .../modelbookimg/discussmsg_20220821092822.go | 48 + .../modelbookimg/discussmsg_20220821092823.go | 48 + .../graphicform_20220819162409.go | 0 .../graphicform_20220819162418.go | 1 + .../graphicform_20220819162421.go | 2 + .../graphicform_20220819162423.go | 1 + .../graphicform_20220819162429.go | 3 + .../graphicform_20220819162434.go | 3 + .../graphicform_20220819162437.go | 4 + .../graphicform_20220819162545.go | 5 + .../graphicform_20220819162638.go | 5 + .../graphicform_20220819162640.go | 5 + .../graphicform_20220819162649.go | 6 + .../graphicform_20220819162653.go | 6 + .../graphicform_20220819162702.go | 6 + .../graphicform_20220819162704.go | 6 + .../graphicform_20220819162708.go | 6 + .../graphicform_20220819162712.go | 6 + .../graphicform_20220819162713.go | 6 + .../graphicform_20220819162721.go | 6 + .../graphicform_20220819162731.go | 6 + .../graphicform_20220819162737.go | 6 + .../graphicform_20220819162741.go | 6 + .../graphicform_20220819162742.go | 6 + .../graphicform_20220819162757.go | 7 + .../graphicform_20220819162804.go | 7 + .../graphicform_20220819162809.go | 7 + .../graphicform_20220819162810.go | 7 + .../graphicform_20220819162812.go | 7 + .../graphicform_20220819162819.go | 7 + .../graphicform_20220819163154.go | 7 + .../graphicform_20220819163202.go | 7 + .../graphicform_20220819163213.go | 7 + .../graphicform_20220819163215.go | 7 + .../graphicform_20220819163219.go | 7 + .../graphicform_20220819163223.go | 7 + .../graphicform_20220819163225.go | 7 + .../graphicform_20220819163230.go | 7 + .../graphicform_20220819163235.go | 7 + .../graphicform_20220819163238.go | 8 + .../graphicform_20220819163247.go | 8 + .../graphicform_20220819163251.go | 8 + .../graphicform_20220819163254.go | 8 + .../graphicform_20220819163258.go | 8 + .../graphicform_20220819163302.go | 8 + .../graphicform_20220819163303.go | 8 + .../graphicform_20220819163306.go | 8 + .../graphicform_20220819163310.go | 8 + .../graphicform_20220819163323.go | 8 + .../graphicform_20220819163325.go | 9 + .../graphicform_20220819163338.go | 9 + .../graphicform_20220819163344.go | 9 + .../graphicform_20220819163347.go | 9 + .../graphicform_20220819163352.go | 9 + .../graphicform_20220819163359.go | 9 + .../graphicform_20220819163418.go | 9 + .../graphicform_20220819163420.go | 9 + .../graphicform_20220819163425.go | 9 + .../graphicform_20220819163427.go | 10 + .../graphicform_20220819163430.go | 10 + .../graphicform_20220819163434.go | 10 + .../graphicform_20220819163440.go | 10 + .../graphicform_20220819163442.go | 10 + .../graphicform_20220819163445.go | 10 + .../graphicform_20220819163447.go | 10 + .../graphicform_20220819163455.go | 10 + .../graphicform_20220819163504.go | 10 + .../graphicform_20220819163515.go | 10 + .../graphicform_20220819163521.go | 10 + .../graphicform_20220819163523.go | 10 + .../graphicform_20220819163524.go | 11 + .../graphicform_20220819163541.go | 11 + .../graphicform_20220819163551.go | 11 + .../graphicform_20220819163554.go | 11 + .../graphicform_20220819163557.go | 11 + .../graphicform_20220819163608.go | 11 + .../graphicform_20220819163611.go | 11 + .../graphicform_20220819163616.go | 11 + .../graphicform_20220819163641.go | 11 + .../graphicform_20220819163732.go | 12 + .../graphicform_20220819163736.go | 12 + .../graphicform_20220819163752.go | 12 + .../graphicform_20220819163759.go | 12 + .../graphicform_20220819163802.go | 12 + .../graphicform_20220819163803.go | 12 + .../graphicform_20220819163916.go | 12 + .../graphicform_20220819163921.go | 12 + .../graphicform_20220819163923.go | 12 + .../graphicform_20220819163927.go | 12 + .../graphicform_20220819163930.go | 12 + .../graphicform_20220819163938.go | 12 + .../graphicform_20220819163957.go | 12 + .../graphicform_20220819164003.go | 12 + .../graphicform_20220819164008.go | 12 + .../graphicform_20220819164013.go | 12 + .../graphicform_20220819164015.go | 12 + .../graphicform_20220819164025.go | 12 + .../graphicform_20220819164027.go | 13 + .../graphicform_20220819164038.go | 13 + .../graphicform_20220819164040.go | 13 + .../graphicform_20220819164045.go | 13 + .../graphicform_20220819164051.go | 13 + .../graphicform_20220819164054.go | 13 + .../graphicform_20220819164056.go | 13 + .../graphicform_20220819164102.go | 13 + .../graphicform_20220819164108.go | 13 + .../graphicform_20220819164113.go | 13 + .../graphicform_20220819164121.go | 13 + .../graphicform_20220819164124.go | 14 + .../graphicform_20220819164132.go | 14 + .../graphicform_20220819164134.go | 14 + .../graphicform_20220819164138.go | 14 + .../graphicform_20220819164143.go | 14 + .../graphicform_20220819164145.go | 14 + .../graphicform_20220819164149.go | 14 + .../graphicform_20220819164151.go | 14 + .../graphicform_20220819164154.go | 14 + .../graphicform_20220819164157.go | 14 + .../graphicform_20220819164202.go | 14 + .../graphicform_20220819164208.go | 14 + .../graphicform_20220819164211.go | 15 + .../graphicform_20220819164218.go | 15 + .../graphicform_20220819164224.go | 15 + .../graphicform_20220819164229.go | 15 + .../graphicform_20220819164234.go | 15 + .../graphicform_20220819164238.go | 15 + .../graphicform_20220819164240.go | 15 + .../graphicform_20220819164255.go | 15 + .../graphicform_20220819164303.go | 15 + .../graphicform_20220819164308.go | 15 + .../graphicform_20220819164309.go | 16 + .../graphicform_20220819164319.go | 16 + .../graphicform_20220819164325.go | 16 + .../graphicform_20220819164327.go | 16 + .../graphicform_20220819164328.go | 16 + .../graphicform_20220819164333.go | 16 + .../graphicform_20220819164338.go | 16 + .../graphicform_20220819164340.go | 16 + .../graphicform_20220819164346.go | 16 + .../graphicform_20220819164353.go | 16 + .../graphicform_20220819164354.go | 16 + .../graphicform_20220819164357.go | 16 + .../graphicform_20220819164400.go | 16 + .../graphicform_20220819164403.go | 17 + .../graphicform_20220819164404.go | 16 + .../graphicform_20220819164405.go | 16 + .../graphicform_20220819164407.go | 17 + .../graphicform_20220819164411.go | 17 + .../graphicform_20220819164413.go | 16 + .../graphicform_20220819164422.go | 19 + .../graphicform_20220819164425.go | 19 + .../graphicform_20220819164428.go | 19 + .../graphicform_20220819164431.go | 19 + .../graphicform_20220819164437.go | 19 + .../graphicform_20220819164438.go | 21 + .../graphicform_20220819164447.go | 21 + .../graphicform_20220819164452.go | 20 + .../graphicform_20220819164457.go | 21 + .../graphicform_20220819164507.go | 21 + .../graphicform_20220819164509.go | 21 + .../graphicform_20220819164513.go | 21 + .../graphicform_20220819164517.go | 21 + .../graphicform_20220819164520.go | 21 + .../graphicform_20220819164524.go | 21 + .../graphicform_20220819164528.go | 21 + .../graphicform_20220819164531.go | 21 + .../graphicform_20220819164535.go | 21 + .../graphicform_20220819164538.go | 21 + .../graphicform_20220819164540.go | 21 + .../graphicform_20220819164552.go | 21 + .../graphicform_20220819164555.go | 22 + .../graphicform_20220819164602.go | 22 + .../graphicform_20220819164604.go | 22 + .../graphicform_20220819164612.go | 22 + .../graphicform_20220819164614.go | 22 + .../graphicform_20220819164618.go | 22 + .../graphicform_20220819164624.go | 22 + .../graphicform_20220819164627.go | 22 + .../graphicform_20220819164631.go | 22 + .../graphicform_20220819164636.go | 23 + .../graphicform_20220819164645.go | 23 + .../graphicform_20220819164648.go | 23 + .../graphicform_20220819164650.go | 23 + .../graphicform_20220819164654.go | 23 + .../graphicform_20220819164659.go | 23 + .../graphicform_20220819164702.go | 23 + .../graphicform_20220819164709.go | 23 + .../graphicform_20220819164711.go | 23 + .../graphicform_20220819164713.go | 23 + .../graphicform_20220819164716.go | 23 + .../graphicform_20220819164722.go | 23 + .../graphicform_20220819164724.go | 24 + .../graphicform_20220819164731.go | 24 + .../graphicform_20220819164734.go | 24 + .../graphicform_20220819164737.go | 24 + .../graphicform_20220819164739.go | 24 + .../graphicform_20220819164740.go | 24 + .../graphicform_20220819164744.go | 24 + .../graphicform_20220819164749.go | 24 + .../graphicform_20220819164752.go | 24 + .../graphicform_20220819164759.go | 24 + .../graphicform_20220819164804.go | 24 + .../graphicform_20220819164807.go | 24 + .../graphicform_20220819164808.go | 24 + .../graphicform_20220819164819.go | 25 + .../graphicform_20220819164821.go | 25 + .../graphicform_20220819164823.go | 25 + .../graphicform_20220819164826.go | 25 + .../graphicform_20220819164828.go | 25 + .../graphicform_20220819164837.go | 25 + .../graphicform_20220819164841.go | 25 + .../graphicform_20220819164848.go | 25 + .../graphicform_20220819164852.go | 26 + .../graphicform_20220819164901.go | 26 + .../graphicform_20220819164905.go | 26 + .../graphicform_20220819164907.go | 26 + .../graphicform_20220819164909.go | 26 + .../graphicform_20220819164912.go | 26 + .../graphicform_20220819164915.go | 26 + .../graphicform_20220819164917.go | 26 + .../graphicform_20220819164925.go | 26 + .../graphicform_20220819164929.go | 26 + .../graphicform_20220819164931.go | 27 + .../graphicform_20220819164953.go | 27 + .../graphicform_20220819164959.go | 27 + .../graphicform_20220819165001.go | 27 + .../graphicform_20220819165005.go | 27 + .../graphicform_20220819165008.go | 27 + .../graphicform_20220819165013.go | 27 + .../graphicform_20220819165016.go | 27 + .../graphicform_20220819165018.go | 27 + .../graphicform_20220819165021.go | 27 + .../graphicform_20220819165032.go | 27 + .../graphicform_20220819165052.go | 27 + .../graphicform_20220819165100.go | 28 + .../graphicform_20220819165102.go | 28 + .../graphicform_20220819165104.go | 28 + .../graphicform_20220819165105.go | 28 + .../graphicform_20220819165108.go | 28 + .../graphicform_20220819165113.go | 28 + .../graphicform_20220819165120.go | 28 + .../graphicform_20220819165127.go | 28 + .../graphicform_20220819165128.go | 28 + .../graphicform_20220819165131.go | 29 + .../graphicform_20220819165137.go | 29 + .../graphicform_20220819165141.go | 29 + .../graphicform_20220819165143.go | 29 + .../graphicform_20220819165151.go | 29 + .../graphicform_20220819165154.go | 29 + .../graphicform_20220819165158.go | 29 + .../graphicform_20220819165204.go | 29 + .../graphicform_20220819165206.go | 29 + .../graphicform_20220819165209.go | 29 + .../graphicform_20220819165219.go | 29 + .../graphicform_20220819165223.go | 29 + .../graphicform_20220819165226.go | 29 + .../graphicform_20220819165228.go | 30 + .../graphicform_20220819165237.go | 30 + .../graphicform_20220819165241.go | 30 + .../graphicform_20220819165244.go | 30 + .../graphicform_20220819165249.go | 30 + .../graphicform_20220819165251.go | 30 + .../graphicform_20220819165255.go | 30 + .../graphicform_20220819165256.go | 30 + .../graphicform_20220819165300.go | 30 + .../graphicform_20220819165308.go | 30 + .../graphicform_20220819165313.go | 30 + .../graphicform_20220819165322.go | 31 + .../graphicform_20220819165324.go | 31 + .../graphicform_20220819165327.go | 31 + .../graphicform_20220819165331.go | 31 + .../graphicform_20220819165334.go | 31 + .../graphicform_20220819165341.go | 31 + .../graphicform_20220819165343.go | 32 + .../graphicform_20220819165353.go | 32 + .../graphicform_20220819165355.go | 32 + .../graphicform_20220819165358.go | 32 + .../graphicform_20220819165359.go | 32 + .../graphicform_20220819165401.go | 32 + .../graphicform_20220819165405.go | 32 + .../graphicform_20220819165412.go | 32 + .../graphicform_20220819165415.go | 32 + .../graphicform_20220819165416.go | 32 + .../graphicform_20220819165417.go | 32 + .../graphicform_20220819165436.go | 32 + .../graphicform_20220819165438.go | 33 + .../graphicform_20220819165450.go | 33 + .../graphicform_20220819165456.go | 33 + .../graphicform_20220819165458.go | 33 + .../graphicform_20220819165502.go | 33 + .../graphicform_20220819165506.go | 33 + .../graphicform_20220819165509.go | 33 + .../graphicform_20220819165516.go | 33 + .../graphicform_20220819165518.go | 34 + .../graphicform_20220819165530.go | 35 + .../graphicform_20220819165533.go | 35 + .../graphicform_20220819165539.go | 35 + .../graphicform_20220819165545.go | 35 + .../graphicform_20220819165549.go | 34 + .../graphicform_20220819165551.go | 34 + .../graphicform_20220819165555.go | 34 + .../graphicform_20220819165558.go | 34 + .../graphicform_20220819165559.go | 34 + .../graphicform_20220819165606.go | 34 + .../graphicform_20220819165611.go | 35 + .../graphicform_20220819165621.go | 35 + .../graphicform_20220819165622.go | 35 + .../graphicform_20220819165625.go | 35 + .../graphicform_20220819165628.go | 35 + .../graphicform_20220819165632.go | 35 + .../graphicform_20220819165645.go | 35 + .../graphicform_20220819165647.go | 35 + .../graphicform_20220819165651.go | 35 + .../graphicform_20220819165701.go | 35 + .../graphicform_20220819165703.go | 35 + .../graphicform_20220819165708.go | 35 + .../graphicform_20220819165715.go | 35 + .../graphicform_20220819165720.go | 35 + .../graphicform_20220819165722.go | 36 + .../graphicform_20220819165730.go | 36 + .../graphicform_20220819165734.go | 36 + .../graphicform_20220819165737.go | 36 + .../graphicform_20220819165739.go | 36 + .../graphicform_20220819165742.go | 36 + .../graphicform_20220819165746.go | 36 + .../graphicform_20220819165750.go | 36 + .../graphicform_20220819165754.go | 36 + .../graphicform_20220819165801.go | 36 + .../graphicform_20220819165804.go | 36 + .../graphicform_20220819165805.go | 37 + .../graphicform_20220819165813.go | 37 + .../graphicform_20220819165818.go | 37 + .../graphicform_20220819165822.go | 37 + .../graphicform_20220819165826.go | 37 + .../graphicform_20220819165829.go | 37 + .../graphicform_20220819165835.go | 37 + .../graphicform_20220819165843.go | 37 + .../graphicform_20220819165847.go | 37 + .../graphicform_20220819165849.go | 38 + .../graphicform_20220819165900.go | 39 + .../graphicform_20220819165906.go | 39 + .../graphicform_20220819165909.go | 39 + .../graphicform_20220819165915.go | 39 + .../graphicform_20220819165921.go | 39 + .../graphicform_20220819165931.go | 38 + .../graphicform_20220819165936.go | 38 + .../graphicform_20220819165938.go | 38 + .../graphicform_20220819165942.go | 38 + .../graphicform_20220819165943.go | 39 + .../graphicform_20220819165957.go | 39 + .../graphicform_20220819170002.go | 39 + .../graphicform_20220819170005.go | 39 + .../graphicform_20220819170008.go | 39 + .../graphicform_20220819170017.go | 39 + .../graphicform_20220819170021.go | 39 + .../graphicform_20220819170022.go | 39 + .../graphicform_20220819170025.go | 39 + .../graphicform_20220819170031.go | 39 + .../graphicform_20220821075731.go | 40 + .../graphicform_20220821075744.go | 40 + .../graphicform_20220821075748.go | 40 + .../graphicform_20220821075818.go | 40 + .../graphicform_20220821075825.go | 40 + .../graphicform_20220821075831.go | 40 + .../graphicform_20220821075833.go | 40 + .../graphicform_20220821075843.go | 40 + .../graphicform_20220821075845.go | 41 + .../graphicform_20220821075909.go | 41 + .../graphicform_20220821075914.go | 42 + .../graphicform_20220821075916.go | 42 + .../graphicform_20220821075920.go | 42 + .../graphicform_20220821075922.go | 42 + .../graphicform_20220821075929.go | 42 + .../graphicform_20220821075930.go | 41 + .../graphicform_20220821075940.go | 41 + .../graphicform_20220821075942.go | 42 + .../graphicform_20220821075947.go | 42 + .../graphicform_20220821075950.go | 42 + .../graphicform_20220821075953.go | 42 + .../graphicform_20220821075955.go | 42 + .../graphicform_20220821075959.go | 42 + .../graphicform_20220821080012.go | 42 + .../graphicform_20220821080013.go | 42 + .../graphicform_20220821080015.go | 42 + .../graphicform_20220821080022.go | 42 + .../graphicform_20220821080026.go | 42 + .../graphicform_20220821080035.go | 42 + .../graphicform_20220821080039.go | 42 + .../graphicform_20220821080055.go | 42 + .../graphicform_20220821080057.go | 42 + .../graphicform_20220821080102.go | 42 + .../graphicform_20220821080103.go | 42 + .../graphicform_20220821080159.go | 71 + .../graphicform_20220821080247.go | 71 + .../graphicform_20220821080248.go | 71 + .../graphicform_20220821080249.go | 71 + .../graphicform_20220821080305.go | 71 + .../graphicform_20220821080314.go | 71 + .../graphicform_20220821080315.go | 71 + .../graphicform_20220821080348.go | 72 + .../graphicform_20220821080354.go | 72 + .../graphicform_20220821080359.go | 72 + .../graphicform_20220821080403.go | 72 + .../graphicform_20220821080413.go | 72 + .../graphicform_20220821080415.go | 72 + .../graphicform_20220821080633.go | 72 + .../graphicform_20220821080644.go | 72 + .../graphicform_20220821080650.go | 72 + .../graphicform_20220821080656.go | 72 + .../graphicform_20220821080702.go | 72 + .../graphicform_20220821080704.go | 72 + .../graphicform_20220821080713.go | 72 + .../graphicform_20220821080715.go | 72 + .../graphicform_20220821080722.go | 72 + .../graphicform_20220821080738.go | 72 + .../graphicform_20220821080739.go | 72 + .../graphicform_20220821080741.go | 72 + .../graphicform_20220821080742.go | 72 + .../graphicform_20220821080747.go | 72 + .../graphicform_20220821080750.go | 72 + .../graphicform_20220821080757.go | 72 + .../graphicform_20220821080758.go | 72 + .../graphicform_20220821080809.go | 72 + .../graphicform_20220821080810.go | 72 + .../graphicform_20220821080819.go | 72 + .../graphicform_20220821080825.go | 72 + .../graphicform_20220821080834.go | 72 + .../graphicform_20220821080838.go | 72 + .../graphicform_20220821093100.go | 72 + .../graphicform_20220821093101.go | 72 + .../graphicform_20220821093103.go | 72 + .../graphicform_20220821093105.go | 72 + .../graphicform_20220821093118.go | 72 + .../modelbookimg/reporting_20220821090516.go | 0 .../modelbookimg/reporting_20220821090521.go | 1 + .../modelbookimg/reporting_20220821090523.go | 1 + .../modelbookimg/reporting_20220821090526.go | 1 + .../modelbookimg/reporting_20220821090530.go | 2 + .../modelbookimg/reporting_20220821090538.go | 5 + .../modelbookimg/reporting_20220821090543.go | 6 + .../modelbookimg/reporting_20220821090545.go | 6 + .../modelbookimg/reporting_20220821090551.go | 6 + .../modelbookimg/reporting_20220821090552.go | 5 + .../modelbookimg/reporting_20220821090556.go | 6 + .../modelbookimg/reporting_20220821090605.go | 6 + .../modelbookimg/reporting_20220821090611.go | 6 + .../modelbookimg/reporting_20220821090629.go | 7 + .../modelbookimg/reporting_20220821090636.go | 7 + .../modelbookimg/reporting_20220821090642.go | 7 + .../modelbookimg/reporting_20220821090644.go | 7 + .../modelbookimg/reporting_20220821090646.go | 7 + .../modelbookimg/reporting_20220821090651.go | 7 + .../modelbookimg/reporting_20220821090654.go | 7 + .../modelbookimg/reporting_20220821090701.go | 7 + .../modelbookimg/reporting_20220821090703.go | 7 + .../modelbookimg/reporting_20220821090711.go | 7 + .../modelbookimg/reporting_20220821090736.go | 7 + .../modelbookimg/reporting_20220821090737.go | 8 + .../modelbookimg/reporting_20220821090743.go | 8 + .../modelbookimg/reporting_20220821090744.go | 8 + .../modelbookimg/reporting_20220821090748.go | 8 + .../modelbookimg/reporting_20220821090754.go | 8 + .../modelbookimg/reporting_20220821090800.go | 8 + .../modelbookimg/reporting_20220821090806.go | 8 + .../modelbookimg/reporting_20220821090808.go | 9 + .../modelbookimg/reporting_20220821090820.go | 9 + .../modelbookimg/reporting_20220821090824.go | 9 + .../modelbookimg/reporting_20220821090828.go | 9 + .../modelbookimg/reporting_20220821090832.go | 9 + .../modelbookimg/reporting_20220821090841.go | 9 + .../modelbookimg/reporting_20220821090843.go | 10 + .../modelbookimg/reporting_20220821090854.go | 10 + .../modelbookimg/reporting_20220821090856.go | 10 + .../modelbookimg/reporting_20220821090858.go | 10 + .../modelbookimg/reporting_20220821090902.go | 10 + .../modelbookimg/reporting_20220821090905.go | 10 + .../modelbookimg/reporting_20220821090910.go | 10 + .../modelbookimg/reporting_20220821090918.go | 10 + .../modelbookimg/reporting_20220821090924.go | 10 + .../modelbookimg/reporting_20220821090926.go | 10 + .../modelbookimg/reporting_20220821090933.go | 10 + .../modelbookimg/reporting_20220821090938.go | 10 + .../modelbookimg/reporting_20220821090940.go | 11 + .../modelbookimg/reporting_20220821090946.go | 11 + .../modelbookimg/reporting_20220821090952.go | 11 + .../modelbookimg/reporting_20220821090956.go | 11 + .../modelbookimg/reporting_20220821091002.go | 11 + .../modelbookimg/reporting_20220821091004.go | 11 + .../modelbookimg/reporting_20220821091016.go | 11 + .../modelbookimg/reporting_20220821091020.go | 12 + .../modelbookimg/reporting_20220821091030.go | 12 + .../modelbookimg/reporting_20220821091031.go | 12 + .../modelbookimg/reporting_20220821091037.go | 12 + .../modelbookimg/reporting_20220821091040.go | 12 + .../modelbookimg/reporting_20220821091044.go | 12 + .../modelbookimg/reporting_20220821091051.go | 12 + .../modelbookimg/reporting_20220821091053.go | 12 + .../modelbookimg/reporting_20220821091056.go | 12 + .../modelbookimg/reporting_20220821091058.go | 13 + .../modelbookimg/reporting_20220821091104.go | 13 + .../modelbookimg/reporting_20220821091107.go | 13 + .../modelbookimg/reporting_20220821091112.go | 13 + .../modelbookimg/reporting_20220821091116.go | 13 + .../modelbookimg/reporting_20220821091125.go | 13 + .../modelbookimg/reporting_20220821091132.go | 13 + .../modelbookimg/reporting_20220821091135.go | 13 + .../modelbookimg/reporting_20220821091149.go | 13 + .../modelbookimg/reporting_20220821091151.go | 14 + .../modelbookimg/reporting_20220821091157.go | 42 + .../modelbookimg/reporting_20220821091200.go | 42 + .../modelbookimg/reporting_20220821091202.go | 42 + .../modelbookimg/reporting_20220821091204.go | 46 + .../modelbookimg/reporting_20220821091208.go | 46 + .../modelbookimg/reporting_20220821091209.go | 46 + .../modelbookimg/reporting_20220821091244.go | 46 + .../modelbookimg/reporting_20220821091258.go | 46 + .../modelbookimg/reporting_20220821091300.go | 46 + .../modelbookimg/reporting_20220821092814.go | 46 + .../modelbookimg/reporting_20220821092815.go | 46 + .../modelbookimg/searchlog_20220821091312.go | 0 .../modelbookimg/searchlog_20220821091321.go | 1 + .../modelbookimg/searchlog_20220821091325.go | 2 + .../modelbookimg/searchlog_20220821091329.go | 1 + .../modelbookimg/searchlog_20220821091336.go | 3 + .../modelbookimg/searchlog_20220821091339.go | 3 + .../modelbookimg/searchlog_20220821091342.go | 5 + .../modelbookimg/searchlog_20220821091344.go | 5 + .../modelbookimg/searchlog_20220821091349.go | 6 + .../modelbookimg/searchlog_20220821091353.go | 6 + .../modelbookimg/searchlog_20220821091359.go | 6 + .../modelbookimg/searchlog_20220821091415.go | 6 + .../modelbookimg/searchlog_20220821091418.go | 7 + .../modelbookimg/searchlog_20220821091435.go | 7 + .../modelbookimg/searchlog_20220821091439.go | 7 + .../modelbookimg/searchlog_20220821091442.go | 7 + .../modelbookimg/searchlog_20220821091447.go | 7 + .../modelbookimg/searchlog_20220821091448.go | 7 + .../modelbookimg/searchlog_20220821091450.go | 7 + .../modelbookimg/searchlog_20220821091458.go | 7 + .../modelbookimg/searchlog_20220821091502.go | 7 + .../modelbookimg/searchlog_20220821091505.go | 7 + .../modelbookimg/searchlog_20220821091508.go | 7 + .../modelbookimg/searchlog_20220821091510.go | 8 + .../modelbookimg/searchlog_20220821091518.go | 8 + .../modelbookimg/searchlog_20220821091520.go | 8 + .../modelbookimg/searchlog_20220821091522.go | 8 + .../modelbookimg/searchlog_20220821091525.go | 8 + .../modelbookimg/searchlog_20220821091527.go | 8 + .../modelbookimg/searchlog_20220821091531.go | 8 + .../modelbookimg/searchlog_20220821091539.go | 8 + .../modelbookimg/searchlog_20220821091549.go | 8 + .../modelbookimg/searchlog_20220821091550.go | 8 + .../modelbookimg/searchlog_20220821091554.go | 8 + .../modelbookimg/searchlog_20220821091556.go | 9 + .../modelbookimg/searchlog_20220821091602.go | 9 + .../modelbookimg/searchlog_20220821091605.go | 9 + .../modelbookimg/searchlog_20220821091611.go | 9 + .../modelbookimg/searchlog_20220821091614.go | 9 + .../modelbookimg/searchlog_20220821091619.go | 9 + .../modelbookimg/searchlog_20220821091621.go | 9 + .../modelbookimg/searchlog_20220821091627.go | 9 + .../modelbookimg/searchlog_20220821091628.go | 9 + .../modelbookimg/searchlog_20220821091636.go | 10 + .../modelbookimg/searchlog_20220821091638.go | 10 + .../modelbookimg/searchlog_20220821091641.go | 10 + .../modelbookimg/searchlog_20220821091645.go | 10 + .../modelbookimg/searchlog_20220821091648.go | 10 + .../modelbookimg/searchlog_20220821091652.go | 10 + .../modelbookimg/searchlog_20220821091700.go | 10 + .../modelbookimg/searchlog_20220821091702.go | 11 + .../modelbookimg/searchlog_20220821091707.go | 11 + .../modelbookimg/searchlog_20220821091709.go | 11 + .../modelbookimg/searchlog_20220821091712.go | 11 + .../modelbookimg/searchlog_20220821091715.go | 11 + .../modelbookimg/searchlog_20220821091717.go | 11 + .../modelbookimg/searchlog_20220821091721.go | 11 + .../modelbookimg/searchlog_20220821091725.go | 11 + .../modelbookimg/searchlog_20220821091730.go | 11 + .../modelbookimg/searchlog_20220821091732.go | 11 + .../modelbookimg/searchlog_20220821091735.go | 12 + .../modelbookimg/searchlog_20220821091744.go | 12 + .../modelbookimg/searchlog_20220821091752.go | 40 + .../modelbookimg/searchlog_20220821091755.go | 40 + .../modelbookimg/searchlog_20220821091758.go | 40 + .../modelbookimg/searchlog_20220821091759.go | 40 + .../modelbookimg/searchlog_20220821091803.go | 44 + .../modelbookimg/searchlog_20220821091815.go | 44 + .../modelbookimg/searchlog_20220821091816.go | 44 + .../modelbookimg/searchlog_20220821092803.go | 44 + .../modelbookimg/searchlog_20220821092804.go | 44 + .../modelbookimg/searchlog_20220821092805.go | 44 + .../modelbookimg/searchlog_20220821092807.go | 44 + .../modelbookimg/traceing_20220821091834.go | 0 .../modelbookimg/traceing_20220821091838.go | 1 + .../modelbookimg/traceing_20220821091854.go | 5 + .../modelbookimg/traceing_20220821091856.go | 4 + .../modelbookimg/traceing_20220821091902.go | 4 + .../modelbookimg/traceing_20220821091905.go | 5 + .../modelbookimg/traceing_20220821091908.go | 6 + .../modelbookimg/traceing_20220821091915.go | 6 + .../modelbookimg/traceing_20220821091958.go | 6 + .../modelbookimg/traceing_20220821092001.go | 7 + .../modelbookimg/traceing_20220821092009.go | 7 + .../modelbookimg/traceing_20220821092011.go | 7 + .../modelbookimg/traceing_20220821092015.go | 7 + .../modelbookimg/traceing_20220821092018.go | 7 + .../modelbookimg/traceing_20220821092022.go | 7 + .../modelbookimg/traceing_20220821092026.go | 7 + .../modelbookimg/traceing_20220821092034.go | 7 + .../modelbookimg/traceing_20220821092039.go | 7 + .../modelbookimg/traceing_20220821092041.go | 8 + .../modelbookimg/traceing_20220821092047.go | 8 + .../modelbookimg/traceing_20220821092051.go | 8 + .../modelbookimg/traceing_20220821092059.go | 8 + .../modelbookimg/traceing_20220821092110.go | 8 + .../modelbookimg/traceing_20220821092111.go | 9 + .../modelbookimg/traceing_20220821092130.go | 9 + .../modelbookimg/traceing_20220821092139.go | 9 + .../modelbookimg/traceing_20220821092148.go | 9 + .../modelbookimg/traceing_20220821092154.go | 10 + .../modelbookimg/traceing_20220821092158.go | 10 + .../modelbookimg/traceing_20220821092207.go | 10 + .../modelbookimg/traceing_20220821092209.go | 10 + .../modelbookimg/traceing_20220821092212.go | 10 + .../modelbookimg/traceing_20220821092217.go | 10 + .../modelbookimg/traceing_20220821092222.go | 10 + .../modelbookimg/traceing_20220821092223.go | 11 + .../modelbookimg/traceing_20220821092228.go | 11 + .../modelbookimg/traceing_20220821092231.go | 11 + .../modelbookimg/traceing_20220821092236.go | 11 + .../modelbookimg/traceing_20220821092239.go | 11 + .../modelbookimg/traceing_20220821092242.go | 11 + .../modelbookimg/traceing_20220821092249.go | 11 + .../modelbookimg/traceing_20220821092252.go | 11 + .../modelbookimg/traceing_20220821092255.go | 11 + .../modelbookimg/traceing_20220821092256.go | 11 + .../modelbookimg/traceing_20220821092301.go | 12 + .../modelbookimg/traceing_20220821092304.go | 12 + .../modelbookimg/traceing_20220821092310.go | 12 + .../modelbookimg/traceing_20220821092313.go | 12 + .../modelbookimg/traceing_20220821092317.go | 12 + .../modelbookimg/traceing_20220821092326.go | 12 + .../modelbookimg/traceing_20220821092328.go | 13 + .../modelbookimg/traceing_20220821092333.go | 13 + .../modelbookimg/traceing_20220821092334.go | 13 + .../modelbookimg/traceing_20220821092341.go | 13 + .../modelbookimg/traceing_20220821092343.go | 13 + .../modelbookimg/traceing_20220821092352.go | 13 + .../modelbookimg/traceing_20220821092401.go | 14 + .../modelbookimg/traceing_20220821092407.go | 15 + .../modelbookimg/traceing_20220821092411.go | 15 + .../modelbookimg/traceing_20220821092416.go | 15 + .../modelbookimg/traceing_20220821092417.go | 15 + .../modelbookimg/traceing_20220821092423.go | 15 + .../modelbookimg/traceing_20220821092437.go | 15 + .../modelbookimg/traceing_20220821092439.go | 16 + .../modelbookimg/traceing_20220821092448.go | 16 + .../modelbookimg/traceing_20220821092451.go | 16 + .../modelbookimg/traceing_20220821092456.go | 16 + .../modelbookimg/traceing_20220821092500.go | 15 + .../modelbookimg/traceing_20220821092506.go | 15 + .../modelbookimg/traceing_20220821092508.go | 16 + .../modelbookimg/traceing_20220821092514.go | 16 + .../modelbookimg/traceing_20220821092516.go | 16 + .../modelbookimg/traceing_20220821092522.go | 16 + .../modelbookimg/traceing_20220821092526.go | 16 + .../modelbookimg/traceing_20220821092531.go | 16 + .../modelbookimg/traceing_20220821092539.go | 16 + .../modelbookimg/traceing_20220821092542.go | 17 + .../modelbookimg/traceing_20220821092547.go | 45 + .../modelbookimg/traceing_20220821092552.go | 45 + .../modelbookimg/traceing_20220821092553.go | 45 + .../modelbookimg/traceing_20220821092555.go | 45 + .../modelbookimg/traceing_20220821092604.go | 45 + .../modelbookimg/traceing_20220821092606.go | 45 + .../modelbookimg/traceing_20220821092607.go | 49 + .../modelbookimg/traceing_20220821092615.go | 49 + .../modelbookimg/traceing_20220821092617.go | 49 + .../modelbookimg/traceing_20220821092725.go | 49 + .../modelbookimg/traceing_20220821092728.go | 49 + .../modelbookimg/traceing_20220821092744.go | 49 + .../modelbookimg/traceing_20220821092747.go | 49 + .../qualitative_target_20220818143450.go | 75 + .../qualitative_target_20220819110259.go | 75 + .../qualitative_target_20220819110301.go | 75 + DevLog.md | 18 + api/version1/bookimg/bookimg.go | 10 + api/version1/bookimg/type.go | 31 + .../departmentpc/qualitativekpi.go | 2 +- api/version1/entry.go | 2 + apirouter/entry.go | 2 + apirouter/v1/bookimg/bookimg_route.go | 18 + apirouter/v1/bookimg/type.go | 4 + models/modelbookimg/archives_type.go | 45 + models/modelbookimg/bookattribute.go | 46 + models/modelbookimg/discussmsg.go | 48 + models/modelbookimg/graphicform.go | 72 + models/modelbookimg/reporting.go | 46 + models/modelbookimg/searchlog.go | 44 + models/modelbookimg/traceing.go | 49 + 1312 files changed, 29988 insertions(+), 1 deletion(-) create mode 100644 .history/DevLog_20220821093312.md create mode 100644 .history/DevLog_20220821093320.md create mode 100644 .history/DevLog_20220821093327.md create mode 100644 .history/DevLog_20220821093330.md create mode 100644 .history/DevLog_20220821093339.md create mode 100644 .history/DevLog_20220821093349.md create mode 100644 .history/DevLog_20220821093351.md create mode 100644 .history/DevLog_20220821093355.md create mode 100644 .history/DevLog_20220821093402.md create mode 100644 .history/DevLog_20220821093407.md create mode 100644 .history/DevLog_20220821093408.md create mode 100644 .history/DevLog_20220821093416.md create mode 100644 .history/DevLog_20220821093423.md create mode 100644 .history/DevLog_20220821093426.md create mode 100644 .history/DevLog_20220821093432.md create mode 100644 .history/DevLog_20220821093446.md create mode 100644 .history/DevLog_20220821093449.md create mode 100644 .history/DevLog_20220821093455.md create mode 100644 .history/DevLog_20220821093517.md create mode 100644 .history/DevLog_20220821093520.md create mode 100644 .history/DevLog_20220821093522.md create mode 100644 .history/DevLog_20220821093525.md create mode 100644 .history/DevLog_20220821093529.md create mode 100644 .history/DevLog_20220821093534.md create mode 100644 .history/DevLog_20220821093542.md create mode 100644 .history/DevLog_20220821093552.md create mode 100644 .history/DevLog_20220821093555.md create mode 100644 .history/DevLog_20220821093612.md create mode 100644 .history/DevLog_20220821093617.md create mode 100644 .history/DevLog_20220821093618.md create mode 100644 .history/DevLog_20220821093626.md create mode 100644 .history/DevLog_20220821093627.md create mode 100644 .history/DevLog_20220821093630.md create mode 100644 .history/DevLog_20220821093642.md create mode 100644 .history/DevLog_20220821093649.md create mode 100644 .history/DevLog_20220821093650.md create mode 100644 .history/DevLog_20220821093653.md create mode 100644 .history/DevLog_20220821093701.md create mode 100644 .history/DevLog_20220821093705.md create mode 100644 .history/DevLog_20220821093715.md create mode 100644 .history/DevLog_20220821093719.md create mode 100644 .history/DevLog_20220821093731.md create mode 100644 .history/DevLog_20220821093736.md create mode 100644 .history/DevLog_20220821093742.md create mode 100644 .history/DevLog_20220821093744.md create mode 100644 .history/DevLog_20220821093748.md create mode 100644 .history/DevLog_20220821093753.md create mode 100644 .history/DevLog_20220821093757.md create mode 100644 .history/DevLog_20220821093805.md create mode 100644 .history/DevLog_20220821093810.md create mode 100644 .history/DevLog_20220821093817.md create mode 100644 .history/DevLog_20220821093822.md create mode 100644 .history/DevLog_20220821093823.md create mode 100644 .history/DevLog_20220821093830.md create mode 100644 .history/DevLog_20220821093837.md create mode 100644 .history/DevLog_20220821093854.md create mode 100644 .history/DevLog_20220821093856.md create mode 100644 .history/DevLog_20220821093857.md create mode 100644 .history/DevLog_20220821093908.md create mode 100644 .history/DevLog_20220821093913.md create mode 100644 .history/DevLog_20220821093923.md create mode 100644 .history/DevLog_20220821093927.md create mode 100644 .history/DevLog_20220821093934.md create mode 100644 .history/DevLog_20220821093937.md create mode 100644 .history/DevLog_20220821093952.md create mode 100644 .history/DevLog_20220821094000.md create mode 100644 .history/DevLog_20220821094006.md create mode 100644 .history/DevLog_20220821094008.md create mode 100644 .history/DevLog_20220821094011.md create mode 100644 .history/DevLog_20220821094013.md create mode 100644 .history/DevLog_20220821094017.md create mode 100644 .history/DevLog_20220821094037.md create mode 100644 .history/DevLog_20220821094040.md create mode 100644 .history/DevLog_20220821094043.md create mode 100644 .history/DevLog_20220821094105.md create mode 100644 .history/DevLog_20220821094108.md create mode 100644 .history/DevLog_20220821094117.md create mode 100644 .history/DevLog_20220821094121.md create mode 100644 .history/api/version1/bookimg/bookimg_20220821094513.go create mode 100644 .history/api/version1/bookimg/bookimg_20220821094524.go create mode 100644 .history/api/version1/bookimg/bookimg_20220821094535.go create mode 100644 .history/api/version1/bookimg/bookimg_20220821101003.go create mode 100644 .history/api/version1/bookimg/bookimg_20220821101008.go create mode 100644 .history/api/version1/bookimg/bookimg_20220821101013.go create mode 100644 .history/api/version1/bookimg/bookimg_20220821101016.go create mode 100644 .history/api/version1/bookimg/bookimg_20220821101044.go create mode 100644 .history/api/version1/bookimg/bookimg_20220821101045.go create mode 100644 .history/api/version1/bookimg/bookimg_20220821101055.go create mode 100644 .history/api/version1/bookimg/bookimg_20220821101056.go create mode 100644 .history/api/version1/bookimg/bookimg_20220821101100.go create mode 100644 .history/api/version1/bookimg/bookimg_20220821101117.go create mode 100644 .history/api/version1/bookimg/bookimg_20220821101127.go create mode 100644 .history/api/version1/bookimg/bookimg_20220821101128.go create mode 100644 .history/api/version1/bookimg/bookimg_20220821101130.go create mode 100644 .history/api/version1/bookimg/bookimg_20220821101133.go create mode 100644 .history/api/version1/bookimg/bookimg_20220821101141.go create mode 100644 .history/api/version1/bookimg/bookimg_20220821101144.go create mode 100644 .history/api/version1/bookimg/bookimg_20220821101147.go create mode 100644 .history/api/version1/bookimg/bookimg_20220821101151.go create mode 100644 .history/api/version1/bookimg/bookimg_20220821101155.go create mode 100644 .history/api/version1/bookimg/bookimg_20220821101159.go create mode 100644 .history/api/version1/bookimg/bookimg_20220821101502.go create mode 100644 .history/api/version1/bookimg/type_20220819154849.go create mode 100644 .history/api/version1/bookimg/type_20220819154856.go create mode 100644 .history/api/version1/bookimg/type_20220819154906.go create mode 100644 .history/api/version1/bookimg/type_20220819154907.go create mode 100644 .history/api/version1/bookimg/type_20220821095211.go create mode 100644 .history/api/version1/bookimg/type_20220821095212.go create mode 100644 .history/api/version1/bookimg/type_20220821095221.go create mode 100644 .history/api/version1/bookimg/type_20220821095230.go create mode 100644 .history/api/version1/bookimg/type_20220821095659.go create mode 100644 .history/api/version1/bookimg/type_20220821095723.go create mode 100644 .history/api/version1/bookimg/type_20220821095731.go create mode 100644 .history/api/version1/bookimg/type_20220821095738.go create mode 100644 .history/api/version1/bookimg/type_20220821095837.go create mode 100644 .history/api/version1/bookimg/type_20220821095840.go create mode 100644 .history/api/version1/bookimg/type_20220821095847.go create mode 100644 .history/api/version1/bookimg/type_20220821095852.go create mode 100644 .history/api/version1/bookimg/type_20220821095854.go create mode 100644 .history/api/version1/bookimg/type_20220821095900.go create mode 100644 .history/api/version1/bookimg/type_20220821095905.go create mode 100644 .history/api/version1/bookimg/type_20220821095913.go create mode 100644 .history/api/version1/bookimg/type_20220821095915.go create mode 100644 .history/api/version1/bookimg/type_20220821095920.go create mode 100644 .history/api/version1/bookimg/type_20220821095923.go create mode 100644 .history/api/version1/bookimg/type_20220821095927.go create mode 100644 .history/api/version1/bookimg/type_20220821095932.go create mode 100644 .history/api/version1/bookimg/type_20220821095936.go create mode 100644 .history/api/version1/bookimg/type_20220821095941.go create mode 100644 .history/api/version1/bookimg/type_20220821095951.go create mode 100644 .history/api/version1/bookimg/type_20220821095954.go create mode 100644 .history/api/version1/bookimg/type_20220821100049.go create mode 100644 .history/api/version1/bookimg/type_20220821100109.go create mode 100644 .history/api/version1/bookimg/type_20220821100111.go create mode 100644 .history/api/version1/bookimg/type_20220821100116.go create mode 100644 .history/api/version1/bookimg/type_20220821100130.go create mode 100644 .history/api/version1/bookimg/type_20220821100139.go create mode 100644 .history/api/version1/bookimg/type_20220821100143.go create mode 100644 .history/api/version1/bookimg/type_20220821100316.go create mode 100644 .history/api/version1/bookimg/type_20220821100323.go create mode 100644 .history/api/version1/bookimg/type_20220821100336.go create mode 100644 .history/api/version1/bookimg/type_20220821100349.go create mode 100644 .history/api/version1/bookimg/type_20220821100350.go create mode 100644 .history/api/version1/bookimg/type_20220821100353.go create mode 100644 .history/api/version1/bookimg/type_20220821100354.go create mode 100644 .history/api/version1/bookimg/type_20220821100411.go create mode 100644 .history/api/version1/bookimg/type_20220821100418.go create mode 100644 .history/api/version1/bookimg/type_20220821100428.go create mode 100644 .history/api/version1/bookimg/type_20220821100440.go create mode 100644 .history/api/version1/bookimg/type_20220821100447.go create mode 100644 .history/api/version1/bookimg/type_20220821100500.go create mode 100644 .history/api/version1/bookimg/type_20220821100509.go create mode 100644 .history/api/version1/bookimg/type_20220821100511.go create mode 100644 .history/api/version1/bookimg/type_20220821100515.go create mode 100644 .history/api/version1/bookimg/type_20220821100517.go create mode 100644 .history/api/version1/bookimg/type_20220821100521.go create mode 100644 .history/api/version1/bookimg/type_20220821100524.go create mode 100644 .history/api/version1/bookimg/type_20220821100554.go create mode 100644 .history/api/version1/bookimg/type_20220821100602.go create mode 100644 .history/api/version1/bookimg/type_20220821100627.go create mode 100644 .history/api/version1/bookimg/type_20220821100633.go create mode 100644 .history/api/version1/bookimg/type_20220821100643.go create mode 100644 .history/api/version1/bookimg/type_20220821100645.go create mode 100644 .history/api/version1/bookimg/type_20220821100706.go create mode 100644 .history/api/version1/bookimg/type_20220821100721.go create mode 100644 .history/api/version1/bookimg/type_20220821100729.go create mode 100644 .history/api/version1/bookimg/type_20220821100732.go create mode 100644 .history/api/version1/bookimg/type_20220821100734.go create mode 100644 .history/api/version1/bookimg/type_20220821100736.go create mode 100644 .history/api/version1/bookimg/type_20220821100751.go create mode 100644 .history/api/version1/bookimg/type_20220821100754.go create mode 100644 .history/api/version1/bookimg/type_20220821100801.go create mode 100644 .history/api/version1/bookimg/type_20220821100806.go create mode 100644 .history/api/version1/bookimg/type_20220821100814.go create mode 100644 .history/api/version1/bookimg/type_20220821100820.go create mode 100644 .history/api/version1/bookimg/type_20220821100827.go create mode 100644 .history/api/version1/bookimg/type_20220821100837.go create mode 100644 .history/api/version1/bookimg/type_20220821100840.go create mode 100644 .history/api/version1/bookimg/type_20220821100847.go create mode 100644 .history/api/version1/bookimg/type_20220821100848.go create mode 100644 .history/api/version1/bookimg/type_20220821100918.go create mode 100644 .history/api/version1/bookimg/type_20220821101032.go create mode 100644 .history/api/version1/bookimg/type_20220821101035.go create mode 100644 .history/api/version1/bookimg/type_20220821101037.go create mode 100644 .history/api/version1/departmentseting/departmentpc/qualitativekpi_20220818143450.go create mode 100644 .history/api/version1/departmentseting/departmentpc/qualitativekpi_20220819105656.go create mode 100644 .history/api/version1/departmentseting/departmentpc/qualitativekpi_20220819105657.go create mode 100644 .history/api/version1/entry_20220818143450.go create mode 100644 .history/api/version1/entry_20220821094905.go create mode 100644 .history/api/version1/entry_20220821094921.go create mode 100644 .history/api/version1/entry_20220821094923.go create mode 100644 .history/api/version1/entry_20220821094927.go create mode 100644 .history/api/version1/entry_20220821094930.go create mode 100644 .history/api/version1/entry_20220821094931.go create mode 100644 .history/api/version1/entry_20220821094933.go create mode 100644 .history/api/version1/entry_20220821095004.go create mode 100644 .history/api/version1/entry_20220821095034.go create mode 100644 .history/api/version1/entry_20220821095037.go create mode 100644 .history/api/version1/entry_20220821095039.go create mode 100644 .history/api/version1/entry_20220821095045.go create mode 100644 .history/apirouter/entry_20220818143450.go create mode 100644 .history/apirouter/entry_20220821094226.go create mode 100644 .history/apirouter/entry_20220821094233.go create mode 100644 .history/apirouter/entry_20220821094237.go create mode 100644 .history/apirouter/entry_20220821094241.go create mode 100644 .history/apirouter/entry_20220821094256.go create mode 100644 .history/apirouter/entry_20220821094258.go create mode 100644 .history/apirouter/entry_20220821094331.go create mode 100644 .history/apirouter/v1/bookimg/bookimg_route_20220819155956.go create mode 100644 .history/apirouter/v1/bookimg/bookimg_route_20220819160001.go create mode 100644 .history/apirouter/v1/bookimg/bookimg_route_20220819160002.go create mode 100644 .history/apirouter/v1/bookimg/bookimg_route_20220819160014.go create mode 100644 .history/apirouter/v1/bookimg/bookimg_route_20220819160018.go create mode 100644 .history/apirouter/v1/bookimg/bookimg_route_20220819160020.go create mode 100644 .history/apirouter/v1/bookimg/bookimg_route_20220819160024.go create mode 100644 .history/apirouter/v1/bookimg/bookimg_route_20220819160025.go create mode 100644 .history/apirouter/v1/bookimg/bookimg_route_20220819160033.go create mode 100644 .history/apirouter/v1/bookimg/bookimg_route_20220819160035.go create mode 100644 .history/apirouter/v1/bookimg/bookimg_route_20220819160036.go create mode 100644 .history/apirouter/v1/bookimg/bookimg_route_20220819160037.go create mode 100644 .history/apirouter/v1/bookimg/bookimg_route_20220819160043.go create mode 100644 .history/apirouter/v1/bookimg/bookimg_route_20220819160047.go create mode 100644 .history/apirouter/v1/bookimg/bookimg_route_20220819160058.go create mode 100644 .history/apirouter/v1/bookimg/bookimg_route_20220819160102.go create mode 100644 .history/apirouter/v1/bookimg/bookimg_route_20220819160122.go create mode 100644 .history/apirouter/v1/bookimg/bookimg_route_20220819160126.go create mode 100644 .history/apirouter/v1/bookimg/bookimg_route_20220819160136.go create mode 100644 .history/apirouter/v1/bookimg/bookimg_route_20220819160138.go create mode 100644 .history/apirouter/v1/bookimg/bookimg_route_20220819160139.go create mode 100644 .history/apirouter/v1/bookimg/bookimg_route_20220819160144.go create mode 100644 .history/apirouter/v1/bookimg/bookimg_route_20220819160148.go create mode 100644 .history/apirouter/v1/bookimg/bookimg_route_20220819160152.go create mode 100644 .history/apirouter/v1/bookimg/bookimg_route_20220819160155.go create mode 100644 .history/apirouter/v1/bookimg/bookimg_route_20220819160157.go create mode 100644 .history/apirouter/v1/bookimg/bookimg_route_20220821094745.go create mode 100644 .history/apirouter/v1/bookimg/bookimg_route_20220821094807.go create mode 100644 .history/apirouter/v1/bookimg/bookimg_route_20220821094809.go create mode 100644 .history/apirouter/v1/bookimg/bookimg_route_20220821094813.go create mode 100644 .history/apirouter/v1/bookimg/bookimg_route_20220821094816.go create mode 100644 .history/apirouter/v1/bookimg/bookimg_route_20220821094830.go create mode 100644 .history/apirouter/v1/bookimg/bookimg_route_20220821094833.go create mode 100644 .history/apirouter/v1/bookimg/bookimg_route_20220821094835.go create mode 100644 .history/apirouter/v1/bookimg/bookimg_route_20220821094840.go create mode 100644 .history/apirouter/v1/bookimg/bookimg_route_20220821095055.go create mode 100644 .history/apirouter/v1/bookimg/bookimg_route_20220821095058.go create mode 100644 .history/apirouter/v1/bookimg/bookimg_route_20220821095103.go create mode 100644 .history/apirouter/v1/bookimg/bookimg_route_20220821095124.go create mode 100644 .history/apirouter/v1/bookimg/bookimg_route_20220821095128.go create mode 100644 .history/apirouter/v1/bookimg/bookimg_route_20220821095134.go create mode 100644 .history/apirouter/v1/bookimg/bookimg_route_20220821095135.go create mode 100644 .history/apirouter/v1/bookimg/bookimg_route_20220821095136.go create mode 100644 .history/apirouter/v1/bookimg/bookimg_route_20220821095145.go create mode 100644 .history/apirouter/v1/bookimg/bookimg_route_20220821095232.go create mode 100644 .history/apirouter/v1/bookimg/type_20220819155901.go create mode 100644 .history/apirouter/v1/bookimg/type_20220819155909.go create mode 100644 .history/apirouter/v1/bookimg/type_20220819155915.go create mode 100644 .history/apirouter/v1/bookimg/type_20220819155916.go create mode 100644 .history/apirouter/v1/bookimg/type_20220819155923.go create mode 100644 .history/apirouter/v1/bookimg/type_20220819155925.go create mode 100644 .history/apirouter/v1/bookimg/type_20220819155930.go create mode 100644 .history/apirouter/v1/bookimg/type_20220819155932.go create mode 100644 .history/apirouter/v1/bookimg/type_20220819155938.go create mode 100644 .history/apirouter/v1/bookimg/type_20220819155940.go create mode 100644 .history/apirouter/v1/bookimg/type_20220821094618.go create mode 100644 .history/apirouter/v1/bookimg/type_20220821094625.go create mode 100644 .history/apirouter/v1/bookimg/type_20220821094633.go create mode 100644 .history/apirouter/v1/bookimg/type_20220821094637.go create mode 100644 .history/apirouter/v1/bookimg/type_20220821094638.go create mode 100644 .history/apirouter/v1/bookimg/type_20220821094645.go create mode 100644 .history/apirouter/v1/bookimg/type_20220821094647.go create mode 100644 .history/apirouter/v1/bookimg/type_20220821094653.go create mode 100644 .history/apirouter/v1/bookimg/type_20220821094656.go create mode 100644 .history/apirouter/v1/bookimg/type_20220821094657.go create mode 100644 .history/apirouter/v1/bookimg/type_20220821094659.go create mode 100644 .history/apirouter/v1/bookimg/type_20220821094700.go create mode 100644 .history/apirouter/v1/bookimg/type_20220821094704.go create mode 100644 .history/apirouter/v1/bookimg/type_20220821094739.go create mode 100644 .history/initialization/app/run_20220818143450.go create mode 100644 .history/initialization/app/run_20220819150713.go create mode 100644 .history/initialization/route/initRoute_20220818143450.go create mode 100644 .history/initialization/route/initRoute_20220821094324.go create mode 100644 .history/main_20220818143106.go create mode 100644 .history/main_20220819150513.go create mode 100644 .history/main_20220819150514.go create mode 100644 .history/middleware/grocerystore/redis_20220818143106.go create mode 100644 .history/middleware/grocerystore/redis_20220819082152.go create mode 100644 .history/middleware/grocerystore/redis_20220819082153.go create mode 100644 .history/models/modelbookimg/archives_type_20220821083755.go create mode 100644 .history/models/modelbookimg/archives_type_20220821083815.go create mode 100644 .history/models/modelbookimg/archives_type_20220821083847.go create mode 100644 .history/models/modelbookimg/archives_type_20220821083858.go create mode 100644 .history/models/modelbookimg/archives_type_20220821083900.go create mode 100644 .history/models/modelbookimg/archives_type_20220821083902.go create mode 100644 .history/models/modelbookimg/archives_type_20220821083905.go create mode 100644 .history/models/modelbookimg/archives_type_20220821083910.go create mode 100644 .history/models/modelbookimg/archives_type_20220821083916.go create mode 100644 .history/models/modelbookimg/archives_type_20220821083918.go create mode 100644 .history/models/modelbookimg/archives_type_20220821083920.go create mode 100644 .history/models/modelbookimg/archives_type_20220821083923.go create mode 100644 .history/models/modelbookimg/archives_type_20220821083929.go create mode 100644 .history/models/modelbookimg/archives_type_20220821083932.go create mode 100644 .history/models/modelbookimg/archives_type_20220821083933.go create mode 100644 .history/models/modelbookimg/archives_type_20220821083939.go create mode 100644 .history/models/modelbookimg/archives_type_20220821083940.go create mode 100644 .history/models/modelbookimg/archives_type_20220821083945.go create mode 100644 .history/models/modelbookimg/archives_type_20220821083947.go create mode 100644 .history/models/modelbookimg/archives_type_20220821083953.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084000.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084008.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084012.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084015.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084016.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084019.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084026.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084028.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084033.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084037.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084039.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084048.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084049.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084056.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084059.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084105.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084108.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084111.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084114.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084118.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084121.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084130.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084134.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084135.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084140.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084142.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084146.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084148.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084156.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084158.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084200.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084203.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084204.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084207.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084211.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084215.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084227.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084231.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084234.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084236.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084242.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084244.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084245.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084249.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084258.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084300.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084307.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084309.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084315.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084319.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084324.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084329.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084331.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084339.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084340.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084349.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084352.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084357.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084411.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084414.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084417.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084421.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084423.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084430.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084434.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084437.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084445.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084452.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084457.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084458.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084459.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084503.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084513.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084515.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084519.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084523.go create mode 100644 .history/models/modelbookimg/archives_type_20220821084526.go create mode 100644 .history/models/modelbookimg/archives_type_20220821091226.go create mode 100644 .history/models/modelbookimg/archives_type_20220821093001.go create mode 100644 .history/models/modelbookimg/archives_type_20220821093002.go create mode 100644 .history/models/modelbookimg/archives_type_20220821093005.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821084648.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821084652.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821084654.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821084655.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821084658.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821084702.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821084703.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821084710.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821084713.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821084715.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821084718.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821084720.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821084724.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821084726.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821084735.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821084740.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821084742.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821084752.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821084757.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821084801.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821084803.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821084816.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821084818.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821084824.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821084828.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821084831.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821084839.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821084843.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821084854.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821084859.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821084901.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821084908.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821084911.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821084915.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821084918.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821084928.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821084930.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821084936.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821084937.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821084941.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821084943.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821084947.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821084948.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821084957.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821085000.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821085005.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821085010.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821085013.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821085016.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821085019.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821085020.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821085024.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821085026.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821085035.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821085040.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821085054.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821085058.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821085102.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821085103.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821085109.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821085123.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821085125.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821085134.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821085137.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821085139.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821085141.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821085142.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821085147.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821085151.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821085157.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821085201.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821085202.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821085204.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821085216.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821085218.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821085229.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821085233.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821085236.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821085239.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821085243.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821085247.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821085254.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821085258.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821085301.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821085317.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821085323.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821085326.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821085330.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821085332.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821085333.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821085334.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821085346.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821085349.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821085352.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821091221.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821091222.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821091223.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821091224.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821092834.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821092837.go create mode 100644 .history/models/modelbookimg/bookattribute_20220821092840.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085412.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085417.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085419.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085421.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085423.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085429.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085436.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085441.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085444.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085445.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085448.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085453.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085456.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085458.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085522.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085528.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085545.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085550.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085552.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085554.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085603.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085613.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085622.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085629.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085637.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085653.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085654.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085658.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085704.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085709.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085713.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085723.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085725.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085727.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085732.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085734.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085736.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085740.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085745.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085749.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085752.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085755.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085803.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085808.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085812.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085817.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085819.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085826.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085828.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085830.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085850.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085853.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085856.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085900.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085904.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085908.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085919.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085924.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085927.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085931.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085933.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085935.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085947.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085955.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821085956.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821090000.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821090002.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821090004.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821090008.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821090014.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821090018.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821090023.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821090028.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821090030.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821090032.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821090038.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821090046.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821090049.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821090052.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821090056.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821090100.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821090106.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821090108.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821090111.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821090114.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821090116.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821090123.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821090135.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821090137.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821090139.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821090140.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821090147.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821090151.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821090201.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821090204.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821090209.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821090214.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821090219.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821090224.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821090227.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821090231.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821090233.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821090251.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821090255.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821090303.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821090307.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821090311.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821090314.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821090326.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821090338.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821090340.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821090342.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821090411.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821090413.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821090420.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821090427.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821090430.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821090436.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821090441.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821090447.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821090452.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821091214.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821091215.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821092822.go create mode 100644 .history/models/modelbookimg/discussmsg_20220821092823.go create mode 100644 .history/models/modelbookimg/graphicform_20220819162409.go create mode 100644 .history/models/modelbookimg/graphicform_20220819162418.go create mode 100644 .history/models/modelbookimg/graphicform_20220819162421.go create mode 100644 .history/models/modelbookimg/graphicform_20220819162423.go create mode 100644 .history/models/modelbookimg/graphicform_20220819162429.go create mode 100644 .history/models/modelbookimg/graphicform_20220819162434.go create mode 100644 .history/models/modelbookimg/graphicform_20220819162437.go create mode 100644 .history/models/modelbookimg/graphicform_20220819162545.go create mode 100644 .history/models/modelbookimg/graphicform_20220819162638.go create mode 100644 .history/models/modelbookimg/graphicform_20220819162640.go create mode 100644 .history/models/modelbookimg/graphicform_20220819162649.go create mode 100644 .history/models/modelbookimg/graphicform_20220819162653.go create mode 100644 .history/models/modelbookimg/graphicform_20220819162702.go create mode 100644 .history/models/modelbookimg/graphicform_20220819162704.go create mode 100644 .history/models/modelbookimg/graphicform_20220819162708.go create mode 100644 .history/models/modelbookimg/graphicform_20220819162712.go create mode 100644 .history/models/modelbookimg/graphicform_20220819162713.go create mode 100644 .history/models/modelbookimg/graphicform_20220819162721.go create mode 100644 .history/models/modelbookimg/graphicform_20220819162731.go create mode 100644 .history/models/modelbookimg/graphicform_20220819162737.go create mode 100644 .history/models/modelbookimg/graphicform_20220819162741.go create mode 100644 .history/models/modelbookimg/graphicform_20220819162742.go create mode 100644 .history/models/modelbookimg/graphicform_20220819162757.go create mode 100644 .history/models/modelbookimg/graphicform_20220819162804.go create mode 100644 .history/models/modelbookimg/graphicform_20220819162809.go create mode 100644 .history/models/modelbookimg/graphicform_20220819162810.go create mode 100644 .history/models/modelbookimg/graphicform_20220819162812.go create mode 100644 .history/models/modelbookimg/graphicform_20220819162819.go create mode 100644 .history/models/modelbookimg/graphicform_20220819163154.go create mode 100644 .history/models/modelbookimg/graphicform_20220819163202.go create mode 100644 .history/models/modelbookimg/graphicform_20220819163213.go create mode 100644 .history/models/modelbookimg/graphicform_20220819163215.go create mode 100644 .history/models/modelbookimg/graphicform_20220819163219.go create mode 100644 .history/models/modelbookimg/graphicform_20220819163223.go create mode 100644 .history/models/modelbookimg/graphicform_20220819163225.go create mode 100644 .history/models/modelbookimg/graphicform_20220819163230.go create mode 100644 .history/models/modelbookimg/graphicform_20220819163235.go create mode 100644 .history/models/modelbookimg/graphicform_20220819163238.go create mode 100644 .history/models/modelbookimg/graphicform_20220819163247.go create mode 100644 .history/models/modelbookimg/graphicform_20220819163251.go create mode 100644 .history/models/modelbookimg/graphicform_20220819163254.go create mode 100644 .history/models/modelbookimg/graphicform_20220819163258.go create mode 100644 .history/models/modelbookimg/graphicform_20220819163302.go create mode 100644 .history/models/modelbookimg/graphicform_20220819163303.go create mode 100644 .history/models/modelbookimg/graphicform_20220819163306.go create mode 100644 .history/models/modelbookimg/graphicform_20220819163310.go create mode 100644 .history/models/modelbookimg/graphicform_20220819163323.go create mode 100644 .history/models/modelbookimg/graphicform_20220819163325.go create mode 100644 .history/models/modelbookimg/graphicform_20220819163338.go create mode 100644 .history/models/modelbookimg/graphicform_20220819163344.go create mode 100644 .history/models/modelbookimg/graphicform_20220819163347.go create mode 100644 .history/models/modelbookimg/graphicform_20220819163352.go create mode 100644 .history/models/modelbookimg/graphicform_20220819163359.go create mode 100644 .history/models/modelbookimg/graphicform_20220819163418.go create mode 100644 .history/models/modelbookimg/graphicform_20220819163420.go create mode 100644 .history/models/modelbookimg/graphicform_20220819163425.go create mode 100644 .history/models/modelbookimg/graphicform_20220819163427.go create mode 100644 .history/models/modelbookimg/graphicform_20220819163430.go create mode 100644 .history/models/modelbookimg/graphicform_20220819163434.go create mode 100644 .history/models/modelbookimg/graphicform_20220819163440.go create mode 100644 .history/models/modelbookimg/graphicform_20220819163442.go create mode 100644 .history/models/modelbookimg/graphicform_20220819163445.go create mode 100644 .history/models/modelbookimg/graphicform_20220819163447.go create mode 100644 .history/models/modelbookimg/graphicform_20220819163455.go create mode 100644 .history/models/modelbookimg/graphicform_20220819163504.go create mode 100644 .history/models/modelbookimg/graphicform_20220819163515.go create mode 100644 .history/models/modelbookimg/graphicform_20220819163521.go create mode 100644 .history/models/modelbookimg/graphicform_20220819163523.go create mode 100644 .history/models/modelbookimg/graphicform_20220819163524.go create mode 100644 .history/models/modelbookimg/graphicform_20220819163541.go create mode 100644 .history/models/modelbookimg/graphicform_20220819163551.go create mode 100644 .history/models/modelbookimg/graphicform_20220819163554.go create mode 100644 .history/models/modelbookimg/graphicform_20220819163557.go create mode 100644 .history/models/modelbookimg/graphicform_20220819163608.go create mode 100644 .history/models/modelbookimg/graphicform_20220819163611.go create mode 100644 .history/models/modelbookimg/graphicform_20220819163616.go create mode 100644 .history/models/modelbookimg/graphicform_20220819163641.go create mode 100644 .history/models/modelbookimg/graphicform_20220819163732.go create mode 100644 .history/models/modelbookimg/graphicform_20220819163736.go create mode 100644 .history/models/modelbookimg/graphicform_20220819163752.go create mode 100644 .history/models/modelbookimg/graphicform_20220819163759.go create mode 100644 .history/models/modelbookimg/graphicform_20220819163802.go create mode 100644 .history/models/modelbookimg/graphicform_20220819163803.go create mode 100644 .history/models/modelbookimg/graphicform_20220819163916.go create mode 100644 .history/models/modelbookimg/graphicform_20220819163921.go create mode 100644 .history/models/modelbookimg/graphicform_20220819163923.go create mode 100644 .history/models/modelbookimg/graphicform_20220819163927.go create mode 100644 .history/models/modelbookimg/graphicform_20220819163930.go create mode 100644 .history/models/modelbookimg/graphicform_20220819163938.go create mode 100644 .history/models/modelbookimg/graphicform_20220819163957.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164003.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164008.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164013.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164015.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164025.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164027.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164038.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164040.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164045.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164051.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164054.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164056.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164102.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164108.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164113.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164121.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164124.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164132.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164134.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164138.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164143.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164145.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164149.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164151.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164154.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164157.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164202.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164208.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164211.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164218.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164224.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164229.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164234.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164238.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164240.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164255.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164303.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164308.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164309.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164319.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164325.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164327.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164328.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164333.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164338.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164340.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164346.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164353.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164354.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164357.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164400.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164403.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164404.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164405.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164407.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164411.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164413.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164422.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164425.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164428.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164431.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164437.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164438.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164447.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164452.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164457.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164507.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164509.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164513.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164517.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164520.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164524.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164528.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164531.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164535.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164538.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164540.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164552.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164555.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164602.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164604.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164612.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164614.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164618.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164624.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164627.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164631.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164636.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164645.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164648.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164650.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164654.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164659.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164702.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164709.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164711.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164713.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164716.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164722.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164724.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164731.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164734.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164737.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164739.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164740.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164744.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164749.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164752.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164759.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164804.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164807.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164808.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164819.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164821.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164823.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164826.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164828.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164837.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164841.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164848.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164852.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164901.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164905.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164907.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164909.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164912.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164915.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164917.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164925.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164929.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164931.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164953.go create mode 100644 .history/models/modelbookimg/graphicform_20220819164959.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165001.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165005.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165008.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165013.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165016.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165018.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165021.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165032.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165052.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165100.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165102.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165104.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165105.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165108.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165113.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165120.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165127.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165128.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165131.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165137.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165141.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165143.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165151.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165154.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165158.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165204.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165206.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165209.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165219.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165223.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165226.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165228.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165237.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165241.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165244.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165249.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165251.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165255.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165256.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165300.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165308.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165313.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165322.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165324.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165327.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165331.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165334.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165341.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165343.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165353.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165355.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165358.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165359.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165401.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165405.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165412.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165415.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165416.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165417.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165436.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165438.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165450.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165456.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165458.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165502.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165506.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165509.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165516.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165518.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165530.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165533.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165539.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165545.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165549.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165551.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165555.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165558.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165559.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165606.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165611.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165621.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165622.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165625.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165628.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165632.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165645.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165647.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165651.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165701.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165703.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165708.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165715.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165720.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165722.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165730.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165734.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165737.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165739.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165742.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165746.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165750.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165754.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165801.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165804.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165805.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165813.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165818.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165822.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165826.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165829.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165835.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165843.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165847.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165849.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165900.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165906.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165909.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165915.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165921.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165931.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165936.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165938.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165942.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165943.go create mode 100644 .history/models/modelbookimg/graphicform_20220819165957.go create mode 100644 .history/models/modelbookimg/graphicform_20220819170002.go create mode 100644 .history/models/modelbookimg/graphicform_20220819170005.go create mode 100644 .history/models/modelbookimg/graphicform_20220819170008.go create mode 100644 .history/models/modelbookimg/graphicform_20220819170017.go create mode 100644 .history/models/modelbookimg/graphicform_20220819170021.go create mode 100644 .history/models/modelbookimg/graphicform_20220819170022.go create mode 100644 .history/models/modelbookimg/graphicform_20220819170025.go create mode 100644 .history/models/modelbookimg/graphicform_20220819170031.go create mode 100644 .history/models/modelbookimg/graphicform_20220821075731.go create mode 100644 .history/models/modelbookimg/graphicform_20220821075744.go create mode 100644 .history/models/modelbookimg/graphicform_20220821075748.go create mode 100644 .history/models/modelbookimg/graphicform_20220821075818.go create mode 100644 .history/models/modelbookimg/graphicform_20220821075825.go create mode 100644 .history/models/modelbookimg/graphicform_20220821075831.go create mode 100644 .history/models/modelbookimg/graphicform_20220821075833.go create mode 100644 .history/models/modelbookimg/graphicform_20220821075843.go create mode 100644 .history/models/modelbookimg/graphicform_20220821075845.go create mode 100644 .history/models/modelbookimg/graphicform_20220821075909.go create mode 100644 .history/models/modelbookimg/graphicform_20220821075914.go create mode 100644 .history/models/modelbookimg/graphicform_20220821075916.go create mode 100644 .history/models/modelbookimg/graphicform_20220821075920.go create mode 100644 .history/models/modelbookimg/graphicform_20220821075922.go create mode 100644 .history/models/modelbookimg/graphicform_20220821075929.go create mode 100644 .history/models/modelbookimg/graphicform_20220821075930.go create mode 100644 .history/models/modelbookimg/graphicform_20220821075940.go create mode 100644 .history/models/modelbookimg/graphicform_20220821075942.go create mode 100644 .history/models/modelbookimg/graphicform_20220821075947.go create mode 100644 .history/models/modelbookimg/graphicform_20220821075950.go create mode 100644 .history/models/modelbookimg/graphicform_20220821075953.go create mode 100644 .history/models/modelbookimg/graphicform_20220821075955.go create mode 100644 .history/models/modelbookimg/graphicform_20220821075959.go create mode 100644 .history/models/modelbookimg/graphicform_20220821080012.go create mode 100644 .history/models/modelbookimg/graphicform_20220821080013.go create mode 100644 .history/models/modelbookimg/graphicform_20220821080015.go create mode 100644 .history/models/modelbookimg/graphicform_20220821080022.go create mode 100644 .history/models/modelbookimg/graphicform_20220821080026.go create mode 100644 .history/models/modelbookimg/graphicform_20220821080035.go create mode 100644 .history/models/modelbookimg/graphicform_20220821080039.go create mode 100644 .history/models/modelbookimg/graphicform_20220821080055.go create mode 100644 .history/models/modelbookimg/graphicform_20220821080057.go create mode 100644 .history/models/modelbookimg/graphicform_20220821080102.go create mode 100644 .history/models/modelbookimg/graphicform_20220821080103.go create mode 100644 .history/models/modelbookimg/graphicform_20220821080159.go create mode 100644 .history/models/modelbookimg/graphicform_20220821080247.go create mode 100644 .history/models/modelbookimg/graphicform_20220821080248.go create mode 100644 .history/models/modelbookimg/graphicform_20220821080249.go create mode 100644 .history/models/modelbookimg/graphicform_20220821080305.go create mode 100644 .history/models/modelbookimg/graphicform_20220821080314.go create mode 100644 .history/models/modelbookimg/graphicform_20220821080315.go create mode 100644 .history/models/modelbookimg/graphicform_20220821080348.go create mode 100644 .history/models/modelbookimg/graphicform_20220821080354.go create mode 100644 .history/models/modelbookimg/graphicform_20220821080359.go create mode 100644 .history/models/modelbookimg/graphicform_20220821080403.go create mode 100644 .history/models/modelbookimg/graphicform_20220821080413.go create mode 100644 .history/models/modelbookimg/graphicform_20220821080415.go create mode 100644 .history/models/modelbookimg/graphicform_20220821080633.go create mode 100644 .history/models/modelbookimg/graphicform_20220821080644.go create mode 100644 .history/models/modelbookimg/graphicform_20220821080650.go create mode 100644 .history/models/modelbookimg/graphicform_20220821080656.go create mode 100644 .history/models/modelbookimg/graphicform_20220821080702.go create mode 100644 .history/models/modelbookimg/graphicform_20220821080704.go create mode 100644 .history/models/modelbookimg/graphicform_20220821080713.go create mode 100644 .history/models/modelbookimg/graphicform_20220821080715.go create mode 100644 .history/models/modelbookimg/graphicform_20220821080722.go create mode 100644 .history/models/modelbookimg/graphicform_20220821080738.go create mode 100644 .history/models/modelbookimg/graphicform_20220821080739.go create mode 100644 .history/models/modelbookimg/graphicform_20220821080741.go create mode 100644 .history/models/modelbookimg/graphicform_20220821080742.go create mode 100644 .history/models/modelbookimg/graphicform_20220821080747.go create mode 100644 .history/models/modelbookimg/graphicform_20220821080750.go create mode 100644 .history/models/modelbookimg/graphicform_20220821080757.go create mode 100644 .history/models/modelbookimg/graphicform_20220821080758.go create mode 100644 .history/models/modelbookimg/graphicform_20220821080809.go create mode 100644 .history/models/modelbookimg/graphicform_20220821080810.go create mode 100644 .history/models/modelbookimg/graphicform_20220821080819.go create mode 100644 .history/models/modelbookimg/graphicform_20220821080825.go create mode 100644 .history/models/modelbookimg/graphicform_20220821080834.go create mode 100644 .history/models/modelbookimg/graphicform_20220821080838.go create mode 100644 .history/models/modelbookimg/graphicform_20220821093100.go create mode 100644 .history/models/modelbookimg/graphicform_20220821093101.go create mode 100644 .history/models/modelbookimg/graphicform_20220821093103.go create mode 100644 .history/models/modelbookimg/graphicform_20220821093105.go create mode 100644 .history/models/modelbookimg/graphicform_20220821093118.go create mode 100644 .history/models/modelbookimg/reporting_20220821090516.go create mode 100644 .history/models/modelbookimg/reporting_20220821090521.go create mode 100644 .history/models/modelbookimg/reporting_20220821090523.go create mode 100644 .history/models/modelbookimg/reporting_20220821090526.go create mode 100644 .history/models/modelbookimg/reporting_20220821090530.go create mode 100644 .history/models/modelbookimg/reporting_20220821090538.go create mode 100644 .history/models/modelbookimg/reporting_20220821090543.go create mode 100644 .history/models/modelbookimg/reporting_20220821090545.go create mode 100644 .history/models/modelbookimg/reporting_20220821090551.go create mode 100644 .history/models/modelbookimg/reporting_20220821090552.go create mode 100644 .history/models/modelbookimg/reporting_20220821090556.go create mode 100644 .history/models/modelbookimg/reporting_20220821090605.go create mode 100644 .history/models/modelbookimg/reporting_20220821090611.go create mode 100644 .history/models/modelbookimg/reporting_20220821090629.go create mode 100644 .history/models/modelbookimg/reporting_20220821090636.go create mode 100644 .history/models/modelbookimg/reporting_20220821090642.go create mode 100644 .history/models/modelbookimg/reporting_20220821090644.go create mode 100644 .history/models/modelbookimg/reporting_20220821090646.go create mode 100644 .history/models/modelbookimg/reporting_20220821090651.go create mode 100644 .history/models/modelbookimg/reporting_20220821090654.go create mode 100644 .history/models/modelbookimg/reporting_20220821090701.go create mode 100644 .history/models/modelbookimg/reporting_20220821090703.go create mode 100644 .history/models/modelbookimg/reporting_20220821090711.go create mode 100644 .history/models/modelbookimg/reporting_20220821090736.go create mode 100644 .history/models/modelbookimg/reporting_20220821090737.go create mode 100644 .history/models/modelbookimg/reporting_20220821090743.go create mode 100644 .history/models/modelbookimg/reporting_20220821090744.go create mode 100644 .history/models/modelbookimg/reporting_20220821090748.go create mode 100644 .history/models/modelbookimg/reporting_20220821090754.go create mode 100644 .history/models/modelbookimg/reporting_20220821090800.go create mode 100644 .history/models/modelbookimg/reporting_20220821090806.go create mode 100644 .history/models/modelbookimg/reporting_20220821090808.go create mode 100644 .history/models/modelbookimg/reporting_20220821090820.go create mode 100644 .history/models/modelbookimg/reporting_20220821090824.go create mode 100644 .history/models/modelbookimg/reporting_20220821090828.go create mode 100644 .history/models/modelbookimg/reporting_20220821090832.go create mode 100644 .history/models/modelbookimg/reporting_20220821090841.go create mode 100644 .history/models/modelbookimg/reporting_20220821090843.go create mode 100644 .history/models/modelbookimg/reporting_20220821090854.go create mode 100644 .history/models/modelbookimg/reporting_20220821090856.go create mode 100644 .history/models/modelbookimg/reporting_20220821090858.go create mode 100644 .history/models/modelbookimg/reporting_20220821090902.go create mode 100644 .history/models/modelbookimg/reporting_20220821090905.go create mode 100644 .history/models/modelbookimg/reporting_20220821090910.go create mode 100644 .history/models/modelbookimg/reporting_20220821090918.go create mode 100644 .history/models/modelbookimg/reporting_20220821090924.go create mode 100644 .history/models/modelbookimg/reporting_20220821090926.go create mode 100644 .history/models/modelbookimg/reporting_20220821090933.go create mode 100644 .history/models/modelbookimg/reporting_20220821090938.go create mode 100644 .history/models/modelbookimg/reporting_20220821090940.go create mode 100644 .history/models/modelbookimg/reporting_20220821090946.go create mode 100644 .history/models/modelbookimg/reporting_20220821090952.go create mode 100644 .history/models/modelbookimg/reporting_20220821090956.go create mode 100644 .history/models/modelbookimg/reporting_20220821091002.go create mode 100644 .history/models/modelbookimg/reporting_20220821091004.go create mode 100644 .history/models/modelbookimg/reporting_20220821091016.go create mode 100644 .history/models/modelbookimg/reporting_20220821091020.go create mode 100644 .history/models/modelbookimg/reporting_20220821091030.go create mode 100644 .history/models/modelbookimg/reporting_20220821091031.go create mode 100644 .history/models/modelbookimg/reporting_20220821091037.go create mode 100644 .history/models/modelbookimg/reporting_20220821091040.go create mode 100644 .history/models/modelbookimg/reporting_20220821091044.go create mode 100644 .history/models/modelbookimg/reporting_20220821091051.go create mode 100644 .history/models/modelbookimg/reporting_20220821091053.go create mode 100644 .history/models/modelbookimg/reporting_20220821091056.go create mode 100644 .history/models/modelbookimg/reporting_20220821091058.go create mode 100644 .history/models/modelbookimg/reporting_20220821091104.go create mode 100644 .history/models/modelbookimg/reporting_20220821091107.go create mode 100644 .history/models/modelbookimg/reporting_20220821091112.go create mode 100644 .history/models/modelbookimg/reporting_20220821091116.go create mode 100644 .history/models/modelbookimg/reporting_20220821091125.go create mode 100644 .history/models/modelbookimg/reporting_20220821091132.go create mode 100644 .history/models/modelbookimg/reporting_20220821091135.go create mode 100644 .history/models/modelbookimg/reporting_20220821091149.go create mode 100644 .history/models/modelbookimg/reporting_20220821091151.go create mode 100644 .history/models/modelbookimg/reporting_20220821091157.go create mode 100644 .history/models/modelbookimg/reporting_20220821091200.go create mode 100644 .history/models/modelbookimg/reporting_20220821091202.go create mode 100644 .history/models/modelbookimg/reporting_20220821091204.go create mode 100644 .history/models/modelbookimg/reporting_20220821091208.go create mode 100644 .history/models/modelbookimg/reporting_20220821091209.go create mode 100644 .history/models/modelbookimg/reporting_20220821091244.go create mode 100644 .history/models/modelbookimg/reporting_20220821091258.go create mode 100644 .history/models/modelbookimg/reporting_20220821091300.go create mode 100644 .history/models/modelbookimg/reporting_20220821092814.go create mode 100644 .history/models/modelbookimg/reporting_20220821092815.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091312.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091321.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091325.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091329.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091336.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091339.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091342.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091344.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091349.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091353.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091359.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091415.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091418.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091435.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091439.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091442.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091447.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091448.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091450.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091458.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091502.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091505.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091508.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091510.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091518.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091520.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091522.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091525.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091527.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091531.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091539.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091549.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091550.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091554.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091556.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091602.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091605.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091611.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091614.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091619.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091621.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091627.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091628.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091636.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091638.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091641.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091645.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091648.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091652.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091700.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091702.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091707.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091709.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091712.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091715.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091717.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091721.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091725.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091730.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091732.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091735.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091744.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091752.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091755.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091758.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091759.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091803.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091815.go create mode 100644 .history/models/modelbookimg/searchlog_20220821091816.go create mode 100644 .history/models/modelbookimg/searchlog_20220821092803.go create mode 100644 .history/models/modelbookimg/searchlog_20220821092804.go create mode 100644 .history/models/modelbookimg/searchlog_20220821092805.go create mode 100644 .history/models/modelbookimg/searchlog_20220821092807.go create mode 100644 .history/models/modelbookimg/traceing_20220821091834.go create mode 100644 .history/models/modelbookimg/traceing_20220821091838.go create mode 100644 .history/models/modelbookimg/traceing_20220821091854.go create mode 100644 .history/models/modelbookimg/traceing_20220821091856.go create mode 100644 .history/models/modelbookimg/traceing_20220821091902.go create mode 100644 .history/models/modelbookimg/traceing_20220821091905.go create mode 100644 .history/models/modelbookimg/traceing_20220821091908.go create mode 100644 .history/models/modelbookimg/traceing_20220821091915.go create mode 100644 .history/models/modelbookimg/traceing_20220821091958.go create mode 100644 .history/models/modelbookimg/traceing_20220821092001.go create mode 100644 .history/models/modelbookimg/traceing_20220821092009.go create mode 100644 .history/models/modelbookimg/traceing_20220821092011.go create mode 100644 .history/models/modelbookimg/traceing_20220821092015.go create mode 100644 .history/models/modelbookimg/traceing_20220821092018.go create mode 100644 .history/models/modelbookimg/traceing_20220821092022.go create mode 100644 .history/models/modelbookimg/traceing_20220821092026.go create mode 100644 .history/models/modelbookimg/traceing_20220821092034.go create mode 100644 .history/models/modelbookimg/traceing_20220821092039.go create mode 100644 .history/models/modelbookimg/traceing_20220821092041.go create mode 100644 .history/models/modelbookimg/traceing_20220821092047.go create mode 100644 .history/models/modelbookimg/traceing_20220821092051.go create mode 100644 .history/models/modelbookimg/traceing_20220821092059.go create mode 100644 .history/models/modelbookimg/traceing_20220821092110.go create mode 100644 .history/models/modelbookimg/traceing_20220821092111.go create mode 100644 .history/models/modelbookimg/traceing_20220821092130.go create mode 100644 .history/models/modelbookimg/traceing_20220821092139.go create mode 100644 .history/models/modelbookimg/traceing_20220821092148.go create mode 100644 .history/models/modelbookimg/traceing_20220821092154.go create mode 100644 .history/models/modelbookimg/traceing_20220821092158.go create mode 100644 .history/models/modelbookimg/traceing_20220821092207.go create mode 100644 .history/models/modelbookimg/traceing_20220821092209.go create mode 100644 .history/models/modelbookimg/traceing_20220821092212.go create mode 100644 .history/models/modelbookimg/traceing_20220821092217.go create mode 100644 .history/models/modelbookimg/traceing_20220821092222.go create mode 100644 .history/models/modelbookimg/traceing_20220821092223.go create mode 100644 .history/models/modelbookimg/traceing_20220821092228.go create mode 100644 .history/models/modelbookimg/traceing_20220821092231.go create mode 100644 .history/models/modelbookimg/traceing_20220821092236.go create mode 100644 .history/models/modelbookimg/traceing_20220821092239.go create mode 100644 .history/models/modelbookimg/traceing_20220821092242.go create mode 100644 .history/models/modelbookimg/traceing_20220821092249.go create mode 100644 .history/models/modelbookimg/traceing_20220821092252.go create mode 100644 .history/models/modelbookimg/traceing_20220821092255.go create mode 100644 .history/models/modelbookimg/traceing_20220821092256.go create mode 100644 .history/models/modelbookimg/traceing_20220821092301.go create mode 100644 .history/models/modelbookimg/traceing_20220821092304.go create mode 100644 .history/models/modelbookimg/traceing_20220821092310.go create mode 100644 .history/models/modelbookimg/traceing_20220821092313.go create mode 100644 .history/models/modelbookimg/traceing_20220821092317.go create mode 100644 .history/models/modelbookimg/traceing_20220821092326.go create mode 100644 .history/models/modelbookimg/traceing_20220821092328.go create mode 100644 .history/models/modelbookimg/traceing_20220821092333.go create mode 100644 .history/models/modelbookimg/traceing_20220821092334.go create mode 100644 .history/models/modelbookimg/traceing_20220821092341.go create mode 100644 .history/models/modelbookimg/traceing_20220821092343.go create mode 100644 .history/models/modelbookimg/traceing_20220821092352.go create mode 100644 .history/models/modelbookimg/traceing_20220821092401.go create mode 100644 .history/models/modelbookimg/traceing_20220821092407.go create mode 100644 .history/models/modelbookimg/traceing_20220821092411.go create mode 100644 .history/models/modelbookimg/traceing_20220821092416.go create mode 100644 .history/models/modelbookimg/traceing_20220821092417.go create mode 100644 .history/models/modelbookimg/traceing_20220821092423.go create mode 100644 .history/models/modelbookimg/traceing_20220821092437.go create mode 100644 .history/models/modelbookimg/traceing_20220821092439.go create mode 100644 .history/models/modelbookimg/traceing_20220821092448.go create mode 100644 .history/models/modelbookimg/traceing_20220821092451.go create mode 100644 .history/models/modelbookimg/traceing_20220821092456.go create mode 100644 .history/models/modelbookimg/traceing_20220821092500.go create mode 100644 .history/models/modelbookimg/traceing_20220821092506.go create mode 100644 .history/models/modelbookimg/traceing_20220821092508.go create mode 100644 .history/models/modelbookimg/traceing_20220821092514.go create mode 100644 .history/models/modelbookimg/traceing_20220821092516.go create mode 100644 .history/models/modelbookimg/traceing_20220821092522.go create mode 100644 .history/models/modelbookimg/traceing_20220821092526.go create mode 100644 .history/models/modelbookimg/traceing_20220821092531.go create mode 100644 .history/models/modelbookimg/traceing_20220821092539.go create mode 100644 .history/models/modelbookimg/traceing_20220821092542.go create mode 100644 .history/models/modelbookimg/traceing_20220821092547.go create mode 100644 .history/models/modelbookimg/traceing_20220821092552.go create mode 100644 .history/models/modelbookimg/traceing_20220821092553.go create mode 100644 .history/models/modelbookimg/traceing_20220821092555.go create mode 100644 .history/models/modelbookimg/traceing_20220821092604.go create mode 100644 .history/models/modelbookimg/traceing_20220821092606.go create mode 100644 .history/models/modelbookimg/traceing_20220821092607.go create mode 100644 .history/models/modelbookimg/traceing_20220821092615.go create mode 100644 .history/models/modelbookimg/traceing_20220821092617.go create mode 100644 .history/models/modelbookimg/traceing_20220821092725.go create mode 100644 .history/models/modelbookimg/traceing_20220821092728.go create mode 100644 .history/models/modelbookimg/traceing_20220821092744.go create mode 100644 .history/models/modelbookimg/traceing_20220821092747.go create mode 100644 .history/models/modelskpi/qualitative_target_20220818143450.go create mode 100644 .history/models/modelskpi/qualitative_target_20220819110259.go create mode 100644 .history/models/modelskpi/qualitative_target_20220819110301.go create mode 100644 DevLog.md create mode 100644 api/version1/bookimg/bookimg.go create mode 100644 api/version1/bookimg/type.go create mode 100644 apirouter/v1/bookimg/bookimg_route.go create mode 100644 apirouter/v1/bookimg/type.go create mode 100644 models/modelbookimg/archives_type.go create mode 100644 models/modelbookimg/bookattribute.go create mode 100644 models/modelbookimg/discussmsg.go create mode 100644 models/modelbookimg/graphicform.go create mode 100644 models/modelbookimg/reporting.go create mode 100644 models/modelbookimg/searchlog.go create mode 100644 models/modelbookimg/traceing.go diff --git a/.history/DevLog_20220821093312.md b/.history/DevLog_20220821093312.md new file mode 100644 index 0000000..e69de29 diff --git a/.history/DevLog_20220821093320.md b/.history/DevLog_20220821093320.md new file mode 100644 index 0000000..fbd2fe8 --- /dev/null +++ b/.history/DevLog_20220821093320.md @@ -0,0 +1 @@ +### \ No newline at end of file diff --git a/.history/DevLog_20220821093327.md b/.history/DevLog_20220821093327.md new file mode 100644 index 0000000..35bae71 --- /dev/null +++ b/.history/DevLog_20220821093327.md @@ -0,0 +1 @@ +### 开发日志 \ No newline at end of file diff --git a/.history/DevLog_20220821093330.md b/.history/DevLog_20220821093330.md new file mode 100644 index 0000000..54acaff --- /dev/null +++ b/.history/DevLog_20220821093330.md @@ -0,0 +1 @@ +## 开发日志 \ No newline at end of file diff --git a/.history/DevLog_20220821093339.md b/.history/DevLog_20220821093339.md new file mode 100644 index 0000000..7106b7f --- /dev/null +++ b/.history/DevLog_20220821093339.md @@ -0,0 +1 @@ +# 开发日志 \ No newline at end of file diff --git a/.history/DevLog_20220821093349.md b/.history/DevLog_20220821093349.md new file mode 100644 index 0000000..351259d --- /dev/null +++ b/.history/DevLog_20220821093349.md @@ -0,0 +1,3 @@ +# 开发日志 + +## \ No newline at end of file diff --git a/.history/DevLog_20220821093351.md b/.history/DevLog_20220821093351.md new file mode 100644 index 0000000..2dd0a3a --- /dev/null +++ b/.history/DevLog_20220821093351.md @@ -0,0 +1,3 @@ +# 开发日志 + +## 2022 \ No newline at end of file diff --git a/.history/DevLog_20220821093355.md b/.history/DevLog_20220821093355.md new file mode 100644 index 0000000..b634dc5 --- /dev/null +++ b/.history/DevLog_20220821093355.md @@ -0,0 +1,3 @@ +# 开发日志 + +## 2022/8/21 diff --git a/.history/DevLog_20220821093402.md b/.history/DevLog_20220821093402.md new file mode 100644 index 0000000..b634dc5 --- /dev/null +++ b/.history/DevLog_20220821093402.md @@ -0,0 +1,3 @@ +# 开发日志 + +## 2022/8/21 diff --git a/.history/DevLog_20220821093407.md b/.history/DevLog_20220821093407.md new file mode 100644 index 0000000..63b7862 --- /dev/null +++ b/.history/DevLog_20220821093407.md @@ -0,0 +1,4 @@ +# 开发日志 + +## 2022/8/21 +`````` \ No newline at end of file diff --git a/.history/DevLog_20220821093408.md b/.history/DevLog_20220821093408.md new file mode 100644 index 0000000..235052d --- /dev/null +++ b/.history/DevLog_20220821093408.md @@ -0,0 +1,5 @@ +# 开发日志 + +## 2022/8/21 +``` +``` \ No newline at end of file diff --git a/.history/DevLog_20220821093416.md b/.history/DevLog_20220821093416.md new file mode 100644 index 0000000..53a29b7 --- /dev/null +++ b/.history/DevLog_20220821093416.md @@ -0,0 +1,6 @@ +# 开发日志 + +## 2022/8/21 +``` +1.创建 +``` \ No newline at end of file diff --git a/.history/DevLog_20220821093423.md b/.history/DevLog_20220821093423.md new file mode 100644 index 0000000..cdb3952 --- /dev/null +++ b/.history/DevLog_20220821093423.md @@ -0,0 +1,6 @@ +# 开发日志 + +## 2022/8/21 +``` +1.创建图文信息 +``` \ No newline at end of file diff --git a/.history/DevLog_20220821093426.md b/.history/DevLog_20220821093426.md new file mode 100644 index 0000000..6ac1a68 --- /dev/null +++ b/.history/DevLog_20220821093426.md @@ -0,0 +1,6 @@ +# 开发日志 + +## 2022/8/21 +``` +1.创建图文信息数据库 +``` \ No newline at end of file diff --git a/.history/DevLog_20220821093432.md b/.history/DevLog_20220821093432.md new file mode 100644 index 0000000..6d6ebc8 --- /dev/null +++ b/.history/DevLog_20220821093432.md @@ -0,0 +1,6 @@ +# 开发日志 + +## 2022/8/21 +``` + +``` \ No newline at end of file diff --git a/.history/DevLog_20220821093446.md b/.history/DevLog_20220821093446.md new file mode 100644 index 0000000..d8db98d --- /dev/null +++ b/.history/DevLog_20220821093446.md @@ -0,0 +1,5 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文 \ No newline at end of file diff --git a/.history/DevLog_20220821093449.md b/.history/DevLog_20220821093449.md new file mode 100644 index 0000000..1507526 --- /dev/null +++ b/.history/DevLog_20220821093449.md @@ -0,0 +1,5 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息库 \ No newline at end of file diff --git a/.history/DevLog_20220821093455.md b/.history/DevLog_20220821093455.md new file mode 100644 index 0000000..882c37e --- /dev/null +++ b/.history/DevLog_20220821093455.md @@ -0,0 +1,5 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息 \ No newline at end of file diff --git a/.history/DevLog_20220821093517.md b/.history/DevLog_20220821093517.md new file mode 100644 index 0000000..84a9f73 --- /dev/null +++ b/.history/DevLog_20220821093517.md @@ -0,0 +1,5 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息数据库对应数据结构 diff --git a/.history/DevLog_20220821093520.md b/.history/DevLog_20220821093520.md new file mode 100644 index 0000000..e79621a --- /dev/null +++ b/.history/DevLog_20220821093520.md @@ -0,0 +1,7 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息数据库对应数据结构 +``` +``` \ No newline at end of file diff --git a/.history/DevLog_20220821093522.md b/.history/DevLog_20220821093522.md new file mode 100644 index 0000000..e035d52 --- /dev/null +++ b/.history/DevLog_20220821093522.md @@ -0,0 +1,8 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息数据库对应数据结构 +``` + +``` \ No newline at end of file diff --git a/.history/DevLog_20220821093525.md b/.history/DevLog_20220821093525.md new file mode 100644 index 0000000..6e87075 --- /dev/null +++ b/.history/DevLog_20220821093525.md @@ -0,0 +1,8 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息数据库对应数据结构 +``` +1.创建 +``` \ No newline at end of file diff --git a/.history/DevLog_20220821093529.md b/.history/DevLog_20220821093529.md new file mode 100644 index 0000000..947130c --- /dev/null +++ b/.history/DevLog_20220821093529.md @@ -0,0 +1,8 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息数据库对应数据结构 +``` +1. +``` \ No newline at end of file diff --git a/.history/DevLog_20220821093534.md b/.history/DevLog_20220821093534.md new file mode 100644 index 0000000..eff42be --- /dev/null +++ b/.history/DevLog_20220821093534.md @@ -0,0 +1,8 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息数据库对应数据结构 +``` +1.创建对应 +``` \ No newline at end of file diff --git a/.history/DevLog_20220821093542.md b/.history/DevLog_20220821093542.md new file mode 100644 index 0000000..412ceaf --- /dev/null +++ b/.history/DevLog_20220821093542.md @@ -0,0 +1,8 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息数据库对应数据结构 +``` +1.创建图文信息 +``` \ No newline at end of file diff --git a/.history/DevLog_20220821093552.md b/.history/DevLog_20220821093552.md new file mode 100644 index 0000000..6dd934c --- /dev/null +++ b/.history/DevLog_20220821093552.md @@ -0,0 +1,9 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息数据库对应数据结构 +``` +1.创建图文信息对应文件夹modelbookimg +2. +``` \ No newline at end of file diff --git a/.history/DevLog_20220821093555.md b/.history/DevLog_20220821093555.md new file mode 100644 index 0000000..420ccb6 --- /dev/null +++ b/.history/DevLog_20220821093555.md @@ -0,0 +1,9 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息数据库对应数据结构 +``` +1.创建图文信息对应文件夹modelbookimg +2.创建 +``` \ No newline at end of file diff --git a/.history/DevLog_20220821093612.md b/.history/DevLog_20220821093612.md new file mode 100644 index 0000000..21d026f --- /dev/null +++ b/.history/DevLog_20220821093612.md @@ -0,0 +1,9 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息数据库对应数据结构 +``` +1.创建图文信息对应文件夹modelbookimg +2.创建所需 +``` \ No newline at end of file diff --git a/.history/DevLog_20220821093617.md b/.history/DevLog_20220821093617.md new file mode 100644 index 0000000..46a0dd2 --- /dev/null +++ b/.history/DevLog_20220821093617.md @@ -0,0 +1,9 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息数据库对应数据结构 +``` +1.创建图文信息对应文件夹modelbookimg +2.创建所需数据表 +``` \ No newline at end of file diff --git a/.history/DevLog_20220821093618.md b/.history/DevLog_20220821093618.md new file mode 100644 index 0000000..46a0dd2 --- /dev/null +++ b/.history/DevLog_20220821093618.md @@ -0,0 +1,9 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息数据库对应数据结构 +``` +1.创建图文信息对应文件夹modelbookimg +2.创建所需数据表 +``` \ No newline at end of file diff --git a/.history/DevLog_20220821093626.md b/.history/DevLog_20220821093626.md new file mode 100644 index 0000000..0f91dd1 --- /dev/null +++ b/.history/DevLog_20220821093626.md @@ -0,0 +1,10 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息数据库对应数据结构 +``` +1.创建图文信息对应文件夹modelbookimg +2.创建所需数据表 + +``` \ No newline at end of file diff --git a/.history/DevLog_20220821093627.md b/.history/DevLog_20220821093627.md new file mode 100644 index 0000000..7fbf48a --- /dev/null +++ b/.history/DevLog_20220821093627.md @@ -0,0 +1,10 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息数据库对应数据结构 +``` +1.创建图文信息对应文件夹modelbookimg +2.创建所需数据表 + +``` \ No newline at end of file diff --git a/.history/DevLog_20220821093630.md b/.history/DevLog_20220821093630.md new file mode 100644 index 0000000..7fbf48a --- /dev/null +++ b/.history/DevLog_20220821093630.md @@ -0,0 +1,10 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息数据库对应数据结构 +``` +1.创建图文信息对应文件夹modelbookimg +2.创建所需数据表 + +``` \ No newline at end of file diff --git a/.history/DevLog_20220821093642.md b/.history/DevLog_20220821093642.md new file mode 100644 index 0000000..795cb9d --- /dev/null +++ b/.history/DevLog_20220821093642.md @@ -0,0 +1,10 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息数据库对应数据结构 +``` +1.创建图文信息对应文件夹modelbookimg +2.创建所需数据表 + ArchivesType -> +``` \ No newline at end of file diff --git a/.history/DevLog_20220821093649.md b/.history/DevLog_20220821093649.md new file mode 100644 index 0000000..387d122 --- /dev/null +++ b/.history/DevLog_20220821093649.md @@ -0,0 +1,10 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息数据库对应数据结构 +``` +1.创建图文信息对应文件夹modelbookimg +2.创建所需数据表 + ArchivesType -> 档案管理分类 +``` \ No newline at end of file diff --git a/.history/DevLog_20220821093650.md b/.history/DevLog_20220821093650.md new file mode 100644 index 0000000..d6b21c7 --- /dev/null +++ b/.history/DevLog_20220821093650.md @@ -0,0 +1,11 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息数据库对应数据结构 +``` +1.创建图文信息对应文件夹modelbookimg +2.创建所需数据表 + ArchivesType -> 档案管理分类 + +``` \ No newline at end of file diff --git a/.history/DevLog_20220821093653.md b/.history/DevLog_20220821093653.md new file mode 100644 index 0000000..d6b21c7 --- /dev/null +++ b/.history/DevLog_20220821093653.md @@ -0,0 +1,11 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息数据库对应数据结构 +``` +1.创建图文信息对应文件夹modelbookimg +2.创建所需数据表 + ArchivesType -> 档案管理分类 + +``` \ No newline at end of file diff --git a/.history/DevLog_20220821093701.md b/.history/DevLog_20220821093701.md new file mode 100644 index 0000000..6073b04 --- /dev/null +++ b/.history/DevLog_20220821093701.md @@ -0,0 +1,11 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息数据库对应数据结构 +``` +1.创建图文信息对应文件夹modelbookimg +2.创建所需数据表 + ArchivesType -> 档案管理分类 + BookAttribute -> +``` \ No newline at end of file diff --git a/.history/DevLog_20220821093705.md b/.history/DevLog_20220821093705.md new file mode 100644 index 0000000..4faa3ab --- /dev/null +++ b/.history/DevLog_20220821093705.md @@ -0,0 +1,12 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息数据库对应数据结构 +``` +1.创建图文信息对应文件夹modelbookimg +2.创建所需数据表 + ArchivesType -> 档案管理分类 + BookAttribute -> 文档属性 + +``` \ No newline at end of file diff --git a/.history/DevLog_20220821093715.md b/.history/DevLog_20220821093715.md new file mode 100644 index 0000000..667adc2 --- /dev/null +++ b/.history/DevLog_20220821093715.md @@ -0,0 +1,12 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息数据库对应数据结构 +``` +1.创建图文信息对应文件夹modelbookimg +2.创建所需数据表 + ArchivesType -> 档案管理分类 + BookAttribute -> 文档属性 + DiscussMsg -> +``` \ No newline at end of file diff --git a/.history/DevLog_20220821093719.md b/.history/DevLog_20220821093719.md new file mode 100644 index 0000000..8f359b5 --- /dev/null +++ b/.history/DevLog_20220821093719.md @@ -0,0 +1,13 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息数据库对应数据结构 +``` +1.创建图文信息对应文件夹modelbookimg +2.创建所需数据表 + ArchivesType -> 档案管理分类 + BookAttribute -> 文档属性 + DiscussMsg -> 评论列表 + +``` \ No newline at end of file diff --git a/.history/DevLog_20220821093731.md b/.history/DevLog_20220821093731.md new file mode 100644 index 0000000..f253498 --- /dev/null +++ b/.history/DevLog_20220821093731.md @@ -0,0 +1,13 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息数据库对应数据结构 +``` +1.创建图文信息对应文件夹modelbookimg +2.创建所需数据表 + ArchivesType -> 档案管理分类 + BookAttribute -> 文档属性 + DiscussMsg -> 评论列表 + GraphicForm -> +``` \ No newline at end of file diff --git a/.history/DevLog_20220821093736.md b/.history/DevLog_20220821093736.md new file mode 100644 index 0000000..028f0f9 --- /dev/null +++ b/.history/DevLog_20220821093736.md @@ -0,0 +1,14 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息数据库对应数据结构 +``` +1.创建图文信息对应文件夹modelbookimg +2.创建所需数据表 + ArchivesType -> 档案管理分类 + BookAttribute -> 文档属性 + DiscussMsg -> 评论列表 + GraphicForm -> 图文信息表 + +``` \ No newline at end of file diff --git a/.history/DevLog_20220821093742.md b/.history/DevLog_20220821093742.md new file mode 100644 index 0000000..68c6ed5 --- /dev/null +++ b/.history/DevLog_20220821093742.md @@ -0,0 +1,14 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息数据库对应数据结构 +``` +1.创建图文信息对应文件夹modelbookimg +2.创建所需数据表 + ArchivesType -> 档案管理分类 + BookAttribute -> 文档属性 + DiscussMsg -> 评论列表 + GraphicForm -> 图文信息表 + Reporting -> Reporting +``` \ No newline at end of file diff --git a/.history/DevLog_20220821093744.md b/.history/DevLog_20220821093744.md new file mode 100644 index 0000000..0c1d8be --- /dev/null +++ b/.history/DevLog_20220821093744.md @@ -0,0 +1,14 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息数据库对应数据结构 +``` +1.创建图文信息对应文件夹modelbookimg +2.创建所需数据表 + ArchivesType -> 档案管理分类 + BookAttribute -> 文档属性 + DiscussMsg -> 评论列表 + GraphicForm -> 图文信息表 + Reporting -> +``` \ No newline at end of file diff --git a/.history/DevLog_20220821093748.md b/.history/DevLog_20220821093748.md new file mode 100644 index 0000000..04eb25e --- /dev/null +++ b/.history/DevLog_20220821093748.md @@ -0,0 +1,15 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息数据库对应数据结构 +``` +1.创建图文信息对应文件夹modelbookimg +2.创建所需数据表 + ArchivesType -> 档案管理分类 + BookAttribute -> 文档属性 + DiscussMsg -> 评论列表 + GraphicForm -> 图文信息表 + Reporting -> 举报 + +``` \ No newline at end of file diff --git a/.history/DevLog_20220821093753.md b/.history/DevLog_20220821093753.md new file mode 100644 index 0000000..9e166fe --- /dev/null +++ b/.history/DevLog_20220821093753.md @@ -0,0 +1,15 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息数据库对应数据结构 +``` +1.创建图文信息对应文件夹modelbookimg +2.创建所需数据表 + ArchivesType -> 档案管理分类 + BookAttribute -> 文档属性 + DiscussMsg -> 评论列表 + GraphicForm -> 图文信息表 + Reporting -> 举报 + SearchLog -> +``` \ No newline at end of file diff --git a/.history/DevLog_20220821093757.md b/.history/DevLog_20220821093757.md new file mode 100644 index 0000000..c278867 --- /dev/null +++ b/.history/DevLog_20220821093757.md @@ -0,0 +1,16 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息数据库对应数据结构 +``` +1.创建图文信息对应文件夹modelbookimg +2.创建所需数据表 + ArchivesType -> 档案管理分类 + BookAttribute -> 文档属性 + DiscussMsg -> 评论列表 + GraphicForm -> 图文信息表 + Reporting -> 举报 + SearchLog -> 关键词记录 + +``` \ No newline at end of file diff --git a/.history/DevLog_20220821093805.md b/.history/DevLog_20220821093805.md new file mode 100644 index 0000000..32655a7 --- /dev/null +++ b/.history/DevLog_20220821093805.md @@ -0,0 +1,16 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息数据库对应数据结构 +``` +1.创建图文信息对应文件夹modelbookimg +2.创建所需数据表 + ArchivesType -> 档案管理分类 + BookAttribute -> 文档属性 + DiscussMsg -> 评论列表 + GraphicForm -> 图文信息表 + Reporting -> 举报 + SearchLog -> 关键词记录 + Traceing -> +``` \ No newline at end of file diff --git a/.history/DevLog_20220821093810.md b/.history/DevLog_20220821093810.md new file mode 100644 index 0000000..ece03b5 --- /dev/null +++ b/.history/DevLog_20220821093810.md @@ -0,0 +1,16 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息数据库对应数据结构 +``` +1.创建图文信息对应文件夹modelbookimg +2.创建所需数据表 + ArchivesType -> 档案管理分类 + BookAttribute -> 文档属性 + DiscussMsg -> 评论列表 + GraphicForm -> 图文信息表 + Reporting -> 举报 + SearchLog -> 关键词记录 + Traceing -> 追问 +``` \ No newline at end of file diff --git a/.history/DevLog_20220821093817.md b/.history/DevLog_20220821093817.md new file mode 100644 index 0000000..d0aee10 --- /dev/null +++ b/.history/DevLog_20220821093817.md @@ -0,0 +1,17 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息数据库对应数据结构 +``` +1.创建图文信息对应文件夹modelbookimg +2.创建所需数据表 + 类型名 -> + ArchivesType -> 档案管理分类 + BookAttribute -> 文档属性 + DiscussMsg -> 评论列表 + GraphicForm -> 图文信息表 + Reporting -> 举报 + SearchLog -> 关键词记录 + Traceing -> 追问 +``` \ No newline at end of file diff --git a/.history/DevLog_20220821093822.md b/.history/DevLog_20220821093822.md new file mode 100644 index 0000000..65c2b63 --- /dev/null +++ b/.history/DevLog_20220821093822.md @@ -0,0 +1,17 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息数据库对应数据结构 +``` +1.创建图文信息对应文件夹modelbookimg +2.创建所需数据表 + 类型名 -> 对应 + ArchivesType -> 档案管理分类 + BookAttribute -> 文档属性 + DiscussMsg -> 评论列表 + GraphicForm -> 图文信息表 + Reporting -> 举报 + SearchLog -> 关键词记录 + Traceing -> 追问 +``` \ No newline at end of file diff --git a/.history/DevLog_20220821093823.md b/.history/DevLog_20220821093823.md new file mode 100644 index 0000000..d0aee10 --- /dev/null +++ b/.history/DevLog_20220821093823.md @@ -0,0 +1,17 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息数据库对应数据结构 +``` +1.创建图文信息对应文件夹modelbookimg +2.创建所需数据表 + 类型名 -> + ArchivesType -> 档案管理分类 + BookAttribute -> 文档属性 + DiscussMsg -> 评论列表 + GraphicForm -> 图文信息表 + Reporting -> 举报 + SearchLog -> 关键词记录 + Traceing -> 追问 +``` \ No newline at end of file diff --git a/.history/DevLog_20220821093830.md b/.history/DevLog_20220821093830.md new file mode 100644 index 0000000..a778a4e --- /dev/null +++ b/.history/DevLog_20220821093830.md @@ -0,0 +1,17 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息数据库对应数据结构 +``` +1.创建图文信息对应文件夹modelbookimg +2.创建所需数据表 + 结构体名 -> + ArchivesType -> 档案管理分类 + BookAttribute -> 文档属性 + DiscussMsg -> 评论列表 + GraphicForm -> 图文信息表 + Reporting -> 举报 + SearchLog -> 关键词记录 + Traceing -> 追问 +``` \ No newline at end of file diff --git a/.history/DevLog_20220821093837.md b/.history/DevLog_20220821093837.md new file mode 100644 index 0000000..fba692d --- /dev/null +++ b/.history/DevLog_20220821093837.md @@ -0,0 +1,17 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息数据库对应数据结构 +``` +1.创建图文信息对应文件夹modelbookimg +2.创建所需数据表 + 结构体名称 -> + ArchivesType -> 档案管理分类 + BookAttribute -> 文档属性 + DiscussMsg -> 评论列表 + GraphicForm -> 图文信息表 + Reporting -> 举报 + SearchLog -> 关键词记录 + Traceing -> 追问 +``` \ No newline at end of file diff --git a/.history/DevLog_20220821093854.md b/.history/DevLog_20220821093854.md new file mode 100644 index 0000000..1cbedf8 --- /dev/null +++ b/.history/DevLog_20220821093854.md @@ -0,0 +1,17 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息数据库对应数据结构 +``` +1.创建图文信息对应文件夹modelbookimg +2.创建所需数据表 + 结构体名称 -> 对应表 + ArchivesType -> 档案管理分类 + BookAttribute -> 文档属性 + DiscussMsg -> 评论列表 + GraphicForm -> 图文信息表 + Reporting -> 举报 + SearchLog -> 关键词记录 + Traceing -> 追问 +``` \ No newline at end of file diff --git a/.history/DevLog_20220821093856.md b/.history/DevLog_20220821093856.md new file mode 100644 index 0000000..91406ab --- /dev/null +++ b/.history/DevLog_20220821093856.md @@ -0,0 +1,17 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息数据库对应数据结构 +``` +1.创建图文信息对应文件夹modelbookimg +2.创建所需数据表 + 结构体名称 -> 对应表名称 + ArchivesType -> 档案管理分类 + BookAttribute -> 文档属性 + DiscussMsg -> 评论列表 + GraphicForm -> 图文信息表 + Reporting -> 举报 + SearchLog -> 关键词记录 + Traceing -> 追问 +``` \ No newline at end of file diff --git a/.history/DevLog_20220821093857.md b/.history/DevLog_20220821093857.md new file mode 100644 index 0000000..ed22929 --- /dev/null +++ b/.history/DevLog_20220821093857.md @@ -0,0 +1,17 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息数据库对应数据结构 +``` +1.创建图文信息对应文件夹modelbookimg +2.创建所需数据表 + 结构体名称 -> 对应表名称 + ArchivesType -> 档案管理分类 + BookAttribute -> 文档属性 + DiscussMsg -> 评论列表 + GraphicForm -> 图文信息表 + Reporting -> 举报 + SearchLog -> 关键词记录 + Traceing -> 追问 +``` \ No newline at end of file diff --git a/.history/DevLog_20220821093908.md b/.history/DevLog_20220821093908.md new file mode 100644 index 0000000..72eaeff --- /dev/null +++ b/.history/DevLog_20220821093908.md @@ -0,0 +1,17 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息数据库对应数据结构 +``` +1.创建图文信息对应文件夹modelbookimg +2.创建所需数据表 + 结构体名称 -> 对应表名称 -> 所在数据库 + ArchivesType -> 档案管理分类 -> + BookAttribute -> 文档属性 + DiscussMsg -> 评论列表 + GraphicForm -> 图文信息表 + Reporting -> 举报 + SearchLog -> 关键词记录 + Traceing -> 追问 +``` \ No newline at end of file diff --git a/.history/DevLog_20220821093913.md b/.history/DevLog_20220821093913.md new file mode 100644 index 0000000..9c6bec3 --- /dev/null +++ b/.history/DevLog_20220821093913.md @@ -0,0 +1,17 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息数据库对应数据结构 +``` +1.创建图文信息对应文件夹modelbookimg +2.创建所需数据表 + 结构体名称 -> 对应表名称 -> 所在数据库 + ArchivesType -> 档案管理分类 -> + BookAttribute -> 文档属性 + DiscussMsg -> 评论列表 + GraphicForm -> 图文信息表 + Reporting -> 举报 + SearchLog -> 关键词记录 + Traceing -> 追问 -> +``` \ No newline at end of file diff --git a/.history/DevLog_20220821093923.md b/.history/DevLog_20220821093923.md new file mode 100644 index 0000000..5cfaf71 --- /dev/null +++ b/.history/DevLog_20220821093923.md @@ -0,0 +1,17 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息数据库对应数据结构 +``` +1.创建图文信息对应文件夹modelbookimg +2.创建所需数据表 + 结构体名称 -> 对应表名称 -> 所在数据库 + ArchivesType -> 档案管理分类 -> + BookAttribute -> 文档属性 + DiscussMsg -> 评论列表 + GraphicForm -> 图文信息表 + Reporting -> 举报 + SearchLog -> 关键词记录 + Traceing -> 追问 -> CONSTANT_DB_FILE_BOOK +``` \ No newline at end of file diff --git a/.history/DevLog_20220821093927.md b/.history/DevLog_20220821093927.md new file mode 100644 index 0000000..656df52 --- /dev/null +++ b/.history/DevLog_20220821093927.md @@ -0,0 +1,17 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息数据库对应数据结构 +``` +1.创建图文信息对应文件夹modelbookimg +2.创建所需数据表 + 结构体名称 -> 对应表名称 -> 所在数据库 + ArchivesType -> 档案管理分类 -> + BookAttribute -> 文档属性 + DiscussMsg -> 评论列表 + GraphicForm -> 图文信息表 + Reporting -> 举报 + SearchLog -> 关键词记录 + Traceing -> 追问 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 +``` \ No newline at end of file diff --git a/.history/DevLog_20220821093934.md b/.history/DevLog_20220821093934.md new file mode 100644 index 0000000..85c5e50 --- /dev/null +++ b/.history/DevLog_20220821093934.md @@ -0,0 +1,17 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息数据库对应数据结构 +``` +1.创建图文信息对应文件夹modelbookimg +2.创建所需数据表 + 结构体名称 -> 对应表名称 -> 所在数据库 + ArchivesType -> 档案管理分类 -> + BookAttribute -> 文档属性 + DiscussMsg -> 评论列表 + GraphicForm -> 图文信息表 + Reporting -> 举报 + SearchLog -> 关键词记录-> CONSTANT_DB_FILE_BOOK 文档属性数据库 + Traceing -> 追问 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 +``` \ No newline at end of file diff --git a/.history/DevLog_20220821093937.md b/.history/DevLog_20220821093937.md new file mode 100644 index 0000000..839f236 --- /dev/null +++ b/.history/DevLog_20220821093937.md @@ -0,0 +1,17 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息数据库对应数据结构 +``` +1.创建图文信息对应文件夹modelbookimg +2.创建所需数据表 + 结构体名称 -> 对应表名称 -> 所在数据库 + ArchivesType -> 档案管理分类 -> + BookAttribute -> 文档属性 + DiscussMsg -> 评论列表 + GraphicForm -> 图文信息表 + Reporting -> 举报 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 + SearchLog -> 关键词记录 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 + Traceing -> 追问 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 +``` \ No newline at end of file diff --git a/.history/DevLog_20220821093952.md b/.history/DevLog_20220821093952.md new file mode 100644 index 0000000..f9446b3 --- /dev/null +++ b/.history/DevLog_20220821093952.md @@ -0,0 +1,17 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息数据库对应数据结构 +``` +1.创建图文信息对应文件夹modelbookimg +2.创建所需数据表 + 结构体名称 -> 对应表名称 -> 所在数据库 + ArchivesType -> 档案管理分类 -> + BookAttribute -> 文档属性 + DiscussMsg -> 评论列表 + GraphicForm -> 图文信息表 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 + Reporting -> 举报 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 + SearchLog -> 关键词记录 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 + Traceing -> 追问 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 +``` \ No newline at end of file diff --git a/.history/DevLog_20220821094000.md b/.history/DevLog_20220821094000.md new file mode 100644 index 0000000..6b08e69 --- /dev/null +++ b/.history/DevLog_20220821094000.md @@ -0,0 +1,17 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息数据库对应数据结构 +``` +1.创建图文信息对应文件夹modelbookimg +2.创建所需数据表 + 结构体名称 -> 对应表名称 -> 所在数据库 + ArchivesType -> 档案管理分类 -> + BookAttribute -> 文档属性 + DiscussMsg -> 评论列表 + GraphicForm -> 图文信息表 -> CONSTANT_DB_IMAGES_TEST 文档属性数据库 + Reporting -> 举报 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 + SearchLog -> 关键词记录 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 + Traceing -> 追问 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 +``` \ No newline at end of file diff --git a/.history/DevLog_20220821094006.md b/.history/DevLog_20220821094006.md new file mode 100644 index 0000000..70de5d0 --- /dev/null +++ b/.history/DevLog_20220821094006.md @@ -0,0 +1,17 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息数据库对应数据结构 +``` +1.创建图文信息对应文件夹modelbookimg +2.创建所需数据表 + 结构体名称 -> 对应表名称 -> 所在数据库 + ArchivesType -> 档案管理分类 -> + BookAttribute -> 文档属性 + DiscussMsg -> 评论列表 + GraphicForm -> 图文信息表 -> CONSTANT_DB_IMAGES_TEST 图文信息数据库 + Reporting -> 举报 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 + SearchLog -> 关键词记录 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 + Traceing -> 追问 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 +``` \ No newline at end of file diff --git a/.history/DevLog_20220821094008.md b/.history/DevLog_20220821094008.md new file mode 100644 index 0000000..c975e48 --- /dev/null +++ b/.history/DevLog_20220821094008.md @@ -0,0 +1,17 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息数据库对应数据结构 +``` +1.创建图文信息对应文件夹modelbookimg +2.创建所需数据表 + 结构体名称 -> 对应表名称 -> 所在数据库 + ArchivesType -> 档案管理分类 -> + BookAttribute -> 文档属性 + DiscussMsg -> 评论列表 + GraphicForm -> 图文信息表 -> CONSTANT_DB_IMAGES_TEST 图文信息数据库 + Reporting -> 举报 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 + SearchLog -> 关键词记录 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 + Traceing -> 追问 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 +``` \ No newline at end of file diff --git a/.history/DevLog_20220821094011.md b/.history/DevLog_20220821094011.md new file mode 100644 index 0000000..44cdc47 --- /dev/null +++ b/.history/DevLog_20220821094011.md @@ -0,0 +1,17 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息数据库对应数据结构 +``` +1.创建图文信息对应文件夹modelbookimg +2.创建所需数据表 + 结构体名称 -> 对应表名称 -> 所在数据库 + ArchivesType -> 档案管理分类 -> + BookAttribute -> 文档属性 + DiscussMsg -> 评论列表 -> + GraphicForm -> 图文信息表 -> CONSTANT_DB_IMAGES_TEST 图文信息数据库 + Reporting -> 举报 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 + SearchLog -> 关键词记录 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 + Traceing -> 追问 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 +``` \ No newline at end of file diff --git a/.history/DevLog_20220821094013.md b/.history/DevLog_20220821094013.md new file mode 100644 index 0000000..c975e48 --- /dev/null +++ b/.history/DevLog_20220821094013.md @@ -0,0 +1,17 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息数据库对应数据结构 +``` +1.创建图文信息对应文件夹modelbookimg +2.创建所需数据表 + 结构体名称 -> 对应表名称 -> 所在数据库 + ArchivesType -> 档案管理分类 -> + BookAttribute -> 文档属性 + DiscussMsg -> 评论列表 + GraphicForm -> 图文信息表 -> CONSTANT_DB_IMAGES_TEST 图文信息数据库 + Reporting -> 举报 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 + SearchLog -> 关键词记录 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 + Traceing -> 追问 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 +``` \ No newline at end of file diff --git a/.history/DevLog_20220821094017.md b/.history/DevLog_20220821094017.md new file mode 100644 index 0000000..479315c --- /dev/null +++ b/.history/DevLog_20220821094017.md @@ -0,0 +1,17 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息数据库对应数据结构 +``` +1.创建图文信息对应文件夹modelbookimg +2.创建所需数据表 + 结构体名称 -> 对应表名称 -> 所在数据库 + ArchivesType -> 档案管理分类 -> + BookAttribute -> 文档属性 + DiscussMsg -> 评论列表 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 + GraphicForm -> 图文信息表 -> CONSTANT_DB_IMAGES_TEST 图文信息数据库 + Reporting -> 举报 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 + SearchLog -> 关键词记录 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 + Traceing -> 追问 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 +``` \ No newline at end of file diff --git a/.history/DevLog_20220821094037.md b/.history/DevLog_20220821094037.md new file mode 100644 index 0000000..c0aff0b --- /dev/null +++ b/.history/DevLog_20220821094037.md @@ -0,0 +1,17 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息数据库对应数据结构 +``` +1.创建图文信息对应文件夹modelbookimg +2.创建所需数据表 + 结构体名称 -> 对应表名称 -> 所在数据库 + ArchivesType -> 档案管理分类 -> + BookAttribute -> 文档属性 + DiscussMsg -> 评论列表 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 + GraphicForm -> 图文信息表 -> CONSTANT_DB_IMAGES_TEST 图文信息数据库 + Reporting -> 举报 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 + SearchLog -> 关键词记录 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 + Traceing -> 追问 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 +``` \ No newline at end of file diff --git a/.history/DevLog_20220821094040.md b/.history/DevLog_20220821094040.md new file mode 100644 index 0000000..479315c --- /dev/null +++ b/.history/DevLog_20220821094040.md @@ -0,0 +1,17 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息数据库对应数据结构 +``` +1.创建图文信息对应文件夹modelbookimg +2.创建所需数据表 + 结构体名称 -> 对应表名称 -> 所在数据库 + ArchivesType -> 档案管理分类 -> + BookAttribute -> 文档属性 + DiscussMsg -> 评论列表 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 + GraphicForm -> 图文信息表 -> CONSTANT_DB_IMAGES_TEST 图文信息数据库 + Reporting -> 举报 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 + SearchLog -> 关键词记录 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 + Traceing -> 追问 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 +``` \ No newline at end of file diff --git a/.history/DevLog_20220821094043.md b/.history/DevLog_20220821094043.md new file mode 100644 index 0000000..e4c083a --- /dev/null +++ b/.history/DevLog_20220821094043.md @@ -0,0 +1,17 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息数据库对应数据结构 +``` +1.创建图文信息对应文件夹modelbookimg +2.创建所需数据表 + 结构体名称 -> 对应表名称 -> 所在数据库 + ArchivesType -> 档案管理分类 -> + BookAttribute -> 文档属性 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 + DiscussMsg -> 评论列表 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 + GraphicForm -> 图文信息表 -> CONSTANT_DB_IMAGES_TEST 图文信息数据库 + Reporting -> 举报 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 + SearchLog -> 关键词记录 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 + Traceing -> 追问 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 +``` \ No newline at end of file diff --git a/.history/DevLog_20220821094105.md b/.history/DevLog_20220821094105.md new file mode 100644 index 0000000..27a836b --- /dev/null +++ b/.history/DevLog_20220821094105.md @@ -0,0 +1,17 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息数据库对应数据结构 +``` +1.创建图文信息对应文件夹modelbookimg +2.创建所需数据表 + 结构体名称 -> 对应表名称 -> 所在数据库 + ArchivesType -> 档案管理分类 -> CONSTANT_DB_Master + BookAttribute -> 文档属性 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 + DiscussMsg -> 评论列表 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 + GraphicForm -> 图文信息表 -> CONSTANT_DB_IMAGES_TEST 图文信息数据库 + Reporting -> 举报 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 + SearchLog -> 关键词记录 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 + Traceing -> 追问 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 +``` \ No newline at end of file diff --git a/.history/DevLog_20220821094108.md b/.history/DevLog_20220821094108.md new file mode 100644 index 0000000..9def423 --- /dev/null +++ b/.history/DevLog_20220821094108.md @@ -0,0 +1,17 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息数据库对应数据结构 +``` +1.创建图文信息对应文件夹modelbookimg +2.创建所需数据表 + 结构体名称 -> 对应表名称 -> 所在数据库 + ArchivesType -> 档案管理分类 -> CONSTANT_DB_Master 主数据库 + BookAttribute -> 文档属性 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 + DiscussMsg -> 评论列表 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 + GraphicForm -> 图文信息表 -> CONSTANT_DB_IMAGES_TEST 图文信息数据库 + Reporting -> 举报 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 + SearchLog -> 关键词记录 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 + Traceing -> 追问 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 +``` \ No newline at end of file diff --git a/.history/DevLog_20220821094117.md b/.history/DevLog_20220821094117.md new file mode 100644 index 0000000..9def423 --- /dev/null +++ b/.history/DevLog_20220821094117.md @@ -0,0 +1,17 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息数据库对应数据结构 +``` +1.创建图文信息对应文件夹modelbookimg +2.创建所需数据表 + 结构体名称 -> 对应表名称 -> 所在数据库 + ArchivesType -> 档案管理分类 -> CONSTANT_DB_Master 主数据库 + BookAttribute -> 文档属性 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 + DiscussMsg -> 评论列表 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 + GraphicForm -> 图文信息表 -> CONSTANT_DB_IMAGES_TEST 图文信息数据库 + Reporting -> 举报 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 + SearchLog -> 关键词记录 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 + Traceing -> 追问 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 +``` \ No newline at end of file diff --git a/.history/DevLog_20220821094121.md b/.history/DevLog_20220821094121.md new file mode 100644 index 0000000..560f29b --- /dev/null +++ b/.history/DevLog_20220821094121.md @@ -0,0 +1,18 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息数据库对应数据结构 +``` +1.创建图文信息对应文件夹modelbookimg +2.创建所需数据表 + 结构体名称 -> 对应表名称 -> 所在数据库 + ArchivesType -> 档案管理分类 -> CONSTANT_DB_Master 主数据库 + BookAttribute -> 文档属性 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 + DiscussMsg -> 评论列表 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 + GraphicForm -> 图文信息表 -> CONSTANT_DB_IMAGES_TEST 图文信息数据库 + Reporting -> 举报 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 + SearchLog -> 关键词记录 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 + Traceing -> 追问 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 +``` + diff --git a/.history/api/version1/bookimg/bookimg_20220821094513.go b/.history/api/version1/bookimg/bookimg_20220821094513.go new file mode 100644 index 0000000..e69de29 diff --git a/.history/api/version1/bookimg/bookimg_20220821094524.go b/.history/api/version1/bookimg/bookimg_20220821094524.go new file mode 100644 index 0000000..de73c43 --- /dev/null +++ b/.history/api/version1/bookimg/bookimg_20220821094524.go @@ -0,0 +1 @@ +package bookimg \ No newline at end of file diff --git a/.history/api/version1/bookimg/bookimg_20220821094535.go b/.history/api/version1/bookimg/bookimg_20220821094535.go new file mode 100644 index 0000000..cfc8841 --- /dev/null +++ b/.history/api/version1/bookimg/bookimg_20220821094535.go @@ -0,0 +1 @@ +package bookimg diff --git a/.history/api/version1/bookimg/bookimg_20220821101003.go b/.history/api/version1/bookimg/bookimg_20220821101003.go new file mode 100644 index 0000000..7cfb34a --- /dev/null +++ b/.history/api/version1/bookimg/bookimg_20220821101003.go @@ -0,0 +1,3 @@ +package bookimg + +// \ No newline at end of file diff --git a/.history/api/version1/bookimg/bookimg_20220821101008.go b/.history/api/version1/bookimg/bookimg_20220821101008.go new file mode 100644 index 0000000..c23592b --- /dev/null +++ b/.history/api/version1/bookimg/bookimg_20220821101008.go @@ -0,0 +1,3 @@ +package bookimg + +func \ No newline at end of file diff --git a/.history/api/version1/bookimg/bookimg_20220821101013.go b/.history/api/version1/bookimg/bookimg_20220821101013.go new file mode 100644 index 0000000..e228db0 --- /dev/null +++ b/.history/api/version1/bookimg/bookimg_20220821101013.go @@ -0,0 +1,3 @@ +package bookimg + +func (a ) \ No newline at end of file diff --git a/.history/api/version1/bookimg/bookimg_20220821101016.go b/.history/api/version1/bookimg/bookimg_20220821101016.go new file mode 100644 index 0000000..6b526b4 --- /dev/null +++ b/.history/api/version1/bookimg/bookimg_20220821101016.go @@ -0,0 +1,3 @@ +package bookimg + +func (a *ApiMethod) \ No newline at end of file diff --git a/.history/api/version1/bookimg/bookimg_20220821101044.go b/.history/api/version1/bookimg/bookimg_20220821101044.go new file mode 100644 index 0000000..31eef68 --- /dev/null +++ b/.history/api/version1/bookimg/bookimg_20220821101044.go @@ -0,0 +1,3 @@ +package bookimg + +func (a *ApiMethod) OutputListQuery \ No newline at end of file diff --git a/.history/api/version1/bookimg/bookimg_20220821101045.go b/.history/api/version1/bookimg/bookimg_20220821101045.go new file mode 100644 index 0000000..dfc566e --- /dev/null +++ b/.history/api/version1/bookimg/bookimg_20220821101045.go @@ -0,0 +1,3 @@ +package bookimg + +func (a *ApiMethod) OutputListQuery() \ No newline at end of file diff --git a/.history/api/version1/bookimg/bookimg_20220821101055.go b/.history/api/version1/bookimg/bookimg_20220821101055.go new file mode 100644 index 0000000..fad6713 --- /dev/null +++ b/.history/api/version1/bookimg/bookimg_20220821101055.go @@ -0,0 +1,5 @@ +package bookimg + +import "github.com/gin-gonic/gin" + +func (a *ApiMethod) OutputListQuery(ctx *gin.Context) diff --git a/.history/api/version1/bookimg/bookimg_20220821101056.go b/.history/api/version1/bookimg/bookimg_20220821101056.go new file mode 100644 index 0000000..613fe1d --- /dev/null +++ b/.history/api/version1/bookimg/bookimg_20220821101056.go @@ -0,0 +1,7 @@ +package bookimg + +import "github.com/gin-gonic/gin" + +func (a *ApiMethod) OutputListQuery(ctx *gin.Context) +{ + \ No newline at end of file diff --git a/.history/api/version1/bookimg/bookimg_20220821101100.go b/.history/api/version1/bookimg/bookimg_20220821101100.go new file mode 100644 index 0000000..a8292d5 --- /dev/null +++ b/.history/api/version1/bookimg/bookimg_20220821101100.go @@ -0,0 +1,7 @@ +package bookimg + +import "github.com/gin-gonic/gin" + +func (a *ApiMethod) OutputListQuery(ctx *gin.Context) { + +} diff --git a/.history/api/version1/bookimg/bookimg_20220821101117.go b/.history/api/version1/bookimg/bookimg_20220821101117.go new file mode 100644 index 0000000..dfac61a --- /dev/null +++ b/.history/api/version1/bookimg/bookimg_20220821101117.go @@ -0,0 +1,7 @@ +package bookimg + +import "github.com/gin-gonic/gin" + +func (a *ApiMethod) OutputListQuery(c *gin.Context) { + +} diff --git a/.history/api/version1/bookimg/bookimg_20220821101127.go b/.history/api/version1/bookimg/bookimg_20220821101127.go new file mode 100644 index 0000000..a090449 --- /dev/null +++ b/.history/api/version1/bookimg/bookimg_20220821101127.go @@ -0,0 +1,8 @@ +package bookimg + +import "github.com/gin-gonic/gin" + +// 图文信息列表 +func (a *ApiMethod) OutputListQuery(c *gin.Context) { + +} diff --git a/.history/api/version1/bookimg/bookimg_20220821101128.go b/.history/api/version1/bookimg/bookimg_20220821101128.go new file mode 100644 index 0000000..a090449 --- /dev/null +++ b/.history/api/version1/bookimg/bookimg_20220821101128.go @@ -0,0 +1,8 @@ +package bookimg + +import "github.com/gin-gonic/gin" + +// 图文信息列表 +func (a *ApiMethod) OutputListQuery(c *gin.Context) { + +} diff --git a/.history/api/version1/bookimg/bookimg_20220821101130.go b/.history/api/version1/bookimg/bookimg_20220821101130.go new file mode 100644 index 0000000..566eca8 --- /dev/null +++ b/.history/api/version1/bookimg/bookimg_20220821101130.go @@ -0,0 +1,8 @@ +package bookimg + +import "github.com/gin-gonic/gin" + +// 图文信息列表 +func (a *ApiMethod) OutputListQuery(c *gin.Context) { + +} diff --git a/.history/api/version1/bookimg/bookimg_20220821101133.go b/.history/api/version1/bookimg/bookimg_20220821101133.go new file mode 100644 index 0000000..a0afc8a --- /dev/null +++ b/.history/api/version1/bookimg/bookimg_20220821101133.go @@ -0,0 +1,8 @@ +package bookimg + +import "github.com/gin-gonic/gin" + +// 图文信息列表 +func (a *ApiMethod) OutputListQuery(c *gin.Context) { + var +} diff --git a/.history/api/version1/bookimg/bookimg_20220821101141.go b/.history/api/version1/bookimg/bookimg_20220821101141.go new file mode 100644 index 0000000..964afd2 --- /dev/null +++ b/.history/api/version1/bookimg/bookimg_20220821101141.go @@ -0,0 +1,9 @@ +package bookimg + +import "github.com/gin-gonic/gin" + +// 图文信息列表 +func (a *ApiMethod) OutputListQuery(c *gin.Context) { + var receivedValue departListQuery + +} diff --git a/.history/api/version1/bookimg/bookimg_20220821101144.go b/.history/api/version1/bookimg/bookimg_20220821101144.go new file mode 100644 index 0000000..e502b40 --- /dev/null +++ b/.history/api/version1/bookimg/bookimg_20220821101144.go @@ -0,0 +1,9 @@ +package bookimg + +import "github.com/gin-gonic/gin" + +// 图文信息列表 +func (a *ApiMethod) OutputListQuery(c *gin.Context) { + var receivedValue departListQuery + c.shou +} diff --git a/.history/api/version1/bookimg/bookimg_20220821101147.go b/.history/api/version1/bookimg/bookimg_20220821101147.go new file mode 100644 index 0000000..8dcdeb9 --- /dev/null +++ b/.history/api/version1/bookimg/bookimg_20220821101147.go @@ -0,0 +1,9 @@ +package bookimg + +import "github.com/gin-gonic/gin" + +// 图文信息列表 +func (a *ApiMethod) OutputListQuery(c *gin.Context) { + var receivedValue departListQuery + c.ShouldBindJSON() +} diff --git a/.history/api/version1/bookimg/bookimg_20220821101151.go b/.history/api/version1/bookimg/bookimg_20220821101151.go new file mode 100644 index 0000000..14f1cd0 --- /dev/null +++ b/.history/api/version1/bookimg/bookimg_20220821101151.go @@ -0,0 +1,9 @@ +package bookimg + +import "github.com/gin-gonic/gin" + +// 图文信息列表 +func (a *ApiMethod) OutputListQuery(c *gin.Context) { + var receivedValue departListQuery + c.ShouldBindJSON(&receivedValue) +} diff --git a/.history/api/version1/bookimg/bookimg_20220821101155.go b/.history/api/version1/bookimg/bookimg_20220821101155.go new file mode 100644 index 0000000..2313e5a --- /dev/null +++ b/.history/api/version1/bookimg/bookimg_20220821101155.go @@ -0,0 +1,9 @@ +package bookimg + +import "github.com/gin-gonic/gin" + +// 图文信息列表 +func (a *ApiMethod) OutputListQuery(c *gin.Context) { + var receivedValue + c.ShouldBindJSON(&receivedValue) +} diff --git a/.history/api/version1/bookimg/bookimg_20220821101159.go b/.history/api/version1/bookimg/bookimg_20220821101159.go new file mode 100644 index 0000000..e3ed755 --- /dev/null +++ b/.history/api/version1/bookimg/bookimg_20220821101159.go @@ -0,0 +1,9 @@ +package bookimg + +import "github.com/gin-gonic/gin" + +// 图文信息列表 +func (a *ApiMethod) OutputListQuery(c *gin.Context) { + var receivedValue outPutListQuery + c.ShouldBindJSON(&receivedValue) +} diff --git a/.history/api/version1/bookimg/bookimg_20220821101502.go b/.history/api/version1/bookimg/bookimg_20220821101502.go new file mode 100644 index 0000000..bbdcda0 --- /dev/null +++ b/.history/api/version1/bookimg/bookimg_20220821101502.go @@ -0,0 +1,10 @@ +package bookimg + +import "github.com/gin-gonic/gin" + +// 图文信息列表 +func (a *ApiMethod) OutputListQuery(c *gin.Context) { + var receivedValue outPutListQuery + c.ShouldBindJSON(&receivedValue) + +} diff --git a/.history/api/version1/bookimg/type_20220819154849.go b/.history/api/version1/bookimg/type_20220819154849.go new file mode 100644 index 0000000..e69de29 diff --git a/.history/api/version1/bookimg/type_20220819154856.go b/.history/api/version1/bookimg/type_20220819154856.go new file mode 100644 index 0000000..cfc8841 --- /dev/null +++ b/.history/api/version1/bookimg/type_20220819154856.go @@ -0,0 +1 @@ +package bookimg diff --git a/.history/api/version1/bookimg/type_20220819154906.go b/.history/api/version1/bookimg/type_20220819154906.go new file mode 100644 index 0000000..501255c --- /dev/null +++ b/.history/api/version1/bookimg/type_20220819154906.go @@ -0,0 +1,2 @@ +package bookimg +type ApiMethod struct{} \ No newline at end of file diff --git a/.history/api/version1/bookimg/type_20220819154907.go b/.history/api/version1/bookimg/type_20220819154907.go new file mode 100644 index 0000000..cffed3a --- /dev/null +++ b/.history/api/version1/bookimg/type_20220819154907.go @@ -0,0 +1,3 @@ +package bookimg + +type ApiMethod struct{} diff --git a/.history/api/version1/bookimg/type_20220821095211.go b/.history/api/version1/bookimg/type_20220821095211.go new file mode 100644 index 0000000..8e9e007 --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821095211.go @@ -0,0 +1,9 @@ +package bookimg + +type ApiMethod struct{} + +func (a *ApiMethod) Index(c *gin.Context) { + outputCont := publicmethod.MapOut[string]() + outputCont["index"] = "部门考核PC端入口" + publicmethod.Result(0, outputCont, c) +} \ No newline at end of file diff --git a/.history/api/version1/bookimg/type_20220821095212.go b/.history/api/version1/bookimg/type_20220821095212.go new file mode 100644 index 0000000..4e85b44 --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821095212.go @@ -0,0 +1,15 @@ +package bookimg + +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"] = "部门考核PC端入口" + publicmethod.Result(0, outputCont, c) +} diff --git a/.history/api/version1/bookimg/type_20220821095221.go b/.history/api/version1/bookimg/type_20220821095221.go new file mode 100644 index 0000000..8aa5624 --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821095221.go @@ -0,0 +1,15 @@ +package bookimg + +import ( + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +type ApiMethod struct{} + +func (a *ApiMethod) Index(c *gin.Context) { + outputCont := publicmethod.MapOut[string]() + outputCont["index"] = "图文" + publicmethod.Result(0, outputCont, c) +} diff --git a/.history/api/version1/bookimg/type_20220821095230.go b/.history/api/version1/bookimg/type_20220821095230.go new file mode 100644 index 0000000..25958eb --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821095230.go @@ -0,0 +1,15 @@ +package bookimg + +import ( + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +type ApiMethod struct{} + +func (a *ApiMethod) Index(c *gin.Context) { + outputCont := publicmethod.MapOut[string]() + outputCont["index"] = "图文信息管理" + publicmethod.Result(0, outputCont, c) +} diff --git a/.history/api/version1/bookimg/type_20220821095659.go b/.history/api/version1/bookimg/type_20220821095659.go new file mode 100644 index 0000000..6ff1e95 --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821095659.go @@ -0,0 +1,16 @@ +package bookimg + +import ( + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +type ApiMethod struct{} + +func (a *ApiMethod) Index(c *gin.Context) { + outputCont := publicmethod.MapOut[string]() + outputCont["index"] = "图文信息管理" + publicmethod.Result(0, outputCont, c) +} + diff --git a/.history/api/version1/bookimg/type_20220821095723.go b/.history/api/version1/bookimg/type_20220821095723.go new file mode 100644 index 0000000..23c94c8 --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821095723.go @@ -0,0 +1,17 @@ +package bookimg + +import ( + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +type ApiMethod struct{} + +// 部门考核WEB端入口 +func (a *ApiMethod) Index(c *gin.Context) { + outputCont := publicmethod.MapOut[string]() + outputCont["index"] = "图文信息管理" + publicmethod.Result(0, outputCont, c) +} + diff --git a/.history/api/version1/bookimg/type_20220821095731.go b/.history/api/version1/bookimg/type_20220821095731.go new file mode 100644 index 0000000..36c8394 --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821095731.go @@ -0,0 +1,16 @@ +package bookimg + +import ( + "key_performance_indicators/overall/publicmethod" + + "github.com/gin-gonic/gin" +) + +type ApiMethod struct{} + +// 图文信息管理入口 +func (a *ApiMethod) Index(c *gin.Context) { + outputCont := publicmethod.MapOut[string]() + outputCont["index"] = "图文信息管理" + publicmethod.Result(0, outputCont, c) +} diff --git a/.history/api/version1/bookimg/type_20220821095738.go b/.history/api/version1/bookimg/type_20220821095738.go new file mode 100644 index 0000000..55c1282 --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821095738.go @@ -0,0 +1,18 @@ +package bookimg + +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 \ No newline at end of file diff --git a/.history/api/version1/bookimg/type_20220821095837.go b/.history/api/version1/bookimg/type_20220821095837.go new file mode 100644 index 0000000..b02b6b6 --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821095837.go @@ -0,0 +1,18 @@ +package bookimg + +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 Output list query \ No newline at end of file diff --git a/.history/api/version1/bookimg/type_20220821095840.go b/.history/api/version1/bookimg/type_20220821095840.go new file mode 100644 index 0000000..783f2e5 --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821095840.go @@ -0,0 +1,18 @@ +package bookimg + +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 OutputList query \ No newline at end of file diff --git a/.history/api/version1/bookimg/type_20220821095847.go b/.history/api/version1/bookimg/type_20220821095847.go new file mode 100644 index 0000000..963f2e2 --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821095847.go @@ -0,0 +1,18 @@ +package bookimg + +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 OutputListQuery \ No newline at end of file diff --git a/.history/api/version1/bookimg/type_20220821095852.go b/.history/api/version1/bookimg/type_20220821095852.go new file mode 100644 index 0000000..f66638d --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821095852.go @@ -0,0 +1,19 @@ +package bookimg + +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 OutputListQuery struct { +} diff --git a/.history/api/version1/bookimg/type_20220821095854.go b/.history/api/version1/bookimg/type_20220821095854.go new file mode 100644 index 0000000..b4e6e34 --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821095854.go @@ -0,0 +1,20 @@ +package bookimg + +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 OutputListQuery struct { +} diff --git a/.history/api/version1/bookimg/type_20220821095900.go b/.history/api/version1/bookimg/type_20220821095900.go new file mode 100644 index 0000000..cd8be07 --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821095900.go @@ -0,0 +1,20 @@ +package bookimg + +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 OutputListQuery struct { +} diff --git a/.history/api/version1/bookimg/type_20220821095905.go b/.history/api/version1/bookimg/type_20220821095905.go new file mode 100644 index 0000000..7172890 --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821095905.go @@ -0,0 +1,20 @@ +package bookimg + +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 OutputListQuery struct { +} diff --git a/.history/api/version1/bookimg/type_20220821095913.go b/.history/api/version1/bookimg/type_20220821095913.go new file mode 100644 index 0000000..2e351f6 --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821095913.go @@ -0,0 +1,20 @@ +package bookimg + +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 OutputListQuery struct { +} diff --git a/.history/api/version1/bookimg/type_20220821095915.go b/.history/api/version1/bookimg/type_20220821095915.go new file mode 100644 index 0000000..2e351f6 --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821095915.go @@ -0,0 +1,20 @@ +package bookimg + +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 OutputListQuery struct { +} diff --git a/.history/api/version1/bookimg/type_20220821095920.go b/.history/api/version1/bookimg/type_20220821095920.go new file mode 100644 index 0000000..d47f534 --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821095920.go @@ -0,0 +1,21 @@ +package bookimg + +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 OutputListQuery struct { + pu +} diff --git a/.history/api/version1/bookimg/type_20220821095923.go b/.history/api/version1/bookimg/type_20220821095923.go new file mode 100644 index 0000000..75c14ef --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821095923.go @@ -0,0 +1,21 @@ +package bookimg + +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 OutputListQuery struct { + publicmethod. +} diff --git a/.history/api/version1/bookimg/type_20220821095927.go b/.history/api/version1/bookimg/type_20220821095927.go new file mode 100644 index 0000000..4b6fc78 --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821095927.go @@ -0,0 +1,21 @@ +package bookimg + +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 OutputListQuery struct { + publicmethod.PagesTurn +} diff --git a/.history/api/version1/bookimg/type_20220821095932.go b/.history/api/version1/bookimg/type_20220821095932.go new file mode 100644 index 0000000..91774d9 --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821095932.go @@ -0,0 +1,22 @@ +package bookimg + +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 OutputListQuery struct { + publicmethod.PagesTurn + +} diff --git a/.history/api/version1/bookimg/type_20220821095936.go b/.history/api/version1/bookimg/type_20220821095936.go new file mode 100644 index 0000000..041ff25 --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821095936.go @@ -0,0 +1,22 @@ +package bookimg + +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 OutputListQuery struct { + publicmethod.PagesTurn + Title +} diff --git a/.history/api/version1/bookimg/type_20220821095941.go b/.history/api/version1/bookimg/type_20220821095941.go new file mode 100644 index 0000000..697b896 --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821095941.go @@ -0,0 +1,22 @@ +package bookimg + +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 OutputListQuery struct { + publicmethod.PagesTurn + Title string // 文章标题 +} diff --git a/.history/api/version1/bookimg/type_20220821095951.go b/.history/api/version1/bookimg/type_20220821095951.go new file mode 100644 index 0000000..0d4ce51 --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821095951.go @@ -0,0 +1,22 @@ +package bookimg + +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 OutputListQuery struct { + publicmethod.PagesTurn + Title string `json:"title"` // 文章标题 +} diff --git a/.history/api/version1/bookimg/type_20220821095954.go b/.history/api/version1/bookimg/type_20220821095954.go new file mode 100644 index 0000000..ef93fa4 --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821095954.go @@ -0,0 +1,23 @@ +package bookimg + +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 OutputListQuery struct { + publicmethod.PagesTurn + Title string `json:"title"` // 文章标题 + +} diff --git a/.history/api/version1/bookimg/type_20220821100049.go b/.history/api/version1/bookimg/type_20220821100049.go new file mode 100644 index 0000000..ef93fa4 --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821100049.go @@ -0,0 +1,23 @@ +package bookimg + +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 OutputListQuery struct { + publicmethod.PagesTurn + Title string `json:"title"` // 文章标题 + +} diff --git a/.history/api/version1/bookimg/type_20220821100109.go b/.history/api/version1/bookimg/type_20220821100109.go new file mode 100644 index 0000000..e96efba --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821100109.go @@ -0,0 +1,23 @@ +package bookimg + +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 OutputListQuery struct { + publicmethod.PagesTurn + Title string `json:"title"` // 文章标题 + attribution +} diff --git a/.history/api/version1/bookimg/type_20220821100111.go b/.history/api/version1/bookimg/type_20220821100111.go new file mode 100644 index 0000000..11f135a --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821100111.go @@ -0,0 +1,23 @@ +package bookimg + +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 OutputListQuery struct { + publicmethod.PagesTurn + Title string `json:"title"` // 文章标题 + Attribution +} diff --git a/.history/api/version1/bookimg/type_20220821100116.go b/.history/api/version1/bookimg/type_20220821100116.go new file mode 100644 index 0000000..182fd2c --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821100116.go @@ -0,0 +1,23 @@ +package bookimg + +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 OutputListQuery struct { + publicmethod.PagesTurn + Title string `json:"title"` // 文章标题 + Attribution string +} diff --git a/.history/api/version1/bookimg/type_20220821100130.go b/.history/api/version1/bookimg/type_20220821100130.go new file mode 100644 index 0000000..d1e50e8 --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821100130.go @@ -0,0 +1,24 @@ +package bookimg + +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 OutputListQuery struct { + publicmethod.PagesTurn + Title string `json:"title"` // 文章标题 + Attribution string `json:"attribution"` //归属栏目 + +} diff --git a/.history/api/version1/bookimg/type_20220821100139.go b/.history/api/version1/bookimg/type_20220821100139.go new file mode 100644 index 0000000..3503872 --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821100139.go @@ -0,0 +1,24 @@ +package bookimg + +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 OutputListQuery struct { + publicmethod.PagesTurn + Title string `json:"title"` // 文章标题 + Attribution string `json:"attribution"` //所属栏目 + +} diff --git a/.history/api/version1/bookimg/type_20220821100143.go b/.history/api/version1/bookimg/type_20220821100143.go new file mode 100644 index 0000000..787d9ca --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821100143.go @@ -0,0 +1,24 @@ +package bookimg + +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 OutputListQuery struct { + publicmethod.PagesTurn + Title string `json:"title"` // 文章标题 + Attribution string `json:"attribution"` //所属栏目 + Range +} diff --git a/.history/api/version1/bookimg/type_20220821100316.go b/.history/api/version1/bookimg/type_20220821100316.go new file mode 100644 index 0000000..cd5539f --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821100316.go @@ -0,0 +1,24 @@ +package bookimg + +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 OutputListQuery struct { + publicmethod.PagesTurn + Title string `json:"title"` // 文章标题 + Attribution string `json:"attribution"` //所属栏目 + Range string `json:"range"` // +} diff --git a/.history/api/version1/bookimg/type_20220821100323.go b/.history/api/version1/bookimg/type_20220821100323.go new file mode 100644 index 0000000..ac3e257 --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821100323.go @@ -0,0 +1,25 @@ +package bookimg + +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 OutputListQuery struct { + publicmethod.PagesTurn + Title string `json:"title"` // 文章标题 + Attribution string `json:"attribution"` //所属栏目 + Range string `json:"range"` //可见范围 + +} diff --git a/.history/api/version1/bookimg/type_20220821100336.go b/.history/api/version1/bookimg/type_20220821100336.go new file mode 100644 index 0000000..1470c83 --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821100336.go @@ -0,0 +1,25 @@ +package bookimg + +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 OutputListQuery struct { + publicmethod.PagesTurn + Title string `json:"title"` // 文章标题 + Attribution string `json:"attribution"` //所属栏目 + Range string `json:"range"` //可见范围 + State +} diff --git a/.history/api/version1/bookimg/type_20220821100349.go b/.history/api/version1/bookimg/type_20220821100349.go new file mode 100644 index 0000000..fd21d70 --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821100349.go @@ -0,0 +1,25 @@ +package bookimg + +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 OutputListQuery struct { + publicmethod.PagesTurn + Title string `json:"title"` // 文章标题 + Attribution string `json:"attribution"` //所属栏目 + Range string `json:"range"` //可见范围 + State int `json:"state"` +} diff --git a/.history/api/version1/bookimg/type_20220821100350.go b/.history/api/version1/bookimg/type_20220821100350.go new file mode 100644 index 0000000..0eca400 --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821100350.go @@ -0,0 +1,25 @@ +package bookimg + +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 OutputListQuery struct { + publicmethod.PagesTurn + Title string `json:"title"` // 文章标题 + Attribution string `json:"attribution"` //所属栏目 + Range string `json:"range"` //可见范围 + State int `json:"state"` // +} diff --git a/.history/api/version1/bookimg/type_20220821100353.go b/.history/api/version1/bookimg/type_20220821100353.go new file mode 100644 index 0000000..f8c48ab --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821100353.go @@ -0,0 +1,25 @@ +package bookimg + +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 OutputListQuery struct { + publicmethod.PagesTurn + Title string `json:"title"` // 文章标题 + Attribution string `json:"attribution"` //所属栏目 + Range string `json:"range"` //可见范围 + State int `json:"state"` //状态 +} diff --git a/.history/api/version1/bookimg/type_20220821100354.go b/.history/api/version1/bookimg/type_20220821100354.go new file mode 100644 index 0000000..5f54daf --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821100354.go @@ -0,0 +1,26 @@ +package bookimg + +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 OutputListQuery struct { + publicmethod.PagesTurn + Title string `json:"title"` // 文章标题 + Attribution string `json:"attribution"` //所属栏目 + Range string `json:"range"` //可见范围 + + State int `json:"state"` //状态 +} diff --git a/.history/api/version1/bookimg/type_20220821100411.go b/.history/api/version1/bookimg/type_20220821100411.go new file mode 100644 index 0000000..382772c --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821100411.go @@ -0,0 +1,26 @@ +package bookimg + +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 OutputListQuery struct { + publicmethod.PagesTurn + Title string `json:"title"` // 文章标题 + Attribution string `json:"attribution"` //所属栏目 + Range string `json:"range"` //可见范围 + ReadNum + State int `json:"state"` //状态 +} diff --git a/.history/api/version1/bookimg/type_20220821100418.go b/.history/api/version1/bookimg/type_20220821100418.go new file mode 100644 index 0000000..10e0e8a --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821100418.go @@ -0,0 +1,26 @@ +package bookimg + +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 OutputListQuery struct { + publicmethod.PagesTurn + Title string `json:"title"` // 文章标题 + Attribution string `json:"attribution"` //所属栏目 + Range string `json:"range"` //可见范围 + ReadNum int `json:"read` + State int `json:"state"` //状态 +} diff --git a/.history/api/version1/bookimg/type_20220821100428.go b/.history/api/version1/bookimg/type_20220821100428.go new file mode 100644 index 0000000..7f15919 --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821100428.go @@ -0,0 +1,27 @@ +package bookimg + +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 OutputListQuery struct { + publicmethod.PagesTurn + Title string `json:"title"` // 文章标题 + Attribution string `json:"attribution"` //所属栏目 + Range string `json:"range"` //可见范围 + ReadNum int `json:"readnum"` // 阅读量 + + State int `json:"state"` //状态 +} diff --git a/.history/api/version1/bookimg/type_20220821100440.go b/.history/api/version1/bookimg/type_20220821100440.go new file mode 100644 index 0000000..b3244b9 --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821100440.go @@ -0,0 +1,27 @@ +package bookimg + +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 OutputListQuery struct { + publicmethod.PagesTurn + Title string `json:"title"` // 文章标题 + Attribution string `json:"attribution"` //所属栏目 + Range string `json:"range"` //可见范围 + ReadNum int `json:"readnum"` // 阅读量 + ConNum int + State int `json:"state"` //状态 +} diff --git a/.history/api/version1/bookimg/type_20220821100447.go b/.history/api/version1/bookimg/type_20220821100447.go new file mode 100644 index 0000000..5f8acf2 --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821100447.go @@ -0,0 +1,28 @@ +package bookimg + +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 OutputListQuery struct { + publicmethod.PagesTurn + Title string `json:"title"` // 文章标题 + Attribution string `json:"attribution"` //所属栏目 + Range string `json:"range"` //可见范围 + ReadNum int `json:"readnum"` // 阅读量 + ConNum int `json:"connum"` + + State int `json:"state"` //状态 +} diff --git a/.history/api/version1/bookimg/type_20220821100500.go b/.history/api/version1/bookimg/type_20220821100500.go new file mode 100644 index 0000000..0dd164e --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821100500.go @@ -0,0 +1,28 @@ +package bookimg + +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 OutputListQuery struct { + publicmethod.PagesTurn + Title string `json:"title"` // 文章标题 + Attribution string `json:"attribution"` //所属栏目 + Range string `json:"range"` //可见范围 + ReadNum int `json:"readnum"` // 阅读量 + ConNum int `json:"connum"` + Collen + State int `json:"state"` //状态 +} diff --git a/.history/api/version1/bookimg/type_20220821100509.go b/.history/api/version1/bookimg/type_20220821100509.go new file mode 100644 index 0000000..1056583 --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821100509.go @@ -0,0 +1,28 @@ +package bookimg + +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 OutputListQuery struct { + publicmethod.PagesTurn + Title string `json:"title"` // 文章标题 + Attribution string `json:"attribution"` //所属栏目 + Range string `json:"range"` //可见范围 + ReadNum int `json:"readnum"` // 阅读量 + ConNum int `json:"connum"` + Collection int `json:"` + State int `json:"state"` //状态 +} diff --git a/.history/api/version1/bookimg/type_20220821100511.go b/.history/api/version1/bookimg/type_20220821100511.go new file mode 100644 index 0000000..6eb7e65 --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821100511.go @@ -0,0 +1,28 @@ +package bookimg + +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 OutputListQuery struct { + publicmethod.PagesTurn + Title string `json:"title"` // 文章标题 + Attribution string `json:"attribution"` //所属栏目 + Range string `json:"range"` //可见范围 + ReadNum int `json:"readnum"` // 阅读量 + ConNum int `json:"connum"` + Collection int `json:"coll` + State int `json:"state"` //状态 +} diff --git a/.history/api/version1/bookimg/type_20220821100515.go b/.history/api/version1/bookimg/type_20220821100515.go new file mode 100644 index 0000000..fb1dbd4 --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821100515.go @@ -0,0 +1,28 @@ +package bookimg + +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 OutputListQuery struct { + publicmethod.PagesTurn + Title string `json:"title"` // 文章标题 + Attribution string `json:"attribution"` //所属栏目 + Range string `json:"range"` //可见范围 + ReadNum int `json:"readnum"` // 阅读量 + ConNum int `json:"connum"` + Collection int `json:"collectionnum` + State int `json:"state"` //状态 +} diff --git a/.history/api/version1/bookimg/type_20220821100517.go b/.history/api/version1/bookimg/type_20220821100517.go new file mode 100644 index 0000000..b97400e --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821100517.go @@ -0,0 +1,28 @@ +package bookimg + +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 OutputListQuery struct { + publicmethod.PagesTurn + Title string `json:"title"` // 文章标题 + Attribution string `json:"attribution"` //所属栏目 + Range string `json:"range"` //可见范围 + ReadNum int `json:"readnum"` // 阅读量 + ConNum int `json:"connum"` + Collection int `json:"collectionnum"` + State int `json:"state"` //状态 +} diff --git a/.history/api/version1/bookimg/type_20220821100521.go b/.history/api/version1/bookimg/type_20220821100521.go new file mode 100644 index 0000000..ae2fdfe --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821100521.go @@ -0,0 +1,28 @@ +package bookimg + +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 OutputListQuery struct { + publicmethod.PagesTurn + Title string `json:"title"` // 文章标题 + Attribution string `json:"attribution"` //所属栏目 + Range string `json:"range"` //可见范围 + ReadNum int `json:"readnum"` // 阅读量 + ConNum int `json:"connum"` + CollectionNum int `json:"collectionnum"` + State int `json:"state"` //状态 +} diff --git a/.history/api/version1/bookimg/type_20220821100524.go b/.history/api/version1/bookimg/type_20220821100524.go new file mode 100644 index 0000000..9bc664f --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821100524.go @@ -0,0 +1,29 @@ +package bookimg + +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 OutputListQuery struct { + publicmethod.PagesTurn + Title string `json:"title"` // 文章标题 + Attribution string `json:"attribution"` //所属栏目 + Range string `json:"range"` //可见范围 + ReadNum int `json:"readnum"` // 阅读量 + ConNum int `json:"connum"` + CollectionNum int `json:"collectionnum"` + + State int `json:"state"` //状态 +} diff --git a/.history/api/version1/bookimg/type_20220821100554.go b/.history/api/version1/bookimg/type_20220821100554.go new file mode 100644 index 0000000..cd967a0 --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821100554.go @@ -0,0 +1,29 @@ +package bookimg + +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 OutputListQuery struct { + publicmethod.PagesTurn + Title string `json:"title"` // 文章标题 + Attribution string `json:"attribution"` //所属栏目 + Range string `json:"range"` //可见范围 + ReadNum int `json:"readnum"` // 阅读量 + ConNum int `json:"connum"` + CollectionNum int `json:"collectionnum"` + LikesNum int `json:"likesnum"` + State int `json:"state"` //状态 +} diff --git a/.history/api/version1/bookimg/type_20220821100602.go b/.history/api/version1/bookimg/type_20220821100602.go new file mode 100644 index 0000000..63fb237 --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821100602.go @@ -0,0 +1,30 @@ +package bookimg + +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 OutputListQuery struct { + publicmethod.PagesTurn + Title string `json:"title"` // 文章标题 + Attribution string `json:"attribution"` //所属栏目 + Range string `json:"range"` //可见范围 + ReadNum int `json:"readnum"` // 阅读量 + ConNum int `json:"connum"` + CollectionNum int `json:"collectionnum"` + LikesNum int `json:"likesnum"` + + State int `json:"state"` //状态 +} diff --git a/.history/api/version1/bookimg/type_20220821100627.go b/.history/api/version1/bookimg/type_20220821100627.go new file mode 100644 index 0000000..890269d --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821100627.go @@ -0,0 +1,30 @@ +package bookimg + +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 OutputListQuery struct { + publicmethod.PagesTurn + Title string `json:"title"` // 文章标题 + Attribution string `json:"attribution"` //所属栏目 + Range string `json:"range"` //可见范围 + ReadNum int `json:"readnum"` // 阅读量 + ConNum int `json:"connum"` + CollectionNum int `json:"collectionnum"` + LikesNum int `json:"likesnum"` + StepNum + State int `json:"state"` //状态 +} diff --git a/.history/api/version1/bookimg/type_20220821100633.go b/.history/api/version1/bookimg/type_20220821100633.go new file mode 100644 index 0000000..48f93a6 --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821100633.go @@ -0,0 +1,30 @@ +package bookimg + +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 OutputListQuery struct { + publicmethod.PagesTurn + Title string `json:"title"` // 文章标题 + Attribution string `json:"attribution"` //所属栏目 + Range string `json:"range"` //可见范围 + ReadNum int `json:"readnum"` // 阅读量 + ConNum int `json:"connum"` + CollectionNum int `json:"collectionnum"` + LikesNum int `json:"likesnum"` + StepOnNum + State int `json:"state"` //状态 +} diff --git a/.history/api/version1/bookimg/type_20220821100643.go b/.history/api/version1/bookimg/type_20220821100643.go new file mode 100644 index 0000000..a113688 --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821100643.go @@ -0,0 +1,30 @@ +package bookimg + +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 OutputListQuery struct { + publicmethod.PagesTurn + Title string `json:"title"` // 文章标题 + Attribution string `json:"attribution"` //所属栏目 + Range string `json:"range"` //可见范围 + ReadNum int `json:"readnum"` // 阅读量 + ConNum int `json:"connum"` + CollectionNum int `json:"collectionnum"` + LikesNum int `json:"likesnum"` + StepOnNum int `json:"steponnum` + State int `json:"state"` //状态 +} diff --git a/.history/api/version1/bookimg/type_20220821100645.go b/.history/api/version1/bookimg/type_20220821100645.go new file mode 100644 index 0000000..43453c3 --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821100645.go @@ -0,0 +1,31 @@ +package bookimg + +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 OutputListQuery struct { + publicmethod.PagesTurn + Title string `json:"title"` // 文章标题 + Attribution string `json:"attribution"` //所属栏目 + Range string `json:"range"` //可见范围 + ReadNum int `json:"readnum"` // 阅读量 + ConNum int `json:"connum"` + CollectionNum int `json:"collectionnum"` + LikesNum int `json:"likesnum"` + StepOnNum int `json:"steponnum"` + + State int `json:"state"` //状态 +} diff --git a/.history/api/version1/bookimg/type_20220821100706.go b/.history/api/version1/bookimg/type_20220821100706.go new file mode 100644 index 0000000..1451000 --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821100706.go @@ -0,0 +1,31 @@ +package bookimg + +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 OutputListQuery struct { + publicmethod.PagesTurn + Title string `json:"title"` // 文章标题 + Attribution string `json:"attribution"` //所属栏目 + Range string `json:"range"` //可见范围 + ReadNum int `json:"readnum"` // 阅读量 + ConNum int `json:"connum"` + CollectionNum int `json:"collectionnum"` + LikesNum int `json:"likesnum"` + StepOnNum int `json:"steponnum"` + + State int `json:"state"` //状态 +} diff --git a/.history/api/version1/bookimg/type_20220821100721.go b/.history/api/version1/bookimg/type_20220821100721.go new file mode 100644 index 0000000..bd06bbd --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821100721.go @@ -0,0 +1,31 @@ +package bookimg + +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 OutputListQuery struct { + publicmethod.PagesTurn + Title string `json:"title"` // 文章标题 + Attribution string `json:"attribution"` //所属栏目 + Range string `json:"range"` //可见范围 + ReadNum int `json:"readnum"` // 阅读量 + ConNum int `json:"connum"` + CollectionNum int `json:"collectionnum"` + LikesNum int `json:"likesnum"` + StepOnNum int `json:"steponnum"` + Gra + State int `json:"state"` //状态 +} diff --git a/.history/api/version1/bookimg/type_20220821100729.go b/.history/api/version1/bookimg/type_20220821100729.go new file mode 100644 index 0000000..b1b06ac --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821100729.go @@ -0,0 +1,31 @@ +package bookimg + +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 OutputListQuery struct { + publicmethod.PagesTurn + Title string `json:"title"` // 文章标题 + Attribution string `json:"attribution"` //所属栏目 + Range string `json:"range"` //可见范围 + ReadNum int `json:"readnum"` // 阅读量 + ConNum int `json:"connum"` + CollectionNum int `json:"collectionnum"` + LikesNum int `json:"likesnum"` + StepOnNum int `json:"steponnum"` + Grade int `json:grade"` + State int `json:"state"` //状态 +} diff --git a/.history/api/version1/bookimg/type_20220821100732.go b/.history/api/version1/bookimg/type_20220821100732.go new file mode 100644 index 0000000..fa920bc --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821100732.go @@ -0,0 +1,31 @@ +package bookimg + +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 OutputListQuery struct { + publicmethod.PagesTurn + Title string `json:"title"` // 文章标题 + Attribution string `json:"attribution"` //所属栏目 + Range string `json:"range"` //可见范围 + ReadNum int `json:"readnum"` // 阅读量 + ConNum int `json:"connum"` + CollectionNum int `json:"collectionnum"` + LikesNum int `json:"likesnum"` + StepOnNum int `json:"steponnum"` + Grade int `json:"grade"` + State int `json:"state"` //状态 +} diff --git a/.history/api/version1/bookimg/type_20220821100734.go b/.history/api/version1/bookimg/type_20220821100734.go new file mode 100644 index 0000000..78642c2 --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821100734.go @@ -0,0 +1,31 @@ +package bookimg + +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 OutputListQuery struct { + publicmethod.PagesTurn + Title string `json:"title"` // 文章标题 + Attribution string `json:"attribution"` //所属栏目 + Range string `json:"range"` //可见范围 + ReadNum int `json:"readnum"` // 阅读量 + ConNum int `json:"connum"` + CollectionNum int `json:"collectionnum"` + LikesNum int `json:"likesnum"` + StepOnNum int `json:"steponnum"` + Grade int `json:"grade"` + State int `json:"state"` //状态 +} diff --git a/.history/api/version1/bookimg/type_20220821100736.go b/.history/api/version1/bookimg/type_20220821100736.go new file mode 100644 index 0000000..28390d2 --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821100736.go @@ -0,0 +1,31 @@ +package bookimg + +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 OutputListQuery struct { + publicmethod.PagesTurn + Title string `json:"title"` // 文章标题 + Attribution string `json:"attribution"` //所属栏目 + Range string `json:"range"` //可见范围 + ReadNum int `json:"readnum"` // 阅读量 + ConNum int `json:"connum"` // + CollectionNum int `json:"collectionnum"` + LikesNum int `json:"likesnum"` + StepOnNum int `json:"steponnum"` + Grade int `json:"grade"` + State int `json:"state"` //状态 +} diff --git a/.history/api/version1/bookimg/type_20220821100751.go b/.history/api/version1/bookimg/type_20220821100751.go new file mode 100644 index 0000000..31f150e --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821100751.go @@ -0,0 +1,31 @@ +package bookimg + +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 OutputListQuery struct { + publicmethod.PagesTurn + Title string `json:"title"` // 文章标题 + Attribution string `json:"attribution"` //所属栏目 + Range string `json:"range"` //可见范围 + ReadNum int `json:"readnum"` // 阅读量 + ComNum int `json:"connum"` // + CollectionNum int `json:"collectionnum"` + LikesNum int `json:"likesnum"` + StepOnNum int `json:"steponnum"` + Grade int `json:"grade"` + State int `json:"state"` //状态 +} diff --git a/.history/api/version1/bookimg/type_20220821100754.go b/.history/api/version1/bookimg/type_20220821100754.go new file mode 100644 index 0000000..b3012c1 --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821100754.go @@ -0,0 +1,31 @@ +package bookimg + +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 OutputListQuery struct { + publicmethod.PagesTurn + Title string `json:"title"` // 文章标题 + Attribution string `json:"attribution"` //所属栏目 + Range string `json:"range"` //可见范围 + ReadNum int `json:"readnum"` // 阅读量 + ComNum int `json:"comnum"` // + CollectionNum int `json:"collectionnum"` + LikesNum int `json:"likesnum"` + StepOnNum int `json:"steponnum"` + Grade int `json:"grade"` + State int `json:"state"` //状态 +} diff --git a/.history/api/version1/bookimg/type_20220821100801.go b/.history/api/version1/bookimg/type_20220821100801.go new file mode 100644 index 0000000..691787e --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821100801.go @@ -0,0 +1,31 @@ +package bookimg + +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 OutputListQuery struct { + publicmethod.PagesTurn + Title string `json:"title"` // 文章标题 + Attribution string `json:"attribution"` //所属栏目 + Range string `json:"range"` //可见范围 + ReadNum int `json:"readnum"` // 阅读量 + ComNum int `json:"comnum"` // 评论数 + CollectionNum int `json:"collectionnum"` + LikesNum int `json:"likesnum"` + StepOnNum int `json:"steponnum"` + Grade int `json:"grade"` + State int `json:"state"` //状态 +} diff --git a/.history/api/version1/bookimg/type_20220821100806.go b/.history/api/version1/bookimg/type_20220821100806.go new file mode 100644 index 0000000..a2f5c25 --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821100806.go @@ -0,0 +1,31 @@ +package bookimg + +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 OutputListQuery struct { + publicmethod.PagesTurn + Title string `json:"title"` // 文章标题 + Attribution string `json:"attribution"` //所属栏目 + Range string `json:"range"` //可见范围 + ReadNum int `json:"readnum"` // 阅读量 + ComNum int `json:"comnum"` // 评论数 + CollectionNum int `json:"collectionnum"` // + LikesNum int `json:"likesnum"` + StepOnNum int `json:"steponnum"` + Grade int `json:"grade"` + State int `json:"state"` //状态 +} diff --git a/.history/api/version1/bookimg/type_20220821100814.go b/.history/api/version1/bookimg/type_20220821100814.go new file mode 100644 index 0000000..9200756 --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821100814.go @@ -0,0 +1,31 @@ +package bookimg + +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 OutputListQuery struct { + publicmethod.PagesTurn + Title string `json:"title"` // 文章标题 + Attribution string `json:"attribution"` //所属栏目 + Range string `json:"range"` //可见范围 + ReadNum int `json:"readnum"` // 阅读量 + ComNum int `json:"comnum"` // 评论数 + CollectionNum int `json:"collectionnum"` // 收藏数 + LikesNum int `json:"likesnum"` // + StepOnNum int `json:"steponnum"` + Grade int `json:"grade"` + State int `json:"state"` //状态 +} diff --git a/.history/api/version1/bookimg/type_20220821100820.go b/.history/api/version1/bookimg/type_20220821100820.go new file mode 100644 index 0000000..9200756 --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821100820.go @@ -0,0 +1,31 @@ +package bookimg + +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 OutputListQuery struct { + publicmethod.PagesTurn + Title string `json:"title"` // 文章标题 + Attribution string `json:"attribution"` //所属栏目 + Range string `json:"range"` //可见范围 + ReadNum int `json:"readnum"` // 阅读量 + ComNum int `json:"comnum"` // 评论数 + CollectionNum int `json:"collectionnum"` // 收藏数 + LikesNum int `json:"likesnum"` // + StepOnNum int `json:"steponnum"` + Grade int `json:"grade"` + State int `json:"state"` //状态 +} diff --git a/.history/api/version1/bookimg/type_20220821100827.go b/.history/api/version1/bookimg/type_20220821100827.go new file mode 100644 index 0000000..70e1c26 --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821100827.go @@ -0,0 +1,31 @@ +package bookimg + +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 OutputListQuery struct { + publicmethod.PagesTurn + Title string `json:"title"` // 文章标题 + Attribution string `json:"attribution"` //所属栏目 + Range string `json:"range"` //可见范围 + ReadNum int `json:"readnum"` // 阅读量 + ComNum int `json:"comnum"` // 评论数 + CollectionNum int `json:"collectionnum"` // 收藏数 + LikesNum int `json:"likesnum"` // 点赞数 + StepOnNum int `json:"steponnum"` + Grade int `json:"grade"` + State int `json:"state"` //状态 +} diff --git a/.history/api/version1/bookimg/type_20220821100837.go b/.history/api/version1/bookimg/type_20220821100837.go new file mode 100644 index 0000000..63e458f --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821100837.go @@ -0,0 +1,31 @@ +package bookimg + +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 OutputListQuery struct { + publicmethod.PagesTurn + Title string `json:"title"` // 文章标题 + Attribution string `json:"attribution"` //所属栏目 + Range string `json:"range"` //可见范围 + ReadNum int `json:"readnum"` // 阅读量 + ComNum int `json:"comnum"` // 评论数 + CollectionNum int `json:"collectionnum"` // 收藏数 + LikesNum int `json:"likesnum"` // 点赞数 + StepOnNum int `json:"steponnum"` // 踩数量 + Grade int `json:"grade"` + State int `json:"state"` //状态 +} diff --git a/.history/api/version1/bookimg/type_20220821100840.go b/.history/api/version1/bookimg/type_20220821100840.go new file mode 100644 index 0000000..c356c39 --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821100840.go @@ -0,0 +1,31 @@ +package bookimg + +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 OutputListQuery struct { + publicmethod.PagesTurn + Title string `json:"title"` // 文章标题 + Attribution string `json:"attribution"` //所属栏目 + Range string `json:"range"` //可见范围 + ReadNum int `json:"readnum"` // 阅读量 + ComNum int `json:"comnum"` // 评论数 + CollectionNum int `json:"collectionnum"` // 收藏数 + LikesNum int `json:"likesnum"` // 点赞数 + StepOnNum int `json:"steponnum"` // 踩数量 + Grade int `json:"grade"` // + State int `json:"state"` //状态 +} diff --git a/.history/api/version1/bookimg/type_20220821100847.go b/.history/api/version1/bookimg/type_20220821100847.go new file mode 100644 index 0000000..6fccd49 --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821100847.go @@ -0,0 +1,31 @@ +package bookimg + +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 OutputListQuery struct { + publicmethod.PagesTurn + Title string `json:"title"` // 文章标题 + Attribution string `json:"attribution"` //所属栏目 + Range string `json:"range"` //可见范围 + ReadNum int `json:"readnum"` // 阅读量 + ComNum int `json:"comnum"` // 评论数 + CollectionNum int `json:"collectionnum"` // 收藏数 + LikesNum int `json:"likesnum"` // 点赞数 + StepOnNum int `json:"steponnum"` // 踩数量 + Grade int `json:"grade"` // 综合评分 + State int `json:"state"` //状态 +} diff --git a/.history/api/version1/bookimg/type_20220821100848.go b/.history/api/version1/bookimg/type_20220821100848.go new file mode 100644 index 0000000..6fccd49 --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821100848.go @@ -0,0 +1,31 @@ +package bookimg + +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 OutputListQuery struct { + publicmethod.PagesTurn + Title string `json:"title"` // 文章标题 + Attribution string `json:"attribution"` //所属栏目 + Range string `json:"range"` //可见范围 + ReadNum int `json:"readnum"` // 阅读量 + ComNum int `json:"comnum"` // 评论数 + CollectionNum int `json:"collectionnum"` // 收藏数 + LikesNum int `json:"likesnum"` // 点赞数 + StepOnNum int `json:"steponnum"` // 踩数量 + Grade int `json:"grade"` // 综合评分 + State int `json:"state"` //状态 +} diff --git a/.history/api/version1/bookimg/type_20220821100918.go b/.history/api/version1/bookimg/type_20220821100918.go new file mode 100644 index 0000000..6fccd49 --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821100918.go @@ -0,0 +1,31 @@ +package bookimg + +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 OutputListQuery struct { + publicmethod.PagesTurn + Title string `json:"title"` // 文章标题 + Attribution string `json:"attribution"` //所属栏目 + Range string `json:"range"` //可见范围 + ReadNum int `json:"readnum"` // 阅读量 + ComNum int `json:"comnum"` // 评论数 + CollectionNum int `json:"collectionnum"` // 收藏数 + LikesNum int `json:"likesnum"` // 点赞数 + StepOnNum int `json:"steponnum"` // 踩数量 + Grade int `json:"grade"` // 综合评分 + State int `json:"state"` //状态 +} diff --git a/.history/api/version1/bookimg/type_20220821101032.go b/.history/api/version1/bookimg/type_20220821101032.go new file mode 100644 index 0000000..9624a75 --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821101032.go @@ -0,0 +1,31 @@ +package bookimg + +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 outputListQuery struct { + publicmethod.PagesTurn + Title string `json:"title"` // 文章标题 + Attribution string `json:"attribution"` //所属栏目 + Range string `json:"range"` //可见范围 + ReadNum int `json:"readnum"` // 阅读量 + ComNum int `json:"comnum"` // 评论数 + CollectionNum int `json:"collectionnum"` // 收藏数 + LikesNum int `json:"likesnum"` // 点赞数 + StepOnNum int `json:"steponnum"` // 踩数量 + Grade int `json:"grade"` // 综合评分 + State int `json:"state"` //状态 +} diff --git a/.history/api/version1/bookimg/type_20220821101035.go b/.history/api/version1/bookimg/type_20220821101035.go new file mode 100644 index 0000000..8037d8e --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821101035.go @@ -0,0 +1,31 @@ +package bookimg + +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 oututListQuery struct { + publicmethod.PagesTurn + Title string `json:"title"` // 文章标题 + Attribution string `json:"attribution"` //所属栏目 + Range string `json:"range"` //可见范围 + ReadNum int `json:"readnum"` // 阅读量 + ComNum int `json:"comnum"` // 评论数 + CollectionNum int `json:"collectionnum"` // 收藏数 + LikesNum int `json:"likesnum"` // 点赞数 + StepOnNum int `json:"steponnum"` // 踩数量 + Grade int `json:"grade"` // 综合评分 + State int `json:"state"` //状态 +} diff --git a/.history/api/version1/bookimg/type_20220821101037.go b/.history/api/version1/bookimg/type_20220821101037.go new file mode 100644 index 0000000..e678641 --- /dev/null +++ b/.history/api/version1/bookimg/type_20220821101037.go @@ -0,0 +1,31 @@ +package bookimg + +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 outPutListQuery struct { + publicmethod.PagesTurn + Title string `json:"title"` // 文章标题 + Attribution string `json:"attribution"` //所属栏目 + Range string `json:"range"` //可见范围 + ReadNum int `json:"readnum"` // 阅读量 + ComNum int `json:"comnum"` // 评论数 + CollectionNum int `json:"collectionnum"` // 收藏数 + LikesNum int `json:"likesnum"` // 点赞数 + StepOnNum int `json:"steponnum"` // 踩数量 + Grade int `json:"grade"` // 综合评分 + State int `json:"state"` //状态 +} diff --git a/.history/api/version1/departmentseting/departmentpc/qualitativekpi_20220818143450.go b/.history/api/version1/departmentseting/departmentpc/qualitativekpi_20220818143450.go new file mode 100644 index 0000000..ae8e0c5 --- /dev/null +++ b/.history/api/version1/departmentseting/departmentpc/qualitativekpi_20220818143450.go @@ -0,0 +1,1202 @@ +package departmentpc + +import ( + "encoding/json" + "fmt" + "key_performance_indicators/models/modelshr" + "key_performance_indicators/models/modelskpi" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + "strconv" + "strings" + "time" + + "github.com/gin-gonic/gin" +) + +// 部门指标列表 +func (a *ApiMethod) DepartmentTargetList(c *gin.Context) { + var receivedValue departListQuery + c.ShouldBindJSON(&receivedValue) + if receivedValue.Page == 0 { + receivedValue.Page = 1 + } + if receivedValue.PageSize == 0 { + receivedValue.PageSize = 20 + } + gormDb := overall.CONSTANT_DB_KPI.Model(&modelskpi.EvaluationTarget{}) + if receivedValue.State != 0 { //状态(1:启用;2:禁用;3:删除) + gormDb = gormDb.Where("et_state = ?", receivedValue.State) + } else { + gormDb = gormDb.Where("et_state BETWEEN ? AND ?", 1, 2) + } + if receivedValue.Title != "" { //指标名称 + gormDb = gormDb.Where("et_state LIKE ?", "%"+receivedValue.Title+"%") + } + if receivedValue.Class != 0 { //1:定性考核;2:定量考核 + gormDb = gormDb.Where("et_type = ?", receivedValue.Class) + } + if receivedValue.DepartmentId != "" { //部门ID + gormDb = gormDb.Where("FIND_IN_SET(?,`departments_post`)", receivedValue.DepartmentId) + } + if receivedValue.DimensionId != "" { //维度ID + gormDb = gormDb.Where("et_dimension = ?", receivedValue.DimensionId) + } + if receivedValue.ReportPerson != "" { //上报人 + gormDb = gormDb.Where("FIND_IN_SET(?,`et_report`)", receivedValue.ReportPerson) + } + if receivedValue.ScoringMethod != 0 { //计分方式(1:自动;2:手动) + gormDb = gormDb.Where("et_scoring_method = ?", receivedValue.ScoringMethod) + } + if receivedValue.Cycle != 0 { //1:班;2:天;3:周;4:月;5:季度;6:年 + gormDb = gormDb.Where("et_cycle = ?", receivedValue.Cycle) + } + + var total int64 + totalErr := gormDb.Count(&total).Error + if totalErr != nil { + total = 0 + } + var departmentTargetList []modelskpi.EvaluationTarget + gormDb = publicmethod.PageTurningSettings(gormDb, receivedValue.Page, receivedValue.PageSize) + err := gormDb.Order("`et_id` DESC").Find(&departmentTargetList).Error + if err != nil { + publicmethod.Result(105, err, c) + return + } + var targetList []printDepartmentTarget + for _, v := range departmentTargetList { + var targetCont printDepartmentTarget + targetCont.Id = v.Id + targetCont.Title = v.Title //指标名称"` + targetCont.Type = v.Type //1:定性考核;2:定量考核"` + targetCont.State = v.State //状态(1:启用;2:禁用;3:删除)"` + targetCont.AddTime = v.AddTime //制定时间"` + targetCont.Share = v.Share //1:共用;2:私用"` + targetCont.RelevantDepartments = v.RelevantDepartments //相关部门"` + targetCont.Dimension = v.Dimension //维度"` + targetCont.Key = v.Key //UUID"` + targetCont.Report = v.Report //上报人"` + targetCont.Uniteing = v.Uniteing //计量单位"` + targetCont.Cycles = v.Cycles //1:班;2:天;3:周;4:月;5:季度;6:年"` + targetCont.CycleAttres = v.CycleAttres //辅助计数"` + targetCont.VisibleRange = v.VisibleRange //可见范围"` + targetCont.VisibleRangeGroup = v.VisibleRangeGroup //可见范围(集团)"` + targetCont.ScoringMethod = v.ScoringMethod //计分方式(1:自动;2:手动)"` + var dutyClassCont modelskpi.DutyClass + dutyClassCont.GetCont(map[string]interface{}{"`id`": v.Dimension}, "`title`") + targetCont.DimensionTitle = dutyClassCont.Title + targetList = append(targetList, targetCont) + } + publicmethod.ResultList(0, receivedValue.Page, receivedValue.PageSize, total, int64(len(targetList)), targetList, c) +} + +// 实验查询 +func (a *ApiMethod) Shiyan(c *gin.Context) { + // var receivedValue departListQuery + // c.ShouldBindJSON(&receivedValue) + + // if receivedValue.DepartmentId == "" { + // receivedValue.DepartmentId = "316" + // } + // if receivedValue.DimensionId == "" { + // receivedValue.DimensionId = "1" + // } + + // var evalCont []modelskpi.EvaluationTarget + + // // gormDb := overall.CONSTANT_DB_KPI.Model(&modelskpi.EvaluationTarget{}).Select("evaluationtarget.*,(?) AS tdm", overall.CONSTANT_DB_KPI.Model(&modelskpi.TargetDepartment{}).Select("id").Where("department_id = ? AND target_id = et_id ", receivedValue.DepartmentId).Find(&modelskpi.TargetDepartment{})).Having("tdm IS NOT NULL").Find(&evalCont).Error + // // fmt.Printf("gormDb----->%v----->%v\n", gormDb, evalCont) + // err := overall.CONSTANT_DB_KPI.Raw("SELECT e.*,(SELECT id FROM target_department td WHERE td.department_id = ? AND td.post_id = ? AND td.target_id = e.et_id) as tdm FROM evaluationtarget e HAVING tdm IS NOT NULL", receivedValue.DepartmentId, receivedValue.DimensionId).Scan(&evalCont).Error + // fmt.Printf("gormDb----->%v----->%v\n", err, evalCont) + //校正部门级考核 + var dimeTargetList []modelskpi.DetailedTarget + err := overall.CONSTANT_DB_KPI.Where("dt_state = 1").Find(&dimeTargetList).Error + if err != nil || len(dimeTargetList) < 1 { + publicmethod.Result(107, err, c) + return + } + // fmt.Printf("总数---->%v\n", len(dimeTargetList)) + // var xieChengChuli []modelskpi.DetailedTarget + // for i, v := range dimeTargetList { + // if (i+1)%100 == 0 { + // xieChengChuli = append(xieChengChuli, v) + // fmt.Printf("循环--%v-->%v\n", i, len(xieChengChuli)) + // xieChengChuli = []modelskpi.DetailedTarget{} + // } else { + // xieChengChuli = append(xieChengChuli, v) + // } + // } + + for _, v := range dimeTargetList { + xiaoZhengBuMen(v) + } + + fmt.Printf("jieshu---->%v\n", len(dimeTargetList)) +} + +// 校正部门定性考核关联关系 +func xiaoZhengBuMen(detaTar modelskpi.DetailedTarget) { + if detaTar.Paretment != "" { + bumenAry := strings.Split(detaTar.Paretment, ",") + if len(bumenAry) > 0 { + for _, v := range bumenAry { + zbLmXzBm(detaTar.ParentId, detaTar.ParentIdSun, detaTar.Id, 3, v) + } + } + + } + + var assTar modelskpi.Assesstarget + assErr := overall.CONSTANT_DB_KPI.Where("`targetid` = ? AND `suntargetid` = ?", detaTar.ParentId, detaTar.ParentIdSun).First(&assTar).Error + if assErr == nil { + var reportAry []zhuanHuanMan + jsonErr := json.Unmarshal([]byte(assTar.Content), &reportAry) + if jsonErr == nil { + for _, mv := range reportAry { + if mv.Id == detaTar.Id { + if len(mv.Operator) > 0 { + for _, ov := range mv.Operator { + juadgeReport(detaTar.ParentId, detaTar.ParentIdSun, detaTar.Id, 1, ov) + } + } + } + } + } + } +} + +// 判断该指标细则是否已经存在上报人 +/* +@tarId 指标 +@sunId 栏目 +@lawsId 细则 +@class 类型(1:指标;2:子目标;3:细则) +@manKey 上报人 +*/ +func juadgeReport(tarId, sunId, lawsId int64, class int, manKey string) { + if class == 0 { + class = 1 + } + var trCont modelskpi.TargetReport + err := trCont.GetCont(map[string]interface{}{`type`: class, `target_id`: tarId, `target_sun_id`: sunId, `target_bylaws`: lawsId, `man_key`: manKey}) + if err == nil { + if trCont.State != 1 { + saveErr := trCont.EiteCont(map[string]interface{}{"`id`": trCont.Id}, map[string]interface{}{"`state`": 1, "`time`": time.Now().Unix()}) + fmt.Printf("编辑---->tarId----%v---->sunId----%v---->lawsId----%v---->class----%v---->bumenId----%v------>saveErr----->%v\n", tarId, sunId, lawsId, class, manKey, saveErr) + } + } else { + trCont.TargetId = tarId //指标ID"` + trCont.TargetSunId = sunId //子目标"` + trCont.TargetBylaws = lawsId //指标细则"` + trCont.DepartmentId = 0 //部门ID"` + trCont.PostId = 0 //岗位ID"` + trCont.Type = class //类型(1:公司级;2:部门级)"` + trCont.State = 1 //状态(1:启用;2:禁用;3:删除)"` + manKeyInt, _ := strconv.ParseInt(manKey, 10, 64) + trCont.ReportPerson = manKeyInt //上报人"` + trCont.Time = time.Now().Unix() + trCont.Class = 1 + addErr := overall.CONSTANT_DB_KPI.Create(&trCont).Error + fmt.Printf("编辑---->tarId----%v---->sunId----%v---->lawsId----%v---->class----%v---->bumenId----%v------>saveErr----->%v\n", tarId, sunId, lawsId, class, manKey, addErr) + } +} + +//编辑指标、栏目、细则关联部门 +/* +@tarId 指标 +@sunId 栏目 +@lawsId 细则 +@class 类型(1:指标;2:子目标;3:细则) +@bumenId 部门 +*/ +func zbLmXzBm(tarId, sunId, lawsId int64, class int, bumenId string) { + var tarDepCont modelskpi.TargetDepartment + where := publicmethod.MapOut[string]() + where["`target_id`"] = tarId + where["`target_sun_id`"] = sunId + where["`target_bylaws`"] = lawsId + where["`department_id`"] = bumenId + err := tarDepCont.GetCont(where, "`id`", "`state`") + if err == nil { + //存在,判断状态 + if tarDepCont.State != 1 { //不是启用状态,改为启用 + eidtWher := publicmethod.MapOut[string]() + eidtWher["``id``"] = tarDepCont.Id + saveErr := tarDepCont.EiteCont(eidtWher, map[string]interface{}{"`state`": 1, "`time`": time.Now().Unix()}) + + fmt.Printf("编辑---->tarId----%v---->sunId----%v---->lawsId----%v---->class----%v---->bumenId----%v------>saveErr----->%v\n", tarId, sunId, lawsId, class, bumenId, saveErr) + } + } else { + tarDepCont.TargetId = tarId //指标ID"` + tarDepCont.TargetSunId = sunId //子目标"` + tarDepCont.TargetBylaws = lawsId //指标细则"` + tarDepCont.Type = class //类型(1:指标;2:子目标;3:细则)"` + bumenIdInt, _ := strconv.ParseInt(bumenId, 10, 64) + tarDepCont.DepartmentId = bumenIdInt //部门ID"` + tarDepCont.PostId = 0 //岗位ID"` + tarDepCont.State = 1 //状态(1:启用;2:禁用;3:删除)"` + tarDepCont.Time = time.Now().Unix() //写入时间"` + tarDepCont.Class = 1 + addErr := overall.CONSTANT_DB_KPI.Create(&tarDepCont).Error + fmt.Printf("编辑---->tarId----%v---->sunId----%v---->lawsId----%v---->class----%v---->bumenId----%v------>saveErr----->%v\n", tarId, sunId, lawsId, class, bumenId, addErr) + } +} + +// 获取部门定性考核部门关联列表 +func (a *ApiMethod) GetDepartAboutTarget(c *gin.Context) { + var receivedValue publicmethod.PublicId + err := c.ShouldBindJSON(&receivedValue) + if err != nil { + publicmethod.Result(100, err, c) + return + } + var targetDepartmentID []int64 + disrErr := overall.CONSTANT_DB_KPI.Model(&modelskpi.TargetDepartment{}).Distinct("`department_id`").Where("`state` = 1 AND `level` = 1 AND `target_id` = ?", receivedValue.Id).Find(&targetDepartmentID).Error + if disrErr != nil { + publicmethod.Result(107, err, c) + return + } + var departmentList []modelshr.AdministrativeOrganization + departErr := overall.CONSTANT_DB_HR.Model(&modelshr.AdministrativeOrganization{}).Select("`id`,`name`,`superior`,`ispower`").Where("`id` IN ?", targetDepartmentID).Find(&departmentList).Error + if departErr != nil || len(departmentList) < 1 { + publicmethod.Result(107, err, c) + return + } + var outList []departOutcome + for _, v := range departmentList { + var outCont departOutcome + outCont.Id = strconv.FormatInt(v.Id, 10) + outCont.Name = v.Name + outCont.Superior = strconv.FormatInt(v.Superior, 10) + outCont.Ispower = v.IsPower + outList = append(outList, outCont) + } + publicmethod.Result(0, outList, c) +} + +// 获取部门指标相关执行人 +func (a *ApiMethod) GetTargetReport(c *gin.Context) { + var receivedValue getAboutReportTarget + c.ShouldBindJSON(&receivedValue) + if receivedValue.TargetId == "" { + publicmethod.Result(1, receivedValue, c, "指标不能为空!") + return + } + var userKey []int64 + typeClass := 1 + if receivedValue.DepartmentId != "" || receivedValue.PostId != "" { + typeClass = 2 + } + gormDb := overall.CONSTANT_DB_KPI.Model(&modelskpi.TargetReport{}).Distinct("`man_key`").Where("`state` = ? AND `type` = ? AND `target_id` = ?", 1, typeClass, receivedValue.TargetId) + + if receivedValue.TargetSunId != "" { + gormDb = gormDb.Where("`target_sun_id` = ?", receivedValue.TargetSunId) + } + if receivedValue.TargetBylaws != "" { + gormDb = gormDb.Where("`target_bylaws` = ?", receivedValue.TargetBylaws) + } + if receivedValue.DepartmentId != "" { + gormDb = gormDb.Where("`department_id` = ?", receivedValue.DepartmentId) + } + if receivedValue.PostId != "" { + gormDb = gormDb.Where("`post_id` = ?", receivedValue.PostId) + } + err := gormDb.Find(&userKey).Error + if err != nil || len(userKey) < 1 { + publicmethod.Result(107, err, c) + return + } + //上报人信息 + var reportManList []modelshr.PersonArchives + rmlErr := overall.CONSTANT_DB_HR.Model(&modelshr.PersonArchives{}).Select("`id`,`number`,`name`,`icon`,`company`,`maindeparment`").Where("`key` IN ?", userKey).Find(&reportManList).Error + if rmlErr != nil && len(reportManList) < 1 { + publicmethod.Result(107, err, c) + return + } + var reportListCont []printReportCont + for _, v := range reportManList { + var reportCont printReportCont + reportCont.Id = strconv.FormatInt(v.Id, 10) + reportCont.Name = v.Name + var groupConb modelshr.AdministrativeOrganization + groupConb.GetCont(map[string]interface{}{"`id`": v.Company}, "`name`") + reportCont.GroupName = groupConb.Name + var departmentConb modelshr.AdministrativeOrganization + departmentConb.GetCont(map[string]interface{}{"`id`": v.MainDeparment}, "`name`") + reportCont.DepartmentName = departmentConb.Name + reportCont.Icon = v.Icon + reportCont.Number = v.Number + reportListCont = append(reportListCont, reportCont) + } + outData := publicmethod.MapOut[string]() + outData["userlist"] = userKey + outData["userlistary"] = reportListCont + publicmethod.Result(0, outData, c) +} + +// 添加定性考核子栏目及细则 +func (a *ApiMethod) AddSunTargetDetailed(c *gin.Context) { + var receivedValue AddQualEval + c.ShouldBindJSON(&receivedValue) + if len(receivedValue.AcceptDepartmentId) <= 0 { + publicmethod.Result(1, receivedValue, c, "请选择接受考核的部门!") + return + } + if receivedValue.Target == "" { + publicmethod.Result(1, receivedValue, c, "请选择考核指标") + return + } + if receivedValue.TargetSunTitle == "" { + publicmethod.Result(1, receivedValue, c, "请输入栏目名称!") + return + } + if len(receivedValue.EvaluationList) <= 0 { + publicmethod.Result(1, receivedValue, c, "请添加测评详情!") + return + } else { + isWrite := true + for _, jv := range receivedValue.EvaluationList { + if jv.Title == "" || jv.Unit == "" || jv.ReferenceScore == "" { + isWrite = false + } + } + if isWrite == false { + publicmethod.Result(1, receivedValue, c, "指标细则有为填写的内容!请检查!") + return + } + } + tragetId, _ := strconv.ParseInt(receivedValue.Target, 10, 64) + //判断子目标是否存在 + var judgeSunTarget modelskpi.QualitativeTarget + saveSunTarget := modelskpi.QualitativeTarget{ + Title: receivedValue.TargetSunTitle, // 指标子栏目名称 + ParentId: tragetId, //归属指标 + State: 1, //状态(1:启用;2:禁用;3:删除) + AddTime: time.Now().Unix(), //制定时间"` + Depart: strings.Join(receivedValue.AcceptDepartmentId, ","), //关联部门"` + } + judgeSunTarErr := judgeSunTarget.JudgeIsTrue(map[string]interface{}{"q_title": receivedValue.TargetSunTitle, "q_parent_id": receivedValue.Target}, saveSunTarget) + if judgeSunTarErr != nil { + publicmethod.Result(106, judgeSunTarErr, c) + return + } + //子表细则处理 + + for _, v := range receivedValue.EvaluationList { + //判断指标细则是否已经存在 + var judgeDetaCont modelskpi.DetailedTarget + judgeDetaErr := judgeDetaCont.GetCont(map[string]interface{}{"`dt_parentid`": receivedValue.Target, "`dt_parentid_sun`": judgeSunTarget.Id, "`dt_title`": v.Title}) + if judgeDetaErr == nil { + editDetaAdd(judgeDetaCont.ParentId, judgeDetaCont.ParentIdSun, v, judgeDetaCont, receivedValue.AcceptDepartmentId) + } else { + addDetaInfo(tragetId, judgeSunTarget.Id, v, receivedValue.AcceptDepartmentId) + } + } + publicmethod.Result(0, receivedValue, c) +} + +/* +添加指标细则 +@targetId 指标ID +@sunTargetId 栏目ID +@qualEvalCont 提交的参数 +@departmentAry 接受考核部门 +*/ +func addDetaInfo(targetId, sunTargetId int64, qualEvalCont QualEvalSunList, departmentAry []string) (err error) { + + var minScoreInt int64 = 0 + var maxScoreInt int64 = 0 + scoreAry := strings.Split(qualEvalCont.ReferenceScore, "-") + scoreLen := len(scoreAry) + if scoreLen > 0 { + if scoreLen == 1 { + maxScore, _ := strconv.ParseFloat(scoreAry[0], 64) + maxScoreInt, _ = strconv.ParseInt(strconv.FormatFloat(maxScore*100, 'f', -1, 64), 10, 64) + minScoreInt = 0 + } else { + minScore, _ := strconv.ParseFloat(scoreAry[0], 64) + maxScore, _ := strconv.ParseFloat(scoreAry[scoreLen-1], 64) + minScoreInt, _ = strconv.ParseInt(strconv.FormatFloat(minScore*100, 'f', -1, 64), 10, 64) + maxScoreInt, _ = strconv.ParseInt(strconv.FormatFloat(maxScore*100, 'f', -1, 64), 10, 64) + } + } + var targetCont modelskpi.EvaluationTarget + targetCont.GetCont(map[string]interface{}{"et_id": targetId}, "et_unit", "et_cycle") + //单位 + unitName := qualEvalCont.Unit + if unitName == "" { + unitName = targetCont.Uniteing + } + //计分属性 + addOrReduce := qualEvalCont.AddOrReduce + if qualEvalCont.AddOrReduce == 0 { + addOrReduce = 1 + } + //统计周期 + cyclesInt := qualEvalCont.Cycles + if cyclesInt == 0 { + cyclesInt = 4 + } + cycleAttresInt := qualEvalCont.CycleAttres + if cycleAttresInt == 0 { + cycleAttresInt = 1 + } + //接受考核部门 + if len(departmentAry) < 1 { + //获取指标所有关联部门 + var aboutTarDepList []int64 + aboutTDErr := overall.CONSTANT_DB_KPI.Model(&modelskpi.TargetDepartment{}).Distinct("`department_id`").Where("`state` = 1 AND `level` = 1 AND `target_id` = ?", targetId).Find(&aboutTarDepList).Error + if aboutTDErr == nil { + for _, atdv := range aboutTarDepList { + departmentAry = append(departmentAry, strconv.FormatInt(atdv, 10)) + } + } + + } + operatorList := qualEvalCont.Operator + //提报人 + if len(operatorList) < 1 { + //获取指标所有关联部门 + var aboutTarReportList []int64 + aboutTDErr := overall.CONSTANT_DB_KPI.Model(&modelskpi.TargetReport{}).Distinct("`man_key`").Where("`state` = 1 AND `type` = 1 AND `target_id` = ?", targetId).Find(&aboutTarReportList).Error + if aboutTDErr == nil { + for _, atrv := range aboutTarReportList { + operatorList = append(operatorList, strconv.FormatInt(atrv, 10)) + } + } + + } + var detaildeTarInfo modelskpi.DetailedTarget + detaildeTarInfo.Title = qualEvalCont.Title //指标细则"` + detaildeTarInfo.Content = qualEvalCont.Content //指标说明"` + detaildeTarInfo.ParentId = targetId //归属指标栏目"` + detaildeTarInfo.ParentIdSun = sunTargetId //归属指标子栏目"` + detaildeTarInfo.State = 1 //状态(1:启用;2:禁用;3:删除)"` + detaildeTarInfo.AddTime = time.Now().Unix() //制定时间"` + detaildeTarInfo.MinScore = minScoreInt //最小分*100保存"` + detaildeTarInfo.MaxScore = maxScoreInt //最大分*100保存"` + detaildeTarInfo.Company = unitName //单位"` + detaildeTarInfo.AddReduce = addOrReduce //1:减少;2:增加;3:无属性,现场确认加或减"` + detaildeTarInfo.CensorType = strings.Join(qualEvalCont.CensorType, ",") //检查方式"` + detaildeTarInfo.CensorCont = qualEvalCont.CensorCont //检查依据"` + detaildeTarInfo.CensorRate = qualEvalCont.CensorRate //检查频次"` + detaildeTarInfo.Cycles = cyclesInt //1:班;2:天;3:周;4:月;5:季度;6:年"` + detaildeTarInfo.CycleAttres = cycleAttresInt //辅助计数"` + detaildeTarInfo.Paretment = strings.Join(departmentAry, ",") //接受考核的部门"` + detaildeTarInfo.Reportary = strings.Join(operatorList, ",") //提报人"` + err = overall.CONSTANT_DB_KPI.Create(&detaildeTarInfo).Error + if err == nil { + syncSeting.Add(1) + go handleDetarildTargetDepart(targetId, sunTargetId, detaildeTarInfo.Id, departmentAry, 1) + syncSeting.Add(1) + go handleDetarildTargetRepart(targetId, sunTargetId, detaildeTarInfo.Id, operatorList, 1) + syncSeting.Wait() + } + return nil +} + +/* +编辑已经存在的指标细则 +@targetId 指标ID +@sunTargetId 栏目ID +@qualEvalCont 提交的参数 +@detailInfof 查询到的参数 +@departmentAry 接受考核部门 +*/ +func editDetaAdd(targetId, sunTargetId int64, qualEvalCont QualEvalSunList, detailInfof modelskpi.DetailedTarget, departmentAry []string) (err error) { + saveData := publicmethod.MapOut[string]() + + if targetId != detailInfof.ParentId { + saveData["dt_parentid"] = targetId + } + if sunTargetId != detailInfof.ParentIdSun { + saveData["dt_parentid_sun"] = sunTargetId + } + + if qualEvalCont.Title != "" && qualEvalCont.Title != detailInfof.Title { + saveData["dt_title"] = qualEvalCont.Title + } + if qualEvalCont.Content != "" && qualEvalCont.Content != detailInfof.Content { + saveData["dt_content"] = qualEvalCont.Content + } + if qualEvalCont.Unit != "" && qualEvalCont.Unit != detailInfof.Company { + saveData["dt_company"] = qualEvalCont.Unit + } + if qualEvalCont.Cycles != 0 && qualEvalCont.Cycles != detailInfof.Cycles { + saveData["dt_cycle"] = qualEvalCont.Cycles + } + if qualEvalCont.CycleAttres != 0 && qualEvalCont.CycleAttres != detailInfof.CycleAttres { + saveData["dt_cycleattr"] = qualEvalCont.CycleAttres + } + if qualEvalCont.AddOrReduce != 0 && qualEvalCont.AddOrReduce != detailInfof.AddReduce { + saveData["dt_add_reduce"] = qualEvalCont.AddOrReduce + } + censStr := strings.Join(qualEvalCont.CensorType, ",") + if len(qualEvalCont.CensorType) > 0 { + if censStr != detailInfof.CensorType { + saveData["dt_censor_type"] = censStr + } + } + if qualEvalCont.CensorCont != "" && qualEvalCont.CensorCont != detailInfof.CensorCont { + saveData["dt_censor_cont"] = qualEvalCont.CensorCont + } + if qualEvalCont.CensorRate != 0 && qualEvalCont.CensorRate != detailInfof.CensorRate { + saveData["dt_censor_rate"] = qualEvalCont.CensorRate + } + + var minScoreInt int64 = 0 + var maxScoreInt int64 = 0 + scoreAry := strings.Split(qualEvalCont.ReferenceScore, "-") + scoreLen := len(scoreAry) + if scoreLen > 0 { + if scoreLen == 1 { + maxScore, _ := strconv.ParseFloat(scoreAry[0], 64) + maxScoreInt, _ = strconv.ParseInt(strconv.FormatFloat(maxScore*100, 'f', -1, 64), 10, 64) + minScoreInt = 0 + } else { + minScore, _ := strconv.ParseFloat(scoreAry[0], 64) + maxScore, _ := strconv.ParseFloat(scoreAry[scoreLen-1], 64) + minScoreInt, _ = strconv.ParseInt(strconv.FormatFloat(minScore*100, 'f', -1, 64), 10, 64) + maxScoreInt, _ = strconv.ParseInt(strconv.FormatFloat(maxScore*100, 'f', -1, 64), 10, 64) + } + } + if minScoreInt != detailInfof.MinScore { + saveData["dt_min_score"] = minScoreInt + } + if maxScoreInt != detailInfof.MaxScore { + saveData["dt_max_score"] = maxScoreInt + } + departStr := strings.Join(departmentAry, ",") + if departStr != detailInfof.Paretment { + saveData["dt_paretment"] = departStr + } + reportStr := strings.Join(qualEvalCont.Operator, ",") + if reportStr != detailInfof.Reportary { + saveData["reportary"] = reportStr + } + if len(saveData) > 0 { + saveData["dt_time"] = time.Now().Unix() + var editCont modelskpi.DetailedTarget + err = editCont.EiteCont(map[string]interface{}{"`dt_id`": detailInfof.Id}, saveData) + } + syncSeting.Add(1) + go handleDetarildTargetDepart(targetId, sunTargetId, detailInfof.Id, departmentAry, 1) + syncSeting.Add(1) + go handleDetarildTargetRepart(targetId, sunTargetId, detailInfof.Id, qualEvalCont.Operator, 1) + syncSeting.Wait() + return nil +} + +/* +处理指标细则关联部门 +@targetId 指标ID +@targetSunId 栏目ID +@bylawsId 指标细则 +@department 接受考核部门 +@class 级别(1:部门级;2:岗位级) +*/ +func handleDetarildTargetDepart(targetId, targetSunId, bylawsId int64, department []string, class int) { + defer syncSeting.Done() + //将不属于该指标细则的部门至禁用 + otherSaveData := publicmethod.MapOut[string]() + otherSaveData["`state`"] = 2 + otherSaveData["`time`"] = time.Now().Unix() + overall.CONSTANT_DB_KPI.Model(&modelskpi.TargetDepartment{}).Where("`level` = ? AND `target_id` = ? AND `target_sun_id` = ? AND `target_bylaws` = ?", class, targetId, targetSunId, bylawsId).Not(map[string]interface{}{"department_id": department}).Updates(&otherSaveData) + for _, v := range department { + var tarDepartCont modelskpi.TargetDepartment + saveErr := tarDepartCont.GetCont(map[string]interface{}{"`level`": class, "`target_id`": targetId, "`target_sun_id`": targetSunId, "`target_bylaws`": bylawsId, "`department_id`": v}, "`id`", "`state`") + if saveErr == nil { + if tarDepartCont.State != 1 { + tarDepartCont.EiteCont(map[string]interface{}{"`id`": tarDepartCont.Id}, map[string]interface{}{"`state`": 1, "`time`": time.Now().Unix()}) + } + } else { + xiZe := 3 + if targetId != 0 && targetSunId != 0 && bylawsId == 0 { + xiZe = 2 + } else if targetId != 0 && targetSunId == 0 && bylawsId == 0 { + xiZe = 1 + } + + tarDepartCont.TargetId = targetId //指标ID"` + tarDepartCont.TargetSunId = targetSunId //子目标"` + tarDepartCont.TargetBylaws = bylawsId //指标细则"` + tarDepartCont.Type = xiZe //类型(1:指标;2:子目标;3:细则)"` + departId, _ := strconv.ParseInt(v, 10, 64) + tarDepartCont.DepartmentId = departId //部门ID"` + tarDepartCont.PostId = 0 //岗位ID"` + tarDepartCont.State = 1 //状态(1:启用;2:禁用;3:删除)"` + tarDepartCont.Time = time.Now().Unix() //写入时间"` + tarDepartCont.Class = 1 //1:定性考核;2:定量考核"` + tarDepartCont.Level = class //级别(1:部门级;2:岗位级)"` + overall.CONSTANT_DB_KPI.Create(&tarDepartCont) + } + } +} + +/* +处理指标细则关联考核提交人 +@targetId 指标ID +@targetSunId 栏目ID +@bylawsId 指标细则 +@repart 考核提交人 +@class 级别(1:部门级;2:岗位级) +*/ +func handleDetarildTargetRepart(targetId, targetSunId, bylawsId int64, repart []string, class int) { + defer syncSeting.Done() + //将不属于该指标细则的部门至禁用 + otherSaveData := publicmethod.MapOut[string]() + otherSaveData["`state`"] = 2 + otherSaveData["`time`"] = time.Now().Unix() + overall.CONSTANT_DB_KPI.Model(&modelskpi.TargetReport{}).Where("`type` = ? AND `target_id` = ? AND `target_sun_id` = ? AND `target_bylaws` = ?", class, targetId, targetSunId, bylawsId).Not(map[string]interface{}{"man_key": repart}).Updates(&otherSaveData) + for _, v := range repart { + //获取评价人部门 + var manCont modelshr.PersonArchives + manCont.GetCont(map[string]interface{}{"`key`": v}, "`maindeparment`") + + var tarReportCont modelskpi.TargetReport + saveErr := tarReportCont.GetCont(map[string]interface{}{"`type`": class, "`target_id`": targetId, "`target_sun_id`": targetSunId, "`target_bylaws`": bylawsId, "`man_key`": v}, "`id`", "`state`") + if saveErr == nil { + if tarReportCont.State != 1 { + + tarReportCont.EiteCont(map[string]interface{}{"`id`": tarReportCont.Id}, map[string]interface{}{"`state`": 1, "`man_department`": manCont.MainDeparment, "`time`": time.Now().Unix()}) + } + } else { + tarReportCont.TargetId = targetId //指标ID"` + tarReportCont.TargetSunId = targetSunId //子目标"` + tarReportCont.TargetBylaws = bylawsId //指标细则"` + tarReportCont.DepartmentId = 0 //部门ID"` + tarReportCont.PostId = 0 //岗位ID"` + tarReportCont.Type = class //类型(1:公司级;2:部门级)"` + tarReportCont.State = 1 //状态(1:启用;2:禁用;3:删除)"` + reportId, _ := strconv.ParseInt(v, 10, 64) + tarReportCont.ReportPerson = reportId //上报人"` + tarReportCont.ManDepartment = manCont.MainDeparment //提报人所在部门"` + tarReportCont.Time = time.Now().Unix() //写入时间"` + tarReportCont.Class = 1 //1:定性考核;2:定量考核"` + overall.CONSTANT_DB_KPI.Create(&tarReportCont) + } + } +} + +// 获取定性考核指标列表内容 +func (a *ApiMethod) GetDepartmentTragetContList(c *gin.Context) { + var receivedValue getDepartTargetContType + c.ShouldBindJSON(&receivedValue) + if receivedValue.TargetId == "" { + publicmethod.Result(1, receivedValue, c, "未知指标ID!") + return + } + if receivedValue.Page == 0 { + receivedValue.Page = 1 + } + if receivedValue.PageSize == 0 { + receivedValue.PageSize = 20 + } + var detaildeList []modelskpi.DetailedTarget + var detCont modelskpi.DetailedTarget + gormDb := overall.CONSTANT_DB_KPI.Table(fmt.Sprintf("%s dt", detCont.TableName())).Select("dt.*").Where("dt.dt_state = 1 AND dt.dt_parentid = ?", receivedValue.TargetId) + //接受考核的部门 + if receivedValue.DepartmentId != "" { + gormDb = gormDb.Joins("LEFT JOIN `target_department` `td` on td.target_id = dt.dt_parentid AND td.target_sun_id = dt.dt_parentid_sun AND td.target_bylaws = dt.dt_id").Where("td.department_id = ?", receivedValue.DepartmentId) + } + //提报人 + if receivedValue.ReportPerson != "" { + gormDb = gormDb.Joins("LEFT JOIN `target_report` `tr` on tr.target_id = dt.dt_parentid AND tr.target_sun_id = dt.dt_parentid_sun AND tr.target_bylaws = dt.dt_id").Where("tr.man_key = ?", receivedValue.ReportPerson) + } + if receivedValue.Cycle != 0 { + gormDb = gormDb.Where("dt.dt_cycle = ?", receivedValue.Cycle) + } + if receivedValue.TargetSunId != "" { + gormDb = gormDb.Where("dt.dt_parentid_sun = ?", receivedValue.TargetSunId) + } + + err := gormDb.Order("dt.dt_parentid desc, dt.dt_parentid_sun").Find(&detaildeList).Error + if err != nil || len(detaildeList) < 1 { + publicmethod.Result(107, receivedValue, c) + return + } + var total int64 + totalErr := gormDb.Select("dt_id").Count(&total).Error + if totalErr != nil { + total = 0 + } + var outData []printDepartTargetCont + for _, v := range detaildeList { + var outCont printDepartTargetCont + outCont.Id = v.Id + outCont.Title = v.Title //指标细则"` + outCont.Content = v.Content //指标说明"` + outCont.ParentId = v.ParentId //归属指标栏目"` + outCont.ParentIdSun = v.ParentIdSun //归属指标子栏目"` + outCont.State = v.State //状态(1:启用;2:禁用;3:删除)"` + outCont.AddTime = v.AddTime //制定时间"` + outCont.MinScore = v.MinScore //最小分*100保存"` + outCont.MaxScore = v.MaxScore //100保存"` + outCont.Company = v.Company //单位"` + outCont.AddReduce = v.AddReduce //1:减少;2:增加;3:无属性,现场确认加或减"` + outCont.CensorType = v.CensorType //检查方式"` + outCont.CensorCont = v.CensorCont //检查依据"` + outCont.CensorRate = v.CensorRate //检查频次"` + outCont.Cycles = v.Cycles //1:班;2:天;3:周;4:月;5:季度;6:年"` + outCont.CycleAttres = v.CycleAttres //辅助计数"` + outCont.Paretment = v.Paretment //接受考核的部门"` + outCont.Reportary = v.Reportary //提报人"` + + standardStr := "" + if v.MinScore != 0 { + standardStr = fmt.Sprintf("%v-%v", publicmethod.DecimalEs(float64(v.MinScore)/100, 2), publicmethod.DecimalEs(float64(v.MaxScore)/100, 2)) + } else { + standardStr = fmt.Sprintf("%v", publicmethod.DecimalEs(float64(v.MaxScore)/100, 2)) + } + outCont.Standard = standardStr + outCont.CensorTypeList = strings.Split(v.CensorType, ",") + + outData = append(outData, outCont) + } + publicmethod.ResultList(0, receivedValue.Page, receivedValue.PageSize, total, int64(len(outData)), outData, c) +} + +// 根据指标栏目新增指标细则 +func (a *ApiMethod) BasisSonTargetAddDetailed(c *gin.Context) { + var receivedValue basisSonTargetAddDet + c.ShouldBindJSON(&receivedValue) + // var minScoreInt int64 = 0 //最低分 + // var maxScoreInt int64 = 0 //最高分 + if receivedValue.Id == "" { + publicmethod.Result(1, receivedValue, c, "未知指标子栏目ID!") + return + } + var sonTargetFatherInfo modelskpi.SonTargetFather + err := sonTargetFatherInfo.GetCont(map[string]interface{}{"q_id": receivedValue.Id}) + if err != nil { + publicmethod.Result(1, err, c, "该子栏目不存在!") + return + } + if receivedValue.Title == "" { + publicmethod.Result(1, receivedValue, c, "请输入考核细则名称!") + return + } + //判断指标细则是否符合规则 + if receivedValue.ReferenceScore == "" { + publicmethod.Result(1, receivedValue, c, "请输入考核细则相关考核标准!") + return + } else { + scoreAry := strings.Split(receivedValue.ReferenceScore, "-") + scoreLen := len(scoreAry) + if scoreLen < 1 { + publicmethod.Result(1, receivedValue, c, "考核标准不符合要求!请仔细填写!") + return + } + if scoreLen == 1 { + maxScore, maxErr := strconv.ParseFloat(scoreAry[0], 64) + if maxErr != nil { + publicmethod.Result(1, maxErr, c, "考核标准不符合要求!请仔细填写!") + return + } + var maxIntErr error + _, maxIntErr = strconv.ParseInt(strconv.FormatFloat(maxScore*100, 'f', -1, 64), 10, 64) + if maxIntErr != nil { + publicmethod.Result(1, maxIntErr, c, "考核标准不符合要求!请仔细填写!") + return + } + } else { + minScore, minErr := strconv.ParseFloat(scoreAry[0], 64) + if minErr != nil { + publicmethod.Result(1, minErr, c, "考核标准不符合要求!请仔细填写!") + return + } + maxScore, maxErr := strconv.ParseFloat(scoreAry[scoreLen-1], 64) + if maxErr != nil { + publicmethod.Result(1, maxErr, c, "考核标准不符合要求!请仔细填写!") + return + } + var minIntErr error + _, minIntErr = strconv.ParseInt(strconv.FormatFloat(minScore*100, 'f', -1, 64), 10, 64) + if minIntErr != nil { + publicmethod.Result(1, minIntErr, c, "考核标准不符合要求!请仔细填写!") + return + } + var maxIntErr error + _, maxIntErr = strconv.ParseInt(strconv.FormatFloat(maxScore*100, 'f', -1, 64), 10, 64) + if maxIntErr != nil { + publicmethod.Result(1, maxIntErr, c, "考核标准不符合要求!请仔细填写!") + return + } + } + } + //获取子栏目接受考核部门 + var sonAboutDeparment []string + + var aboutTarDepList []int64 + aboutTDErr := overall.CONSTANT_DB_KPI.Model(&modelskpi.TargetDepartment{}).Distinct("`department_id`").Where("`state` = 1 AND `level` = 1 AND `target_id` = ? AND `target_sun_id` = ?", sonTargetFatherInfo.ParentId, sonTargetFatherInfo.Id).Find(&aboutTarDepList).Error + if aboutTDErr == nil { + for _, atdv := range aboutTarDepList { + sonAboutDeparment = append(sonAboutDeparment, strconv.FormatInt(atdv, 10)) + } + } + + var qualEvalCont QualEvalSunList + qualEvalCont.Title = receivedValue.Title //考核内容 + qualEvalCont.Content = receivedValue.Content //备注说明 + qualEvalCont.Unit = receivedValue.Unit //单位 + qualEvalCont.ReferenceScore = receivedValue.ReferenceScore //考核标准 + qualEvalCont.Cycles = receivedValue.Cycles //1:班;2:天;3:周;4:月;5:季度;6:年 + qualEvalCont.CycleAttres = receivedValue.CycleAttres //辅助计数 + qualEvalCont.Operator = receivedValue.Operator //考核执行人 + qualEvalCont.AddOrReduce = receivedValue.AddOrReduce //操作类型 1:减少;2:增加;3:用户自定义 + qualEvalCont.CensorType = receivedValue.CensorType //检查方式(1:现场检查;2:资料检查;3:事件触发) + qualEvalCont.CensorCont = receivedValue.CensorCont //客观证据 + qualEvalCont.CensorRate = receivedValue.CensorRate //检查频次 + //判断指标细则是否已经存在 + var judgeDetaCont modelskpi.DetailedTarget + judgeDetaErr := judgeDetaCont.GetCont(map[string]interface{}{"`dt_parentid`": sonTargetFatherInfo.ParentId, "`dt_parentid_sun`": sonTargetFatherInfo.Id, "`dt_title`": receivedValue.Title}) + if judgeDetaErr == nil { + judgeDetaErr = editDetaAdd(sonTargetFatherInfo.ParentId, sonTargetFatherInfo.Id, qualEvalCont, judgeDetaCont, sonAboutDeparment) + } else { + judgeDetaErr = addDetaInfo(sonTargetFatherInfo.ParentId, sonTargetFatherInfo.Id, qualEvalCont, sonAboutDeparment) + } + if judgeDetaErr != nil { + publicmethod.Result(106, judgeDetaErr, c) + return + } + publicmethod.Result(0, judgeDetaErr, c) +} + +// 根据指标和部门获取相关岗位 +func (a *ApiMethod) BasisTargetDearpetmentGetPost(c *gin.Context) { + var receivedValue bgdgp + c.ShouldBindJSON(&receivedValue) + if receivedValue.TargetId == "" { + publicmethod.Result(101, receivedValue, c) + return + } + if receivedValue.DepartmentId == "" { + publicmethod.Result(101, receivedValue, c) + return + } + if receivedValue.Level == 0 { + receivedValue.Level = 2 + } + var postId []int64 + gormDb := overall.CONSTANT_DB_KPI.Model(&modelskpi.TargetDepartment{}).Distinct("post_id").Where("`state` = 1 AND `level` = ? AND `target_id` = ? AND `department_id` = ?", receivedValue.Level, receivedValue.TargetId, receivedValue.DepartmentId) + if receivedValue.TargetSunId != "" { + gormDb = gormDb.Where("`target_sun_id` = ?", receivedValue.TargetSunId) + } + if receivedValue.TargetBylaws != "" { + gormDb = gormDb.Where("`target_bylaws` = ?", receivedValue.TargetBylaws) + } + err := gormDb.Find(&postId).Error + if err != nil || len(postId) < 1 { + publicmethod.Result(107, err, c) + return + } + var postList []modelshr.Position + hrErr := overall.CONSTANT_DB_HR.Model(&modelshr.Position{}).Select("`id`,`name`").Where("`id` IN ?", postId).Find(&postList).Error + if hrErr != nil || len(postList) < 1 { + publicmethod.Result(107, hrErr, c) + return + } + outdata := publicmethod.MapOut[string]() + outdata["postid"] = postId + outdata["postlist"] = postList + publicmethod.Result(0, outdata, c) +} + +// 获取部门指标岗位提交人 +func (a *ApiMethod) BasisTaegetDeparmentReport(c *gin.Context) { + var receivedValue btdgr + c.ShouldBindJSON(&receivedValue) + if receivedValue.TargetId == "" { + publicmethod.Result(101, receivedValue, c) + return + } + // if receivedValue.DepartmentId == "" { + // publicmethod.Result(101, receivedValue, c) + // return + // } + if receivedValue.Level == 0 { + receivedValue.Level = 2 + } + var userKey []int64 + gormDb := overall.CONSTANT_DB_KPI.Model(&modelskpi.TargetReport{}).Distinct("man_key").Where("`state` = 1 AND `type` = ? AND `target_id` = ?", receivedValue.Level, receivedValue.TargetId) + + if receivedValue.DepartmentId != "" { + gormDb = gormDb.Where("`department_id` = ?", receivedValue.DepartmentId) + } + + if receivedValue.TargetSunId != "" { + gormDb = gormDb.Where("`target_sun_id` = ?", receivedValue.TargetSunId) + } + if receivedValue.TargetBylaws != "" { + gormDb = gormDb.Where("`target_bylaws` = ?", receivedValue.TargetBylaws) + } + if receivedValue.PostId != "" { + gormDb = gormDb.Where("`post_id` = ?", receivedValue.PostId) + } + err := gormDb.Find(&userKey).Error + if err != nil || len(userKey) < 1 { + publicmethod.Result(107, err, c) + return + } + + var peopleList []modelshr.UserPostDuties + hrErr := overall.CONSTANT_DB_HR.Model(&modelshr.UserPostDuties{}).Where("`key` IN ?", userKey).Find(&peopleList).Error + if hrErr != nil || len(peopleList) < 1 { + publicmethod.Result(107, hrErr, c) + return + } + outdata := publicmethod.MapOut[string]() + outdata["postid"] = userKey + outdata["peoplelist"] = peopleList + publicmethod.Result(0, outdata, c) +} + +// 修改子栏目标题名称级考核关联部门及提报人 +func (a *ApiMethod) EditSonTargetDepartmentReport(c *gin.Context) { + var receivedValue editTarDepartReport + c.ShouldBindJSON(&receivedValue) + if receivedValue.TargetSunId == "" { + publicmethod.Result(101, receivedValue, c) + return + } + var sonTargetCont modelskpi.QualitativeTarget + err := sonTargetCont.GetCont(map[string]interface{}{"q_id": receivedValue.TargetSunId}) + if err != nil { + publicmethod.Result(107, receivedValue, c) + return + } + if receivedValue.Title != "" && receivedValue.Title != sonTargetCont.Title { + var judgeIsFalse modelskpi.QualitativeTarget + judgeErr := judgeIsFalse.GetCont(map[string]interface{}{"q_title": sonTargetCont.Id, "q_parent_id": sonTargetCont.ParentId}, "q_id") + if judgeErr == nil { + publicmethod.Result(103, receivedValue, c) + return + } + saveData := publicmethod.MapOut[string]() + saveData["q_title"] = receivedValue.Title + saveData["q_time"] = time.Now().Unix() + err = sonTargetCont.EiteCont(map[string]interface{}{"q_id": receivedValue.TargetSunId}, saveData) + } + if err != nil { + publicmethod.Result(106, receivedValue, c) + return + } + departmentAry := receivedValue.AcceptDepartmentId + operatorList := receivedValue.Operator + + if len(departmentAry) < 1 { + var sonDepartmentAbouttargetId []int64 + deparErr := overall.CONSTANT_DB_KPI.Model(&modelskpi.TargetDepartment{}).Distinct("department_id").Where("`state` = 1 AND `level` = 1 AND `target_id` = ? ", sonTargetCont.ParentId).Find(&sonDepartmentAbouttargetId).Error + if deparErr == nil && len(sonDepartmentAbouttargetId) > 0 { + for _, sdv := range sonDepartmentAbouttargetId { + departmentAry = append(departmentAry, strconv.FormatInt(sdv, 10)) + } + } + } + + if len(operatorList) < 1 { + var sonReportAbouttargetId []int64 + deparErr := overall.CONSTANT_DB_KPI.Model(&modelskpi.TargetReport{}).Distinct("man_key").Where("`state` = 1 AND `type` = 1 AND `target_id` = ? ", sonTargetCont.ParentId).Find(&sonReportAbouttargetId).Error + if deparErr == nil && len(sonReportAbouttargetId) > 0 { + for _, srv := range sonReportAbouttargetId { + operatorList = append(operatorList, strconv.FormatInt(srv, 10)) + } + } + } + + //获取该指标下所有细则 + var detaildId []int64 + err = overall.CONSTANT_DB_KPI.Model(&modelskpi.DetailedTarget{}).Select("dt_id").Where("`dt_state` = 1 AND `dt_parentid` = ? AND `dt_parentid_sun` = ?", sonTargetCont.ParentId, sonTargetCont.Id).Find(&detaildId).Error + if err == nil && len(detaildId) > 0 { + for _, v := range detaildId { + if len(departmentAry) > 0 { + syncSeting.Add(1) + go handleDetarildTargetDepart(sonTargetCont.ParentId, sonTargetCont.Id, v, departmentAry, 1) + } + if len(operatorList) > 0 { + syncSeting.Add(1) + go handleDetarildTargetRepart(sonTargetCont.ParentId, sonTargetCont.Id, v, operatorList, 1) + } + syncSeting.Wait() + } + } + //获取该子栏目所有的接受考核部门 + + saveData := publicmethod.MapOut[string]() + saveData["q_depart"] = strings.Join(departmentAry, ",") + saveData["q_time"] = time.Now().Unix() + err = sonTargetCont.EiteCont(map[string]interface{}{"q_id": receivedValue.TargetSunId}, saveData) + //修改指标的关联部门和关联人 + var targetAboutDepartnebt []int64 + overall.CONSTANT_DB_KPI.Model(&modelskpi.TargetDepartment{}).Distinct("department_id").Where("`state` = 1 AND `level` = 1 AND `target_id` = ? ", sonTargetCont.ParentId).Find(&targetAboutDepartnebt) + var targetAboutReport []int64 + overall.CONSTANT_DB_KPI.Model(&modelskpi.TargetReport{}).Distinct("man_key").Where("`state` = 1 AND `type` = 1 AND `target_id` = ? ", sonTargetCont.ParentId).Find(&targetAboutReport) + if len(targetAboutDepartnebt) > 0 || len(targetAboutReport) > 0 { + tarSaveData := publicmethod.MapOut[string]() + if len(targetAboutDepartnebt) > 0 { + var departStr []string + for _, dsv := range targetAboutDepartnebt { + departStr = append(departStr, strconv.FormatInt(dsv, 10)) + } + tarSaveData["et_relevant_departments"] = strings.Join(departStr, ",") + } + if len(targetAboutReport) > 0 { + var reportStr []string + for _, dsvr := range targetAboutReport { + reportStr = append(reportStr, strconv.FormatInt(dsvr, 10)) + } + tarSaveData["et_report"] = strings.Join(reportStr, ",") + } + if len(tarSaveData) > 0 { + tarSaveData["et_time"] = time.Now().Unix() + var evalTarCont modelskpi.EvaluationTarget + evalTarCont.EiteCont(map[string]interface{}{"`et_id`": sonTargetCont.ParentId}, tarSaveData) + } + } + publicmethod.Result(0, err, c) +} + +// 获取子栏目基础信息 +func (a *ApiMethod) GetSonTargetCont(c *gin.Context) { + var receivedValue publicmethod.PublicId + err := c.ShouldBindJSON(&receivedValue) + if err != nil { + publicmethod.Result(100, receivedValue, c) + return + } + if receivedValue.Id == "" { + publicmethod.Result(101, receivedValue, c) + return + } + where := publicmethod.MapOut[string]() + where["q_id"] = receivedValue.Id + var sonTargetCont modelskpi.QualitativeTarget + err = sonTargetCont.GetCont(where, "q_title", "q_parent_id") + if err != nil { + publicmethod.Result(107, receivedValue, c) + return + } + //获取关联部门 + var targetAboutDepartnebt []int64 + overall.CONSTANT_DB_KPI.Model(&modelskpi.TargetDepartment{}).Distinct("department_id").Where("`state` = 1 AND `level` = 1 AND `target_id` = ? AND `target_sun_id` = ?", sonTargetCont.ParentId, receivedValue.Id).Find(&targetAboutDepartnebt) + //获取关联提报人 + var targetAboutReport []int64 + overall.CONSTANT_DB_KPI.Model(&modelskpi.TargetReport{}).Distinct("man_key").Where("`state` = 1 AND `type` = 1 AND `target_id` = ? AND `target_sun_id` = ?", sonTargetCont.ParentId, receivedValue.Id).Find(&targetAboutReport) + //部门列表 + var departContList []modelshr.AdministrativeOrganization + overall.CONSTANT_DB_HR.Model(&modelshr.AdministrativeOrganization{}).Select("`id`,`name`").Where("`id` IN ?", targetAboutDepartnebt).Find(&departContList) + //人员列表 + var reportContList []modelshr.PersonArchives + overall.CONSTANT_DB_HR.Model(&modelshr.PersonArchives{}).Select("`key`,`name`").Where("`key` IN ?", targetAboutReport).Find(&reportContList) + + var departArt []outCont + for _, darv := range departContList { + var departContArt outCont + departContArt.Id = strconv.FormatInt(darv.Id, 10) + departContArt.Name = darv.Name + departArt = append(departArt, departContArt) + } + + var reportArt []outCont + for _, rclv := range reportContList { + var reportContArt outCont + reportContArt.Id = strconv.FormatInt(rclv.Key, 10) + reportContArt.Name = rclv.Name + reportArt = append(reportArt, reportContArt) + } + + outData := publicmethod.MapOut[string]() + outData["title"] = sonTargetCont.Title + outData["departmentid"] = targetAboutDepartnebt + outData["userkey"] = targetAboutReport + outData["departmentcont"] = departArt + outData["usercont"] = reportArt + publicmethod.Result(0, outData, c) +} + +// 删除子栏目 +func (a *ApiMethod) DelSonTarget(c *gin.Context) { + var receivedValue publicmethod.PublicId + err := c.ShouldBindJSON(&receivedValue) + if err != nil { + publicmethod.Result(100, receivedValue, c) + return + } + if receivedValue.Id == "" { + publicmethod.Result(101, receivedValue, c) + return + } + where := publicmethod.MapOut[string]() + where["q_id"] = receivedValue.Id + var sonTargetCont modelskpi.QualitativeTarget + err = sonTargetCont.GetCont(where, "q_id", "q_parent_id") + if err != nil { + publicmethod.Result(107, err, c) + return + } + //预留判断该指标是否在使用中 + + delTime := time.Now().Unix() + //软删除所有此子栏目下的指标细则 + syncSeting.Add(1) + go softDetaildeCont(sonTargetCont.ParentId, sonTargetCont.Id, delTime) + //软删除所有此子栏目相关的联部门 + syncSeting.Add(1) + go softDelTargetDepartment(sonTargetCont.ParentId, sonTargetCont.Id, delTime) + //软删除所有此子栏目相关联的提报人 + syncSeting.Add(1) + go softDelTargetReport(sonTargetCont.ParentId, sonTargetCont.Id, delTime) + //软删除此栏目 + var delTargetSon modelskpi.QualitativeTarget + err = delTargetSon.EiteCont(map[string]interface{}{"`q_id`": sonTargetCont.Id}, map[string]interface{}{"`q_state`": 3, "`q_time`": delTime}) + syncSeting.Wait() + if err != nil { + publicmethod.Result(106, err, c) + return + } + publicmethod.Result(0, err, c) +} + +// 软删除所有此子栏目下的指标细则 +func softDetaildeCont(targetId, sonTargetId, delTime int64) { + defer syncSeting.Done() + var detaildeCont modelskpi.DetailedTarget + detaildeCont.EiteCont(map[string]interface{}{"dt_parentid": targetId, "dt_parentid_sun": sonTargetId, "dt_state": 1}, map[string]interface{}{"dt_state": 3, "dt_time": delTime}) +} + +// 软删除所有此子栏目相关联的提报人 +func softDelTargetReport(targetId, sonTargetId, delTime int64) { + defer syncSeting.Done() + var delTargetReport modelskpi.TargetReport + delTargetReport.EiteCont(map[string]interface{}{"`target_id`": targetId, "`target_sun_id`": sonTargetId, "`state`": 1}, map[string]interface{}{"`state`": 3, "`time`": delTime}) +} + +// 软删除所有此子栏目相关的联部门 +func softDelTargetDepartment(targetId, sonTargetId, delTime int64) { + defer syncSeting.Done() + var delTargetDepartment modelskpi.TargetDepartment + delTargetDepartment.EiteCont(map[string]interface{}{"target_id": targetId, "target_sun_id": sonTargetId, "`state`": 1}, map[string]interface{}{"`state`": 3, "`time`": delTime}) +} + +// 获取单一指标细则内容 +func (a *ApiMethod) GetOneDetailedTarget(c *gin.Context) { + var receivedValue publicmethod.PublicId + err := c.ShouldBindJSON(&receivedValue) + if err != nil { + publicmethod.Result(100, receivedValue, c) + return + } + if receivedValue.Id == "" { + publicmethod.Result(101, receivedValue, c) + return + } + where := publicmethod.MapOut[string]() + where["dt_id"] = receivedValue.Id + var detailedTargetCont modelskpi.DetailedTarget + err = detailedTargetCont.GetCont(where) + if err != nil { + publicmethod.Result(107, err, c) + return + } +} diff --git a/.history/api/version1/departmentseting/departmentpc/qualitativekpi_20220819105656.go b/.history/api/version1/departmentseting/departmentpc/qualitativekpi_20220819105656.go new file mode 100644 index 0000000..0ea1e99 --- /dev/null +++ b/.history/api/version1/departmentseting/departmentpc/qualitativekpi_20220819105656.go @@ -0,0 +1,1202 @@ +package departmentpc + +import ( + "encoding/json" + "fmt" + "key_performance_indicators/models/modelshr" + "key_performance_indicators/models/modelskpi" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + "strconv" + "strings" + "time" + + "github.com/gin-gonic/gin" +) + +// 部门指标列表 +func (a *ApiMethod) DepartmentTargetList(c *gin.Context) { + var receivedValue departListQuery + c.ShouldBindJSON(&receivedValue) + if receivedValue.Page == 0 { + receivedValue.Page = 1 + } + if receivedValue.PageSize == 0 { + receivedValue.PageSize = 20 + } + gormDb := overall.CONSTANT_DB_KPI.Model(&modelskpi.EvaluationTarget{}) + if receivedValue.State != 0 { //状态(1:启用;2:禁用;3:删除) + gormDb = gormDb.Where("et_state = ?", receivedValue.State) + } else { + gormDb = gormDb.Where("et_state BETWEEN ? AND ?", 1, 2) + } + if receivedValue.Title != "" { //指标名称 + gormDb = gormDb.Where("et_state LIKE ?", "%"+receivedValue.Title+"%") + } + if receivedValue.Class != 0 { //1:定性考核;2:定量考核 + gormDb = gormDb.Where("et_type = ?", receivedValue.Class) + } + if receivedValue.DepartmentId != "" { //部门ID + gormDb = gormDb.Where("FIND_IN_SET(?,`departments_post`)", receivedValue.DepartmentId) + } + if receivedValue.DimensionId != "" { //维度ID + gormDb = gormDb.Where("et_dimension = ?", receivedValue.DimensionId) + } + if receivedValue.ReportPerson != "" { //上报人 + gormDb = gormDb.Where("FIND_IN_SET(?,`et_report`)", receivedValue.ReportPerson) + } + if receivedValue.ScoringMethod != 0 { //计分方式(1:自动;2:手动) + gormDb = gormDb.Where("et_scoring_method = ?", receivedValue.ScoringMethod) + } + if receivedValue.Cycle != 0 { //1:班;2:天;3:周;4:月;5:季度;6:年 + gormDb = gormDb.Where("et_cycle = ?", receivedValue.Cycle) + } + + var total int64 + totalErr := gormDb.Count(&total).Error + if totalErr != nil { + total = 0 + } + var departmentTargetList []modelskpi.EvaluationTarget + gormDb = publicmethod.PageTurningSettings(gormDb, receivedValue.Page, receivedValue.PageSize) + err := gormDb.Order("`et_id` DESC").Find(&departmentTargetList).Error + if err != nil { + publicmethod.Result(105, err, c) + return + } + var targetList []printDepartmentTarget + for _, v := range departmentTargetList { + var targetCont printDepartmentTarget + targetCont.Id = v.Id + targetCont.Title = v.Title //指标名称"` + targetCont.Type = v.Type //1:定性考核;2:定量考核"` + targetCont.State = v.State //状态(1:启用;2:禁用;3:删除)"` + targetCont.AddTime = v.AddTime //制定时间"` + targetCont.Share = v.Share //1:共用;2:私用"` + targetCont.RelevantDepartments = v.RelevantDepartments //相关部门"` + targetCont.Dimension = v.Dimension //维度"` + targetCont.Key = v.Key //UUID"` + targetCont.Report = v.Report //上报人"` + targetCont.Uniteing = v.Uniteing //计量单位"` + targetCont.Cycles = v.Cycles //1:班;2:天;3:周;4:月;5:季度;6:年"` + targetCont.CycleAttres = v.CycleAttres //辅助计数"` + targetCont.VisibleRange = v.VisibleRange //可见范围"` + targetCont.VisibleRangeGroup = v.VisibleRangeGroup //可见范围(集团)"` + targetCont.ScoringMethod = v.ScoringMethod //计分方式(1:自动;2:手动)"` + var dutyClassCont modelskpi.DutyClass + dutyClassCont.GetCont(map[string]interface{}{"`id`": v.Dimension}, "`title`") + targetCont.DimensionTitle = dutyClassCont.Title + targetList = append(targetList, targetCont) + } + publicmethod.ResultList(0, receivedValue.Page, receivedValue.PageSize, total, int64(len(targetList)), targetList, c) +} + +// 实验查询 +func (a *ApiMethod) Shiyan(c *gin.Context) { + // var receivedValue departListQuery + // c.ShouldBindJSON(&receivedValue) + + // if receivedValue.DepartmentId == "" { + // receivedValue.DepartmentId = "316" + // } + // if receivedValue.DimensionId == "" { + // receivedValue.DimensionId = "1" + // } + + // var evalCont []modelskpi.EvaluationTarget + + // // gormDb := overall.CONSTANT_DB_KPI.Model(&modelskpi.EvaluationTarget{}).Select("evaluationtarget.*,(?) AS tdm", overall.CONSTANT_DB_KPI.Model(&modelskpi.TargetDepartment{}).Select("id").Where("department_id = ? AND target_id = et_id ", receivedValue.DepartmentId).Find(&modelskpi.TargetDepartment{})).Having("tdm IS NOT NULL").Find(&evalCont).Error + // // fmt.Printf("gormDb----->%v----->%v\n", gormDb, evalCont) + // err := overall.CONSTANT_DB_KPI.Raw("SELECT e.*,(SELECT id FROM target_department td WHERE td.department_id = ? AND td.post_id = ? AND td.target_id = e.et_id) as tdm FROM evaluationtarget e HAVING tdm IS NOT NULL", receivedValue.DepartmentId, receivedValue.DimensionId).Scan(&evalCont).Error + // fmt.Printf("gormDb----->%v----->%v\n", err, evalCont) + //校正部门级考核 + var dimeTargetList []modelskpi.DetailedTarget + err := overall.CONSTANT_DB_KPI.Where("dt_state = 1").Find(&dimeTargetList).Error + if err != nil || len(dimeTargetList) < 1 { + publicmethod.Result(107, err, c) + return + } + // fmt.Printf("总数---->%v\n", len(dimeTargetList)) + // var xieChengChuli []modelskpi.DetailedTarget + // for i, v := range dimeTargetList { + // if (i+1)%100 == 0 { + // xieChengChuli = append(xieChengChuli, v) + // fmt.Printf("循环--%v-->%v\n", i, len(xieChengChuli)) + // xieChengChuli = []modelskpi.DetailedTarget{} + // } else { + // xieChengChuli = append(xieChengChuli, v) + // } + // } + + for _, v := range dimeTargetList { + xiaoZhengBuMen(v) + } + + fmt.Printf("jieshu---->%v\n", len(dimeTargetList)) +} + +// 校正部门定性考核关联关系 +func xiaoZhengBuMen(detaTar modelskpi.DetailedTarget) { + if detaTar.Paretment != "" { + bumenAry := strings.Split(detaTar.Paretment, ",") + if len(bumenAry) > 0 { + for _, v := range bumenAry { + zbLmXzBm(detaTar.ParentId, detaTar.ParentIdSun, detaTar.Id, 3, v) + } + } + + } + + var assTar modelskpi.Assesstarget + assErr := overall.CONSTANT_DB_KPI.Where("`targetid` = ? AND `suntargetid` = ?", detaTar.ParentId, detaTar.ParentIdSun).First(&assTar).Error + if assErr == nil { + var reportAry []zhuanHuanMan + jsonErr := json.Unmarshal([]byte(assTar.Content), &reportAry) + if jsonErr == nil { + for _, mv := range reportAry { + if mv.Id == detaTar.Id { + if len(mv.Operator) > 0 { + for _, ov := range mv.Operator { + juadgeReport(detaTar.ParentId, detaTar.ParentIdSun, detaTar.Id, 1, ov) + } + } + } + } + } + } +} + +// 判断该指标细则是否已经存在上报人 +/* +@tarId 指标 +@sunId 栏目 +@lawsId 细则 +@class 类型(1:指标;2:子目标;3:细则) +@manKey 上报人 +*/ +func juadgeReport(tarId, sunId, lawsId int64, class int, manKey string) { + if class == 0 { + class = 1 + } + var trCont modelskpi.TargetReport + err := trCont.GetCont(map[string]interface{}{`type`: class, `target_id`: tarId, `target_sun_id`: sunId, `target_bylaws`: lawsId, `man_key`: manKey}) + if err == nil { + if trCont.State != 1 { + saveErr := trCont.EiteCont(map[string]interface{}{"`id`": trCont.Id}, map[string]interface{}{"`state`": 1, "`time`": time.Now().Unix()}) + fmt.Printf("编辑---->tarId----%v---->sunId----%v---->lawsId----%v---->class----%v---->bumenId----%v------>saveErr----->%v\n", tarId, sunId, lawsId, class, manKey, saveErr) + } + } else { + trCont.TargetId = tarId //指标ID"` + trCont.TargetSunId = sunId //子目标"` + trCont.TargetBylaws = lawsId //指标细则"` + trCont.DepartmentId = 0 //部门ID"` + trCont.PostId = 0 //岗位ID"` + trCont.Type = class //类型(1:公司级;2:部门级)"` + trCont.State = 1 //状态(1:启用;2:禁用;3:删除)"` + manKeyInt, _ := strconv.ParseInt(manKey, 10, 64) + trCont.ReportPerson = manKeyInt //上报人"` + trCont.Time = time.Now().Unix() + trCont.Class = 1 + addErr := overall.CONSTANT_DB_KPI.Create(&trCont).Error + fmt.Printf("编辑---->tarId----%v---->sunId----%v---->lawsId----%v---->class----%v---->bumenId----%v------>saveErr----->%v\n", tarId, sunId, lawsId, class, manKey, addErr) + } +} + +//编辑指标、栏目、细则关联部门 +/* +@tarId 指标 +@sunId 栏目 +@lawsId 细则 +@class 类型(1:指标;2:子目标;3:细则) +@bumenId 部门 +*/ +func zbLmXzBm(tarId, sunId, lawsId int64, class int, bumenId string) { + var tarDepCont modelskpi.TargetDepartment + where := publicmethod.MapOut[string]() + where["`target_id`"] = tarId + where["`target_sun_id`"] = sunId + where["`target_bylaws`"] = lawsId + where["`department_id`"] = bumenId + err := tarDepCont.GetCont(where, "`id`", "`state`") + if err == nil { + //存在,判断状态 + if tarDepCont.State != 1 { //不是启用状态,改为启用 + eidtWher := publicmethod.MapOut[string]() + eidtWher["``id``"] = tarDepCont.Id + saveErr := tarDepCont.EiteCont(eidtWher, map[string]interface{}{"`state`": 1, "`time`": time.Now().Unix()}) + + fmt.Printf("编辑---->tarId----%v---->sunId----%v---->lawsId----%v---->class----%v---->bumenId----%v------>saveErr----->%v\n", tarId, sunId, lawsId, class, bumenId, saveErr) + } + } else { + tarDepCont.TargetId = tarId //指标ID"` + tarDepCont.TargetSunId = sunId //子目标"` + tarDepCont.TargetBylaws = lawsId //指标细则"` + tarDepCont.Type = class //类型(1:指标;2:子目标;3:细则)"` + bumenIdInt, _ := strconv.ParseInt(bumenId, 10, 64) + tarDepCont.DepartmentId = bumenIdInt //部门ID"` + tarDepCont.PostId = 0 //岗位ID"` + tarDepCont.State = 1 //状态(1:启用;2:禁用;3:删除)"` + tarDepCont.Time = time.Now().Unix() //写入时间"` + tarDepCont.Class = 1 + addErr := overall.CONSTANT_DB_KPI.Create(&tarDepCont).Error + fmt.Printf("编辑---->tarId----%v---->sunId----%v---->lawsId----%v---->class----%v---->bumenId----%v------>saveErr----->%v\n", tarId, sunId, lawsId, class, bumenId, addErr) + } +} + +// 获取部门定性考核部门关联列表 +func (a *ApiMethod) GetDepartAboutTarget(c *gin.Context) { + var receivedValue publicmethod.PublicId + err := c.ShouldBindJSON(&receivedValue) + if err != nil { + publicmethod.Result(100, err, c) + return + } + var targetDepartmentID []int64 + disrErr := overall.CONSTANT_DB_KPI.Model(&modelskpi.TargetDepartment{}).Distinct("`department_id`").Where("`state` = 1 AND `level` = 1 AND `target_id` = ?", receivedValue.Id).Find(&targetDepartmentID).Error + if disrErr != nil { + publicmethod.Result(107, err, c) + return + } + var departmentList []modelshr.AdministrativeOrganization + departErr := overall.CONSTANT_DB_HR.Model(&modelshr.AdministrativeOrganization{}).Select("`id`,`name`,`superior`,`ispower`").Where("`id` IN ?", targetDepartmentID).Find(&departmentList).Error + if departErr != nil || len(departmentList) < 1 { + publicmethod.Result(107, err, c) + return + } + var outList []departOutcome + for _, v := range departmentList { + var outCont departOutcome + outCont.Id = strconv.FormatInt(v.Id, 10) + outCont.Name = v.Name + outCont.Superior = strconv.FormatInt(v.Superior, 10) + outCont.Ispower = v.IsPower + outList = append(outList, outCont) + } + publicmethod.Result(0, outList, c) +} + +// 获取部门指标相关执行人 +func (a *ApiMethod) GetTargetReport(c *gin.Context) { + var receivedValue getAboutReportTarget + c.ShouldBindJSON(&receivedValue) + if receivedValue.TargetId == "" { + publicmethod.Result(1, receivedValue, c, "指标不能为空!") + return + } + var userKey []int64 + typeClass := 1 + if receivedValue.DepartmentId != "" || receivedValue.PostId != "" { + typeClass = 2 + } + gormDb := overall.CONSTANT_DB_KPI.Model(&modelskpi.TargetReport{}).Distinct("`man_key`").Where("`state` = ? AND `type` = ? AND `target_id` = ?", 1, typeClass, receivedValue.TargetId) + + if receivedValue.TargetSunId != "" { + gormDb = gormDb.Where("`target_sun_id` = ?", receivedValue.TargetSunId) + } + if receivedValue.TargetBylaws != "" { + gormDb = gormDb.Where("`target_bylaws` = ?", receivedValue.TargetBylaws) + } + if receivedValue.DepartmentId != "" { + gormDb = gormDb.Where("`department_id` = ?", receivedValue.DepartmentId) + } + if receivedValue.PostId != "" { + gormDb = gormDb.Where("`post_id` = ?", receivedValue.PostId) + } + err := gormDb.Find(&userKey).Error + if err != nil || len(userKey) < 1 { + publicmethod.Result(107, err, c) + return + } + //上报人信息 + var reportManList []modelshr.PersonArchives + rmlErr := overall.CONSTANT_DB_HR.Model(&modelshr.PersonArchives{}).Select("`id`,`number`,`name`,`icon`,`company`,`maindeparment`").Where("`key` IN ?", userKey).Find(&reportManList).Error + if rmlErr != nil && len(reportManList) < 1 { + publicmethod.Result(107, err, c) + return + } + var reportListCont []printReportCont + for _, v := range reportManList { + var reportCont printReportCont + reportCont.Id = strconv.FormatInt(v.Id, 10) + reportCont.Name = v.Name + var groupConb modelshr.AdministrativeOrganization + groupConb.GetCont(map[string]interface{}{"`id`": v.Company}, "`name`") + reportCont.GroupName = groupConb.Name + var departmentConb modelshr.AdministrativeOrganization + departmentConb.GetCont(map[string]interface{}{"`id`": v.MainDeparment}, "`name`") + reportCont.DepartmentName = departmentConb.Name + reportCont.Icon = v.Icon + reportCont.Number = v.Number + reportListCont = append(reportListCont, reportCont) + } + outData := publicmethod.MapOut[string]() + outData["userlist"] = userKey + outData["userlistary"] = reportListCont + publicmethod.Result(0, outData, c) +} + +// 添加定性考核子栏目及细则 +func (a *ApiMethod) AddSunTargetDetailed(c *gin.Context) { + var receivedValue AddQualEval + c.ShouldBindJSON(&receivedValue) + if len(receivedValue.AcceptDepartmentId) <= 0 { + publicmethod.Result(1, receivedValue, c, "请选择接受考核的部门!") + return + } + if receivedValue.Target == "" { + publicmethod.Result(1, receivedValue, c, "请选择考核指标") + return + } + if receivedValue.TargetSunTitle == "" { + publicmethod.Result(1, receivedValue, c, "请输入栏目名称!") + return + } + if len(receivedValue.EvaluationList) <= 0 { + publicmethod.Result(1, receivedValue, c, "请添加测评详情!") + return + } else { + isWrite := true + for _, jv := range receivedValue.EvaluationList { + if jv.Title == "" || jv.Unit == "" || jv.ReferenceScore == "" { + isWrite = false + } + } + if isWrite == false { + publicmethod.Result(1, receivedValue, c, "指标细则有wei填写的内容!请检查!") + return + } + } + tragetId, _ := strconv.ParseInt(receivedValue.Target, 10, 64) + //判断子目标是否存在 + var judgeSunTarget modelskpi.QualitativeTarget + saveSunTarget := modelskpi.QualitativeTarget{ + Title: receivedValue.TargetSunTitle, // 指标子栏目名称 + ParentId: tragetId, //归属指标 + State: 1, //状态(1:启用;2:禁用;3:删除) + AddTime: time.Now().Unix(), //制定时间"` + Depart: strings.Join(receivedValue.AcceptDepartmentId, ","), //关联部门"` + } + judgeSunTarErr := judgeSunTarget.JudgeIsTrue(map[string]interface{}{"q_title": receivedValue.TargetSunTitle, "q_parent_id": receivedValue.Target}, saveSunTarget) + if judgeSunTarErr != nil { + publicmethod.Result(106, judgeSunTarErr, c) + return + } + //子表细则处理 + + for _, v := range receivedValue.EvaluationList { + //判断指标细则是否已经存在 + var judgeDetaCont modelskpi.DetailedTarget + judgeDetaErr := judgeDetaCont.GetCont(map[string]interface{}{"`dt_parentid`": receivedValue.Target, "`dt_parentid_sun`": judgeSunTarget.Id, "`dt_title`": v.Title}) + if judgeDetaErr == nil { + editDetaAdd(judgeDetaCont.ParentId, judgeDetaCont.ParentIdSun, v, judgeDetaCont, receivedValue.AcceptDepartmentId) + } else { + addDetaInfo(tragetId, judgeSunTarget.Id, v, receivedValue.AcceptDepartmentId) + } + } + publicmethod.Result(0, receivedValue, c) +} + +/* +添加指标细则 +@targetId 指标ID +@sunTargetId 栏目ID +@qualEvalCont 提交的参数 +@departmentAry 接受考核部门 +*/ +func addDetaInfo(targetId, sunTargetId int64, qualEvalCont QualEvalSunList, departmentAry []string) (err error) { + + var minScoreInt int64 = 0 + var maxScoreInt int64 = 0 + scoreAry := strings.Split(qualEvalCont.ReferenceScore, "-") + scoreLen := len(scoreAry) + if scoreLen > 0 { + if scoreLen == 1 { + maxScore, _ := strconv.ParseFloat(scoreAry[0], 64) + maxScoreInt, _ = strconv.ParseInt(strconv.FormatFloat(maxScore*100, 'f', -1, 64), 10, 64) + minScoreInt = 0 + } else { + minScore, _ := strconv.ParseFloat(scoreAry[0], 64) + maxScore, _ := strconv.ParseFloat(scoreAry[scoreLen-1], 64) + minScoreInt, _ = strconv.ParseInt(strconv.FormatFloat(minScore*100, 'f', -1, 64), 10, 64) + maxScoreInt, _ = strconv.ParseInt(strconv.FormatFloat(maxScore*100, 'f', -1, 64), 10, 64) + } + } + var targetCont modelskpi.EvaluationTarget + targetCont.GetCont(map[string]interface{}{"et_id": targetId}, "et_unit", "et_cycle") + //单位 + unitName := qualEvalCont.Unit + if unitName == "" { + unitName = targetCont.Uniteing + } + //计分属性 + addOrReduce := qualEvalCont.AddOrReduce + if qualEvalCont.AddOrReduce == 0 { + addOrReduce = 1 + } + //统计周期 + cyclesInt := qualEvalCont.Cycles + if cyclesInt == 0 { + cyclesInt = 4 + } + cycleAttresInt := qualEvalCont.CycleAttres + if cycleAttresInt == 0 { + cycleAttresInt = 1 + } + //接受考核部门 + if len(departmentAry) < 1 { + //获取指标所有关联部门 + var aboutTarDepList []int64 + aboutTDErr := overall.CONSTANT_DB_KPI.Model(&modelskpi.TargetDepartment{}).Distinct("`department_id`").Where("`state` = 1 AND `level` = 1 AND `target_id` = ?", targetId).Find(&aboutTarDepList).Error + if aboutTDErr == nil { + for _, atdv := range aboutTarDepList { + departmentAry = append(departmentAry, strconv.FormatInt(atdv, 10)) + } + } + + } + operatorList := qualEvalCont.Operator + //提报人 + if len(operatorList) < 1 { + //获取指标所有关联部门 + var aboutTarReportList []int64 + aboutTDErr := overall.CONSTANT_DB_KPI.Model(&modelskpi.TargetReport{}).Distinct("`man_key`").Where("`state` = 1 AND `type` = 1 AND `target_id` = ?", targetId).Find(&aboutTarReportList).Error + if aboutTDErr == nil { + for _, atrv := range aboutTarReportList { + operatorList = append(operatorList, strconv.FormatInt(atrv, 10)) + } + } + + } + var detaildeTarInfo modelskpi.DetailedTarget + detaildeTarInfo.Title = qualEvalCont.Title //指标细则"` + detaildeTarInfo.Content = qualEvalCont.Content //指标说明"` + detaildeTarInfo.ParentId = targetId //归属指标栏目"` + detaildeTarInfo.ParentIdSun = sunTargetId //归属指标子栏目"` + detaildeTarInfo.State = 1 //状态(1:启用;2:禁用;3:删除)"` + detaildeTarInfo.AddTime = time.Now().Unix() //制定时间"` + detaildeTarInfo.MinScore = minScoreInt //最小分*100保存"` + detaildeTarInfo.MaxScore = maxScoreInt //最大分*100保存"` + detaildeTarInfo.Company = unitName //单位"` + detaildeTarInfo.AddReduce = addOrReduce //1:减少;2:增加;3:无属性,现场确认加或减"` + detaildeTarInfo.CensorType = strings.Join(qualEvalCont.CensorType, ",") //检查方式"` + detaildeTarInfo.CensorCont = qualEvalCont.CensorCont //检查依据"` + detaildeTarInfo.CensorRate = qualEvalCont.CensorRate //检查频次"` + detaildeTarInfo.Cycles = cyclesInt //1:班;2:天;3:周;4:月;5:季度;6:年"` + detaildeTarInfo.CycleAttres = cycleAttresInt //辅助计数"` + detaildeTarInfo.Paretment = strings.Join(departmentAry, ",") //接受考核的部门"` + detaildeTarInfo.Reportary = strings.Join(operatorList, ",") //提报人"` + err = overall.CONSTANT_DB_KPI.Create(&detaildeTarInfo).Error + if err == nil { + syncSeting.Add(1) + go handleDetarildTargetDepart(targetId, sunTargetId, detaildeTarInfo.Id, departmentAry, 1) + syncSeting.Add(1) + go handleDetarildTargetRepart(targetId, sunTargetId, detaildeTarInfo.Id, operatorList, 1) + syncSeting.Wait() + } + return nil +} + +/* +编辑已经存在的指标细则 +@targetId 指标ID +@sunTargetId 栏目ID +@qualEvalCont 提交的参数 +@detailInfof 查询到的参数 +@departmentAry 接受考核部门 +*/ +func editDetaAdd(targetId, sunTargetId int64, qualEvalCont QualEvalSunList, detailInfof modelskpi.DetailedTarget, departmentAry []string) (err error) { + saveData := publicmethod.MapOut[string]() + + if targetId != detailInfof.ParentId { + saveData["dt_parentid"] = targetId + } + if sunTargetId != detailInfof.ParentIdSun { + saveData["dt_parentid_sun"] = sunTargetId + } + + if qualEvalCont.Title != "" && qualEvalCont.Title != detailInfof.Title { + saveData["dt_title"] = qualEvalCont.Title + } + if qualEvalCont.Content != "" && qualEvalCont.Content != detailInfof.Content { + saveData["dt_content"] = qualEvalCont.Content + } + if qualEvalCont.Unit != "" && qualEvalCont.Unit != detailInfof.Company { + saveData["dt_company"] = qualEvalCont.Unit + } + if qualEvalCont.Cycles != 0 && qualEvalCont.Cycles != detailInfof.Cycles { + saveData["dt_cycle"] = qualEvalCont.Cycles + } + if qualEvalCont.CycleAttres != 0 && qualEvalCont.CycleAttres != detailInfof.CycleAttres { + saveData["dt_cycleattr"] = qualEvalCont.CycleAttres + } + if qualEvalCont.AddOrReduce != 0 && qualEvalCont.AddOrReduce != detailInfof.AddReduce { + saveData["dt_add_reduce"] = qualEvalCont.AddOrReduce + } + censStr := strings.Join(qualEvalCont.CensorType, ",") + if len(qualEvalCont.CensorType) > 0 { + if censStr != detailInfof.CensorType { + saveData["dt_censor_type"] = censStr + } + } + if qualEvalCont.CensorCont != "" && qualEvalCont.CensorCont != detailInfof.CensorCont { + saveData["dt_censor_cont"] = qualEvalCont.CensorCont + } + if qualEvalCont.CensorRate != 0 && qualEvalCont.CensorRate != detailInfof.CensorRate { + saveData["dt_censor_rate"] = qualEvalCont.CensorRate + } + + var minScoreInt int64 = 0 + var maxScoreInt int64 = 0 + scoreAry := strings.Split(qualEvalCont.ReferenceScore, "-") + scoreLen := len(scoreAry) + if scoreLen > 0 { + if scoreLen == 1 { + maxScore, _ := strconv.ParseFloat(scoreAry[0], 64) + maxScoreInt, _ = strconv.ParseInt(strconv.FormatFloat(maxScore*100, 'f', -1, 64), 10, 64) + minScoreInt = 0 + } else { + minScore, _ := strconv.ParseFloat(scoreAry[0], 64) + maxScore, _ := strconv.ParseFloat(scoreAry[scoreLen-1], 64) + minScoreInt, _ = strconv.ParseInt(strconv.FormatFloat(minScore*100, 'f', -1, 64), 10, 64) + maxScoreInt, _ = strconv.ParseInt(strconv.FormatFloat(maxScore*100, 'f', -1, 64), 10, 64) + } + } + if minScoreInt != detailInfof.MinScore { + saveData["dt_min_score"] = minScoreInt + } + if maxScoreInt != detailInfof.MaxScore { + saveData["dt_max_score"] = maxScoreInt + } + departStr := strings.Join(departmentAry, ",") + if departStr != detailInfof.Paretment { + saveData["dt_paretment"] = departStr + } + reportStr := strings.Join(qualEvalCont.Operator, ",") + if reportStr != detailInfof.Reportary { + saveData["reportary"] = reportStr + } + if len(saveData) > 0 { + saveData["dt_time"] = time.Now().Unix() + var editCont modelskpi.DetailedTarget + err = editCont.EiteCont(map[string]interface{}{"`dt_id`": detailInfof.Id}, saveData) + } + syncSeting.Add(1) + go handleDetarildTargetDepart(targetId, sunTargetId, detailInfof.Id, departmentAry, 1) + syncSeting.Add(1) + go handleDetarildTargetRepart(targetId, sunTargetId, detailInfof.Id, qualEvalCont.Operator, 1) + syncSeting.Wait() + return nil +} + +/* +处理指标细则关联部门 +@targetId 指标ID +@targetSunId 栏目ID +@bylawsId 指标细则 +@department 接受考核部门 +@class 级别(1:部门级;2:岗位级) +*/ +func handleDetarildTargetDepart(targetId, targetSunId, bylawsId int64, department []string, class int) { + defer syncSeting.Done() + //将不属于该指标细则的部门至禁用 + otherSaveData := publicmethod.MapOut[string]() + otherSaveData["`state`"] = 2 + otherSaveData["`time`"] = time.Now().Unix() + overall.CONSTANT_DB_KPI.Model(&modelskpi.TargetDepartment{}).Where("`level` = ? AND `target_id` = ? AND `target_sun_id` = ? AND `target_bylaws` = ?", class, targetId, targetSunId, bylawsId).Not(map[string]interface{}{"department_id": department}).Updates(&otherSaveData) + for _, v := range department { + var tarDepartCont modelskpi.TargetDepartment + saveErr := tarDepartCont.GetCont(map[string]interface{}{"`level`": class, "`target_id`": targetId, "`target_sun_id`": targetSunId, "`target_bylaws`": bylawsId, "`department_id`": v}, "`id`", "`state`") + if saveErr == nil { + if tarDepartCont.State != 1 { + tarDepartCont.EiteCont(map[string]interface{}{"`id`": tarDepartCont.Id}, map[string]interface{}{"`state`": 1, "`time`": time.Now().Unix()}) + } + } else { + xiZe := 3 + if targetId != 0 && targetSunId != 0 && bylawsId == 0 { + xiZe = 2 + } else if targetId != 0 && targetSunId == 0 && bylawsId == 0 { + xiZe = 1 + } + + tarDepartCont.TargetId = targetId //指标ID"` + tarDepartCont.TargetSunId = targetSunId //子目标"` + tarDepartCont.TargetBylaws = bylawsId //指标细则"` + tarDepartCont.Type = xiZe //类型(1:指标;2:子目标;3:细则)"` + departId, _ := strconv.ParseInt(v, 10, 64) + tarDepartCont.DepartmentId = departId //部门ID"` + tarDepartCont.PostId = 0 //岗位ID"` + tarDepartCont.State = 1 //状态(1:启用;2:禁用;3:删除)"` + tarDepartCont.Time = time.Now().Unix() //写入时间"` + tarDepartCont.Class = 1 //1:定性考核;2:定量考核"` + tarDepartCont.Level = class //级别(1:部门级;2:岗位级)"` + overall.CONSTANT_DB_KPI.Create(&tarDepartCont) + } + } +} + +/* +处理指标细则关联考核提交人 +@targetId 指标ID +@targetSunId 栏目ID +@bylawsId 指标细则 +@repart 考核提交人 +@class 级别(1:部门级;2:岗位级) +*/ +func handleDetarildTargetRepart(targetId, targetSunId, bylawsId int64, repart []string, class int) { + defer syncSeting.Done() + //将不属于该指标细则的部门至禁用 + otherSaveData := publicmethod.MapOut[string]() + otherSaveData["`state`"] = 2 + otherSaveData["`time`"] = time.Now().Unix() + overall.CONSTANT_DB_KPI.Model(&modelskpi.TargetReport{}).Where("`type` = ? AND `target_id` = ? AND `target_sun_id` = ? AND `target_bylaws` = ?", class, targetId, targetSunId, bylawsId).Not(map[string]interface{}{"man_key": repart}).Updates(&otherSaveData) + for _, v := range repart { + //获取评价人部门 + var manCont modelshr.PersonArchives + manCont.GetCont(map[string]interface{}{"`key`": v}, "`maindeparment`") + + var tarReportCont modelskpi.TargetReport + saveErr := tarReportCont.GetCont(map[string]interface{}{"`type`": class, "`target_id`": targetId, "`target_sun_id`": targetSunId, "`target_bylaws`": bylawsId, "`man_key`": v}, "`id`", "`state`") + if saveErr == nil { + if tarReportCont.State != 1 { + + tarReportCont.EiteCont(map[string]interface{}{"`id`": tarReportCont.Id}, map[string]interface{}{"`state`": 1, "`man_department`": manCont.MainDeparment, "`time`": time.Now().Unix()}) + } + } else { + tarReportCont.TargetId = targetId //指标ID"` + tarReportCont.TargetSunId = targetSunId //子目标"` + tarReportCont.TargetBylaws = bylawsId //指标细则"` + tarReportCont.DepartmentId = 0 //部门ID"` + tarReportCont.PostId = 0 //岗位ID"` + tarReportCont.Type = class //类型(1:公司级;2:部门级)"` + tarReportCont.State = 1 //状态(1:启用;2:禁用;3:删除)"` + reportId, _ := strconv.ParseInt(v, 10, 64) + tarReportCont.ReportPerson = reportId //上报人"` + tarReportCont.ManDepartment = manCont.MainDeparment //提报人所在部门"` + tarReportCont.Time = time.Now().Unix() //写入时间"` + tarReportCont.Class = 1 //1:定性考核;2:定量考核"` + overall.CONSTANT_DB_KPI.Create(&tarReportCont) + } + } +} + +// 获取定性考核指标列表内容 +func (a *ApiMethod) GetDepartmentTragetContList(c *gin.Context) { + var receivedValue getDepartTargetContType + c.ShouldBindJSON(&receivedValue) + if receivedValue.TargetId == "" { + publicmethod.Result(1, receivedValue, c, "未知指标ID!") + return + } + if receivedValue.Page == 0 { + receivedValue.Page = 1 + } + if receivedValue.PageSize == 0 { + receivedValue.PageSize = 20 + } + var detaildeList []modelskpi.DetailedTarget + var detCont modelskpi.DetailedTarget + gormDb := overall.CONSTANT_DB_KPI.Table(fmt.Sprintf("%s dt", detCont.TableName())).Select("dt.*").Where("dt.dt_state = 1 AND dt.dt_parentid = ?", receivedValue.TargetId) + //接受考核的部门 + if receivedValue.DepartmentId != "" { + gormDb = gormDb.Joins("LEFT JOIN `target_department` `td` on td.target_id = dt.dt_parentid AND td.target_sun_id = dt.dt_parentid_sun AND td.target_bylaws = dt.dt_id").Where("td.department_id = ?", receivedValue.DepartmentId) + } + //提报人 + if receivedValue.ReportPerson != "" { + gormDb = gormDb.Joins("LEFT JOIN `target_report` `tr` on tr.target_id = dt.dt_parentid AND tr.target_sun_id = dt.dt_parentid_sun AND tr.target_bylaws = dt.dt_id").Where("tr.man_key = ?", receivedValue.ReportPerson) + } + if receivedValue.Cycle != 0 { + gormDb = gormDb.Where("dt.dt_cycle = ?", receivedValue.Cycle) + } + if receivedValue.TargetSunId != "" { + gormDb = gormDb.Where("dt.dt_parentid_sun = ?", receivedValue.TargetSunId) + } + + err := gormDb.Order("dt.dt_parentid desc, dt.dt_parentid_sun").Find(&detaildeList).Error + if err != nil || len(detaildeList) < 1 { + publicmethod.Result(107, receivedValue, c) + return + } + var total int64 + totalErr := gormDb.Select("dt_id").Count(&total).Error + if totalErr != nil { + total = 0 + } + var outData []printDepartTargetCont + for _, v := range detaildeList { + var outCont printDepartTargetCont + outCont.Id = v.Id + outCont.Title = v.Title //指标细则"` + outCont.Content = v.Content //指标说明"` + outCont.ParentId = v.ParentId //归属指标栏目"` + outCont.ParentIdSun = v.ParentIdSun //归属指标子栏目"` + outCont.State = v.State //状态(1:启用;2:禁用;3:删除)"` + outCont.AddTime = v.AddTime //制定时间"` + outCont.MinScore = v.MinScore //最小分*100保存"` + outCont.MaxScore = v.MaxScore //100保存"` + outCont.Company = v.Company //单位"` + outCont.AddReduce = v.AddReduce //1:减少;2:增加;3:无属性,现场确认加或减"` + outCont.CensorType = v.CensorType //检查方式"` + outCont.CensorCont = v.CensorCont //检查依据"` + outCont.CensorRate = v.CensorRate //检查频次"` + outCont.Cycles = v.Cycles //1:班;2:天;3:周;4:月;5:季度;6:年"` + outCont.CycleAttres = v.CycleAttres //辅助计数"` + outCont.Paretment = v.Paretment //接受考核的部门"` + outCont.Reportary = v.Reportary //提报人"` + + standardStr := "" + if v.MinScore != 0 { + standardStr = fmt.Sprintf("%v-%v", publicmethod.DecimalEs(float64(v.MinScore)/100, 2), publicmethod.DecimalEs(float64(v.MaxScore)/100, 2)) + } else { + standardStr = fmt.Sprintf("%v", publicmethod.DecimalEs(float64(v.MaxScore)/100, 2)) + } + outCont.Standard = standardStr + outCont.CensorTypeList = strings.Split(v.CensorType, ",") + + outData = append(outData, outCont) + } + publicmethod.ResultList(0, receivedValue.Page, receivedValue.PageSize, total, int64(len(outData)), outData, c) +} + +// 根据指标栏目新增指标细则 +func (a *ApiMethod) BasisSonTargetAddDetailed(c *gin.Context) { + var receivedValue basisSonTargetAddDet + c.ShouldBindJSON(&receivedValue) + // var minScoreInt int64 = 0 //最低分 + // var maxScoreInt int64 = 0 //最高分 + if receivedValue.Id == "" { + publicmethod.Result(1, receivedValue, c, "未知指标子栏目ID!") + return + } + var sonTargetFatherInfo modelskpi.SonTargetFather + err := sonTargetFatherInfo.GetCont(map[string]interface{}{"q_id": receivedValue.Id}) + if err != nil { + publicmethod.Result(1, err, c, "该子栏目不存在!") + return + } + if receivedValue.Title == "" { + publicmethod.Result(1, receivedValue, c, "请输入考核细则名称!") + return + } + //判断指标细则是否符合规则 + if receivedValue.ReferenceScore == "" { + publicmethod.Result(1, receivedValue, c, "请输入考核细则相关考核标准!") + return + } else { + scoreAry := strings.Split(receivedValue.ReferenceScore, "-") + scoreLen := len(scoreAry) + if scoreLen < 1 { + publicmethod.Result(1, receivedValue, c, "考核标准不符合要求!请仔细填写!") + return + } + if scoreLen == 1 { + maxScore, maxErr := strconv.ParseFloat(scoreAry[0], 64) + if maxErr != nil { + publicmethod.Result(1, maxErr, c, "考核标准不符合要求!请仔细填写!") + return + } + var maxIntErr error + _, maxIntErr = strconv.ParseInt(strconv.FormatFloat(maxScore*100, 'f', -1, 64), 10, 64) + if maxIntErr != nil { + publicmethod.Result(1, maxIntErr, c, "考核标准不符合要求!请仔细填写!") + return + } + } else { + minScore, minErr := strconv.ParseFloat(scoreAry[0], 64) + if minErr != nil { + publicmethod.Result(1, minErr, c, "考核标准不符合要求!请仔细填写!") + return + } + maxScore, maxErr := strconv.ParseFloat(scoreAry[scoreLen-1], 64) + if maxErr != nil { + publicmethod.Result(1, maxErr, c, "考核标准不符合要求!请仔细填写!") + return + } + var minIntErr error + _, minIntErr = strconv.ParseInt(strconv.FormatFloat(minScore*100, 'f', -1, 64), 10, 64) + if minIntErr != nil { + publicmethod.Result(1, minIntErr, c, "考核标准不符合要求!请仔细填写!") + return + } + var maxIntErr error + _, maxIntErr = strconv.ParseInt(strconv.FormatFloat(maxScore*100, 'f', -1, 64), 10, 64) + if maxIntErr != nil { + publicmethod.Result(1, maxIntErr, c, "考核标准不符合要求!请仔细填写!") + return + } + } + } + //获取子栏目接受考核部门 + var sonAboutDeparment []string + + var aboutTarDepList []int64 + aboutTDErr := overall.CONSTANT_DB_KPI.Model(&modelskpi.TargetDepartment{}).Distinct("`department_id`").Where("`state` = 1 AND `level` = 1 AND `target_id` = ? AND `target_sun_id` = ?", sonTargetFatherInfo.ParentId, sonTargetFatherInfo.Id).Find(&aboutTarDepList).Error + if aboutTDErr == nil { + for _, atdv := range aboutTarDepList { + sonAboutDeparment = append(sonAboutDeparment, strconv.FormatInt(atdv, 10)) + } + } + + var qualEvalCont QualEvalSunList + qualEvalCont.Title = receivedValue.Title //考核内容 + qualEvalCont.Content = receivedValue.Content //备注说明 + qualEvalCont.Unit = receivedValue.Unit //单位 + qualEvalCont.ReferenceScore = receivedValue.ReferenceScore //考核标准 + qualEvalCont.Cycles = receivedValue.Cycles //1:班;2:天;3:周;4:月;5:季度;6:年 + qualEvalCont.CycleAttres = receivedValue.CycleAttres //辅助计数 + qualEvalCont.Operator = receivedValue.Operator //考核执行人 + qualEvalCont.AddOrReduce = receivedValue.AddOrReduce //操作类型 1:减少;2:增加;3:用户自定义 + qualEvalCont.CensorType = receivedValue.CensorType //检查方式(1:现场检查;2:资料检查;3:事件触发) + qualEvalCont.CensorCont = receivedValue.CensorCont //客观证据 + qualEvalCont.CensorRate = receivedValue.CensorRate //检查频次 + //判断指标细则是否已经存在 + var judgeDetaCont modelskpi.DetailedTarget + judgeDetaErr := judgeDetaCont.GetCont(map[string]interface{}{"`dt_parentid`": sonTargetFatherInfo.ParentId, "`dt_parentid_sun`": sonTargetFatherInfo.Id, "`dt_title`": receivedValue.Title}) + if judgeDetaErr == nil { + judgeDetaErr = editDetaAdd(sonTargetFatherInfo.ParentId, sonTargetFatherInfo.Id, qualEvalCont, judgeDetaCont, sonAboutDeparment) + } else { + judgeDetaErr = addDetaInfo(sonTargetFatherInfo.ParentId, sonTargetFatherInfo.Id, qualEvalCont, sonAboutDeparment) + } + if judgeDetaErr != nil { + publicmethod.Result(106, judgeDetaErr, c) + return + } + publicmethod.Result(0, judgeDetaErr, c) +} + +// 根据指标和部门获取相关岗位 +func (a *ApiMethod) BasisTargetDearpetmentGetPost(c *gin.Context) { + var receivedValue bgdgp + c.ShouldBindJSON(&receivedValue) + if receivedValue.TargetId == "" { + publicmethod.Result(101, receivedValue, c) + return + } + if receivedValue.DepartmentId == "" { + publicmethod.Result(101, receivedValue, c) + return + } + if receivedValue.Level == 0 { + receivedValue.Level = 2 + } + var postId []int64 + gormDb := overall.CONSTANT_DB_KPI.Model(&modelskpi.TargetDepartment{}).Distinct("post_id").Where("`state` = 1 AND `level` = ? AND `target_id` = ? AND `department_id` = ?", receivedValue.Level, receivedValue.TargetId, receivedValue.DepartmentId) + if receivedValue.TargetSunId != "" { + gormDb = gormDb.Where("`target_sun_id` = ?", receivedValue.TargetSunId) + } + if receivedValue.TargetBylaws != "" { + gormDb = gormDb.Where("`target_bylaws` = ?", receivedValue.TargetBylaws) + } + err := gormDb.Find(&postId).Error + if err != nil || len(postId) < 1 { + publicmethod.Result(107, err, c) + return + } + var postList []modelshr.Position + hrErr := overall.CONSTANT_DB_HR.Model(&modelshr.Position{}).Select("`id`,`name`").Where("`id` IN ?", postId).Find(&postList).Error + if hrErr != nil || len(postList) < 1 { + publicmethod.Result(107, hrErr, c) + return + } + outdata := publicmethod.MapOut[string]() + outdata["postid"] = postId + outdata["postlist"] = postList + publicmethod.Result(0, outdata, c) +} + +// 获取部门指标岗位提交人 +func (a *ApiMethod) BasisTaegetDeparmentReport(c *gin.Context) { + var receivedValue btdgr + c.ShouldBindJSON(&receivedValue) + if receivedValue.TargetId == "" { + publicmethod.Result(101, receivedValue, c) + return + } + // if receivedValue.DepartmentId == "" { + // publicmethod.Result(101, receivedValue, c) + // return + // } + if receivedValue.Level == 0 { + receivedValue.Level = 2 + } + var userKey []int64 + gormDb := overall.CONSTANT_DB_KPI.Model(&modelskpi.TargetReport{}).Distinct("man_key").Where("`state` = 1 AND `type` = ? AND `target_id` = ?", receivedValue.Level, receivedValue.TargetId) + + if receivedValue.DepartmentId != "" { + gormDb = gormDb.Where("`department_id` = ?", receivedValue.DepartmentId) + } + + if receivedValue.TargetSunId != "" { + gormDb = gormDb.Where("`target_sun_id` = ?", receivedValue.TargetSunId) + } + if receivedValue.TargetBylaws != "" { + gormDb = gormDb.Where("`target_bylaws` = ?", receivedValue.TargetBylaws) + } + if receivedValue.PostId != "" { + gormDb = gormDb.Where("`post_id` = ?", receivedValue.PostId) + } + err := gormDb.Find(&userKey).Error + if err != nil || len(userKey) < 1 { + publicmethod.Result(107, err, c) + return + } + + var peopleList []modelshr.UserPostDuties + hrErr := overall.CONSTANT_DB_HR.Model(&modelshr.UserPostDuties{}).Where("`key` IN ?", userKey).Find(&peopleList).Error + if hrErr != nil || len(peopleList) < 1 { + publicmethod.Result(107, hrErr, c) + return + } + outdata := publicmethod.MapOut[string]() + outdata["postid"] = userKey + outdata["peoplelist"] = peopleList + publicmethod.Result(0, outdata, c) +} + +// 修改子栏目标题名称级考核关联部门及提报人 +func (a *ApiMethod) EditSonTargetDepartmentReport(c *gin.Context) { + var receivedValue editTarDepartReport + c.ShouldBindJSON(&receivedValue) + if receivedValue.TargetSunId == "" { + publicmethod.Result(101, receivedValue, c) + return + } + var sonTargetCont modelskpi.QualitativeTarget + err := sonTargetCont.GetCont(map[string]interface{}{"q_id": receivedValue.TargetSunId}) + if err != nil { + publicmethod.Result(107, receivedValue, c) + return + } + if receivedValue.Title != "" && receivedValue.Title != sonTargetCont.Title { + var judgeIsFalse modelskpi.QualitativeTarget + judgeErr := judgeIsFalse.GetCont(map[string]interface{}{"q_title": sonTargetCont.Id, "q_parent_id": sonTargetCont.ParentId}, "q_id") + if judgeErr == nil { + publicmethod.Result(103, receivedValue, c) + return + } + saveData := publicmethod.MapOut[string]() + saveData["q_title"] = receivedValue.Title + saveData["q_time"] = time.Now().Unix() + err = sonTargetCont.EiteCont(map[string]interface{}{"q_id": receivedValue.TargetSunId}, saveData) + } + if err != nil { + publicmethod.Result(106, receivedValue, c) + return + } + departmentAry := receivedValue.AcceptDepartmentId + operatorList := receivedValue.Operator + + if len(departmentAry) < 1 { + var sonDepartmentAbouttargetId []int64 + deparErr := overall.CONSTANT_DB_KPI.Model(&modelskpi.TargetDepartment{}).Distinct("department_id").Where("`state` = 1 AND `level` = 1 AND `target_id` = ? ", sonTargetCont.ParentId).Find(&sonDepartmentAbouttargetId).Error + if deparErr == nil && len(sonDepartmentAbouttargetId) > 0 { + for _, sdv := range sonDepartmentAbouttargetId { + departmentAry = append(departmentAry, strconv.FormatInt(sdv, 10)) + } + } + } + + if len(operatorList) < 1 { + var sonReportAbouttargetId []int64 + deparErr := overall.CONSTANT_DB_KPI.Model(&modelskpi.TargetReport{}).Distinct("man_key").Where("`state` = 1 AND `type` = 1 AND `target_id` = ? ", sonTargetCont.ParentId).Find(&sonReportAbouttargetId).Error + if deparErr == nil && len(sonReportAbouttargetId) > 0 { + for _, srv := range sonReportAbouttargetId { + operatorList = append(operatorList, strconv.FormatInt(srv, 10)) + } + } + } + + //获取该指标下所有细则 + var detaildId []int64 + err = overall.CONSTANT_DB_KPI.Model(&modelskpi.DetailedTarget{}).Select("dt_id").Where("`dt_state` = 1 AND `dt_parentid` = ? AND `dt_parentid_sun` = ?", sonTargetCont.ParentId, sonTargetCont.Id).Find(&detaildId).Error + if err == nil && len(detaildId) > 0 { + for _, v := range detaildId { + if len(departmentAry) > 0 { + syncSeting.Add(1) + go handleDetarildTargetDepart(sonTargetCont.ParentId, sonTargetCont.Id, v, departmentAry, 1) + } + if len(operatorList) > 0 { + syncSeting.Add(1) + go handleDetarildTargetRepart(sonTargetCont.ParentId, sonTargetCont.Id, v, operatorList, 1) + } + syncSeting.Wait() + } + } + //获取该子栏目所有的接受考核部门 + + saveData := publicmethod.MapOut[string]() + saveData["q_depart"] = strings.Join(departmentAry, ",") + saveData["q_time"] = time.Now().Unix() + err = sonTargetCont.EiteCont(map[string]interface{}{"q_id": receivedValue.TargetSunId}, saveData) + //修改指标的关联部门和关联人 + var targetAboutDepartnebt []int64 + overall.CONSTANT_DB_KPI.Model(&modelskpi.TargetDepartment{}).Distinct("department_id").Where("`state` = 1 AND `level` = 1 AND `target_id` = ? ", sonTargetCont.ParentId).Find(&targetAboutDepartnebt) + var targetAboutReport []int64 + overall.CONSTANT_DB_KPI.Model(&modelskpi.TargetReport{}).Distinct("man_key").Where("`state` = 1 AND `type` = 1 AND `target_id` = ? ", sonTargetCont.ParentId).Find(&targetAboutReport) + if len(targetAboutDepartnebt) > 0 || len(targetAboutReport) > 0 { + tarSaveData := publicmethod.MapOut[string]() + if len(targetAboutDepartnebt) > 0 { + var departStr []string + for _, dsv := range targetAboutDepartnebt { + departStr = append(departStr, strconv.FormatInt(dsv, 10)) + } + tarSaveData["et_relevant_departments"] = strings.Join(departStr, ",") + } + if len(targetAboutReport) > 0 { + var reportStr []string + for _, dsvr := range targetAboutReport { + reportStr = append(reportStr, strconv.FormatInt(dsvr, 10)) + } + tarSaveData["et_report"] = strings.Join(reportStr, ",") + } + if len(tarSaveData) > 0 { + tarSaveData["et_time"] = time.Now().Unix() + var evalTarCont modelskpi.EvaluationTarget + evalTarCont.EiteCont(map[string]interface{}{"`et_id`": sonTargetCont.ParentId}, tarSaveData) + } + } + publicmethod.Result(0, err, c) +} + +// 获取子栏目基础信息 +func (a *ApiMethod) GetSonTargetCont(c *gin.Context) { + var receivedValue publicmethod.PublicId + err := c.ShouldBindJSON(&receivedValue) + if err != nil { + publicmethod.Result(100, receivedValue, c) + return + } + if receivedValue.Id == "" { + publicmethod.Result(101, receivedValue, c) + return + } + where := publicmethod.MapOut[string]() + where["q_id"] = receivedValue.Id + var sonTargetCont modelskpi.QualitativeTarget + err = sonTargetCont.GetCont(where, "q_title", "q_parent_id") + if err != nil { + publicmethod.Result(107, receivedValue, c) + return + } + //获取关联部门 + var targetAboutDepartnebt []int64 + overall.CONSTANT_DB_KPI.Model(&modelskpi.TargetDepartment{}).Distinct("department_id").Where("`state` = 1 AND `level` = 1 AND `target_id` = ? AND `target_sun_id` = ?", sonTargetCont.ParentId, receivedValue.Id).Find(&targetAboutDepartnebt) + //获取关联提报人 + var targetAboutReport []int64 + overall.CONSTANT_DB_KPI.Model(&modelskpi.TargetReport{}).Distinct("man_key").Where("`state` = 1 AND `type` = 1 AND `target_id` = ? AND `target_sun_id` = ?", sonTargetCont.ParentId, receivedValue.Id).Find(&targetAboutReport) + //部门列表 + var departContList []modelshr.AdministrativeOrganization + overall.CONSTANT_DB_HR.Model(&modelshr.AdministrativeOrganization{}).Select("`id`,`name`").Where("`id` IN ?", targetAboutDepartnebt).Find(&departContList) + //人员列表 + var reportContList []modelshr.PersonArchives + overall.CONSTANT_DB_HR.Model(&modelshr.PersonArchives{}).Select("`key`,`name`").Where("`key` IN ?", targetAboutReport).Find(&reportContList) + + var departArt []outCont + for _, darv := range departContList { + var departContArt outCont + departContArt.Id = strconv.FormatInt(darv.Id, 10) + departContArt.Name = darv.Name + departArt = append(departArt, departContArt) + } + + var reportArt []outCont + for _, rclv := range reportContList { + var reportContArt outCont + reportContArt.Id = strconv.FormatInt(rclv.Key, 10) + reportContArt.Name = rclv.Name + reportArt = append(reportArt, reportContArt) + } + + outData := publicmethod.MapOut[string]() + outData["title"] = sonTargetCont.Title + outData["departmentid"] = targetAboutDepartnebt + outData["userkey"] = targetAboutReport + outData["departmentcont"] = departArt + outData["usercont"] = reportArt + publicmethod.Result(0, outData, c) +} + +// 删除子栏目 +func (a *ApiMethod) DelSonTarget(c *gin.Context) { + var receivedValue publicmethod.PublicId + err := c.ShouldBindJSON(&receivedValue) + if err != nil { + publicmethod.Result(100, receivedValue, c) + return + } + if receivedValue.Id == "" { + publicmethod.Result(101, receivedValue, c) + return + } + where := publicmethod.MapOut[string]() + where["q_id"] = receivedValue.Id + var sonTargetCont modelskpi.QualitativeTarget + err = sonTargetCont.GetCont(where, "q_id", "q_parent_id") + if err != nil { + publicmethod.Result(107, err, c) + return + } + //预留判断该指标是否在使用中 + + delTime := time.Now().Unix() + //软删除所有此子栏目下的指标细则 + syncSeting.Add(1) + go softDetaildeCont(sonTargetCont.ParentId, sonTargetCont.Id, delTime) + //软删除所有此子栏目相关的联部门 + syncSeting.Add(1) + go softDelTargetDepartment(sonTargetCont.ParentId, sonTargetCont.Id, delTime) + //软删除所有此子栏目相关联的提报人 + syncSeting.Add(1) + go softDelTargetReport(sonTargetCont.ParentId, sonTargetCont.Id, delTime) + //软删除此栏目 + var delTargetSon modelskpi.QualitativeTarget + err = delTargetSon.EiteCont(map[string]interface{}{"`q_id`": sonTargetCont.Id}, map[string]interface{}{"`q_state`": 3, "`q_time`": delTime}) + syncSeting.Wait() + if err != nil { + publicmethod.Result(106, err, c) + return + } + publicmethod.Result(0, err, c) +} + +// 软删除所有此子栏目下的指标细则 +func softDetaildeCont(targetId, sonTargetId, delTime int64) { + defer syncSeting.Done() + var detaildeCont modelskpi.DetailedTarget + detaildeCont.EiteCont(map[string]interface{}{"dt_parentid": targetId, "dt_parentid_sun": sonTargetId, "dt_state": 1}, map[string]interface{}{"dt_state": 3, "dt_time": delTime}) +} + +// 软删除所有此子栏目相关联的提报人 +func softDelTargetReport(targetId, sonTargetId, delTime int64) { + defer syncSeting.Done() + var delTargetReport modelskpi.TargetReport + delTargetReport.EiteCont(map[string]interface{}{"`target_id`": targetId, "`target_sun_id`": sonTargetId, "`state`": 1}, map[string]interface{}{"`state`": 3, "`time`": delTime}) +} + +// 软删除所有此子栏目相关的联部门 +func softDelTargetDepartment(targetId, sonTargetId, delTime int64) { + defer syncSeting.Done() + var delTargetDepartment modelskpi.TargetDepartment + delTargetDepartment.EiteCont(map[string]interface{}{"target_id": targetId, "target_sun_id": sonTargetId, "`state`": 1}, map[string]interface{}{"`state`": 3, "`time`": delTime}) +} + +// 获取单一指标细则内容 +func (a *ApiMethod) GetOneDetailedTarget(c *gin.Context) { + var receivedValue publicmethod.PublicId + err := c.ShouldBindJSON(&receivedValue) + if err != nil { + publicmethod.Result(100, receivedValue, c) + return + } + if receivedValue.Id == "" { + publicmethod.Result(101, receivedValue, c) + return + } + where := publicmethod.MapOut[string]() + where["dt_id"] = receivedValue.Id + var detailedTargetCont modelskpi.DetailedTarget + err = detailedTargetCont.GetCont(where) + if err != nil { + publicmethod.Result(107, err, c) + return + } +} diff --git a/.history/api/version1/departmentseting/departmentpc/qualitativekpi_20220819105657.go b/.history/api/version1/departmentseting/departmentpc/qualitativekpi_20220819105657.go new file mode 100644 index 0000000..276dac0 --- /dev/null +++ b/.history/api/version1/departmentseting/departmentpc/qualitativekpi_20220819105657.go @@ -0,0 +1,1202 @@ +package departmentpc + +import ( + "encoding/json" + "fmt" + "key_performance_indicators/models/modelshr" + "key_performance_indicators/models/modelskpi" + "key_performance_indicators/overall" + "key_performance_indicators/overall/publicmethod" + "strconv" + "strings" + "time" + + "github.com/gin-gonic/gin" +) + +// 部门指标列表 +func (a *ApiMethod) DepartmentTargetList(c *gin.Context) { + var receivedValue departListQuery + c.ShouldBindJSON(&receivedValue) + if receivedValue.Page == 0 { + receivedValue.Page = 1 + } + if receivedValue.PageSize == 0 { + receivedValue.PageSize = 20 + } + gormDb := overall.CONSTANT_DB_KPI.Model(&modelskpi.EvaluationTarget{}) + if receivedValue.State != 0 { //状态(1:启用;2:禁用;3:删除) + gormDb = gormDb.Where("et_state = ?", receivedValue.State) + } else { + gormDb = gormDb.Where("et_state BETWEEN ? AND ?", 1, 2) + } + if receivedValue.Title != "" { //指标名称 + gormDb = gormDb.Where("et_state LIKE ?", "%"+receivedValue.Title+"%") + } + if receivedValue.Class != 0 { //1:定性考核;2:定量考核 + gormDb = gormDb.Where("et_type = ?", receivedValue.Class) + } + if receivedValue.DepartmentId != "" { //部门ID + gormDb = gormDb.Where("FIND_IN_SET(?,`departments_post`)", receivedValue.DepartmentId) + } + if receivedValue.DimensionId != "" { //维度ID + gormDb = gormDb.Where("et_dimension = ?", receivedValue.DimensionId) + } + if receivedValue.ReportPerson != "" { //上报人 + gormDb = gormDb.Where("FIND_IN_SET(?,`et_report`)", receivedValue.ReportPerson) + } + if receivedValue.ScoringMethod != 0 { //计分方式(1:自动;2:手动) + gormDb = gormDb.Where("et_scoring_method = ?", receivedValue.ScoringMethod) + } + if receivedValue.Cycle != 0 { //1:班;2:天;3:周;4:月;5:季度;6:年 + gormDb = gormDb.Where("et_cycle = ?", receivedValue.Cycle) + } + + var total int64 + totalErr := gormDb.Count(&total).Error + if totalErr != nil { + total = 0 + } + var departmentTargetList []modelskpi.EvaluationTarget + gormDb = publicmethod.PageTurningSettings(gormDb, receivedValue.Page, receivedValue.PageSize) + err := gormDb.Order("`et_id` DESC").Find(&departmentTargetList).Error + if err != nil { + publicmethod.Result(105, err, c) + return + } + var targetList []printDepartmentTarget + for _, v := range departmentTargetList { + var targetCont printDepartmentTarget + targetCont.Id = v.Id + targetCont.Title = v.Title //指标名称"` + targetCont.Type = v.Type //1:定性考核;2:定量考核"` + targetCont.State = v.State //状态(1:启用;2:禁用;3:删除)"` + targetCont.AddTime = v.AddTime //制定时间"` + targetCont.Share = v.Share //1:共用;2:私用"` + targetCont.RelevantDepartments = v.RelevantDepartments //相关部门"` + targetCont.Dimension = v.Dimension //维度"` + targetCont.Key = v.Key //UUID"` + targetCont.Report = v.Report //上报人"` + targetCont.Uniteing = v.Uniteing //计量单位"` + targetCont.Cycles = v.Cycles //1:班;2:天;3:周;4:月;5:季度;6:年"` + targetCont.CycleAttres = v.CycleAttres //辅助计数"` + targetCont.VisibleRange = v.VisibleRange //可见范围"` + targetCont.VisibleRangeGroup = v.VisibleRangeGroup //可见范围(集团)"` + targetCont.ScoringMethod = v.ScoringMethod //计分方式(1:自动;2:手动)"` + var dutyClassCont modelskpi.DutyClass + dutyClassCont.GetCont(map[string]interface{}{"`id`": v.Dimension}, "`title`") + targetCont.DimensionTitle = dutyClassCont.Title + targetList = append(targetList, targetCont) + } + publicmethod.ResultList(0, receivedValue.Page, receivedValue.PageSize, total, int64(len(targetList)), targetList, c) +} + +// 实验查询 +func (a *ApiMethod) Shiyan(c *gin.Context) { + // var receivedValue departListQuery + // c.ShouldBindJSON(&receivedValue) + + // if receivedValue.DepartmentId == "" { + // receivedValue.DepartmentId = "316" + // } + // if receivedValue.DimensionId == "" { + // receivedValue.DimensionId = "1" + // } + + // var evalCont []modelskpi.EvaluationTarget + + // // gormDb := overall.CONSTANT_DB_KPI.Model(&modelskpi.EvaluationTarget{}).Select("evaluationtarget.*,(?) AS tdm", overall.CONSTANT_DB_KPI.Model(&modelskpi.TargetDepartment{}).Select("id").Where("department_id = ? AND target_id = et_id ", receivedValue.DepartmentId).Find(&modelskpi.TargetDepartment{})).Having("tdm IS NOT NULL").Find(&evalCont).Error + // // fmt.Printf("gormDb----->%v----->%v\n", gormDb, evalCont) + // err := overall.CONSTANT_DB_KPI.Raw("SELECT e.*,(SELECT id FROM target_department td WHERE td.department_id = ? AND td.post_id = ? AND td.target_id = e.et_id) as tdm FROM evaluationtarget e HAVING tdm IS NOT NULL", receivedValue.DepartmentId, receivedValue.DimensionId).Scan(&evalCont).Error + // fmt.Printf("gormDb----->%v----->%v\n", err, evalCont) + //校正部门级考核 + var dimeTargetList []modelskpi.DetailedTarget + err := overall.CONSTANT_DB_KPI.Where("dt_state = 1").Find(&dimeTargetList).Error + if err != nil || len(dimeTargetList) < 1 { + publicmethod.Result(107, err, c) + return + } + // fmt.Printf("总数---->%v\n", len(dimeTargetList)) + // var xieChengChuli []modelskpi.DetailedTarget + // for i, v := range dimeTargetList { + // if (i+1)%100 == 0 { + // xieChengChuli = append(xieChengChuli, v) + // fmt.Printf("循环--%v-->%v\n", i, len(xieChengChuli)) + // xieChengChuli = []modelskpi.DetailedTarget{} + // } else { + // xieChengChuli = append(xieChengChuli, v) + // } + // } + + for _, v := range dimeTargetList { + xiaoZhengBuMen(v) + } + + fmt.Printf("jieshu---->%v\n", len(dimeTargetList)) +} + +// 校正部门定性考核关联关系 +func xiaoZhengBuMen(detaTar modelskpi.DetailedTarget) { + if detaTar.Paretment != "" { + bumenAry := strings.Split(detaTar.Paretment, ",") + if len(bumenAry) > 0 { + for _, v := range bumenAry { + zbLmXzBm(detaTar.ParentId, detaTar.ParentIdSun, detaTar.Id, 3, v) + } + } + + } + + var assTar modelskpi.Assesstarget + assErr := overall.CONSTANT_DB_KPI.Where("`targetid` = ? AND `suntargetid` = ?", detaTar.ParentId, detaTar.ParentIdSun).First(&assTar).Error + if assErr == nil { + var reportAry []zhuanHuanMan + jsonErr := json.Unmarshal([]byte(assTar.Content), &reportAry) + if jsonErr == nil { + for _, mv := range reportAry { + if mv.Id == detaTar.Id { + if len(mv.Operator) > 0 { + for _, ov := range mv.Operator { + juadgeReport(detaTar.ParentId, detaTar.ParentIdSun, detaTar.Id, 1, ov) + } + } + } + } + } + } +} + +// 判断该指标细则是否已经存在上报人 +/* +@tarId 指标 +@sunId 栏目 +@lawsId 细则 +@class 类型(1:指标;2:子目标;3:细则) +@manKey 上报人 +*/ +func juadgeReport(tarId, sunId, lawsId int64, class int, manKey string) { + if class == 0 { + class = 1 + } + var trCont modelskpi.TargetReport + err := trCont.GetCont(map[string]interface{}{`type`: class, `target_id`: tarId, `target_sun_id`: sunId, `target_bylaws`: lawsId, `man_key`: manKey}) + if err == nil { + if trCont.State != 1 { + saveErr := trCont.EiteCont(map[string]interface{}{"`id`": trCont.Id}, map[string]interface{}{"`state`": 1, "`time`": time.Now().Unix()}) + fmt.Printf("编辑---->tarId----%v---->sunId----%v---->lawsId----%v---->class----%v---->bumenId----%v------>saveErr----->%v\n", tarId, sunId, lawsId, class, manKey, saveErr) + } + } else { + trCont.TargetId = tarId //指标ID"` + trCont.TargetSunId = sunId //子目标"` + trCont.TargetBylaws = lawsId //指标细则"` + trCont.DepartmentId = 0 //部门ID"` + trCont.PostId = 0 //岗位ID"` + trCont.Type = class //类型(1:公司级;2:部门级)"` + trCont.State = 1 //状态(1:启用;2:禁用;3:删除)"` + manKeyInt, _ := strconv.ParseInt(manKey, 10, 64) + trCont.ReportPerson = manKeyInt //上报人"` + trCont.Time = time.Now().Unix() + trCont.Class = 1 + addErr := overall.CONSTANT_DB_KPI.Create(&trCont).Error + fmt.Printf("编辑---->tarId----%v---->sunId----%v---->lawsId----%v---->class----%v---->bumenId----%v------>saveErr----->%v\n", tarId, sunId, lawsId, class, manKey, addErr) + } +} + +//编辑指标、栏目、细则关联部门 +/* +@tarId 指标 +@sunId 栏目 +@lawsId 细则 +@class 类型(1:指标;2:子目标;3:细则) +@bumenId 部门 +*/ +func zbLmXzBm(tarId, sunId, lawsId int64, class int, bumenId string) { + var tarDepCont modelskpi.TargetDepartment + where := publicmethod.MapOut[string]() + where["`target_id`"] = tarId + where["`target_sun_id`"] = sunId + where["`target_bylaws`"] = lawsId + where["`department_id`"] = bumenId + err := tarDepCont.GetCont(where, "`id`", "`state`") + if err == nil { + //存在,判断状态 + if tarDepCont.State != 1 { //不是启用状态,改为启用 + eidtWher := publicmethod.MapOut[string]() + eidtWher["``id``"] = tarDepCont.Id + saveErr := tarDepCont.EiteCont(eidtWher, map[string]interface{}{"`state`": 1, "`time`": time.Now().Unix()}) + + fmt.Printf("编辑---->tarId----%v---->sunId----%v---->lawsId----%v---->class----%v---->bumenId----%v------>saveErr----->%v\n", tarId, sunId, lawsId, class, bumenId, saveErr) + } + } else { + tarDepCont.TargetId = tarId //指标ID"` + tarDepCont.TargetSunId = sunId //子目标"` + tarDepCont.TargetBylaws = lawsId //指标细则"` + tarDepCont.Type = class //类型(1:指标;2:子目标;3:细则)"` + bumenIdInt, _ := strconv.ParseInt(bumenId, 10, 64) + tarDepCont.DepartmentId = bumenIdInt //部门ID"` + tarDepCont.PostId = 0 //岗位ID"` + tarDepCont.State = 1 //状态(1:启用;2:禁用;3:删除)"` + tarDepCont.Time = time.Now().Unix() //写入时间"` + tarDepCont.Class = 1 + addErr := overall.CONSTANT_DB_KPI.Create(&tarDepCont).Error + fmt.Printf("编辑---->tarId----%v---->sunId----%v---->lawsId----%v---->class----%v---->bumenId----%v------>saveErr----->%v\n", tarId, sunId, lawsId, class, bumenId, addErr) + } +} + +// 获取部门定性考核部门关联列表 +func (a *ApiMethod) GetDepartAboutTarget(c *gin.Context) { + var receivedValue publicmethod.PublicId + err := c.ShouldBindJSON(&receivedValue) + if err != nil { + publicmethod.Result(100, err, c) + return + } + var targetDepartmentID []int64 + disrErr := overall.CONSTANT_DB_KPI.Model(&modelskpi.TargetDepartment{}).Distinct("`department_id`").Where("`state` = 1 AND `level` = 1 AND `target_id` = ?", receivedValue.Id).Find(&targetDepartmentID).Error + if disrErr != nil { + publicmethod.Result(107, err, c) + return + } + var departmentList []modelshr.AdministrativeOrganization + departErr := overall.CONSTANT_DB_HR.Model(&modelshr.AdministrativeOrganization{}).Select("`id`,`name`,`superior`,`ispower`").Where("`id` IN ?", targetDepartmentID).Find(&departmentList).Error + if departErr != nil || len(departmentList) < 1 { + publicmethod.Result(107, err, c) + return + } + var outList []departOutcome + for _, v := range departmentList { + var outCont departOutcome + outCont.Id = strconv.FormatInt(v.Id, 10) + outCont.Name = v.Name + outCont.Superior = strconv.FormatInt(v.Superior, 10) + outCont.Ispower = v.IsPower + outList = append(outList, outCont) + } + publicmethod.Result(0, outList, c) +} + +// 获取部门指标相关执行人 +func (a *ApiMethod) GetTargetReport(c *gin.Context) { + var receivedValue getAboutReportTarget + c.ShouldBindJSON(&receivedValue) + if receivedValue.TargetId == "" { + publicmethod.Result(1, receivedValue, c, "指标不能为空!") + return + } + var userKey []int64 + typeClass := 1 + if receivedValue.DepartmentId != "" || receivedValue.PostId != "" { + typeClass = 2 + } + gormDb := overall.CONSTANT_DB_KPI.Model(&modelskpi.TargetReport{}).Distinct("`man_key`").Where("`state` = ? AND `type` = ? AND `target_id` = ?", 1, typeClass, receivedValue.TargetId) + + if receivedValue.TargetSunId != "" { + gormDb = gormDb.Where("`target_sun_id` = ?", receivedValue.TargetSunId) + } + if receivedValue.TargetBylaws != "" { + gormDb = gormDb.Where("`target_bylaws` = ?", receivedValue.TargetBylaws) + } + if receivedValue.DepartmentId != "" { + gormDb = gormDb.Where("`department_id` = ?", receivedValue.DepartmentId) + } + if receivedValue.PostId != "" { + gormDb = gormDb.Where("`post_id` = ?", receivedValue.PostId) + } + err := gormDb.Find(&userKey).Error + if err != nil || len(userKey) < 1 { + publicmethod.Result(107, err, c) + return + } + //上报人信息 + var reportManList []modelshr.PersonArchives + rmlErr := overall.CONSTANT_DB_HR.Model(&modelshr.PersonArchives{}).Select("`id`,`number`,`name`,`icon`,`company`,`maindeparment`").Where("`key` IN ?", userKey).Find(&reportManList).Error + if rmlErr != nil && len(reportManList) < 1 { + publicmethod.Result(107, err, c) + return + } + var reportListCont []printReportCont + for _, v := range reportManList { + var reportCont printReportCont + reportCont.Id = strconv.FormatInt(v.Id, 10) + reportCont.Name = v.Name + var groupConb modelshr.AdministrativeOrganization + groupConb.GetCont(map[string]interface{}{"`id`": v.Company}, "`name`") + reportCont.GroupName = groupConb.Name + var departmentConb modelshr.AdministrativeOrganization + departmentConb.GetCont(map[string]interface{}{"`id`": v.MainDeparment}, "`name`") + reportCont.DepartmentName = departmentConb.Name + reportCont.Icon = v.Icon + reportCont.Number = v.Number + reportListCont = append(reportListCont, reportCont) + } + outData := publicmethod.MapOut[string]() + outData["userlist"] = userKey + outData["userlistary"] = reportListCont + publicmethod.Result(0, outData, c) +} + +// 添加定性考核子栏目及细则 +func (a *ApiMethod) AddSunTargetDetailed(c *gin.Context) { + var receivedValue AddQualEval + c.ShouldBindJSON(&receivedValue) + if len(receivedValue.AcceptDepartmentId) <= 0 { + publicmethod.Result(1, receivedValue, c, "请选择接受考核的部门!") + return + } + if receivedValue.Target == "" { + publicmethod.Result(1, receivedValue, c, "请选择考核指标") + return + } + if receivedValue.TargetSunTitle == "" { + publicmethod.Result(1, receivedValue, c, "请输入栏目名称!") + return + } + if len(receivedValue.EvaluationList) <= 0 { + publicmethod.Result(1, receivedValue, c, "请添加测评详情!") + return + } else { + isWrite := true + for _, jv := range receivedValue.EvaluationList { + if jv.Title == "" || jv.Unit == "" || jv.ReferenceScore == "" { + isWrite = false + } + } + if isWrite == false { + publicmethod.Result(1, receivedValue, c, "指标细则有未填写的内容!请检查!") + return + } + } + tragetId, _ := strconv.ParseInt(receivedValue.Target, 10, 64) + //判断子目标是否存在 + var judgeSunTarget modelskpi.QualitativeTarget + saveSunTarget := modelskpi.QualitativeTarget{ + Title: receivedValue.TargetSunTitle, // 指标子栏目名称 + ParentId: tragetId, //归属指标 + State: 1, //状态(1:启用;2:禁用;3:删除) + AddTime: time.Now().Unix(), //制定时间"` + Depart: strings.Join(receivedValue.AcceptDepartmentId, ","), //关联部门"` + } + judgeSunTarErr := judgeSunTarget.JudgeIsTrue(map[string]interface{}{"q_title": receivedValue.TargetSunTitle, "q_parent_id": receivedValue.Target}, saveSunTarget) + if judgeSunTarErr != nil { + publicmethod.Result(106, judgeSunTarErr, c) + return + } + //子表细则处理 + + for _, v := range receivedValue.EvaluationList { + //判断指标细则是否已经存在 + var judgeDetaCont modelskpi.DetailedTarget + judgeDetaErr := judgeDetaCont.GetCont(map[string]interface{}{"`dt_parentid`": receivedValue.Target, "`dt_parentid_sun`": judgeSunTarget.Id, "`dt_title`": v.Title}) + if judgeDetaErr == nil { + editDetaAdd(judgeDetaCont.ParentId, judgeDetaCont.ParentIdSun, v, judgeDetaCont, receivedValue.AcceptDepartmentId) + } else { + addDetaInfo(tragetId, judgeSunTarget.Id, v, receivedValue.AcceptDepartmentId) + } + } + publicmethod.Result(0, receivedValue, c) +} + +/* +添加指标细则 +@targetId 指标ID +@sunTargetId 栏目ID +@qualEvalCont 提交的参数 +@departmentAry 接受考核部门 +*/ +func addDetaInfo(targetId, sunTargetId int64, qualEvalCont QualEvalSunList, departmentAry []string) (err error) { + + var minScoreInt int64 = 0 + var maxScoreInt int64 = 0 + scoreAry := strings.Split(qualEvalCont.ReferenceScore, "-") + scoreLen := len(scoreAry) + if scoreLen > 0 { + if scoreLen == 1 { + maxScore, _ := strconv.ParseFloat(scoreAry[0], 64) + maxScoreInt, _ = strconv.ParseInt(strconv.FormatFloat(maxScore*100, 'f', -1, 64), 10, 64) + minScoreInt = 0 + } else { + minScore, _ := strconv.ParseFloat(scoreAry[0], 64) + maxScore, _ := strconv.ParseFloat(scoreAry[scoreLen-1], 64) + minScoreInt, _ = strconv.ParseInt(strconv.FormatFloat(minScore*100, 'f', -1, 64), 10, 64) + maxScoreInt, _ = strconv.ParseInt(strconv.FormatFloat(maxScore*100, 'f', -1, 64), 10, 64) + } + } + var targetCont modelskpi.EvaluationTarget + targetCont.GetCont(map[string]interface{}{"et_id": targetId}, "et_unit", "et_cycle") + //单位 + unitName := qualEvalCont.Unit + if unitName == "" { + unitName = targetCont.Uniteing + } + //计分属性 + addOrReduce := qualEvalCont.AddOrReduce + if qualEvalCont.AddOrReduce == 0 { + addOrReduce = 1 + } + //统计周期 + cyclesInt := qualEvalCont.Cycles + if cyclesInt == 0 { + cyclesInt = 4 + } + cycleAttresInt := qualEvalCont.CycleAttres + if cycleAttresInt == 0 { + cycleAttresInt = 1 + } + //接受考核部门 + if len(departmentAry) < 1 { + //获取指标所有关联部门 + var aboutTarDepList []int64 + aboutTDErr := overall.CONSTANT_DB_KPI.Model(&modelskpi.TargetDepartment{}).Distinct("`department_id`").Where("`state` = 1 AND `level` = 1 AND `target_id` = ?", targetId).Find(&aboutTarDepList).Error + if aboutTDErr == nil { + for _, atdv := range aboutTarDepList { + departmentAry = append(departmentAry, strconv.FormatInt(atdv, 10)) + } + } + + } + operatorList := qualEvalCont.Operator + //提报人 + if len(operatorList) < 1 { + //获取指标所有关联部门 + var aboutTarReportList []int64 + aboutTDErr := overall.CONSTANT_DB_KPI.Model(&modelskpi.TargetReport{}).Distinct("`man_key`").Where("`state` = 1 AND `type` = 1 AND `target_id` = ?", targetId).Find(&aboutTarReportList).Error + if aboutTDErr == nil { + for _, atrv := range aboutTarReportList { + operatorList = append(operatorList, strconv.FormatInt(atrv, 10)) + } + } + + } + var detaildeTarInfo modelskpi.DetailedTarget + detaildeTarInfo.Title = qualEvalCont.Title //指标细则"` + detaildeTarInfo.Content = qualEvalCont.Content //指标说明"` + detaildeTarInfo.ParentId = targetId //归属指标栏目"` + detaildeTarInfo.ParentIdSun = sunTargetId //归属指标子栏目"` + detaildeTarInfo.State = 1 //状态(1:启用;2:禁用;3:删除)"` + detaildeTarInfo.AddTime = time.Now().Unix() //制定时间"` + detaildeTarInfo.MinScore = minScoreInt //最小分*100保存"` + detaildeTarInfo.MaxScore = maxScoreInt //最大分*100保存"` + detaildeTarInfo.Company = unitName //单位"` + detaildeTarInfo.AddReduce = addOrReduce //1:减少;2:增加;3:无属性,现场确认加或减"` + detaildeTarInfo.CensorType = strings.Join(qualEvalCont.CensorType, ",") //检查方式"` + detaildeTarInfo.CensorCont = qualEvalCont.CensorCont //检查依据"` + detaildeTarInfo.CensorRate = qualEvalCont.CensorRate //检查频次"` + detaildeTarInfo.Cycles = cyclesInt //1:班;2:天;3:周;4:月;5:季度;6:年"` + detaildeTarInfo.CycleAttres = cycleAttresInt //辅助计数"` + detaildeTarInfo.Paretment = strings.Join(departmentAry, ",") //接受考核的部门"` + detaildeTarInfo.Reportary = strings.Join(operatorList, ",") //提报人"` + err = overall.CONSTANT_DB_KPI.Create(&detaildeTarInfo).Error + if err == nil { + syncSeting.Add(1) + go handleDetarildTargetDepart(targetId, sunTargetId, detaildeTarInfo.Id, departmentAry, 1) + syncSeting.Add(1) + go handleDetarildTargetRepart(targetId, sunTargetId, detaildeTarInfo.Id, operatorList, 1) + syncSeting.Wait() + } + return nil +} + +/* +编辑已经存在的指标细则 +@targetId 指标ID +@sunTargetId 栏目ID +@qualEvalCont 提交的参数 +@detailInfof 查询到的参数 +@departmentAry 接受考核部门 +*/ +func editDetaAdd(targetId, sunTargetId int64, qualEvalCont QualEvalSunList, detailInfof modelskpi.DetailedTarget, departmentAry []string) (err error) { + saveData := publicmethod.MapOut[string]() + + if targetId != detailInfof.ParentId { + saveData["dt_parentid"] = targetId + } + if sunTargetId != detailInfof.ParentIdSun { + saveData["dt_parentid_sun"] = sunTargetId + } + + if qualEvalCont.Title != "" && qualEvalCont.Title != detailInfof.Title { + saveData["dt_title"] = qualEvalCont.Title + } + if qualEvalCont.Content != "" && qualEvalCont.Content != detailInfof.Content { + saveData["dt_content"] = qualEvalCont.Content + } + if qualEvalCont.Unit != "" && qualEvalCont.Unit != detailInfof.Company { + saveData["dt_company"] = qualEvalCont.Unit + } + if qualEvalCont.Cycles != 0 && qualEvalCont.Cycles != detailInfof.Cycles { + saveData["dt_cycle"] = qualEvalCont.Cycles + } + if qualEvalCont.CycleAttres != 0 && qualEvalCont.CycleAttres != detailInfof.CycleAttres { + saveData["dt_cycleattr"] = qualEvalCont.CycleAttres + } + if qualEvalCont.AddOrReduce != 0 && qualEvalCont.AddOrReduce != detailInfof.AddReduce { + saveData["dt_add_reduce"] = qualEvalCont.AddOrReduce + } + censStr := strings.Join(qualEvalCont.CensorType, ",") + if len(qualEvalCont.CensorType) > 0 { + if censStr != detailInfof.CensorType { + saveData["dt_censor_type"] = censStr + } + } + if qualEvalCont.CensorCont != "" && qualEvalCont.CensorCont != detailInfof.CensorCont { + saveData["dt_censor_cont"] = qualEvalCont.CensorCont + } + if qualEvalCont.CensorRate != 0 && qualEvalCont.CensorRate != detailInfof.CensorRate { + saveData["dt_censor_rate"] = qualEvalCont.CensorRate + } + + var minScoreInt int64 = 0 + var maxScoreInt int64 = 0 + scoreAry := strings.Split(qualEvalCont.ReferenceScore, "-") + scoreLen := len(scoreAry) + if scoreLen > 0 { + if scoreLen == 1 { + maxScore, _ := strconv.ParseFloat(scoreAry[0], 64) + maxScoreInt, _ = strconv.ParseInt(strconv.FormatFloat(maxScore*100, 'f', -1, 64), 10, 64) + minScoreInt = 0 + } else { + minScore, _ := strconv.ParseFloat(scoreAry[0], 64) + maxScore, _ := strconv.ParseFloat(scoreAry[scoreLen-1], 64) + minScoreInt, _ = strconv.ParseInt(strconv.FormatFloat(minScore*100, 'f', -1, 64), 10, 64) + maxScoreInt, _ = strconv.ParseInt(strconv.FormatFloat(maxScore*100, 'f', -1, 64), 10, 64) + } + } + if minScoreInt != detailInfof.MinScore { + saveData["dt_min_score"] = minScoreInt + } + if maxScoreInt != detailInfof.MaxScore { + saveData["dt_max_score"] = maxScoreInt + } + departStr := strings.Join(departmentAry, ",") + if departStr != detailInfof.Paretment { + saveData["dt_paretment"] = departStr + } + reportStr := strings.Join(qualEvalCont.Operator, ",") + if reportStr != detailInfof.Reportary { + saveData["reportary"] = reportStr + } + if len(saveData) > 0 { + saveData["dt_time"] = time.Now().Unix() + var editCont modelskpi.DetailedTarget + err = editCont.EiteCont(map[string]interface{}{"`dt_id`": detailInfof.Id}, saveData) + } + syncSeting.Add(1) + go handleDetarildTargetDepart(targetId, sunTargetId, detailInfof.Id, departmentAry, 1) + syncSeting.Add(1) + go handleDetarildTargetRepart(targetId, sunTargetId, detailInfof.Id, qualEvalCont.Operator, 1) + syncSeting.Wait() + return nil +} + +/* +处理指标细则关联部门 +@targetId 指标ID +@targetSunId 栏目ID +@bylawsId 指标细则 +@department 接受考核部门 +@class 级别(1:部门级;2:岗位级) +*/ +func handleDetarildTargetDepart(targetId, targetSunId, bylawsId int64, department []string, class int) { + defer syncSeting.Done() + //将不属于该指标细则的部门至禁用 + otherSaveData := publicmethod.MapOut[string]() + otherSaveData["`state`"] = 2 + otherSaveData["`time`"] = time.Now().Unix() + overall.CONSTANT_DB_KPI.Model(&modelskpi.TargetDepartment{}).Where("`level` = ? AND `target_id` = ? AND `target_sun_id` = ? AND `target_bylaws` = ?", class, targetId, targetSunId, bylawsId).Not(map[string]interface{}{"department_id": department}).Updates(&otherSaveData) + for _, v := range department { + var tarDepartCont modelskpi.TargetDepartment + saveErr := tarDepartCont.GetCont(map[string]interface{}{"`level`": class, "`target_id`": targetId, "`target_sun_id`": targetSunId, "`target_bylaws`": bylawsId, "`department_id`": v}, "`id`", "`state`") + if saveErr == nil { + if tarDepartCont.State != 1 { + tarDepartCont.EiteCont(map[string]interface{}{"`id`": tarDepartCont.Id}, map[string]interface{}{"`state`": 1, "`time`": time.Now().Unix()}) + } + } else { + xiZe := 3 + if targetId != 0 && targetSunId != 0 && bylawsId == 0 { + xiZe = 2 + } else if targetId != 0 && targetSunId == 0 && bylawsId == 0 { + xiZe = 1 + } + + tarDepartCont.TargetId = targetId //指标ID"` + tarDepartCont.TargetSunId = targetSunId //子目标"` + tarDepartCont.TargetBylaws = bylawsId //指标细则"` + tarDepartCont.Type = xiZe //类型(1:指标;2:子目标;3:细则)"` + departId, _ := strconv.ParseInt(v, 10, 64) + tarDepartCont.DepartmentId = departId //部门ID"` + tarDepartCont.PostId = 0 //岗位ID"` + tarDepartCont.State = 1 //状态(1:启用;2:禁用;3:删除)"` + tarDepartCont.Time = time.Now().Unix() //写入时间"` + tarDepartCont.Class = 1 //1:定性考核;2:定量考核"` + tarDepartCont.Level = class //级别(1:部门级;2:岗位级)"` + overall.CONSTANT_DB_KPI.Create(&tarDepartCont) + } + } +} + +/* +处理指标细则关联考核提交人 +@targetId 指标ID +@targetSunId 栏目ID +@bylawsId 指标细则 +@repart 考核提交人 +@class 级别(1:部门级;2:岗位级) +*/ +func handleDetarildTargetRepart(targetId, targetSunId, bylawsId int64, repart []string, class int) { + defer syncSeting.Done() + //将不属于该指标细则的部门至禁用 + otherSaveData := publicmethod.MapOut[string]() + otherSaveData["`state`"] = 2 + otherSaveData["`time`"] = time.Now().Unix() + overall.CONSTANT_DB_KPI.Model(&modelskpi.TargetReport{}).Where("`type` = ? AND `target_id` = ? AND `target_sun_id` = ? AND `target_bylaws` = ?", class, targetId, targetSunId, bylawsId).Not(map[string]interface{}{"man_key": repart}).Updates(&otherSaveData) + for _, v := range repart { + //获取评价人部门 + var manCont modelshr.PersonArchives + manCont.GetCont(map[string]interface{}{"`key`": v}, "`maindeparment`") + + var tarReportCont modelskpi.TargetReport + saveErr := tarReportCont.GetCont(map[string]interface{}{"`type`": class, "`target_id`": targetId, "`target_sun_id`": targetSunId, "`target_bylaws`": bylawsId, "`man_key`": v}, "`id`", "`state`") + if saveErr == nil { + if tarReportCont.State != 1 { + + tarReportCont.EiteCont(map[string]interface{}{"`id`": tarReportCont.Id}, map[string]interface{}{"`state`": 1, "`man_department`": manCont.MainDeparment, "`time`": time.Now().Unix()}) + } + } else { + tarReportCont.TargetId = targetId //指标ID"` + tarReportCont.TargetSunId = targetSunId //子目标"` + tarReportCont.TargetBylaws = bylawsId //指标细则"` + tarReportCont.DepartmentId = 0 //部门ID"` + tarReportCont.PostId = 0 //岗位ID"` + tarReportCont.Type = class //类型(1:公司级;2:部门级)"` + tarReportCont.State = 1 //状态(1:启用;2:禁用;3:删除)"` + reportId, _ := strconv.ParseInt(v, 10, 64) + tarReportCont.ReportPerson = reportId //上报人"` + tarReportCont.ManDepartment = manCont.MainDeparment //提报人所在部门"` + tarReportCont.Time = time.Now().Unix() //写入时间"` + tarReportCont.Class = 1 //1:定性考核;2:定量考核"` + overall.CONSTANT_DB_KPI.Create(&tarReportCont) + } + } +} + +// 获取定性考核指标列表内容 +func (a *ApiMethod) GetDepartmentTragetContList(c *gin.Context) { + var receivedValue getDepartTargetContType + c.ShouldBindJSON(&receivedValue) + if receivedValue.TargetId == "" { + publicmethod.Result(1, receivedValue, c, "未知指标ID!") + return + } + if receivedValue.Page == 0 { + receivedValue.Page = 1 + } + if receivedValue.PageSize == 0 { + receivedValue.PageSize = 20 + } + var detaildeList []modelskpi.DetailedTarget + var detCont modelskpi.DetailedTarget + gormDb := overall.CONSTANT_DB_KPI.Table(fmt.Sprintf("%s dt", detCont.TableName())).Select("dt.*").Where("dt.dt_state = 1 AND dt.dt_parentid = ?", receivedValue.TargetId) + //接受考核的部门 + if receivedValue.DepartmentId != "" { + gormDb = gormDb.Joins("LEFT JOIN `target_department` `td` on td.target_id = dt.dt_parentid AND td.target_sun_id = dt.dt_parentid_sun AND td.target_bylaws = dt.dt_id").Where("td.department_id = ?", receivedValue.DepartmentId) + } + //提报人 + if receivedValue.ReportPerson != "" { + gormDb = gormDb.Joins("LEFT JOIN `target_report` `tr` on tr.target_id = dt.dt_parentid AND tr.target_sun_id = dt.dt_parentid_sun AND tr.target_bylaws = dt.dt_id").Where("tr.man_key = ?", receivedValue.ReportPerson) + } + if receivedValue.Cycle != 0 { + gormDb = gormDb.Where("dt.dt_cycle = ?", receivedValue.Cycle) + } + if receivedValue.TargetSunId != "" { + gormDb = gormDb.Where("dt.dt_parentid_sun = ?", receivedValue.TargetSunId) + } + + err := gormDb.Order("dt.dt_parentid desc, dt.dt_parentid_sun").Find(&detaildeList).Error + if err != nil || len(detaildeList) < 1 { + publicmethod.Result(107, receivedValue, c) + return + } + var total int64 + totalErr := gormDb.Select("dt_id").Count(&total).Error + if totalErr != nil { + total = 0 + } + var outData []printDepartTargetCont + for _, v := range detaildeList { + var outCont printDepartTargetCont + outCont.Id = v.Id + outCont.Title = v.Title //指标细则"` + outCont.Content = v.Content //指标说明"` + outCont.ParentId = v.ParentId //归属指标栏目"` + outCont.ParentIdSun = v.ParentIdSun //归属指标子栏目"` + outCont.State = v.State //状态(1:启用;2:禁用;3:删除)"` + outCont.AddTime = v.AddTime //制定时间"` + outCont.MinScore = v.MinScore //最小分*100保存"` + outCont.MaxScore = v.MaxScore //100保存"` + outCont.Company = v.Company //单位"` + outCont.AddReduce = v.AddReduce //1:减少;2:增加;3:无属性,现场确认加或减"` + outCont.CensorType = v.CensorType //检查方式"` + outCont.CensorCont = v.CensorCont //检查依据"` + outCont.CensorRate = v.CensorRate //检查频次"` + outCont.Cycles = v.Cycles //1:班;2:天;3:周;4:月;5:季度;6:年"` + outCont.CycleAttres = v.CycleAttres //辅助计数"` + outCont.Paretment = v.Paretment //接受考核的部门"` + outCont.Reportary = v.Reportary //提报人"` + + standardStr := "" + if v.MinScore != 0 { + standardStr = fmt.Sprintf("%v-%v", publicmethod.DecimalEs(float64(v.MinScore)/100, 2), publicmethod.DecimalEs(float64(v.MaxScore)/100, 2)) + } else { + standardStr = fmt.Sprintf("%v", publicmethod.DecimalEs(float64(v.MaxScore)/100, 2)) + } + outCont.Standard = standardStr + outCont.CensorTypeList = strings.Split(v.CensorType, ",") + + outData = append(outData, outCont) + } + publicmethod.ResultList(0, receivedValue.Page, receivedValue.PageSize, total, int64(len(outData)), outData, c) +} + +// 根据指标栏目新增指标细则 +func (a *ApiMethod) BasisSonTargetAddDetailed(c *gin.Context) { + var receivedValue basisSonTargetAddDet + c.ShouldBindJSON(&receivedValue) + // var minScoreInt int64 = 0 //最低分 + // var maxScoreInt int64 = 0 //最高分 + if receivedValue.Id == "" { + publicmethod.Result(1, receivedValue, c, "未知指标子栏目ID!") + return + } + var sonTargetFatherInfo modelskpi.SonTargetFather + err := sonTargetFatherInfo.GetCont(map[string]interface{}{"q_id": receivedValue.Id}) + if err != nil { + publicmethod.Result(1, err, c, "该子栏目不存在!") + return + } + if receivedValue.Title == "" { + publicmethod.Result(1, receivedValue, c, "请输入考核细则名称!") + return + } + //判断指标细则是否符合规则 + if receivedValue.ReferenceScore == "" { + publicmethod.Result(1, receivedValue, c, "请输入考核细则相关考核标准!") + return + } else { + scoreAry := strings.Split(receivedValue.ReferenceScore, "-") + scoreLen := len(scoreAry) + if scoreLen < 1 { + publicmethod.Result(1, receivedValue, c, "考核标准不符合要求!请仔细填写!") + return + } + if scoreLen == 1 { + maxScore, maxErr := strconv.ParseFloat(scoreAry[0], 64) + if maxErr != nil { + publicmethod.Result(1, maxErr, c, "考核标准不符合要求!请仔细填写!") + return + } + var maxIntErr error + _, maxIntErr = strconv.ParseInt(strconv.FormatFloat(maxScore*100, 'f', -1, 64), 10, 64) + if maxIntErr != nil { + publicmethod.Result(1, maxIntErr, c, "考核标准不符合要求!请仔细填写!") + return + } + } else { + minScore, minErr := strconv.ParseFloat(scoreAry[0], 64) + if minErr != nil { + publicmethod.Result(1, minErr, c, "考核标准不符合要求!请仔细填写!") + return + } + maxScore, maxErr := strconv.ParseFloat(scoreAry[scoreLen-1], 64) + if maxErr != nil { + publicmethod.Result(1, maxErr, c, "考核标准不符合要求!请仔细填写!") + return + } + var minIntErr error + _, minIntErr = strconv.ParseInt(strconv.FormatFloat(minScore*100, 'f', -1, 64), 10, 64) + if minIntErr != nil { + publicmethod.Result(1, minIntErr, c, "考核标准不符合要求!请仔细填写!") + return + } + var maxIntErr error + _, maxIntErr = strconv.ParseInt(strconv.FormatFloat(maxScore*100, 'f', -1, 64), 10, 64) + if maxIntErr != nil { + publicmethod.Result(1, maxIntErr, c, "考核标准不符合要求!请仔细填写!") + return + } + } + } + //获取子栏目接受考核部门 + var sonAboutDeparment []string + + var aboutTarDepList []int64 + aboutTDErr := overall.CONSTANT_DB_KPI.Model(&modelskpi.TargetDepartment{}).Distinct("`department_id`").Where("`state` = 1 AND `level` = 1 AND `target_id` = ? AND `target_sun_id` = ?", sonTargetFatherInfo.ParentId, sonTargetFatherInfo.Id).Find(&aboutTarDepList).Error + if aboutTDErr == nil { + for _, atdv := range aboutTarDepList { + sonAboutDeparment = append(sonAboutDeparment, strconv.FormatInt(atdv, 10)) + } + } + + var qualEvalCont QualEvalSunList + qualEvalCont.Title = receivedValue.Title //考核内容 + qualEvalCont.Content = receivedValue.Content //备注说明 + qualEvalCont.Unit = receivedValue.Unit //单位 + qualEvalCont.ReferenceScore = receivedValue.ReferenceScore //考核标准 + qualEvalCont.Cycles = receivedValue.Cycles //1:班;2:天;3:周;4:月;5:季度;6:年 + qualEvalCont.CycleAttres = receivedValue.CycleAttres //辅助计数 + qualEvalCont.Operator = receivedValue.Operator //考核执行人 + qualEvalCont.AddOrReduce = receivedValue.AddOrReduce //操作类型 1:减少;2:增加;3:用户自定义 + qualEvalCont.CensorType = receivedValue.CensorType //检查方式(1:现场检查;2:资料检查;3:事件触发) + qualEvalCont.CensorCont = receivedValue.CensorCont //客观证据 + qualEvalCont.CensorRate = receivedValue.CensorRate //检查频次 + //判断指标细则是否已经存在 + var judgeDetaCont modelskpi.DetailedTarget + judgeDetaErr := judgeDetaCont.GetCont(map[string]interface{}{"`dt_parentid`": sonTargetFatherInfo.ParentId, "`dt_parentid_sun`": sonTargetFatherInfo.Id, "`dt_title`": receivedValue.Title}) + if judgeDetaErr == nil { + judgeDetaErr = editDetaAdd(sonTargetFatherInfo.ParentId, sonTargetFatherInfo.Id, qualEvalCont, judgeDetaCont, sonAboutDeparment) + } else { + judgeDetaErr = addDetaInfo(sonTargetFatherInfo.ParentId, sonTargetFatherInfo.Id, qualEvalCont, sonAboutDeparment) + } + if judgeDetaErr != nil { + publicmethod.Result(106, judgeDetaErr, c) + return + } + publicmethod.Result(0, judgeDetaErr, c) +} + +// 根据指标和部门获取相关岗位 +func (a *ApiMethod) BasisTargetDearpetmentGetPost(c *gin.Context) { + var receivedValue bgdgp + c.ShouldBindJSON(&receivedValue) + if receivedValue.TargetId == "" { + publicmethod.Result(101, receivedValue, c) + return + } + if receivedValue.DepartmentId == "" { + publicmethod.Result(101, receivedValue, c) + return + } + if receivedValue.Level == 0 { + receivedValue.Level = 2 + } + var postId []int64 + gormDb := overall.CONSTANT_DB_KPI.Model(&modelskpi.TargetDepartment{}).Distinct("post_id").Where("`state` = 1 AND `level` = ? AND `target_id` = ? AND `department_id` = ?", receivedValue.Level, receivedValue.TargetId, receivedValue.DepartmentId) + if receivedValue.TargetSunId != "" { + gormDb = gormDb.Where("`target_sun_id` = ?", receivedValue.TargetSunId) + } + if receivedValue.TargetBylaws != "" { + gormDb = gormDb.Where("`target_bylaws` = ?", receivedValue.TargetBylaws) + } + err := gormDb.Find(&postId).Error + if err != nil || len(postId) < 1 { + publicmethod.Result(107, err, c) + return + } + var postList []modelshr.Position + hrErr := overall.CONSTANT_DB_HR.Model(&modelshr.Position{}).Select("`id`,`name`").Where("`id` IN ?", postId).Find(&postList).Error + if hrErr != nil || len(postList) < 1 { + publicmethod.Result(107, hrErr, c) + return + } + outdata := publicmethod.MapOut[string]() + outdata["postid"] = postId + outdata["postlist"] = postList + publicmethod.Result(0, outdata, c) +} + +// 获取部门指标岗位提交人 +func (a *ApiMethod) BasisTaegetDeparmentReport(c *gin.Context) { + var receivedValue btdgr + c.ShouldBindJSON(&receivedValue) + if receivedValue.TargetId == "" { + publicmethod.Result(101, receivedValue, c) + return + } + // if receivedValue.DepartmentId == "" { + // publicmethod.Result(101, receivedValue, c) + // return + // } + if receivedValue.Level == 0 { + receivedValue.Level = 2 + } + var userKey []int64 + gormDb := overall.CONSTANT_DB_KPI.Model(&modelskpi.TargetReport{}).Distinct("man_key").Where("`state` = 1 AND `type` = ? AND `target_id` = ?", receivedValue.Level, receivedValue.TargetId) + + if receivedValue.DepartmentId != "" { + gormDb = gormDb.Where("`department_id` = ?", receivedValue.DepartmentId) + } + + if receivedValue.TargetSunId != "" { + gormDb = gormDb.Where("`target_sun_id` = ?", receivedValue.TargetSunId) + } + if receivedValue.TargetBylaws != "" { + gormDb = gormDb.Where("`target_bylaws` = ?", receivedValue.TargetBylaws) + } + if receivedValue.PostId != "" { + gormDb = gormDb.Where("`post_id` = ?", receivedValue.PostId) + } + err := gormDb.Find(&userKey).Error + if err != nil || len(userKey) < 1 { + publicmethod.Result(107, err, c) + return + } + + var peopleList []modelshr.UserPostDuties + hrErr := overall.CONSTANT_DB_HR.Model(&modelshr.UserPostDuties{}).Where("`key` IN ?", userKey).Find(&peopleList).Error + if hrErr != nil || len(peopleList) < 1 { + publicmethod.Result(107, hrErr, c) + return + } + outdata := publicmethod.MapOut[string]() + outdata["postid"] = userKey + outdata["peoplelist"] = peopleList + publicmethod.Result(0, outdata, c) +} + +// 修改子栏目标题名称级考核关联部门及提报人 +func (a *ApiMethod) EditSonTargetDepartmentReport(c *gin.Context) { + var receivedValue editTarDepartReport + c.ShouldBindJSON(&receivedValue) + if receivedValue.TargetSunId == "" { + publicmethod.Result(101, receivedValue, c) + return + } + var sonTargetCont modelskpi.QualitativeTarget + err := sonTargetCont.GetCont(map[string]interface{}{"q_id": receivedValue.TargetSunId}) + if err != nil { + publicmethod.Result(107, receivedValue, c) + return + } + if receivedValue.Title != "" && receivedValue.Title != sonTargetCont.Title { + var judgeIsFalse modelskpi.QualitativeTarget + judgeErr := judgeIsFalse.GetCont(map[string]interface{}{"q_title": sonTargetCont.Id, "q_parent_id": sonTargetCont.ParentId}, "q_id") + if judgeErr == nil { + publicmethod.Result(103, receivedValue, c) + return + } + saveData := publicmethod.MapOut[string]() + saveData["q_title"] = receivedValue.Title + saveData["q_time"] = time.Now().Unix() + err = sonTargetCont.EiteCont(map[string]interface{}{"q_id": receivedValue.TargetSunId}, saveData) + } + if err != nil { + publicmethod.Result(106, receivedValue, c) + return + } + departmentAry := receivedValue.AcceptDepartmentId + operatorList := receivedValue.Operator + + if len(departmentAry) < 1 { + var sonDepartmentAbouttargetId []int64 + deparErr := overall.CONSTANT_DB_KPI.Model(&modelskpi.TargetDepartment{}).Distinct("department_id").Where("`state` = 1 AND `level` = 1 AND `target_id` = ? ", sonTargetCont.ParentId).Find(&sonDepartmentAbouttargetId).Error + if deparErr == nil && len(sonDepartmentAbouttargetId) > 0 { + for _, sdv := range sonDepartmentAbouttargetId { + departmentAry = append(departmentAry, strconv.FormatInt(sdv, 10)) + } + } + } + + if len(operatorList) < 1 { + var sonReportAbouttargetId []int64 + deparErr := overall.CONSTANT_DB_KPI.Model(&modelskpi.TargetReport{}).Distinct("man_key").Where("`state` = 1 AND `type` = 1 AND `target_id` = ? ", sonTargetCont.ParentId).Find(&sonReportAbouttargetId).Error + if deparErr == nil && len(sonReportAbouttargetId) > 0 { + for _, srv := range sonReportAbouttargetId { + operatorList = append(operatorList, strconv.FormatInt(srv, 10)) + } + } + } + + //获取该指标下所有细则 + var detaildId []int64 + err = overall.CONSTANT_DB_KPI.Model(&modelskpi.DetailedTarget{}).Select("dt_id").Where("`dt_state` = 1 AND `dt_parentid` = ? AND `dt_parentid_sun` = ?", sonTargetCont.ParentId, sonTargetCont.Id).Find(&detaildId).Error + if err == nil && len(detaildId) > 0 { + for _, v := range detaildId { + if len(departmentAry) > 0 { + syncSeting.Add(1) + go handleDetarildTargetDepart(sonTargetCont.ParentId, sonTargetCont.Id, v, departmentAry, 1) + } + if len(operatorList) > 0 { + syncSeting.Add(1) + go handleDetarildTargetRepart(sonTargetCont.ParentId, sonTargetCont.Id, v, operatorList, 1) + } + syncSeting.Wait() + } + } + //获取该子栏目所有的接受考核部门 + + saveData := publicmethod.MapOut[string]() + saveData["q_depart"] = strings.Join(departmentAry, ",") + saveData["q_time"] = time.Now().Unix() + err = sonTargetCont.EiteCont(map[string]interface{}{"q_id": receivedValue.TargetSunId}, saveData) + //修改指标的关联部门和关联人 + var targetAboutDepartnebt []int64 + overall.CONSTANT_DB_KPI.Model(&modelskpi.TargetDepartment{}).Distinct("department_id").Where("`state` = 1 AND `level` = 1 AND `target_id` = ? ", sonTargetCont.ParentId).Find(&targetAboutDepartnebt) + var targetAboutReport []int64 + overall.CONSTANT_DB_KPI.Model(&modelskpi.TargetReport{}).Distinct("man_key").Where("`state` = 1 AND `type` = 1 AND `target_id` = ? ", sonTargetCont.ParentId).Find(&targetAboutReport) + if len(targetAboutDepartnebt) > 0 || len(targetAboutReport) > 0 { + tarSaveData := publicmethod.MapOut[string]() + if len(targetAboutDepartnebt) > 0 { + var departStr []string + for _, dsv := range targetAboutDepartnebt { + departStr = append(departStr, strconv.FormatInt(dsv, 10)) + } + tarSaveData["et_relevant_departments"] = strings.Join(departStr, ",") + } + if len(targetAboutReport) > 0 { + var reportStr []string + for _, dsvr := range targetAboutReport { + reportStr = append(reportStr, strconv.FormatInt(dsvr, 10)) + } + tarSaveData["et_report"] = strings.Join(reportStr, ",") + } + if len(tarSaveData) > 0 { + tarSaveData["et_time"] = time.Now().Unix() + var evalTarCont modelskpi.EvaluationTarget + evalTarCont.EiteCont(map[string]interface{}{"`et_id`": sonTargetCont.ParentId}, tarSaveData) + } + } + publicmethod.Result(0, err, c) +} + +// 获取子栏目基础信息 +func (a *ApiMethod) GetSonTargetCont(c *gin.Context) { + var receivedValue publicmethod.PublicId + err := c.ShouldBindJSON(&receivedValue) + if err != nil { + publicmethod.Result(100, receivedValue, c) + return + } + if receivedValue.Id == "" { + publicmethod.Result(101, receivedValue, c) + return + } + where := publicmethod.MapOut[string]() + where["q_id"] = receivedValue.Id + var sonTargetCont modelskpi.QualitativeTarget + err = sonTargetCont.GetCont(where, "q_title", "q_parent_id") + if err != nil { + publicmethod.Result(107, receivedValue, c) + return + } + //获取关联部门 + var targetAboutDepartnebt []int64 + overall.CONSTANT_DB_KPI.Model(&modelskpi.TargetDepartment{}).Distinct("department_id").Where("`state` = 1 AND `level` = 1 AND `target_id` = ? AND `target_sun_id` = ?", sonTargetCont.ParentId, receivedValue.Id).Find(&targetAboutDepartnebt) + //获取关联提报人 + var targetAboutReport []int64 + overall.CONSTANT_DB_KPI.Model(&modelskpi.TargetReport{}).Distinct("man_key").Where("`state` = 1 AND `type` = 1 AND `target_id` = ? AND `target_sun_id` = ?", sonTargetCont.ParentId, receivedValue.Id).Find(&targetAboutReport) + //部门列表 + var departContList []modelshr.AdministrativeOrganization + overall.CONSTANT_DB_HR.Model(&modelshr.AdministrativeOrganization{}).Select("`id`,`name`").Where("`id` IN ?", targetAboutDepartnebt).Find(&departContList) + //人员列表 + var reportContList []modelshr.PersonArchives + overall.CONSTANT_DB_HR.Model(&modelshr.PersonArchives{}).Select("`key`,`name`").Where("`key` IN ?", targetAboutReport).Find(&reportContList) + + var departArt []outCont + for _, darv := range departContList { + var departContArt outCont + departContArt.Id = strconv.FormatInt(darv.Id, 10) + departContArt.Name = darv.Name + departArt = append(departArt, departContArt) + } + + var reportArt []outCont + for _, rclv := range reportContList { + var reportContArt outCont + reportContArt.Id = strconv.FormatInt(rclv.Key, 10) + reportContArt.Name = rclv.Name + reportArt = append(reportArt, reportContArt) + } + + outData := publicmethod.MapOut[string]() + outData["title"] = sonTargetCont.Title + outData["departmentid"] = targetAboutDepartnebt + outData["userkey"] = targetAboutReport + outData["departmentcont"] = departArt + outData["usercont"] = reportArt + publicmethod.Result(0, outData, c) +} + +// 删除子栏目 +func (a *ApiMethod) DelSonTarget(c *gin.Context) { + var receivedValue publicmethod.PublicId + err := c.ShouldBindJSON(&receivedValue) + if err != nil { + publicmethod.Result(100, receivedValue, c) + return + } + if receivedValue.Id == "" { + publicmethod.Result(101, receivedValue, c) + return + } + where := publicmethod.MapOut[string]() + where["q_id"] = receivedValue.Id + var sonTargetCont modelskpi.QualitativeTarget + err = sonTargetCont.GetCont(where, "q_id", "q_parent_id") + if err != nil { + publicmethod.Result(107, err, c) + return + } + //预留判断该指标是否在使用中 + + delTime := time.Now().Unix() + //软删除所有此子栏目下的指标细则 + syncSeting.Add(1) + go softDetaildeCont(sonTargetCont.ParentId, sonTargetCont.Id, delTime) + //软删除所有此子栏目相关的联部门 + syncSeting.Add(1) + go softDelTargetDepartment(sonTargetCont.ParentId, sonTargetCont.Id, delTime) + //软删除所有此子栏目相关联的提报人 + syncSeting.Add(1) + go softDelTargetReport(sonTargetCont.ParentId, sonTargetCont.Id, delTime) + //软删除此栏目 + var delTargetSon modelskpi.QualitativeTarget + err = delTargetSon.EiteCont(map[string]interface{}{"`q_id`": sonTargetCont.Id}, map[string]interface{}{"`q_state`": 3, "`q_time`": delTime}) + syncSeting.Wait() + if err != nil { + publicmethod.Result(106, err, c) + return + } + publicmethod.Result(0, err, c) +} + +// 软删除所有此子栏目下的指标细则 +func softDetaildeCont(targetId, sonTargetId, delTime int64) { + defer syncSeting.Done() + var detaildeCont modelskpi.DetailedTarget + detaildeCont.EiteCont(map[string]interface{}{"dt_parentid": targetId, "dt_parentid_sun": sonTargetId, "dt_state": 1}, map[string]interface{}{"dt_state": 3, "dt_time": delTime}) +} + +// 软删除所有此子栏目相关联的提报人 +func softDelTargetReport(targetId, sonTargetId, delTime int64) { + defer syncSeting.Done() + var delTargetReport modelskpi.TargetReport + delTargetReport.EiteCont(map[string]interface{}{"`target_id`": targetId, "`target_sun_id`": sonTargetId, "`state`": 1}, map[string]interface{}{"`state`": 3, "`time`": delTime}) +} + +// 软删除所有此子栏目相关的联部门 +func softDelTargetDepartment(targetId, sonTargetId, delTime int64) { + defer syncSeting.Done() + var delTargetDepartment modelskpi.TargetDepartment + delTargetDepartment.EiteCont(map[string]interface{}{"target_id": targetId, "target_sun_id": sonTargetId, "`state`": 1}, map[string]interface{}{"`state`": 3, "`time`": delTime}) +} + +// 获取单一指标细则内容 +func (a *ApiMethod) GetOneDetailedTarget(c *gin.Context) { + var receivedValue publicmethod.PublicId + err := c.ShouldBindJSON(&receivedValue) + if err != nil { + publicmethod.Result(100, receivedValue, c) + return + } + if receivedValue.Id == "" { + publicmethod.Result(101, receivedValue, c) + return + } + where := publicmethod.MapOut[string]() + where["dt_id"] = receivedValue.Id + var detailedTargetCont modelskpi.DetailedTarget + err = detailedTargetCont.GetCont(where) + if err != nil { + publicmethod.Result(107, err, c) + return + } +} diff --git a/.history/api/version1/entry_20220818143450.go b/.history/api/version1/entry_20220818143450.go new file mode 100644 index 0000000..cef8218 --- /dev/null +++ b/.history/api/version1/entry_20220818143450.go @@ -0,0 +1,19 @@ +package version1 + +import ( + "key_performance_indicators/api/version1/departmentseting/departmentpc" + "key_performance_indicators/api/version1/departmentseting/departmentweb" + "key_performance_indicators/api/version1/honoraryArchives" + "key_performance_indicators/api/version1/postseting/postpc" + "key_performance_indicators/api/version1/postseting/postweb" +) + +type ApiEntry struct { + HonorsApi honoraryArchives.ApiMethod + PostPcApi postpc.ApiMethod + PostWebApi postweb.ApiMethod + DeparmentPcApi departmentpc.ApiMethod + DeparmentWebApi departmentweb.ApiMethod +} + +var AppApiEntry = new(ApiEntry) diff --git a/.history/api/version1/entry_20220821094905.go b/.history/api/version1/entry_20220821094905.go new file mode 100644 index 0000000..291b9cb --- /dev/null +++ b/.history/api/version1/entry_20220821094905.go @@ -0,0 +1,20 @@ +package version1 + +import ( + "key_performance_indicators/api/version1/departmentseting/departmentpc" + "key_performance_indicators/api/version1/departmentseting/departmentweb" + "key_performance_indicators/api/version1/honoraryArchives" + "key_performance_indicators/api/version1/postseting/postpc" + "key_performance_indicators/api/version1/postseting/postweb" +) + +type ApiEntry struct { + HonorsApi honoraryArchives.ApiMethod + PostPcApi postpc.ApiMethod + PostWebApi postweb.ApiMethod + DeparmentPcApi departmentpc.ApiMethod + DeparmentWebApi departmentweb.ApiMethod + +} + +var AppApiEntry = new(ApiEntry) diff --git a/.history/api/version1/entry_20220821094921.go b/.history/api/version1/entry_20220821094921.go new file mode 100644 index 0000000..09ce878 --- /dev/null +++ b/.history/api/version1/entry_20220821094921.go @@ -0,0 +1,21 @@ +package version1 + +import ( + "key_performance_indicators/api/version1/departmentseting/departmentpc" + "key_performance_indicators/api/version1/departmentseting/departmentweb" + "key_performance_indicators/api/version1/honoraryArchives" + "key_performance_indicators/api/version1/postseting/postpc" + "key_performance_indicators/api/version1/postseting/postweb" + "key_performance_indicators/apirouter/v1/bookimg" +) + +type ApiEntry struct { + HonorsApi honoraryArchives.ApiMethod + PostPcApi postpc.ApiMethod + PostWebApi postweb.ApiMethod + DeparmentPcApi departmentpc.ApiMethod + DeparmentWebApi departmentweb.ApiMethod + bookimg. +} + +var AppApiEntry = new(ApiEntry) diff --git a/.history/api/version1/entry_20220821094923.go b/.history/api/version1/entry_20220821094923.go new file mode 100644 index 0000000..388775f --- /dev/null +++ b/.history/api/version1/entry_20220821094923.go @@ -0,0 +1,21 @@ +package version1 + +import ( + "key_performance_indicators/api/version1/departmentseting/departmentpc" + "key_performance_indicators/api/version1/departmentseting/departmentweb" + "key_performance_indicators/api/version1/honoraryArchives" + "key_performance_indicators/api/version1/postseting/postpc" + "key_performance_indicators/api/version1/postseting/postweb" + "key_performance_indicators/apirouter/v1/bookimg" +) + +type ApiEntry struct { + HonorsApi honoraryArchives.ApiMethod + PostPcApi postpc.ApiMethod + PostWebApi postweb.ApiMethod + DeparmentPcApi departmentpc.ApiMethod + DeparmentWebApi departmentweb.ApiMethod + bookimg.ApiRouter +} + +var AppApiEntry = new(ApiEntry) diff --git a/.history/api/version1/entry_20220821094927.go b/.history/api/version1/entry_20220821094927.go new file mode 100644 index 0000000..eae8ff2 --- /dev/null +++ b/.history/api/version1/entry_20220821094927.go @@ -0,0 +1,21 @@ +package version1 + +import ( + "key_performance_indicators/api/version1/departmentseting/departmentpc" + "key_performance_indicators/api/version1/departmentseting/departmentweb" + "key_performance_indicators/api/version1/honoraryArchives" + "key_performance_indicators/api/version1/postseting/postpc" + "key_performance_indicators/api/version1/postseting/postweb" + "key_performance_indicators/apirouter/v1/bookimg" +) + +type ApiEntry struct { + HonorsApi honoraryArchives.ApiMethod + PostPcApi postpc.ApiMethod + PostWebApi postweb.ApiMethod + DeparmentPcApi departmentpc.ApiMethod + DeparmentWebApi departmentweb.ApiMethod + bookimg.ApiRouter +} + +var AppApiEntry = new(ApiEntry) diff --git a/.history/api/version1/entry_20220821094930.go b/.history/api/version1/entry_20220821094930.go new file mode 100644 index 0000000..fd7e7e1 --- /dev/null +++ b/.history/api/version1/entry_20220821094930.go @@ -0,0 +1,21 @@ +package version1 + +import ( + "key_performance_indicators/api/version1/departmentseting/departmentpc" + "key_performance_indicators/api/version1/departmentseting/departmentweb" + "key_performance_indicators/api/version1/honoraryArchives" + "key_performance_indicators/api/version1/postseting/postpc" + "key_performance_indicators/api/version1/postseting/postweb" + "key_performance_indicators/apirouter/v1/bookimg" +) + +type ApiEntry struct { + HonorsApi honoraryArchives.ApiMethod + PostPcApi postpc.ApiMethod + PostWebApi postweb.ApiMethod + DeparmentPcApi departmentpc.ApiMethod + DeparmentWebApi departmentweb.ApiMethod + BookImg bookimg.ApiRouter +} + +var AppApiEntry = new(ApiEntry) diff --git a/.history/api/version1/entry_20220821094931.go b/.history/api/version1/entry_20220821094931.go new file mode 100644 index 0000000..fd7e7e1 --- /dev/null +++ b/.history/api/version1/entry_20220821094931.go @@ -0,0 +1,21 @@ +package version1 + +import ( + "key_performance_indicators/api/version1/departmentseting/departmentpc" + "key_performance_indicators/api/version1/departmentseting/departmentweb" + "key_performance_indicators/api/version1/honoraryArchives" + "key_performance_indicators/api/version1/postseting/postpc" + "key_performance_indicators/api/version1/postseting/postweb" + "key_performance_indicators/apirouter/v1/bookimg" +) + +type ApiEntry struct { + HonorsApi honoraryArchives.ApiMethod + PostPcApi postpc.ApiMethod + PostWebApi postweb.ApiMethod + DeparmentPcApi departmentpc.ApiMethod + DeparmentWebApi departmentweb.ApiMethod + BookImg bookimg.ApiRouter +} + +var AppApiEntry = new(ApiEntry) diff --git a/.history/api/version1/entry_20220821094933.go b/.history/api/version1/entry_20220821094933.go new file mode 100644 index 0000000..fd7e7e1 --- /dev/null +++ b/.history/api/version1/entry_20220821094933.go @@ -0,0 +1,21 @@ +package version1 + +import ( + "key_performance_indicators/api/version1/departmentseting/departmentpc" + "key_performance_indicators/api/version1/departmentseting/departmentweb" + "key_performance_indicators/api/version1/honoraryArchives" + "key_performance_indicators/api/version1/postseting/postpc" + "key_performance_indicators/api/version1/postseting/postweb" + "key_performance_indicators/apirouter/v1/bookimg" +) + +type ApiEntry struct { + HonorsApi honoraryArchives.ApiMethod + PostPcApi postpc.ApiMethod + PostWebApi postweb.ApiMethod + DeparmentPcApi departmentpc.ApiMethod + DeparmentWebApi departmentweb.ApiMethod + BookImg bookimg.ApiRouter +} + +var AppApiEntry = new(ApiEntry) diff --git a/.history/api/version1/entry_20220821095004.go b/.history/api/version1/entry_20220821095004.go new file mode 100644 index 0000000..fd7e7e1 --- /dev/null +++ b/.history/api/version1/entry_20220821095004.go @@ -0,0 +1,21 @@ +package version1 + +import ( + "key_performance_indicators/api/version1/departmentseting/departmentpc" + "key_performance_indicators/api/version1/departmentseting/departmentweb" + "key_performance_indicators/api/version1/honoraryArchives" + "key_performance_indicators/api/version1/postseting/postpc" + "key_performance_indicators/api/version1/postseting/postweb" + "key_performance_indicators/apirouter/v1/bookimg" +) + +type ApiEntry struct { + HonorsApi honoraryArchives.ApiMethod + PostPcApi postpc.ApiMethod + PostWebApi postweb.ApiMethod + DeparmentPcApi departmentpc.ApiMethod + DeparmentWebApi departmentweb.ApiMethod + BookImg bookimg.ApiRouter +} + +var AppApiEntry = new(ApiEntry) diff --git a/.history/api/version1/entry_20220821095034.go b/.history/api/version1/entry_20220821095034.go new file mode 100644 index 0000000..15eeb40 --- /dev/null +++ b/.history/api/version1/entry_20220821095034.go @@ -0,0 +1,21 @@ +package version1 + +import ( + "key_performance_indicators/api/version1/departmentseting/departmentpc" + "key_performance_indicators/api/version1/departmentseting/departmentweb" + "key_performance_indicators/api/version1/honoraryArchives" + "key_performance_indicators/api/version1/postseting/postpc" + "key_performance_indicators/api/version1/postseting/postweb" + "key_performance_indicators/api/version1/" +) + +type ApiEntry struct { + HonorsApi honoraryArchives.ApiMethod + PostPcApi postpc.ApiMethod + PostWebApi postweb.ApiMethod + DeparmentPcApi departmentpc.ApiMethod + DeparmentWebApi departmentweb.ApiMethod + BookImg bookimg.ApiRouter +} + +var AppApiEntry = new(ApiEntry) diff --git a/.history/api/version1/entry_20220821095037.go b/.history/api/version1/entry_20220821095037.go new file mode 100644 index 0000000..4e81abc --- /dev/null +++ b/.history/api/version1/entry_20220821095037.go @@ -0,0 +1,21 @@ +package version1 + +import ( + "key_performance_indicators/api/version1/departmentseting/departmentpc" + "key_performance_indicators/api/version1/departmentseting/departmentweb" + "key_performance_indicators/api/version1/honoraryArchives" + "key_performance_indicators/api/version1/postseting/postpc" + "key_performance_indicators/api/version1/postseting/postweb" + "key_performance_indicators/api/version1/bookimg" +) + +type ApiEntry struct { + HonorsApi honoraryArchives.ApiMethod + PostPcApi postpc.ApiMethod + PostWebApi postweb.ApiMethod + DeparmentPcApi departmentpc.ApiMethod + DeparmentWebApi departmentweb.ApiMethod + BookImg bookimg.ApiRouter +} + +var AppApiEntry = new(ApiEntry) diff --git a/.history/api/version1/entry_20220821095039.go b/.history/api/version1/entry_20220821095039.go new file mode 100644 index 0000000..ac59fea --- /dev/null +++ b/.history/api/version1/entry_20220821095039.go @@ -0,0 +1,21 @@ +package version1 + +import ( + "key_performance_indicators/api/version1/bookimg" + "key_performance_indicators/api/version1/departmentseting/departmentpc" + "key_performance_indicators/api/version1/departmentseting/departmentweb" + "key_performance_indicators/api/version1/honoraryArchives" + "key_performance_indicators/api/version1/postseting/postpc" + "key_performance_indicators/api/version1/postseting/postweb" +) + +type ApiEntry struct { + HonorsApi honoraryArchives.ApiMethod + PostPcApi postpc.ApiMethod + PostWebApi postweb.ApiMethod + DeparmentPcApi departmentpc.ApiMethod + DeparmentWebApi departmentweb.ApiMethod + BookImg bookimg.ApiRouter +} + +var AppApiEntry = new(ApiEntry) diff --git a/.history/api/version1/entry_20220821095045.go b/.history/api/version1/entry_20220821095045.go new file mode 100644 index 0000000..68ee77b --- /dev/null +++ b/.history/api/version1/entry_20220821095045.go @@ -0,0 +1,21 @@ +package version1 + +import ( + "key_performance_indicators/api/version1/bookimg" + "key_performance_indicators/api/version1/departmentseting/departmentpc" + "key_performance_indicators/api/version1/departmentseting/departmentweb" + "key_performance_indicators/api/version1/honoraryArchives" + "key_performance_indicators/api/version1/postseting/postpc" + "key_performance_indicators/api/version1/postseting/postweb" +) + +type ApiEntry struct { + HonorsApi honoraryArchives.ApiMethod + PostPcApi postpc.ApiMethod + PostWebApi postweb.ApiMethod + DeparmentPcApi departmentpc.ApiMethod + DeparmentWebApi departmentweb.ApiMethod + BookImg bookimg.ApiMethod +} + +var AppApiEntry = new(ApiEntry) diff --git a/.history/apirouter/entry_20220818143450.go b/.history/apirouter/entry_20220818143450.go new file mode 100644 index 0000000..ffa065b --- /dev/null +++ b/.history/apirouter/entry_20220818143450.go @@ -0,0 +1,23 @@ +package apirouter + +import ( + "key_performance_indicators/apirouter/apishiyan" + "key_performance_indicators/apirouter/empower" + "key_performance_indicators/apirouter/v1/departmentseting" + honorsRoute "key_performance_indicators/apirouter/v1/honorsRoute" + "key_performance_indicators/apirouter/v1/postseting" + "key_performance_indicators/apirouter/verifyLogin" + // "key_performance_indicators/v1" +) + +// 路由结构 +type RouterGroup struct { + EmpowerRouter empower.EmpowerApiRouter + VerifyLogin verifyLogin.ApiRouter + ShiyanApi apishiyan.ApiRouter + HonorsSouteRouter honorsRoute.ApiRouter + PostRouter postseting.ApiRouter + DepartmentRouter departmentseting.ApiRouter +} + +var RouterGroupEntry = new(RouterGroup) diff --git a/.history/apirouter/entry_20220821094226.go b/.history/apirouter/entry_20220821094226.go new file mode 100644 index 0000000..d69b33d --- /dev/null +++ b/.history/apirouter/entry_20220821094226.go @@ -0,0 +1,24 @@ +package apirouter + +import ( + "key_performance_indicators/apirouter/apishiyan" + "key_performance_indicators/apirouter/empower" + "key_performance_indicators/apirouter/v1/departmentseting" + honorsRoute "key_performance_indicators/apirouter/v1/honorsRoute" + "key_performance_indicators/apirouter/v1/postseting" + "key_performance_indicators/apirouter/verifyLogin" + // "key_performance_indicators/v1" +) + +// 路由结构 +type RouterGroup struct { + EmpowerRouter empower.EmpowerApiRouter + VerifyLogin verifyLogin.ApiRouter + ShiyanApi apishiyan.ApiRouter + HonorsSouteRouter honorsRoute.ApiRouter + PostRouter postseting.ApiRouter + DepartmentRouter departmentseting.ApiRouter + +} + +var RouterGroupEntry = new(RouterGroup) diff --git a/.history/apirouter/entry_20220821094233.go b/.history/apirouter/entry_20220821094233.go new file mode 100644 index 0000000..d69b33d --- /dev/null +++ b/.history/apirouter/entry_20220821094233.go @@ -0,0 +1,24 @@ +package apirouter + +import ( + "key_performance_indicators/apirouter/apishiyan" + "key_performance_indicators/apirouter/empower" + "key_performance_indicators/apirouter/v1/departmentseting" + honorsRoute "key_performance_indicators/apirouter/v1/honorsRoute" + "key_performance_indicators/apirouter/v1/postseting" + "key_performance_indicators/apirouter/verifyLogin" + // "key_performance_indicators/v1" +) + +// 路由结构 +type RouterGroup struct { + EmpowerRouter empower.EmpowerApiRouter + VerifyLogin verifyLogin.ApiRouter + ShiyanApi apishiyan.ApiRouter + HonorsSouteRouter honorsRoute.ApiRouter + PostRouter postseting.ApiRouter + DepartmentRouter departmentseting.ApiRouter + +} + +var RouterGroupEntry = new(RouterGroup) diff --git a/.history/apirouter/entry_20220821094237.go b/.history/apirouter/entry_20220821094237.go new file mode 100644 index 0000000..28ef5f9 --- /dev/null +++ b/.history/apirouter/entry_20220821094237.go @@ -0,0 +1,24 @@ +package apirouter + +import ( + "key_performance_indicators/apirouter/apishiyan" + "key_performance_indicators/apirouter/empower" + "key_performance_indicators/apirouter/v1/departmentseting" + honorsRoute "key_performance_indicators/apirouter/v1/honorsRoute" + "key_performance_indicators/apirouter/v1/postseting" + "key_performance_indicators/apirouter/verifyLogin" + // "key_performance_indicators/v1" +) + +// 路由结构 +type RouterGroup struct { + EmpowerRouter empower.EmpowerApiRouter + VerifyLogin verifyLogin.ApiRouter + ShiyanApi apishiyan.ApiRouter + HonorsSouteRouter honorsRoute.ApiRouter + PostRouter postseting.ApiRouter + DepartmentRouter departmentseting.ApiRouter + Book +} + +var RouterGroupEntry = new(RouterGroup) diff --git a/.history/apirouter/entry_20220821094241.go b/.history/apirouter/entry_20220821094241.go new file mode 100644 index 0000000..8e878ab --- /dev/null +++ b/.history/apirouter/entry_20220821094241.go @@ -0,0 +1,24 @@ +package apirouter + +import ( + "key_performance_indicators/apirouter/apishiyan" + "key_performance_indicators/apirouter/empower" + "key_performance_indicators/apirouter/v1/departmentseting" + honorsRoute "key_performance_indicators/apirouter/v1/honorsRoute" + "key_performance_indicators/apirouter/v1/postseting" + "key_performance_indicators/apirouter/verifyLogin" + // "key_performance_indicators/v1" +) + +// 路由结构 +type RouterGroup struct { + EmpowerRouter empower.EmpowerApiRouter + VerifyLogin verifyLogin.ApiRouter + ShiyanApi apishiyan.ApiRouter + HonorsSouteRouter honorsRoute.ApiRouter + PostRouter postseting.ApiRouter + DepartmentRouter departmentseting.ApiRouter + BookImg +} + +var RouterGroupEntry = new(RouterGroup) diff --git a/.history/apirouter/entry_20220821094256.go b/.history/apirouter/entry_20220821094256.go new file mode 100644 index 0000000..558bb18 --- /dev/null +++ b/.history/apirouter/entry_20220821094256.go @@ -0,0 +1,25 @@ +package apirouter + +import ( + "key_performance_indicators/apirouter/apishiyan" + "key_performance_indicators/apirouter/empower" + "key_performance_indicators/apirouter/v1/bookimg" + "key_performance_indicators/apirouter/v1/departmentseting" + honorsRoute "key_performance_indicators/apirouter/v1/honorsRoute" + "key_performance_indicators/apirouter/v1/postseting" + "key_performance_indicators/apirouter/verifyLogin" + // "key_performance_indicators/v1" +) + +// 路由结构 +type RouterGroup struct { + EmpowerRouter empower.EmpowerApiRouter + VerifyLogin verifyLogin.ApiRouter + ShiyanApi apishiyan.ApiRouter + HonorsSouteRouter honorsRoute.ApiRouter + PostRouter postseting.ApiRouter + DepartmentRouter departmentseting.ApiRouter + BookImg bookimg.ApiRouter +} + +var RouterGroupEntry = new(RouterGroup) diff --git a/.history/apirouter/entry_20220821094258.go b/.history/apirouter/entry_20220821094258.go new file mode 100644 index 0000000..558bb18 --- /dev/null +++ b/.history/apirouter/entry_20220821094258.go @@ -0,0 +1,25 @@ +package apirouter + +import ( + "key_performance_indicators/apirouter/apishiyan" + "key_performance_indicators/apirouter/empower" + "key_performance_indicators/apirouter/v1/bookimg" + "key_performance_indicators/apirouter/v1/departmentseting" + honorsRoute "key_performance_indicators/apirouter/v1/honorsRoute" + "key_performance_indicators/apirouter/v1/postseting" + "key_performance_indicators/apirouter/verifyLogin" + // "key_performance_indicators/v1" +) + +// 路由结构 +type RouterGroup struct { + EmpowerRouter empower.EmpowerApiRouter + VerifyLogin verifyLogin.ApiRouter + ShiyanApi apishiyan.ApiRouter + HonorsSouteRouter honorsRoute.ApiRouter + PostRouter postseting.ApiRouter + DepartmentRouter departmentseting.ApiRouter + BookImg bookimg.ApiRouter +} + +var RouterGroupEntry = new(RouterGroup) diff --git a/.history/apirouter/entry_20220821094331.go b/.history/apirouter/entry_20220821094331.go new file mode 100644 index 0000000..558bb18 --- /dev/null +++ b/.history/apirouter/entry_20220821094331.go @@ -0,0 +1,25 @@ +package apirouter + +import ( + "key_performance_indicators/apirouter/apishiyan" + "key_performance_indicators/apirouter/empower" + "key_performance_indicators/apirouter/v1/bookimg" + "key_performance_indicators/apirouter/v1/departmentseting" + honorsRoute "key_performance_indicators/apirouter/v1/honorsRoute" + "key_performance_indicators/apirouter/v1/postseting" + "key_performance_indicators/apirouter/verifyLogin" + // "key_performance_indicators/v1" +) + +// 路由结构 +type RouterGroup struct { + EmpowerRouter empower.EmpowerApiRouter + VerifyLogin verifyLogin.ApiRouter + ShiyanApi apishiyan.ApiRouter + HonorsSouteRouter honorsRoute.ApiRouter + PostRouter postseting.ApiRouter + DepartmentRouter departmentseting.ApiRouter + BookImg bookimg.ApiRouter +} + +var RouterGroupEntry = new(RouterGroup) diff --git a/.history/apirouter/v1/bookimg/bookimg_route_20220819155956.go b/.history/apirouter/v1/bookimg/bookimg_route_20220819155956.go new file mode 100644 index 0000000..e69de29 diff --git a/.history/apirouter/v1/bookimg/bookimg_route_20220819160001.go b/.history/apirouter/v1/bookimg/bookimg_route_20220819160001.go new file mode 100644 index 0000000..de73c43 --- /dev/null +++ b/.history/apirouter/v1/bookimg/bookimg_route_20220819160001.go @@ -0,0 +1 @@ +package bookimg \ No newline at end of file diff --git a/.history/apirouter/v1/bookimg/bookimg_route_20220819160002.go b/.history/apirouter/v1/bookimg/bookimg_route_20220819160002.go new file mode 100644 index 0000000..cfc8841 --- /dev/null +++ b/.history/apirouter/v1/bookimg/bookimg_route_20220819160002.go @@ -0,0 +1 @@ +package bookimg diff --git a/.history/apirouter/v1/bookimg/bookimg_route_20220819160014.go b/.history/apirouter/v1/bookimg/bookimg_route_20220819160014.go new file mode 100644 index 0000000..a3ae08c --- /dev/null +++ b/.history/apirouter/v1/bookimg/bookimg_route_20220819160014.go @@ -0,0 +1,4 @@ +package bookimg + + +// 图文信息 diff --git a/.history/apirouter/v1/bookimg/bookimg_route_20220819160018.go b/.history/apirouter/v1/bookimg/bookimg_route_20220819160018.go new file mode 100644 index 0000000..f9202c5 --- /dev/null +++ b/.history/apirouter/v1/bookimg/bookimg_route_20220819160018.go @@ -0,0 +1,5 @@ +package bookimg + + +// 图文信息 +f \ No newline at end of file diff --git a/.history/apirouter/v1/bookimg/bookimg_route_20220819160020.go b/.history/apirouter/v1/bookimg/bookimg_route_20220819160020.go new file mode 100644 index 0000000..d53ec79 --- /dev/null +++ b/.history/apirouter/v1/bookimg/bookimg_route_20220819160020.go @@ -0,0 +1,5 @@ +package bookimg + + +// 图文信息 +func \ No newline at end of file diff --git a/.history/apirouter/v1/bookimg/bookimg_route_20220819160024.go b/.history/apirouter/v1/bookimg/bookimg_route_20220819160024.go new file mode 100644 index 0000000..25472cd --- /dev/null +++ b/.history/apirouter/v1/bookimg/bookimg_route_20220819160024.go @@ -0,0 +1,5 @@ +package bookimg + + +// 图文信息 +func( *a) \ No newline at end of file diff --git a/.history/apirouter/v1/bookimg/bookimg_route_20220819160025.go b/.history/apirouter/v1/bookimg/bookimg_route_20220819160025.go new file mode 100644 index 0000000..15d0969 --- /dev/null +++ b/.history/apirouter/v1/bookimg/bookimg_route_20220819160025.go @@ -0,0 +1,5 @@ +package bookimg + + +// 图文信息 +func( *ApiRouter) \ No newline at end of file diff --git a/.history/apirouter/v1/bookimg/bookimg_route_20220819160033.go b/.history/apirouter/v1/bookimg/bookimg_route_20220819160033.go new file mode 100644 index 0000000..485661d --- /dev/null +++ b/.history/apirouter/v1/bookimg/bookimg_route_20220819160033.go @@ -0,0 +1,5 @@ +package bookimg + + +// 图文信息 +func(a *ApiRouter) \ No newline at end of file diff --git a/.history/apirouter/v1/bookimg/bookimg_route_20220819160035.go b/.history/apirouter/v1/bookimg/bookimg_route_20220819160035.go new file mode 100644 index 0000000..46e0db0 --- /dev/null +++ b/.history/apirouter/v1/bookimg/bookimg_route_20220819160035.go @@ -0,0 +1,5 @@ +package bookimg + + +// 图文信息 +func(a *ApiRouter)RouterGroup \ No newline at end of file diff --git a/.history/apirouter/v1/bookimg/bookimg_route_20220819160036.go b/.history/apirouter/v1/bookimg/bookimg_route_20220819160036.go new file mode 100644 index 0000000..f49a167 --- /dev/null +++ b/.history/apirouter/v1/bookimg/bookimg_route_20220819160036.go @@ -0,0 +1,5 @@ +package bookimg + + +// 图文信息 +func(a *ApiRouter)RouterGroup() \ No newline at end of file diff --git a/.history/apirouter/v1/bookimg/bookimg_route_20220819160037.go b/.history/apirouter/v1/bookimg/bookimg_route_20220819160037.go new file mode 100644 index 0000000..80a7618 --- /dev/null +++ b/.history/apirouter/v1/bookimg/bookimg_route_20220819160037.go @@ -0,0 +1,7 @@ +package bookimg + + +// 图文信息 +func(a *ApiRouter)RouterGroup(){ + +} \ No newline at end of file diff --git a/.history/apirouter/v1/bookimg/bookimg_route_20220819160043.go b/.history/apirouter/v1/bookimg/bookimg_route_20220819160043.go new file mode 100644 index 0000000..af15533 --- /dev/null +++ b/.history/apirouter/v1/bookimg/bookimg_route_20220819160043.go @@ -0,0 +1,8 @@ +package bookimg + +import "github.com/gin-gonic/gin" + +// 图文信息 +func (a *ApiRouter) RouterGroup(router *gin.RouterGroup) { + +} diff --git a/.history/apirouter/v1/bookimg/bookimg_route_20220819160047.go b/.history/apirouter/v1/bookimg/bookimg_route_20220819160047.go new file mode 100644 index 0000000..6cf08ac --- /dev/null +++ b/.history/apirouter/v1/bookimg/bookimg_route_20220819160047.go @@ -0,0 +1,8 @@ +package bookimg + +import "github.com/gin-gonic/gin" + +// 图文信息 +func (a *ApiRouter) RouterGroup(router *gin.RouterGroup) { + +} diff --git a/.history/apirouter/v1/bookimg/bookimg_route_20220819160058.go b/.history/apirouter/v1/bookimg/bookimg_route_20220819160058.go new file mode 100644 index 0000000..5a52934 --- /dev/null +++ b/.history/apirouter/v1/bookimg/bookimg_route_20220819160058.go @@ -0,0 +1,8 @@ +package bookimg + +import "github.com/gin-gonic/gin" + +// 图文信息 +func (a *ApiRouter) RouterGroup(router *gin.RouterGroup) { + router.Group("") +} diff --git a/.history/apirouter/v1/bookimg/bookimg_route_20220819160102.go b/.history/apirouter/v1/bookimg/bookimg_route_20220819160102.go new file mode 100644 index 0000000..97e169c --- /dev/null +++ b/.history/apirouter/v1/bookimg/bookimg_route_20220819160102.go @@ -0,0 +1,8 @@ +package bookimg + +import "github.com/gin-gonic/gin" + +// 图文信息 +func (a *ApiRouter) RouterGroup(router *gin.RouterGroup) { + router.Group("bookimg") +} diff --git a/.history/apirouter/v1/bookimg/bookimg_route_20220819160122.go b/.history/apirouter/v1/bookimg/bookimg_route_20220819160122.go new file mode 100644 index 0000000..9836c0c --- /dev/null +++ b/.history/apirouter/v1/bookimg/bookimg_route_20220819160122.go @@ -0,0 +1,8 @@ +package bookimg + +import "github.com/gin-gonic/gin" + +// 图文信息 +func (a *ApiRouter) RouterGroup(router *gin.RouterGroup) { + apiRouter := router.Group("bookimg") +} diff --git a/.history/apirouter/v1/bookimg/bookimg_route_20220819160126.go b/.history/apirouter/v1/bookimg/bookimg_route_20220819160126.go new file mode 100644 index 0000000..7778414 --- /dev/null +++ b/.history/apirouter/v1/bookimg/bookimg_route_20220819160126.go @@ -0,0 +1,9 @@ +package bookimg + +import "github.com/gin-gonic/gin" + +// 图文信息 +func (a *ApiRouter) RouterGroup(router *gin.RouterGroup) { + apiRouter := router.Group("bookimg") + +} diff --git a/.history/apirouter/v1/bookimg/bookimg_route_20220819160136.go b/.history/apirouter/v1/bookimg/bookimg_route_20220819160136.go new file mode 100644 index 0000000..b2e4a6c --- /dev/null +++ b/.history/apirouter/v1/bookimg/bookimg_route_20220819160136.go @@ -0,0 +1,10 @@ +package bookimg + +import "github.com/gin-gonic/gin" + +// 图文信息 +func (a *ApiRouter) RouterGroup(router *gin.RouterGroup) { + apiRouter := router.Group("bookimg") + + var methodBinding +} diff --git a/.history/apirouter/v1/bookimg/bookimg_route_20220819160138.go b/.history/apirouter/v1/bookimg/bookimg_route_20220819160138.go new file mode 100644 index 0000000..d8327d7 --- /dev/null +++ b/.history/apirouter/v1/bookimg/bookimg_route_20220819160138.go @@ -0,0 +1,10 @@ +package bookimg + +import "github.com/gin-gonic/gin" + +// 图文信息 +func (a *ApiRouter) RouterGroup(router *gin.RouterGroup) { + apiRouter := router.Group("bookimg") + + var methodBinding := +} diff --git a/.history/apirouter/v1/bookimg/bookimg_route_20220819160139.go b/.history/apirouter/v1/bookimg/bookimg_route_20220819160139.go new file mode 100644 index 0000000..32023c6 --- /dev/null +++ b/.history/apirouter/v1/bookimg/bookimg_route_20220819160139.go @@ -0,0 +1,10 @@ +package bookimg + +import "github.com/gin-gonic/gin" + +// 图文信息 +func (a *ApiRouter) RouterGroup(router *gin.RouterGroup) { + apiRouter := router.Group("bookimg") + + var methodBinding := +} diff --git a/.history/apirouter/v1/bookimg/bookimg_route_20220819160144.go b/.history/apirouter/v1/bookimg/bookimg_route_20220819160144.go new file mode 100644 index 0000000..1d901c2 --- /dev/null +++ b/.history/apirouter/v1/bookimg/bookimg_route_20220819160144.go @@ -0,0 +1,10 @@ +package bookimg + +import "github.com/gin-gonic/gin" + +// 图文信息 +func (a *ApiRouter) RouterGroup(router *gin.RouterGroup) { + apiRouter := router.Group("bookimg") + + +} diff --git a/.history/apirouter/v1/bookimg/bookimg_route_20220819160148.go b/.history/apirouter/v1/bookimg/bookimg_route_20220819160148.go new file mode 100644 index 0000000..ebee139 --- /dev/null +++ b/.history/apirouter/v1/bookimg/bookimg_route_20220819160148.go @@ -0,0 +1,10 @@ +package bookimg + +import "github.com/gin-gonic/gin" + +// 图文信息 +func (a *ApiRouter) RouterGroup(router *gin.RouterGroup) { + apiRouter := router.Group("bookimg") + + +} diff --git a/.history/apirouter/v1/bookimg/bookimg_route_20220819160152.go b/.history/apirouter/v1/bookimg/bookimg_route_20220819160152.go new file mode 100644 index 0000000..8f519bd --- /dev/null +++ b/.history/apirouter/v1/bookimg/bookimg_route_20220819160152.go @@ -0,0 +1,10 @@ +package bookimg + +import "github.com/gin-gonic/gin" + +// 图文信息 +func (a *ApiRouter) RouterGroup(router *gin.RouterGroup) { + apiRouter := router.Group("bookimg") + + apiRouter. +} diff --git a/.history/apirouter/v1/bookimg/bookimg_route_20220819160155.go b/.history/apirouter/v1/bookimg/bookimg_route_20220819160155.go new file mode 100644 index 0000000..1d901c2 --- /dev/null +++ b/.history/apirouter/v1/bookimg/bookimg_route_20220819160155.go @@ -0,0 +1,10 @@ +package bookimg + +import "github.com/gin-gonic/gin" + +// 图文信息 +func (a *ApiRouter) RouterGroup(router *gin.RouterGroup) { + apiRouter := router.Group("bookimg") + + +} diff --git a/.history/apirouter/v1/bookimg/bookimg_route_20220819160157.go b/.history/apirouter/v1/bookimg/bookimg_route_20220819160157.go new file mode 100644 index 0000000..4cfce79 --- /dev/null +++ b/.history/apirouter/v1/bookimg/bookimg_route_20220819160157.go @@ -0,0 +1,9 @@ +package bookimg + +import "github.com/gin-gonic/gin" + +// 图文信息 +func (a *ApiRouter) RouterGroup(router *gin.RouterGroup) { + // apiRouter := router.Group("bookimg") + +} diff --git a/.history/apirouter/v1/bookimg/bookimg_route_20220821094745.go b/.history/apirouter/v1/bookimg/bookimg_route_20220821094745.go new file mode 100644 index 0000000..4cfce79 --- /dev/null +++ b/.history/apirouter/v1/bookimg/bookimg_route_20220821094745.go @@ -0,0 +1,9 @@ +package bookimg + +import "github.com/gin-gonic/gin" + +// 图文信息 +func (a *ApiRouter) RouterGroup(router *gin.RouterGroup) { + // apiRouter := router.Group("bookimg") + +} diff --git a/.history/apirouter/v1/bookimg/bookimg_route_20220821094807.go b/.history/apirouter/v1/bookimg/bookimg_route_20220821094807.go new file mode 100644 index 0000000..7916891 --- /dev/null +++ b/.history/apirouter/v1/bookimg/bookimg_route_20220821094807.go @@ -0,0 +1,11 @@ +package bookimg + +import "github.com/gin-gonic/gin" + +// 图文信息 +func (a *ApiRouter) RouterGroup(router *gin.RouterGroup) { + apiRouter := router.Group("bookimg") + + var methodBinding = + +} diff --git a/.history/apirouter/v1/bookimg/bookimg_route_20220821094809.go b/.history/apirouter/v1/bookimg/bookimg_route_20220821094809.go new file mode 100644 index 0000000..7916891 --- /dev/null +++ b/.history/apirouter/v1/bookimg/bookimg_route_20220821094809.go @@ -0,0 +1,11 @@ +package bookimg + +import "github.com/gin-gonic/gin" + +// 图文信息 +func (a *ApiRouter) RouterGroup(router *gin.RouterGroup) { + apiRouter := router.Group("bookimg") + + var methodBinding = + +} diff --git a/.history/apirouter/v1/bookimg/bookimg_route_20220821094813.go b/.history/apirouter/v1/bookimg/bookimg_route_20220821094813.go new file mode 100644 index 0000000..b70f2da --- /dev/null +++ b/.history/apirouter/v1/bookimg/bookimg_route_20220821094813.go @@ -0,0 +1,15 @@ +package bookimg + +import ( + "key_performance_indicators/api/version1/bookimg" + + "github.com/gin-gonic/gin" +) + +// 图文信息 +func (a *ApiRouter) RouterGroup(router *gin.RouterGroup) { + apiRouter := router.Group("bookimg") + + var methodBinding = bookimg. + +} diff --git a/.history/apirouter/v1/bookimg/bookimg_route_20220821094816.go b/.history/apirouter/v1/bookimg/bookimg_route_20220821094816.go new file mode 100644 index 0000000..a4d0a94 --- /dev/null +++ b/.history/apirouter/v1/bookimg/bookimg_route_20220821094816.go @@ -0,0 +1,15 @@ +package bookimg + +import ( + "key_performance_indicators/api/version1/bookimg" + + "github.com/gin-gonic/gin" +) + +// 图文信息 +func (a *ApiRouter) RouterGroup(router *gin.RouterGroup) { + apiRouter := router.Group("bookimg") + + var methodBinding = bookimg.ApiMethod + +} diff --git a/.history/apirouter/v1/bookimg/bookimg_route_20220821094830.go b/.history/apirouter/v1/bookimg/bookimg_route_20220821094830.go new file mode 100644 index 0000000..0452551 --- /dev/null +++ b/.history/apirouter/v1/bookimg/bookimg_route_20220821094830.go @@ -0,0 +1,14 @@ +package bookimg + +import ( + "key_performance_indicators/api/version1/bookimg" + + "github.com/gin-gonic/gin" +) + +// 图文信息 +func (a *ApiRouter) RouterGroup(router *gin.RouterGroup) { + apiRouter := router.Group("bookimg") + + var methodBinding = va +} diff --git a/.history/apirouter/v1/bookimg/bookimg_route_20220821094833.go b/.history/apirouter/v1/bookimg/bookimg_route_20220821094833.go new file mode 100644 index 0000000..59babec --- /dev/null +++ b/.history/apirouter/v1/bookimg/bookimg_route_20220821094833.go @@ -0,0 +1,15 @@ +package bookimg + +import ( + "key_performance_indicators/api/version1" + "key_performance_indicators/api/version1/bookimg" + + "github.com/gin-gonic/gin" +) + +// 图文信息 +func (a *ApiRouter) RouterGroup(router *gin.RouterGroup) { + apiRouter := router.Group("bookimg") + + var methodBinding = version1. +} diff --git a/.history/apirouter/v1/bookimg/bookimg_route_20220821094835.go b/.history/apirouter/v1/bookimg/bookimg_route_20220821094835.go new file mode 100644 index 0000000..13906f6 --- /dev/null +++ b/.history/apirouter/v1/bookimg/bookimg_route_20220821094835.go @@ -0,0 +1,15 @@ +package bookimg + +import ( + "key_performance_indicators/api/version1" + "key_performance_indicators/api/version1/bookimg" + + "github.com/gin-gonic/gin" +) + +// 图文信息 +func (a *ApiRouter) RouterGroup(router *gin.RouterGroup) { + apiRouter := router.Group("bookimg") + + var methodBinding = version1.AppApiEntry. +} diff --git a/.history/apirouter/v1/bookimg/bookimg_route_20220821094840.go b/.history/apirouter/v1/bookimg/bookimg_route_20220821094840.go new file mode 100644 index 0000000..6974434 --- /dev/null +++ b/.history/apirouter/v1/bookimg/bookimg_route_20220821094840.go @@ -0,0 +1,15 @@ +package bookimg + +import ( + "key_performance_indicators/api/version1" + "key_performance_indicators/api/version1/bookimg" + + "github.com/gin-gonic/gin" +) + +// 图文信息 +func (a *ApiRouter) RouterGroup(router *gin.RouterGroup) { + apiRouter := router.Group("bookimg") + + var methodBinding = version1.AppApiEntry +} diff --git a/.history/apirouter/v1/bookimg/bookimg_route_20220821095055.go b/.history/apirouter/v1/bookimg/bookimg_route_20220821095055.go new file mode 100644 index 0000000..13906f6 --- /dev/null +++ b/.history/apirouter/v1/bookimg/bookimg_route_20220821095055.go @@ -0,0 +1,15 @@ +package bookimg + +import ( + "key_performance_indicators/api/version1" + "key_performance_indicators/api/version1/bookimg" + + "github.com/gin-gonic/gin" +) + +// 图文信息 +func (a *ApiRouter) RouterGroup(router *gin.RouterGroup) { + apiRouter := router.Group("bookimg") + + var methodBinding = version1.AppApiEntry. +} diff --git a/.history/apirouter/v1/bookimg/bookimg_route_20220821095058.go b/.history/apirouter/v1/bookimg/bookimg_route_20220821095058.go new file mode 100644 index 0000000..2d5a8f0 --- /dev/null +++ b/.history/apirouter/v1/bookimg/bookimg_route_20220821095058.go @@ -0,0 +1,15 @@ +package bookimg + +import ( + "key_performance_indicators/api/version1" + "key_performance_indicators/api/version1/bookimg" + + "github.com/gin-gonic/gin" +) + +// 图文信息 +func (a *ApiRouter) RouterGroup(router *gin.RouterGroup) { + apiRouter := router.Group("bookimg") + + var methodBinding = version1.AppApiEntry.boo +} diff --git a/.history/apirouter/v1/bookimg/bookimg_route_20220821095103.go b/.history/apirouter/v1/bookimg/bookimg_route_20220821095103.go new file mode 100644 index 0000000..e50d915 --- /dev/null +++ b/.history/apirouter/v1/bookimg/bookimg_route_20220821095103.go @@ -0,0 +1,14 @@ +package bookimg + +import ( + "key_performance_indicators/api/version1" + + "github.com/gin-gonic/gin" +) + +// 图文信息 +func (a *ApiRouter) RouterGroup(router *gin.RouterGroup) { + apiRouter := router.Group("bookimg") + + var methodBinding = version1.AppApiEntry.BookImg +} diff --git a/.history/apirouter/v1/bookimg/bookimg_route_20220821095124.go b/.history/apirouter/v1/bookimg/bookimg_route_20220821095124.go new file mode 100644 index 0000000..e410f47 --- /dev/null +++ b/.history/apirouter/v1/bookimg/bookimg_route_20220821095124.go @@ -0,0 +1,13 @@ +package bookimg + +import ( + "key_performance_indicators/api/version1" + "github.com/gin-gonic/gin" +) + +// 图文信息 +func (a *ApiRouter) RouterGroup(router *gin.RouterGroup) { + apiRouter := router.Group("bookimg") + + var methodBinding = version1.AppApiEntry.BookImg +} diff --git a/.history/apirouter/v1/bookimg/bookimg_route_20220821095128.go b/.history/apirouter/v1/bookimg/bookimg_route_20220821095128.go new file mode 100644 index 0000000..7b8011c --- /dev/null +++ b/.history/apirouter/v1/bookimg/bookimg_route_20220821095128.go @@ -0,0 +1,16 @@ +package bookimg + +import ( + "key_performance_indicators/api/version1" + "github.com/gin-gonic/gin" +) + +// 图文信息 +func (a *ApiRouter) RouterGroup(router *gin.RouterGroup) { + apiRouter := router.Group("bookimg") + + var methodBinding = version1.AppApiEntry.BookImg + { + + } +} diff --git a/.history/apirouter/v1/bookimg/bookimg_route_20220821095134.go b/.history/apirouter/v1/bookimg/bookimg_route_20220821095134.go new file mode 100644 index 0000000..05dd00b --- /dev/null +++ b/.history/apirouter/v1/bookimg/bookimg_route_20220821095134.go @@ -0,0 +1,16 @@ +package bookimg + +import ( + "key_performance_indicators/api/version1" + "github.com/gin-gonic/gin" +) + +// 图文信息 +func (a *ApiRouter) RouterGroup(router *gin.RouterGroup) { + apiRouter := router.Group("bookimg") + + var methodBinding = version1.AppApiEntry.BookImg + { + apiRouter. + } +} diff --git a/.history/apirouter/v1/bookimg/bookimg_route_20220821095135.go b/.history/apirouter/v1/bookimg/bookimg_route_20220821095135.go new file mode 100644 index 0000000..6e4677b --- /dev/null +++ b/.history/apirouter/v1/bookimg/bookimg_route_20220821095135.go @@ -0,0 +1,16 @@ +package bookimg + +import ( + "key_performance_indicators/api/version1" + "github.com/gin-gonic/gin" +) + +// 图文信息 +func (a *ApiRouter) RouterGroup(router *gin.RouterGroup) { + apiRouter := router.Group("bookimg") + + var methodBinding = version1.AppApiEntry.BookImg + { + apiRouter.g + } +} diff --git a/.history/apirouter/v1/bookimg/bookimg_route_20220821095136.go b/.history/apirouter/v1/bookimg/bookimg_route_20220821095136.go new file mode 100644 index 0000000..35fbc86 --- /dev/null +++ b/.history/apirouter/v1/bookimg/bookimg_route_20220821095136.go @@ -0,0 +1,16 @@ +package bookimg + +import ( + "key_performance_indicators/api/version1" + "github.com/gin-gonic/gin" +) + +// 图文信息 +func (a *ApiRouter) RouterGroup(router *gin.RouterGroup) { + apiRouter := router.Group("bookimg") + + var methodBinding = version1.AppApiEntry.BookImg + { + apiRouter.GET() + } +} diff --git a/.history/apirouter/v1/bookimg/bookimg_route_20220821095145.go b/.history/apirouter/v1/bookimg/bookimg_route_20220821095145.go new file mode 100644 index 0000000..a935c1a --- /dev/null +++ b/.history/apirouter/v1/bookimg/bookimg_route_20220821095145.go @@ -0,0 +1,17 @@ +package bookimg + +import ( + "key_performance_indicators/api/version1" + "github.com/gin-gonic/gin" +) + +// 图文信息 +func (a *ApiRouter) RouterGroup(router *gin.RouterGroup) { + apiRouter := router.Group("bookimg") + + var methodBinding = version1.AppApiEntry.BookImg + { + apiRouter.GET("", methodBinding.Index) //入口 + apiRouter.POST("", methodBinding.Index) //入口 + } +} diff --git a/.history/apirouter/v1/bookimg/bookimg_route_20220821095232.go b/.history/apirouter/v1/bookimg/bookimg_route_20220821095232.go new file mode 100644 index 0000000..11fca03 --- /dev/null +++ b/.history/apirouter/v1/bookimg/bookimg_route_20220821095232.go @@ -0,0 +1,18 @@ +package bookimg + +import ( + "key_performance_indicators/api/version1" + + "github.com/gin-gonic/gin" +) + +// 图文信息 +func (a *ApiRouter) RouterGroup(router *gin.RouterGroup) { + apiRouter := router.Group("bookimg") + + var methodBinding = version1.AppApiEntry.BookImg + { + apiRouter.GET("", methodBinding.Index) //入口 + apiRouter.POST("", methodBinding.Index) //入口 + } +} diff --git a/.history/apirouter/v1/bookimg/type_20220819155901.go b/.history/apirouter/v1/bookimg/type_20220819155901.go new file mode 100644 index 0000000..e69de29 diff --git a/.history/apirouter/v1/bookimg/type_20220819155909.go b/.history/apirouter/v1/bookimg/type_20220819155909.go new file mode 100644 index 0000000..cfc8841 --- /dev/null +++ b/.history/apirouter/v1/bookimg/type_20220819155909.go @@ -0,0 +1 @@ +package bookimg diff --git a/.history/apirouter/v1/bookimg/type_20220819155915.go b/.history/apirouter/v1/bookimg/type_20220819155915.go new file mode 100644 index 0000000..3a0f942 --- /dev/null +++ b/.history/apirouter/v1/bookimg/type_20220819155915.go @@ -0,0 +1,2 @@ +package bookimg +type struct ApiMethod \ No newline at end of file diff --git a/.history/apirouter/v1/bookimg/type_20220819155916.go b/.history/apirouter/v1/bookimg/type_20220819155916.go new file mode 100644 index 0000000..862f59e --- /dev/null +++ b/.history/apirouter/v1/bookimg/type_20220819155916.go @@ -0,0 +1,2 @@ +package bookimg +type struct ApiMethod{} \ No newline at end of file diff --git a/.history/apirouter/v1/bookimg/type_20220819155923.go b/.history/apirouter/v1/bookimg/type_20220819155923.go new file mode 100644 index 0000000..f82dbd9 --- /dev/null +++ b/.history/apirouter/v1/bookimg/type_20220819155923.go @@ -0,0 +1,2 @@ +package bookimg +type ApiRouter{} \ No newline at end of file diff --git a/.history/apirouter/v1/bookimg/type_20220819155925.go b/.history/apirouter/v1/bookimg/type_20220819155925.go new file mode 100644 index 0000000..abd9ac0 --- /dev/null +++ b/.history/apirouter/v1/bookimg/type_20220819155925.go @@ -0,0 +1,3 @@ +package bookimg + +type ApiRouter struct{} diff --git a/.history/apirouter/v1/bookimg/type_20220819155930.go b/.history/apirouter/v1/bookimg/type_20220819155930.go new file mode 100644 index 0000000..0ccf849 --- /dev/null +++ b/.history/apirouter/v1/bookimg/type_20220819155930.go @@ -0,0 +1,4 @@ +package bookimg + +. +type ApiRouter struct{} diff --git a/.history/apirouter/v1/bookimg/type_20220819155932.go b/.history/apirouter/v1/bookimg/type_20220819155932.go new file mode 100644 index 0000000..27a02b4 --- /dev/null +++ b/.history/apirouter/v1/bookimg/type_20220819155932.go @@ -0,0 +1,4 @@ +package bookimg + +// +type ApiRouter struct{} diff --git a/.history/apirouter/v1/bookimg/type_20220819155938.go b/.history/apirouter/v1/bookimg/type_20220819155938.go new file mode 100644 index 0000000..01d7ede --- /dev/null +++ b/.history/apirouter/v1/bookimg/type_20220819155938.go @@ -0,0 +1,4 @@ +package bookimg + +// 图文信息 +type ApiRouter struct{} diff --git a/.history/apirouter/v1/bookimg/type_20220819155940.go b/.history/apirouter/v1/bookimg/type_20220819155940.go new file mode 100644 index 0000000..01d7ede --- /dev/null +++ b/.history/apirouter/v1/bookimg/type_20220819155940.go @@ -0,0 +1,4 @@ +package bookimg + +// 图文信息 +type ApiRouter struct{} diff --git a/.history/apirouter/v1/bookimg/type_20220821094618.go b/.history/apirouter/v1/bookimg/type_20220821094618.go new file mode 100644 index 0000000..f96304a --- /dev/null +++ b/.history/apirouter/v1/bookimg/type_20220821094618.go @@ -0,0 +1,6 @@ +package bookimg + +// 图文信息 +type ApiRouter struct{} + + diff --git a/.history/apirouter/v1/bookimg/type_20220821094625.go b/.history/apirouter/v1/bookimg/type_20220821094625.go new file mode 100644 index 0000000..01d7ede --- /dev/null +++ b/.history/apirouter/v1/bookimg/type_20220821094625.go @@ -0,0 +1,4 @@ +package bookimg + +// 图文信息 +type ApiRouter struct{} diff --git a/.history/apirouter/v1/bookimg/type_20220821094633.go b/.history/apirouter/v1/bookimg/type_20220821094633.go new file mode 100644 index 0000000..98ec4d3 --- /dev/null +++ b/.history/apirouter/v1/bookimg/type_20220821094633.go @@ -0,0 +1,6 @@ +package bookimg + +// 图文信息 +type ApiRouter struct{} + +func diff --git a/.history/apirouter/v1/bookimg/type_20220821094637.go b/.history/apirouter/v1/bookimg/type_20220821094637.go new file mode 100644 index 0000000..c768e00 --- /dev/null +++ b/.history/apirouter/v1/bookimg/type_20220821094637.go @@ -0,0 +1,6 @@ +package bookimg + +// 图文信息 +type ApiRouter struct{} + +func (a *ApiRouter) diff --git a/.history/apirouter/v1/bookimg/type_20220821094638.go b/.history/apirouter/v1/bookimg/type_20220821094638.go new file mode 100644 index 0000000..d8fd27c --- /dev/null +++ b/.history/apirouter/v1/bookimg/type_20220821094638.go @@ -0,0 +1,6 @@ +package bookimg + +// 图文信息 +type ApiRouter struct{} + +func (a *ApiRouter) diff --git a/.history/apirouter/v1/bookimg/type_20220821094645.go b/.history/apirouter/v1/bookimg/type_20220821094645.go new file mode 100644 index 0000000..8f1dcf8 --- /dev/null +++ b/.history/apirouter/v1/bookimg/type_20220821094645.go @@ -0,0 +1,6 @@ +package bookimg + +// 图文信息 +type ApiRouter struct{} + +func (a *ApiRouter) RouterGroup() diff --git a/.history/apirouter/v1/bookimg/type_20220821094647.go b/.history/apirouter/v1/bookimg/type_20220821094647.go new file mode 100644 index 0000000..155cb23 --- /dev/null +++ b/.history/apirouter/v1/bookimg/type_20220821094647.go @@ -0,0 +1,8 @@ +package bookimg + +// 图文信息 +type ApiRouter struct{} + +func (a *ApiRouter) RouterGroup(){ + +} diff --git a/.history/apirouter/v1/bookimg/type_20220821094653.go b/.history/apirouter/v1/bookimg/type_20220821094653.go new file mode 100644 index 0000000..e6bd14c --- /dev/null +++ b/.history/apirouter/v1/bookimg/type_20220821094653.go @@ -0,0 +1,8 @@ +package bookimg + +// 图文信息 +type ApiRouter struct{} + +func (a *ApiRouter) RouterGroup(router ){ + +} diff --git a/.history/apirouter/v1/bookimg/type_20220821094656.go b/.history/apirouter/v1/bookimg/type_20220821094656.go new file mode 100644 index 0000000..fcd258d --- /dev/null +++ b/.history/apirouter/v1/bookimg/type_20220821094656.go @@ -0,0 +1,8 @@ +package bookimg + +// 图文信息 +type ApiRouter struct{} + +func (a *ApiRouter) RouterGroup(router *gin.){ + +} diff --git a/.history/apirouter/v1/bookimg/type_20220821094657.go b/.history/apirouter/v1/bookimg/type_20220821094657.go new file mode 100644 index 0000000..519cf5f --- /dev/null +++ b/.history/apirouter/v1/bookimg/type_20220821094657.go @@ -0,0 +1,8 @@ +package bookimg + +// 图文信息 +type ApiRouter struct{} + +func (a *ApiRouter) RouterGroup(router *gin.ro){ + +} diff --git a/.history/apirouter/v1/bookimg/type_20220821094659.go b/.history/apirouter/v1/bookimg/type_20220821094659.go new file mode 100644 index 0000000..c258884 --- /dev/null +++ b/.history/apirouter/v1/bookimg/type_20220821094659.go @@ -0,0 +1,8 @@ +package bookimg + +// 图文信息 +type ApiRouter struct{} + +func (a *ApiRouter) RouterGroup(router *gin.rouer){ + +} diff --git a/.history/apirouter/v1/bookimg/type_20220821094700.go b/.history/apirouter/v1/bookimg/type_20220821094700.go new file mode 100644 index 0000000..990e278 --- /dev/null +++ b/.history/apirouter/v1/bookimg/type_20220821094700.go @@ -0,0 +1,10 @@ +package bookimg + +import "github.com/gin-gonic/gin" + +// 图文信息 +type ApiRouter struct{} + +func (a *ApiRouter) RouterGroup(router *gin.RouterGroup){ + +} diff --git a/.history/apirouter/v1/bookimg/type_20220821094704.go b/.history/apirouter/v1/bookimg/type_20220821094704.go new file mode 100644 index 0000000..a363b53 --- /dev/null +++ b/.history/apirouter/v1/bookimg/type_20220821094704.go @@ -0,0 +1,10 @@ +package bookimg + +import "github.com/gin-gonic/gin" + +// 图文信息 +type ApiRouter struct{} + +func (a *ApiRouter) RouterGroup(router *gin.RouterGroup) { + +} diff --git a/.history/apirouter/v1/bookimg/type_20220821094739.go b/.history/apirouter/v1/bookimg/type_20220821094739.go new file mode 100644 index 0000000..01d7ede --- /dev/null +++ b/.history/apirouter/v1/bookimg/type_20220821094739.go @@ -0,0 +1,4 @@ +package bookimg + +// 图文信息 +type ApiRouter struct{} diff --git a/.history/initialization/app/run_20220818143450.go b/.history/initialization/app/run_20220818143450.go new file mode 100644 index 0000000..d22ac79 --- /dev/null +++ b/.history/initialization/app/run_20220818143450.go @@ -0,0 +1,27 @@ +package app + +import ( + "fmt" + "key_performance_indicators/initialization" + "key_performance_indicators/initialization/route" + "key_performance_indicators/overall" +) + +type server interface { + ListenAndServe() error +} + +//启动服务 +func RunItem() { + //加载基础配置 + // var appConfig configApp.Server + initialization.RunViper(&overall.CONSTANT_CONFIG) + // fmt.Printf("----------->%v", overall.CONSTANT_CONFIG) + routers := route.InitialRouter() + portStr := fmt.Sprintf(":%d", overall.CONSTANT_CONFIG.Appsetup.Port) + startUp := InitServer(portStr, routers) + + fmt.Printf("\n\n默认API运行地址:http://127.0.0.1%s\n", portStr) + runErr := startUp.ListenAndServe().Error() + panic(fmt.Errorf(runErr)) +} diff --git a/.history/initialization/app/run_20220819150713.go b/.history/initialization/app/run_20220819150713.go new file mode 100644 index 0000000..d22ac79 --- /dev/null +++ b/.history/initialization/app/run_20220819150713.go @@ -0,0 +1,27 @@ +package app + +import ( + "fmt" + "key_performance_indicators/initialization" + "key_performance_indicators/initialization/route" + "key_performance_indicators/overall" +) + +type server interface { + ListenAndServe() error +} + +//启动服务 +func RunItem() { + //加载基础配置 + // var appConfig configApp.Server + initialization.RunViper(&overall.CONSTANT_CONFIG) + // fmt.Printf("----------->%v", overall.CONSTANT_CONFIG) + routers := route.InitialRouter() + portStr := fmt.Sprintf(":%d", overall.CONSTANT_CONFIG.Appsetup.Port) + startUp := InitServer(portStr, routers) + + fmt.Printf("\n\n默认API运行地址:http://127.0.0.1%s\n", portStr) + runErr := startUp.ListenAndServe().Error() + panic(fmt.Errorf(runErr)) +} diff --git a/.history/initialization/route/initRoute_20220818143450.go b/.history/initialization/route/initRoute_20220818143450.go new file mode 100644 index 0000000..0c6a8d8 --- /dev/null +++ b/.history/initialization/route/initRoute_20220818143450.go @@ -0,0 +1,69 @@ +package route + +import ( + "key_performance_indicators/apirouter" + "key_performance_indicators/identification/interceptor" + + "github.com/gin-gonic/gin" +) + +// 初始化主路由 +func InitialRouter() *gin.Engine { + var router = gin.Default() + + //app默认相应 + appLoadRouterGroup := router.Group("") + { + + // 跨域设置 + // router.Use(middleware.CrossDomainRequest()) // 如需跨域可以打开 + //app默认相应 + appLoadRouterGroup.GET("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + appLoadRouterGroup.POST("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + //实验路由 + shiyanApi := apirouter.RouterGroupEntry.ShiyanApi + { + shiyanApi.RouterGroup(appLoadRouterGroup) + } + //OAuth 2.0 授权 + oAuthEmpowerApi := apirouter.RouterGroupEntry.EmpowerRouter + { + oAuthEmpowerApi.RouterGroup(appLoadRouterGroup) + } + //登录验证 + loginVerifyApi := apirouter.RouterGroupEntry.VerifyLogin + { + loginVerifyApi.RouterGroup(appLoadRouterGroup) + } + } + + //验证身份接口 + VerifyIdentity := router.Group("") + VerifyIdentity.Use(interceptor.AuthenticateUser()).Use(interceptor.VerifyUrl()) + { + //v1版本接口 + + //荣誉墙 + version1HonorsApi := apirouter.RouterGroupEntry.HonorsSouteRouter + version1HonorsApi.RouterGroup(VerifyIdentity) + //岗位考核 + postRouterApi := apirouter.RouterGroupEntry.PostRouter + postRouterApi.RouterGroupPc(VerifyIdentity) //pc端 + postRouterApi.RouterGroupWeb(VerifyIdentity) //web端 + //部门考核 + departmentRouterApi := apirouter.RouterGroupEntry.DepartmentRouter + departmentRouterApi.RouterGroupPc(VerifyIdentity) //pc端 + departmentRouterApi.RouterGroupWeb(VerifyIdentity) //web端 + } + //Token身份验证 + VerifyIdentityToken := router.Group("") + VerifyIdentityToken.Use(interceptor.IdentificationToken()) + { + + } + return router +} diff --git a/.history/initialization/route/initRoute_20220821094324.go b/.history/initialization/route/initRoute_20220821094324.go new file mode 100644 index 0000000..0c6a8d8 --- /dev/null +++ b/.history/initialization/route/initRoute_20220821094324.go @@ -0,0 +1,69 @@ +package route + +import ( + "key_performance_indicators/apirouter" + "key_performance_indicators/identification/interceptor" + + "github.com/gin-gonic/gin" +) + +// 初始化主路由 +func InitialRouter() *gin.Engine { + var router = gin.Default() + + //app默认相应 + appLoadRouterGroup := router.Group("") + { + + // 跨域设置 + // router.Use(middleware.CrossDomainRequest()) // 如需跨域可以打开 + //app默认相应 + appLoadRouterGroup.GET("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + appLoadRouterGroup.POST("/", func(c *gin.Context) { + c.JSON(0, "通讯成功!") + }) + //实验路由 + shiyanApi := apirouter.RouterGroupEntry.ShiyanApi + { + shiyanApi.RouterGroup(appLoadRouterGroup) + } + //OAuth 2.0 授权 + oAuthEmpowerApi := apirouter.RouterGroupEntry.EmpowerRouter + { + oAuthEmpowerApi.RouterGroup(appLoadRouterGroup) + } + //登录验证 + loginVerifyApi := apirouter.RouterGroupEntry.VerifyLogin + { + loginVerifyApi.RouterGroup(appLoadRouterGroup) + } + } + + //验证身份接口 + VerifyIdentity := router.Group("") + VerifyIdentity.Use(interceptor.AuthenticateUser()).Use(interceptor.VerifyUrl()) + { + //v1版本接口 + + //荣誉墙 + version1HonorsApi := apirouter.RouterGroupEntry.HonorsSouteRouter + version1HonorsApi.RouterGroup(VerifyIdentity) + //岗位考核 + postRouterApi := apirouter.RouterGroupEntry.PostRouter + postRouterApi.RouterGroupPc(VerifyIdentity) //pc端 + postRouterApi.RouterGroupWeb(VerifyIdentity) //web端 + //部门考核 + departmentRouterApi := apirouter.RouterGroupEntry.DepartmentRouter + departmentRouterApi.RouterGroupPc(VerifyIdentity) //pc端 + departmentRouterApi.RouterGroupWeb(VerifyIdentity) //web端 + } + //Token身份验证 + VerifyIdentityToken := router.Group("") + VerifyIdentityToken.Use(interceptor.IdentificationToken()) + { + + } + return router +} diff --git a/.history/main_20220818143106.go b/.history/main_20220818143106.go new file mode 100644 index 0000000..9a4999c --- /dev/null +++ b/.history/main_20220818143106.go @@ -0,0 +1,17 @@ +package main + +import ( + "key_performance_indicators/initialization/app" + "key_performance_indicators/initialization/databaseinit" + "key_performance_indicators/initialization/nosql" +) + +func main() { + //加载数据库 + databaseinit.LoadDatabase() + //加载Redis + nosql.LoadRedis() + //启动定时任务 + // scheduledtask.TimeTask() + app.RunItem() +} diff --git a/.history/main_20220819150513.go b/.history/main_20220819150513.go new file mode 100644 index 0000000..9a4999c --- /dev/null +++ b/.history/main_20220819150513.go @@ -0,0 +1,17 @@ +package main + +import ( + "key_performance_indicators/initialization/app" + "key_performance_indicators/initialization/databaseinit" + "key_performance_indicators/initialization/nosql" +) + +func main() { + //加载数据库 + databaseinit.LoadDatabase() + //加载Redis + nosql.LoadRedis() + //启动定时任务 + // scheduledtask.TimeTask() + app.RunItem() +} diff --git a/.history/main_20220819150514.go b/.history/main_20220819150514.go new file mode 100644 index 0000000..9a4999c --- /dev/null +++ b/.history/main_20220819150514.go @@ -0,0 +1,17 @@ +package main + +import ( + "key_performance_indicators/initialization/app" + "key_performance_indicators/initialization/databaseinit" + "key_performance_indicators/initialization/nosql" +) + +func main() { + //加载数据库 + databaseinit.LoadDatabase() + //加载Redis + nosql.LoadRedis() + //启动定时任务 + // scheduledtask.TimeTask() + app.RunItem() +} diff --git a/.history/middleware/grocerystore/redis_20220818143106.go b/.history/middleware/grocerystore/redis_20220818143106.go new file mode 100644 index 0000000..1df5c4d --- /dev/null +++ b/.history/middleware/grocerystore/redis_20220818143106.go @@ -0,0 +1,380 @@ +package grocerystore + +import ( + "context" + "fmt" + "key_performance_indicators/overall" + "time" + + "github.com/go-redis/redis/v8" +) + +//redis 基础设定 +type RedisStoreType struct { + Expiration time.Duration + PreKey string + Context context.Context + RedisDb *redis.Client +} + +//启动redis +func RunRedis(redisClient *redis.Client) *RedisStoreType { + var redisStoreType RedisStoreType + redisStoreType.Expiration = time.Second * 300 + redisStoreType.PreKey = fmt.Sprintf("%v:", overall.CONSTANT_CONFIG.RedisPrefixStr.PreFix) + redisStoreType.Context = context.Background() + redisStoreType.RedisDb = redisClient + return &redisStoreType +} + +//设置键前缀 +func (r *RedisStoreType) SetRedisPrefix(prefix string) { + r.PreKey = prefix +} + +//设置过期时间 +func (r *RedisStoreType) SetRedisTime(timeDate int64) { + r.Expiration = time.Second * time.Duration(timeDate) +} + +//设置字符串 +func (r *RedisStoreType) Set(key string, value string) bool { + err := r.RedisDb.Set(r.Context, r.PreKey+key, value, r.Expiration).Err() + if err != nil { + return false + } + return true +} + +//获取字符串 +func (r *RedisStoreType) Get(key string) (bool, string) { + err := r.RedisDb.Get(r.Context, r.PreKey+key) + if err.Err() != nil { + return false, "" + } + return true, err.Val() +} + +//删除键 +func (r *RedisStoreType) DelKey(key string) bool { + err := r.RedisDb.Del(r.Context, r.PreKey+key).Err() + if err != nil { + return false + } + return true +} + +//哈希操作 +/* +获取单个哈希键值 +@hashName 集合名称 +@hashKey 哈希键 +callback + errs 状态 + hashVal 获得值 +*/ +func (r *RedisStoreType) HashGet(hashName, hashKey string) (errs bool, hashVal string) { + err := r.RedisDb.HGet(r.Context, r.PreKey+hashName, hashKey) + if err.Err() != nil { + return false, "" + } + return true, err.Val() +} + +/* +为哈希表中的字段赋值 。 单一设置 +@hashName 集合名称 +@hashKey 哈希键 +@hashVal 要添加的值 +*/ +func (r *RedisStoreType) HashSet(hashName, hashKey, hashVal string) bool { + err := r.RedisDb.HSet(r.Context, r.PreKey+hashName, hashKey, hashVal).Err() + if err != nil { + return false + } + if r.Expiration == 0 { + r.RedisDb.Persist(r.Context, r.PreKey+hashName) + } else { + r.RedisDb.PExpire(r.Context, r.PreKey+hashName, r.Expiration) + } + // global.GVA_REDIS.PExpire(r.Context, r.PreKey+hashName, r.Expiration) + return true +} + +/* +同时将多个 field-value (字段-值)对设置到哈希表中。 +@hashName 集合名称 +@hashVal 要添加的键与值 +*/ +func (r *RedisStoreType) HashMsetAdd(hashName string, hashVal map[string]interface{}) bool { + // rdb := RedisInit() + err := r.RedisDb.HMSet(r.Context, r.PreKey+hashName, hashVal).Err() + // fmt.Printf("错误sss=========》%v=====2====》%v\n", err, hashVal) + // err := rdb.HMSet(ctx, "userfg", hashVal).Err() + if err != nil { + return false + } + if r.Expiration == 0 { + r.RedisDb.Persist(r.Context, r.PreKey+hashName) + } else { + r.RedisDb.PExpire(r.Context, r.PreKey+hashName, r.Expiration) + } + + return true +} +func (r *RedisStoreType) HashMsetAddAry(hashName string, hashVal []map[string]interface{}) bool { + // rdb := RedisInit() + err := r.RedisDb.HMSet(r.Context, r.PreKey+hashName, hashVal).Err() + // err := rdb.HMSet(ctx, "userfg", hashVal).Err() + if err != nil { + return false + } + if r.Expiration == 0 { + r.RedisDb.Persist(r.Context, r.PreKey+hashName) + } else { + r.RedisDb.PExpire(r.Context, r.PreKey+hashName, r.Expiration) + } + // global.GVA_REDIS.PExpire(r.Context, r.PreKey+hashName, r.Expiration) + // fmt.Printf("错误sss=========》%v\n", hashVal) + return true +} + +/* +返回哈希表中,所有的字段和值。 +@hashName 集合名称 +@hashKey 哈希键 +*/ +func (r *RedisStoreType) HashGetAll(hashName string) (map[string]string, bool) { + // rdb := RedisInit() + // fmt.Printf("strKEy:===>%v\n", r.PreKey+hashName) + val, err := r.RedisDb.HGetAll(r.Context, r.PreKey+hashName).Result() + if err != nil { + return val, false + } + if len(val) == 0 { + return val, false + } + return val, true +} + +//Redis 列表(List) + +/** +Linsert 命令用于在列表的元素前或者后插入元素。当指定元素不存在于列表中时,不执行任何操作。 +当列表不存在时,被视为空列表,不执行任何操作。 +如果 key 不是列表类型,返回一个错误。 +@key 列表 +@op 插入状态 (1:在pivot之后;2:在pivot之前) +@pivot 定位值 +@value 要插入值 +*/ +func (r *RedisStoreType) Linsert(key string, op int, pivot, value interface{}) (int64, bool) { + BeforeOrAfter := "BEFORE" + if op != 1 { + BeforeOrAfter = "AFTER" + } + linsert, linsertErr := r.RedisDb.LInsert(r.Context, key, BeforeOrAfter, pivot, value).Result() + if linsertErr != nil { + return 0, false + } + return linsert, true +} + +/** +Lindex 命令用于通过索引获取列表中的元素。你也可以使用负数下标,以 -1 表示列表的最后一个元素, -2 表示列表的倒数第二个元素,以此类推。 +@key 列表 +@index 索引 +*/ +func (r *RedisStoreType) Lindex(key string, index int64) (val string, err error) { + val, err = r.RedisDb.LIndex(r.Context, key, index).Result() + return +} + +/** +Llen 命令用于返回列表的长度。 如果列表 key 不存在,则 key 被解释为一个空列表,返回 0 。 如果 key 不是列表类型,返回一个错误。 +@key 列表 +*/ +func (r *RedisStoreType) Llen(key string) (val int64, err error) { + val, err = r.RedisDb.LLen(r.Context, key).Result() + return +} + +/** +Lpop 命令用于移除并返回列表的第一个元素。 +@key 列表 +*/ +func (r *RedisStoreType) Lpop(key string) (val string, err error) { + val, err = r.RedisDb.LPop(r.Context, key).Result() + return +} + +/** +Lpush 命令将一个或多个值插入到列表头部。 如果 key 不存在,一个空列表会被创建并执行 LPUSH 操作。 当 key 存在但不是列表类型时,返回一个错误。 +@key 列表 +@value 要插入的字符串 +*/ +func (r *RedisStoreType) Lpush(key string, value ...interface{}) (val int64, err error) { + val, err = r.RedisDb.LPush(r.Context, key, value).Result() + return +} + +/** +Lpushx 将一个值插入到已存在的列表头部,列表不存在时操作无效。 +@key 列表 +@value 要插入的字符串 +*/ +func (r *RedisStoreType) Lpushx(key, value string) (val int64, err error) { + val, err = r.RedisDb.LPushX(r.Context, key, value).Result() + return +} + +/** +Lrange 返回列表中指定区间内的元素,区间以偏移量 START 和 END 指定。 其中 0 表示列表的第一个元素, 1 表示列表的第二个元素,以此类推。 你也可以使用负数下标,以 -1 表示列表的最后一个元素, -2 表示列表的倒数第二个元素,以此类推。 +@key 列表 +@start 起始值 +@stop 结束值 +*/ +func (r *RedisStoreType) Lrange(key string, start, stop int64) (val []string, err error) { + val, err = r.RedisDb.LRange(r.Context, key, start, stop).Result() + return +} + +/** +Lrem 根据参数 COUNT 的值,移除列表中与参数 VALUE 相等的元素。 +COUNT 的值可以是以下几种: + count > 0 : 从表头开始向表尾搜索,移除与 VALUE 相等的元素,数量为 COUNT 。 + count < 0 : 从表尾开始向表头搜索,移除与 VALUE 相等的元素,数量为 COUNT 的绝对值。 + count = 0 : 移除表中所有与 VALUE 相等的值。 +@start = COUNT +@key 列表 +*/ +func (r *RedisStoreType) Lrem(key string, start int64, value ...interface{}) (val int64, err error) { + val, err = r.RedisDb.LRem(r.Context, key, start, value).Result() + return +} + +/** +Redis Lset 通过索引来设置元素的值。 + +当索引参数超出范围,或对一个空列表进行 LSET 时,返回一个错误。 +@key 列表 +@indexes 索引值 +*/ +func (r *RedisStoreType) Lset(key string, indexes int64, value ...interface{}) (val string, err error) { + val, err = r.RedisDb.LSet(r.Context, key, indexes, value).Result() + return +} + +/** +Ltrim 对一个列表进行修剪(trim),就是说,让列表只保留指定区间内的元素,不在指定区间之内的元素都将被删除。 + +下标 0 表示列表的第一个元素,以 1 表示列表的第二个元素,以此类推。 你也可以使用负数下标,以 -1 表示列表的最后一个元素, -2 表示列表的倒数第二个元素,以此类推。 +@key 列表 +@start 起始值 +@stop 结束值 +*/ +func (r *RedisStoreType) Ltrim(key string, start, stop int64) (val string, err error) { + val, err = r.RedisDb.LTrim(r.Context, key, start, stop).Result() + return +} + +/** +Rpop 命令用于移除列表的最后一个元素,返回值为移除的元素。 +@key 列表 +*/ +func (r *RedisStoreType) Rpop(key string) (val string, err error) { + val, err = r.RedisDb.RPop(r.Context, key).Result() + return +} + +/** +Rpoplpush 命令用于移除列表的最后一个元素,并将该元素添加到另一个列表并返回。 +@sourceKey 源列表 +@newKey 目标列表 +*/ +func (r *RedisStoreType) Rpoplpush(sourceKey, newKey string) (val string, err error) { + val, err = r.RedisDb.RPopLPush(r.Context, sourceKey, newKey).Result() + return +} + +/** +Rpush 命令用于将一个或多个值插入到列表的尾部(最右边)。 +如果列表不存在,一个空列表会被创建并执行 RPUSH 操作。 当列表存在但不是列表类型时,返回一个错误。 +@key 列表 +@value 要插入的字符串 +*/ +func (r *RedisStoreType) Rpush(key string, value ...interface{}) (val int64, err error) { + val, err = r.RedisDb.RPush(r.Context, key, value).Result() + return +} + +/** +Rpushx 命令用于将一个值插入到已存在的列表尾部(最右边)。如果列表不存在,操作无效。 +@key 列表 +@value 要插入的字符串 +*/ +func (r *RedisStoreType) Rpushx(key string, value ...interface{}) (val int64, err error) { + val, err = r.RedisDb.RPushX(r.Context, key, value).Result() + return +} + +/** +Blpop 命令移出并获取列表的第一个元素, 如果列表没有元素会阻塞列表直到等待超时或发现可弹出元素为止。 +@key 列表 +*/ +func (r *RedisStoreType) Blpop(key string) (val []string, err error) { + val, err = r.RedisDb.BLPop(r.Context, r.Expiration, key).Result() + return +} + +/** +Brpop 命令移出并获取列表的最后一个元素, 如果列表没有元素会阻塞列表直到等待超时或发现可弹出元素为止。 +@key 列表 +*/ +func (r *RedisStoreType) Brpop(key string) (val []string, err error) { + val, err = r.RedisDb.BRPop(r.Context, r.Expiration, key).Result() + return +} + +/** +Brpoplpush 命令从列表中取出最后一个元素,并插入到另外一个列表的头部; 如果列表没有元素会阻塞列表直到等待超时或发现可弹出元素为止。 +@source 源列表 +@destination 目标列表 +*/ +func (r *RedisStoreType) Brpoplpush(source, destination string) (val string, err error) { + val, err = r.RedisDb.BRPopLPush(r.Context, source, destination, r.Expiration).Result() + return +} + +/* +Redis 键(key) +Redis 键命令用于管理 redis 的键。 +*/ + +/* +Redis SCAN 命令 +Redis Scan 命令用于迭代数据库中的数据库键。 + +SCAN 命令是一个基于游标的迭代器,每次被调用之后, 都会向用户返回一个新的游标, 用户在下次迭代时需要使用这个新游标作为 SCAN 命令的游标参数, 以此来延续之前的迭代过程。 + +SCAN 返回一个包含两个元素的数组, 第一个元素是用于进行下一次迭代的新游标, 而第二个元素则是一个数组, 这个数组中包含了所有被迭代的元素。如果新游标返回 0 表示迭代已结束。 + +相关命令: + + SSCAN 命令用于迭代集合键中的元素。 + HSCAN 命令用于迭代哈希键中的键值对。 + ZSCAN 命令用于迭代有序集合中的元素(包括元素成员和元素分值)。 +*/ + +func (r *RedisStoreType) Scan(cursor uint64, match string, count int64) (keys []string, cursores uint64, err error) { + keys, cursores, err = r.RedisDb.Scan(r.Context, cursor, match, count).Result() + return +} + +/* +*Keys 命令用于查找所有符合给定模式 pattern 的 key 。。 + */ +func (r *RedisStoreType) Keys(key string) (val []string, err error) { + val, err = r.RedisDb.Keys(r.Context, key).Result() + return +} diff --git a/.history/middleware/grocerystore/redis_20220819082152.go b/.history/middleware/grocerystore/redis_20220819082152.go new file mode 100644 index 0000000..0fd523f --- /dev/null +++ b/.history/middleware/grocerystore/redis_20220819082152.go @@ -0,0 +1,380 @@ +package grocerystore + +import ( + "context" + "fmt" + "key_performance_indicators/overall" + "time" + + "github.com/go-redis/redis/v8" +) + +//redis 基础设定 +type RedisStoreType struct { + Expiration time.Duration + PreKey string + Context context.Context + RedisDb *redis.Client +} + +//启动redis +func RunRedis(redisClient *redis.Client) *RedisStoreType { + var redisStoreType RedisStoreType + redisStoreType.Expiration = time.Second * 300 + redisStoreType.PreKey = fmt.Sprintf("%v:", overall.CONSTANT_CONFIG.RedisPrefixStr.PreFix) + redisStoreType.Context = context.Background() + redisStoreType.RedisDb = redisClient + return &redisStoreType +} + +//设置键前缀 +func (r *RedisStoreType) SetRedisPrefix(prefix string) { + r.PreKey = prefix +} + +//设置过期时间 +func (r *RedisStoreType) SetRedisTime(timeDate int64) { + r.Expiration = time.Second * time.Duration(timeDate) +} + +//设置字符串 +func (r *RedisStoreType) Set(key string, value string) bool { + err := r.RedisDb.Set(r.Context, r.PreKey+key, value, r.Expiration).Err() + if err != nil { + return false + } + return true +} + +//获取字符串 +func (r *RedisStoreType) Get(key string) (bool, string) { + err := r.RedisDb.Get(r.Context, r.PreKey+key) + if err.Err() != nil { + return false, "" + } + return true, err.Val() +} + +//删除键 +func (r *RedisStoreType) DelKey(key string) bool { + err := r.RedisDb.Del(r.Context, r.PreKey+key).Err() + if err != nil { + return false + } + return true +} + +//哈希操作 +/* +获取单个哈希键值 +@hashName 集合名称 +@hashKey 哈希键 +callback + errs 状态 + hashVal 获得值 +*/ +func (r *RedisStoreType) HashGet(hashName, hashKey string) (errs bool, hashVal string) { + err := r.RedisDb.HGet(r.Context, r.PreKey+hashName, hashKey) + if err.Err() != nil { + return false, "" + } + return true, err.Val() +} + +/* +为哈希表中的字段赋值 。 单一设置 +@hashName 集合名称 +@hashKey 哈希键 +@hashVal 要添加的值 +*/ +func (r *RedisStoreType) HashSet(hashName, hashKey, hashVal string) bool { + err := r.RedisDb.HSet(r.Context, r.PreKey+hashName, hashKey, hashVal).Err() + if err != nil { + return false + } + if r.Expiration == 0 { + r.RedisDb.Persist(r.Context, r.PreKey+hashName) + } else { + r.RedisDb.PExpire(r.Context, r.PreKey+hashName, r.Expiration) + } + // global.GVA_REDIS.PExpire(r.Context, r.PreKey+hashName, r.Expiration) + return true +} + +/* +同时将多个 field-value (字段-值)对设置到哈希表中。 +@hashName 集合名称 +@hashVal 要添加的键与值 +*/ +func (r *RedisStoreType) HashMsetAdd(hashName string, hashVal map[string]interface{}) bool { + // rdb := RedisInit() + err := r.RedisDb.HMSet(r.Context, r.PreKey+has hName, hashVal).Err() + // fmt.Printf("错误sss=========》%v=====2====》%v\n", err, hashVal) + // err := rdb.HMSet(ctx, "userfg", hashVal).Err() + if err != nil { + return false + } + if r.Expiration == 0 { + r.RedisDb.Persist(r.Context, r.PreKey+hashName) + } else { + r.RedisDb.PExpire(r.Context, r.PreKey+hashName, r.Expiration) + } + + return true +} +func (r *RedisStoreType) HashMsetAddAry(hashName string, hashVal []map[string]interface{}) bool { + // rdb := RedisInit() + err := r.RedisDb.HMSet(r.Context, r.PreKey+hashName, hashVal).Err() + // err := rdb.HMSet(ctx, "userfg", hashVal).Err() + if err != nil { + return false + } + if r.Expiration == 0 { + r.RedisDb.Persist(r.Context, r.PreKey+hashName) + } else { + r.RedisDb.PExpire(r.Context, r.PreKey+hashName, r.Expiration) + } + // global.GVA_REDIS.PExpire(r.Context, r.PreKey+hashName, r.Expiration) + // fmt.Printf("错误sss=========》%v\n", hashVal) + return true +} + +/* +返回哈希表中,所有的字段和值。 +@hashName 集合名称 +@hashKey 哈希键 +*/ +func (r *RedisStoreType) HashGetAll(hashName string) (map[string]string, bool) { + // rdb := RedisInit() + // fmt.Printf("strKEy:===>%v\n", r.PreKey+hashName) + val, err := r.RedisDb.HGetAll(r.Context, r.PreKey+hashName).Result() + if err != nil { + return val, false + } + if len(val) == 0 { + return val, false + } + return val, true +} + +//Redis 列表(List) + +/** +Linsert 命令用于在列表的元素前或者后插入元素。当指定元素不存在于列表中时,不执行任何操作。 +当列表不存在时,被视为空列表,不执行任何操作。 +如果 key 不是列表类型,返回一个错误。 +@key 列表 +@op 插入状态 (1:在pivot之后;2:在pivot之前) +@pivot 定位值 +@value 要插入值 +*/ +func (r *RedisStoreType) Linsert(key string, op int, pivot, value interface{}) (int64, bool) { + BeforeOrAfter := "BEFORE" + if op != 1 { + BeforeOrAfter = "AFTER" + } + linsert, linsertErr := r.RedisDb.LInsert(r.Context, key, BeforeOrAfter, pivot, value).Result() + if linsertErr != nil { + return 0, false + } + return linsert, true +} + +/** +Lindex 命令用于通过索引获取列表中的元素。你也可以使用负数下标,以 -1 表示列表的最后一个元素, -2 表示列表的倒数第二个元素,以此类推。 +@key 列表 +@index 索引 +*/ +func (r *RedisStoreType) Lindex(key string, index int64) (val string, err error) { + val, err = r.RedisDb.LIndex(r.Context, key, index).Result() + return +} + +/** +Llen 命令用于返回列表的长度。 如果列表 key 不存在,则 key 被解释为一个空列表,返回 0 。 如果 key 不是列表类型,返回一个错误。 +@key 列表 +*/ +func (r *RedisStoreType) Llen(key string) (val int64, err error) { + val, err = r.RedisDb.LLen(r.Context, key).Result() + return +} + +/** +Lpop 命令用于移除并返回列表的第一个元素。 +@key 列表 +*/ +func (r *RedisStoreType) Lpop(key string) (val string, err error) { + val, err = r.RedisDb.LPop(r.Context, key).Result() + return +} + +/** +Lpush 命令将一个或多个值插入到列表头部。 如果 key 不存在,一个空列表会被创建并执行 LPUSH 操作。 当 key 存在但不是列表类型时,返回一个错误。 +@key 列表 +@value 要插入的字符串 +*/ +func (r *RedisStoreType) Lpush(key string, value ...interface{}) (val int64, err error) { + val, err = r.RedisDb.LPush(r.Context, key, value).Result() + return +} + +/** +Lpushx 将一个值插入到已存在的列表头部,列表不存在时操作无效。 +@key 列表 +@value 要插入的字符串 +*/ +func (r *RedisStoreType) Lpushx(key, value string) (val int64, err error) { + val, err = r.RedisDb.LPushX(r.Context, key, value).Result() + return +} + +/** +Lrange 返回列表中指定区间内的元素,区间以偏移量 START 和 END 指定。 其中 0 表示列表的第一个元素, 1 表示列表的第二个元素,以此类推。 你也可以使用负数下标,以 -1 表示列表的最后一个元素, -2 表示列表的倒数第二个元素,以此类推。 +@key 列表 +@start 起始值 +@stop 结束值 +*/ +func (r *RedisStoreType) Lrange(key string, start, stop int64) (val []string, err error) { + val, err = r.RedisDb.LRange(r.Context, key, start, stop).Result() + return +} + +/** +Lrem 根据参数 COUNT 的值,移除列表中与参数 VALUE 相等的元素。 +COUNT 的值可以是以下几种: + count > 0 : 从表头开始向表尾搜索,移除与 VALUE 相等的元素,数量为 COUNT 。 + count < 0 : 从表尾开始向表头搜索,移除与 VALUE 相等的元素,数量为 COUNT 的绝对值。 + count = 0 : 移除表中所有与 VALUE 相等的值。 +@start = COUNT +@key 列表 +*/ +func (r *RedisStoreType) Lrem(key string, start int64, value ...interface{}) (val int64, err error) { + val, err = r.RedisDb.LRem(r.Context, key, start, value).Result() + return +} + +/** +Redis Lset 通过索引来设置元素的值。 + +当索引参数超出范围,或对一个空列表进行 LSET 时,返回一个错误。 +@key 列表 +@indexes 索引值 +*/ +func (r *RedisStoreType) Lset(key string, indexes int64, value ...interface{}) (val string, err error) { + val, err = r.RedisDb.LSet(r.Context, key, indexes, value).Result() + return +} + +/** +Ltrim 对一个列表进行修剪(trim),就是说,让列表只保留指定区间内的元素,不在指定区间之内的元素都将被删除。 + +下标 0 表示列表的第一个元素,以 1 表示列表的第二个元素,以此类推。 你也可以使用负数下标,以 -1 表示列表的最后一个元素, -2 表示列表的倒数第二个元素,以此类推。 +@key 列表 +@start 起始值 +@stop 结束值 +*/ +func (r *RedisStoreType) Ltrim(key string, start, stop int64) (val string, err error) { + val, err = r.RedisDb.LTrim(r.Context, key, start, stop).Result() + return +} + +/** +Rpop 命令用于移除列表的最后一个元素,返回值为移除的元素。 +@key 列表 +*/ +func (r *RedisStoreType) Rpop(key string) (val string, err error) { + val, err = r.RedisDb.RPop(r.Context, key).Result() + return +} + +/** +Rpoplpush 命令用于移除列表的最后一个元素,并将该元素添加到另一个列表并返回。 +@sourceKey 源列表 +@newKey 目标列表 +*/ +func (r *RedisStoreType) Rpoplpush(sourceKey, newKey string) (val string, err error) { + val, err = r.RedisDb.RPopLPush(r.Context, sourceKey, newKey).Result() + return +} + +/** +Rpush 命令用于将一个或多个值插入到列表的尾部(最右边)。 +如果列表不存在,一个空列表会被创建并执行 RPUSH 操作。 当列表存在但不是列表类型时,返回一个错误。 +@key 列表 +@value 要插入的字符串 +*/ +func (r *RedisStoreType) Rpush(key string, value ...interface{}) (val int64, err error) { + val, err = r.RedisDb.RPush(r.Context, key, value).Result() + return +} + +/** +Rpushx 命令用于将一个值插入到已存在的列表尾部(最右边)。如果列表不存在,操作无效。 +@key 列表 +@value 要插入的字符串 +*/ +func (r *RedisStoreType) Rpushx(key string, value ...interface{}) (val int64, err error) { + val, err = r.RedisDb.RPushX(r.Context, key, value).Result() + return +} + +/** +Blpop 命令移出并获取列表的第一个元素, 如果列表没有元素会阻塞列表直到等待超时或发现可弹出元素为止。 +@key 列表 +*/ +func (r *RedisStoreType) Blpop(key string) (val []string, err error) { + val, err = r.RedisDb.BLPop(r.Context, r.Expiration, key).Result() + return +} + +/** +Brpop 命令移出并获取列表的最后一个元素, 如果列表没有元素会阻塞列表直到等待超时或发现可弹出元素为止。 +@key 列表 +*/ +func (r *RedisStoreType) Brpop(key string) (val []string, err error) { + val, err = r.RedisDb.BRPop(r.Context, r.Expiration, key).Result() + return +} + +/** +Brpoplpush 命令从列表中取出最后一个元素,并插入到另外一个列表的头部; 如果列表没有元素会阻塞列表直到等待超时或发现可弹出元素为止。 +@source 源列表 +@destination 目标列表 +*/ +func (r *RedisStoreType) Brpoplpush(source, destination string) (val string, err error) { + val, err = r.RedisDb.BRPopLPush(r.Context, source, destination, r.Expiration).Result() + return +} + +/* +Redis 键(key) +Redis 键命令用于管理 redis 的键。 +*/ + +/* +Redis SCAN 命令 +Redis Scan 命令用于迭代数据库中的数据库键。 + +SCAN 命令是一个基于游标的迭代器,每次被调用之后, 都会向用户返回一个新的游标, 用户在下次迭代时需要使用这个新游标作为 SCAN 命令的游标参数, 以此来延续之前的迭代过程。 + +SCAN 返回一个包含两个元素的数组, 第一个元素是用于进行下一次迭代的新游标, 而第二个元素则是一个数组, 这个数组中包含了所有被迭代的元素。如果新游标返回 0 表示迭代已结束。 + +相关命令: + + SSCAN 命令用于迭代集合键中的元素。 + HSCAN 命令用于迭代哈希键中的键值对。 + ZSCAN 命令用于迭代有序集合中的元素(包括元素成员和元素分值)。 +*/ + +func (r *RedisStoreType) Scan(cursor uint64, match string, count int64) (keys []string, cursores uint64, err error) { + keys, cursores, err = r.RedisDb.Scan(r.Context, cursor, match, count).Result() + return +} + +/* +*Keys 命令用于查找所有符合给定模式 pattern 的 key 。。 + */ +func (r *RedisStoreType) Keys(key string) (val []string, err error) { + val, err = r.RedisDb.Keys(r.Context, key).Result() + return +} diff --git a/.history/middleware/grocerystore/redis_20220819082153.go b/.history/middleware/grocerystore/redis_20220819082153.go new file mode 100644 index 0000000..1df5c4d --- /dev/null +++ b/.history/middleware/grocerystore/redis_20220819082153.go @@ -0,0 +1,380 @@ +package grocerystore + +import ( + "context" + "fmt" + "key_performance_indicators/overall" + "time" + + "github.com/go-redis/redis/v8" +) + +//redis 基础设定 +type RedisStoreType struct { + Expiration time.Duration + PreKey string + Context context.Context + RedisDb *redis.Client +} + +//启动redis +func RunRedis(redisClient *redis.Client) *RedisStoreType { + var redisStoreType RedisStoreType + redisStoreType.Expiration = time.Second * 300 + redisStoreType.PreKey = fmt.Sprintf("%v:", overall.CONSTANT_CONFIG.RedisPrefixStr.PreFix) + redisStoreType.Context = context.Background() + redisStoreType.RedisDb = redisClient + return &redisStoreType +} + +//设置键前缀 +func (r *RedisStoreType) SetRedisPrefix(prefix string) { + r.PreKey = prefix +} + +//设置过期时间 +func (r *RedisStoreType) SetRedisTime(timeDate int64) { + r.Expiration = time.Second * time.Duration(timeDate) +} + +//设置字符串 +func (r *RedisStoreType) Set(key string, value string) bool { + err := r.RedisDb.Set(r.Context, r.PreKey+key, value, r.Expiration).Err() + if err != nil { + return false + } + return true +} + +//获取字符串 +func (r *RedisStoreType) Get(key string) (bool, string) { + err := r.RedisDb.Get(r.Context, r.PreKey+key) + if err.Err() != nil { + return false, "" + } + return true, err.Val() +} + +//删除键 +func (r *RedisStoreType) DelKey(key string) bool { + err := r.RedisDb.Del(r.Context, r.PreKey+key).Err() + if err != nil { + return false + } + return true +} + +//哈希操作 +/* +获取单个哈希键值 +@hashName 集合名称 +@hashKey 哈希键 +callback + errs 状态 + hashVal 获得值 +*/ +func (r *RedisStoreType) HashGet(hashName, hashKey string) (errs bool, hashVal string) { + err := r.RedisDb.HGet(r.Context, r.PreKey+hashName, hashKey) + if err.Err() != nil { + return false, "" + } + return true, err.Val() +} + +/* +为哈希表中的字段赋值 。 单一设置 +@hashName 集合名称 +@hashKey 哈希键 +@hashVal 要添加的值 +*/ +func (r *RedisStoreType) HashSet(hashName, hashKey, hashVal string) bool { + err := r.RedisDb.HSet(r.Context, r.PreKey+hashName, hashKey, hashVal).Err() + if err != nil { + return false + } + if r.Expiration == 0 { + r.RedisDb.Persist(r.Context, r.PreKey+hashName) + } else { + r.RedisDb.PExpire(r.Context, r.PreKey+hashName, r.Expiration) + } + // global.GVA_REDIS.PExpire(r.Context, r.PreKey+hashName, r.Expiration) + return true +} + +/* +同时将多个 field-value (字段-值)对设置到哈希表中。 +@hashName 集合名称 +@hashVal 要添加的键与值 +*/ +func (r *RedisStoreType) HashMsetAdd(hashName string, hashVal map[string]interface{}) bool { + // rdb := RedisInit() + err := r.RedisDb.HMSet(r.Context, r.PreKey+hashName, hashVal).Err() + // fmt.Printf("错误sss=========》%v=====2====》%v\n", err, hashVal) + // err := rdb.HMSet(ctx, "userfg", hashVal).Err() + if err != nil { + return false + } + if r.Expiration == 0 { + r.RedisDb.Persist(r.Context, r.PreKey+hashName) + } else { + r.RedisDb.PExpire(r.Context, r.PreKey+hashName, r.Expiration) + } + + return true +} +func (r *RedisStoreType) HashMsetAddAry(hashName string, hashVal []map[string]interface{}) bool { + // rdb := RedisInit() + err := r.RedisDb.HMSet(r.Context, r.PreKey+hashName, hashVal).Err() + // err := rdb.HMSet(ctx, "userfg", hashVal).Err() + if err != nil { + return false + } + if r.Expiration == 0 { + r.RedisDb.Persist(r.Context, r.PreKey+hashName) + } else { + r.RedisDb.PExpire(r.Context, r.PreKey+hashName, r.Expiration) + } + // global.GVA_REDIS.PExpire(r.Context, r.PreKey+hashName, r.Expiration) + // fmt.Printf("错误sss=========》%v\n", hashVal) + return true +} + +/* +返回哈希表中,所有的字段和值。 +@hashName 集合名称 +@hashKey 哈希键 +*/ +func (r *RedisStoreType) HashGetAll(hashName string) (map[string]string, bool) { + // rdb := RedisInit() + // fmt.Printf("strKEy:===>%v\n", r.PreKey+hashName) + val, err := r.RedisDb.HGetAll(r.Context, r.PreKey+hashName).Result() + if err != nil { + return val, false + } + if len(val) == 0 { + return val, false + } + return val, true +} + +//Redis 列表(List) + +/** +Linsert 命令用于在列表的元素前或者后插入元素。当指定元素不存在于列表中时,不执行任何操作。 +当列表不存在时,被视为空列表,不执行任何操作。 +如果 key 不是列表类型,返回一个错误。 +@key 列表 +@op 插入状态 (1:在pivot之后;2:在pivot之前) +@pivot 定位值 +@value 要插入值 +*/ +func (r *RedisStoreType) Linsert(key string, op int, pivot, value interface{}) (int64, bool) { + BeforeOrAfter := "BEFORE" + if op != 1 { + BeforeOrAfter = "AFTER" + } + linsert, linsertErr := r.RedisDb.LInsert(r.Context, key, BeforeOrAfter, pivot, value).Result() + if linsertErr != nil { + return 0, false + } + return linsert, true +} + +/** +Lindex 命令用于通过索引获取列表中的元素。你也可以使用负数下标,以 -1 表示列表的最后一个元素, -2 表示列表的倒数第二个元素,以此类推。 +@key 列表 +@index 索引 +*/ +func (r *RedisStoreType) Lindex(key string, index int64) (val string, err error) { + val, err = r.RedisDb.LIndex(r.Context, key, index).Result() + return +} + +/** +Llen 命令用于返回列表的长度。 如果列表 key 不存在,则 key 被解释为一个空列表,返回 0 。 如果 key 不是列表类型,返回一个错误。 +@key 列表 +*/ +func (r *RedisStoreType) Llen(key string) (val int64, err error) { + val, err = r.RedisDb.LLen(r.Context, key).Result() + return +} + +/** +Lpop 命令用于移除并返回列表的第一个元素。 +@key 列表 +*/ +func (r *RedisStoreType) Lpop(key string) (val string, err error) { + val, err = r.RedisDb.LPop(r.Context, key).Result() + return +} + +/** +Lpush 命令将一个或多个值插入到列表头部。 如果 key 不存在,一个空列表会被创建并执行 LPUSH 操作。 当 key 存在但不是列表类型时,返回一个错误。 +@key 列表 +@value 要插入的字符串 +*/ +func (r *RedisStoreType) Lpush(key string, value ...interface{}) (val int64, err error) { + val, err = r.RedisDb.LPush(r.Context, key, value).Result() + return +} + +/** +Lpushx 将一个值插入到已存在的列表头部,列表不存在时操作无效。 +@key 列表 +@value 要插入的字符串 +*/ +func (r *RedisStoreType) Lpushx(key, value string) (val int64, err error) { + val, err = r.RedisDb.LPushX(r.Context, key, value).Result() + return +} + +/** +Lrange 返回列表中指定区间内的元素,区间以偏移量 START 和 END 指定。 其中 0 表示列表的第一个元素, 1 表示列表的第二个元素,以此类推。 你也可以使用负数下标,以 -1 表示列表的最后一个元素, -2 表示列表的倒数第二个元素,以此类推。 +@key 列表 +@start 起始值 +@stop 结束值 +*/ +func (r *RedisStoreType) Lrange(key string, start, stop int64) (val []string, err error) { + val, err = r.RedisDb.LRange(r.Context, key, start, stop).Result() + return +} + +/** +Lrem 根据参数 COUNT 的值,移除列表中与参数 VALUE 相等的元素。 +COUNT 的值可以是以下几种: + count > 0 : 从表头开始向表尾搜索,移除与 VALUE 相等的元素,数量为 COUNT 。 + count < 0 : 从表尾开始向表头搜索,移除与 VALUE 相等的元素,数量为 COUNT 的绝对值。 + count = 0 : 移除表中所有与 VALUE 相等的值。 +@start = COUNT +@key 列表 +*/ +func (r *RedisStoreType) Lrem(key string, start int64, value ...interface{}) (val int64, err error) { + val, err = r.RedisDb.LRem(r.Context, key, start, value).Result() + return +} + +/** +Redis Lset 通过索引来设置元素的值。 + +当索引参数超出范围,或对一个空列表进行 LSET 时,返回一个错误。 +@key 列表 +@indexes 索引值 +*/ +func (r *RedisStoreType) Lset(key string, indexes int64, value ...interface{}) (val string, err error) { + val, err = r.RedisDb.LSet(r.Context, key, indexes, value).Result() + return +} + +/** +Ltrim 对一个列表进行修剪(trim),就是说,让列表只保留指定区间内的元素,不在指定区间之内的元素都将被删除。 + +下标 0 表示列表的第一个元素,以 1 表示列表的第二个元素,以此类推。 你也可以使用负数下标,以 -1 表示列表的最后一个元素, -2 表示列表的倒数第二个元素,以此类推。 +@key 列表 +@start 起始值 +@stop 结束值 +*/ +func (r *RedisStoreType) Ltrim(key string, start, stop int64) (val string, err error) { + val, err = r.RedisDb.LTrim(r.Context, key, start, stop).Result() + return +} + +/** +Rpop 命令用于移除列表的最后一个元素,返回值为移除的元素。 +@key 列表 +*/ +func (r *RedisStoreType) Rpop(key string) (val string, err error) { + val, err = r.RedisDb.RPop(r.Context, key).Result() + return +} + +/** +Rpoplpush 命令用于移除列表的最后一个元素,并将该元素添加到另一个列表并返回。 +@sourceKey 源列表 +@newKey 目标列表 +*/ +func (r *RedisStoreType) Rpoplpush(sourceKey, newKey string) (val string, err error) { + val, err = r.RedisDb.RPopLPush(r.Context, sourceKey, newKey).Result() + return +} + +/** +Rpush 命令用于将一个或多个值插入到列表的尾部(最右边)。 +如果列表不存在,一个空列表会被创建并执行 RPUSH 操作。 当列表存在但不是列表类型时,返回一个错误。 +@key 列表 +@value 要插入的字符串 +*/ +func (r *RedisStoreType) Rpush(key string, value ...interface{}) (val int64, err error) { + val, err = r.RedisDb.RPush(r.Context, key, value).Result() + return +} + +/** +Rpushx 命令用于将一个值插入到已存在的列表尾部(最右边)。如果列表不存在,操作无效。 +@key 列表 +@value 要插入的字符串 +*/ +func (r *RedisStoreType) Rpushx(key string, value ...interface{}) (val int64, err error) { + val, err = r.RedisDb.RPushX(r.Context, key, value).Result() + return +} + +/** +Blpop 命令移出并获取列表的第一个元素, 如果列表没有元素会阻塞列表直到等待超时或发现可弹出元素为止。 +@key 列表 +*/ +func (r *RedisStoreType) Blpop(key string) (val []string, err error) { + val, err = r.RedisDb.BLPop(r.Context, r.Expiration, key).Result() + return +} + +/** +Brpop 命令移出并获取列表的最后一个元素, 如果列表没有元素会阻塞列表直到等待超时或发现可弹出元素为止。 +@key 列表 +*/ +func (r *RedisStoreType) Brpop(key string) (val []string, err error) { + val, err = r.RedisDb.BRPop(r.Context, r.Expiration, key).Result() + return +} + +/** +Brpoplpush 命令从列表中取出最后一个元素,并插入到另外一个列表的头部; 如果列表没有元素会阻塞列表直到等待超时或发现可弹出元素为止。 +@source 源列表 +@destination 目标列表 +*/ +func (r *RedisStoreType) Brpoplpush(source, destination string) (val string, err error) { + val, err = r.RedisDb.BRPopLPush(r.Context, source, destination, r.Expiration).Result() + return +} + +/* +Redis 键(key) +Redis 键命令用于管理 redis 的键。 +*/ + +/* +Redis SCAN 命令 +Redis Scan 命令用于迭代数据库中的数据库键。 + +SCAN 命令是一个基于游标的迭代器,每次被调用之后, 都会向用户返回一个新的游标, 用户在下次迭代时需要使用这个新游标作为 SCAN 命令的游标参数, 以此来延续之前的迭代过程。 + +SCAN 返回一个包含两个元素的数组, 第一个元素是用于进行下一次迭代的新游标, 而第二个元素则是一个数组, 这个数组中包含了所有被迭代的元素。如果新游标返回 0 表示迭代已结束。 + +相关命令: + + SSCAN 命令用于迭代集合键中的元素。 + HSCAN 命令用于迭代哈希键中的键值对。 + ZSCAN 命令用于迭代有序集合中的元素(包括元素成员和元素分值)。 +*/ + +func (r *RedisStoreType) Scan(cursor uint64, match string, count int64) (keys []string, cursores uint64, err error) { + keys, cursores, err = r.RedisDb.Scan(r.Context, cursor, match, count).Result() + return +} + +/* +*Keys 命令用于查找所有符合给定模式 pattern 的 key 。。 + */ +func (r *RedisStoreType) Keys(key string) (val []string, err error) { + val, err = r.RedisDb.Keys(r.Context, key).Result() + return +} diff --git a/.history/models/modelbookimg/archives_type_20220821083755.go b/.history/models/modelbookimg/archives_type_20220821083755.go new file mode 100644 index 0000000..e69de29 diff --git a/.history/models/modelbookimg/archives_type_20220821083815.go b/.history/models/modelbookimg/archives_type_20220821083815.go new file mode 100644 index 0000000..36b0a87 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821083815.go @@ -0,0 +1 @@ +package modelbookimg \ No newline at end of file diff --git a/.history/models/modelbookimg/archives_type_20220821083847.go b/.history/models/modelbookimg/archives_type_20220821083847.go new file mode 100644 index 0000000..600480e --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821083847.go @@ -0,0 +1 @@ +package modelbookimg diff --git a/.history/models/modelbookimg/archives_type_20220821083858.go b/.history/models/modelbookimg/archives_type_20220821083858.go new file mode 100644 index 0000000..dd5284f --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821083858.go @@ -0,0 +1,5 @@ +package modelbookimg + +type archives_type struct{ + +} \ No newline at end of file diff --git a/.history/models/modelbookimg/archives_type_20220821083900.go b/.history/models/modelbookimg/archives_type_20220821083900.go new file mode 100644 index 0000000..221afc8 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821083900.go @@ -0,0 +1,6 @@ +package modelbookimg + + +type archives_type struct{ + +} \ No newline at end of file diff --git a/.history/models/modelbookimg/archives_type_20220821083902.go b/.history/models/modelbookimg/archives_type_20220821083902.go new file mode 100644 index 0000000..bccdd83 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821083902.go @@ -0,0 +1,6 @@ +package modelbookimg + +档案管理分类 +type archives_type struct{ + +} \ No newline at end of file diff --git a/.history/models/modelbookimg/archives_type_20220821083905.go b/.history/models/modelbookimg/archives_type_20220821083905.go new file mode 100644 index 0000000..971722e --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821083905.go @@ -0,0 +1,6 @@ +package modelbookimg + +//档案管理分类 +type archives_type struct{ + +} \ No newline at end of file diff --git a/.history/models/modelbookimg/archives_type_20220821083910.go b/.history/models/modelbookimg/archives_type_20220821083910.go new file mode 100644 index 0000000..d5fec33 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821083910.go @@ -0,0 +1,6 @@ +package modelbookimg + +// 档案管理分类 +type archives_type struct{ + +} \ No newline at end of file diff --git a/.history/models/modelbookimg/archives_type_20220821083916.go b/.history/models/modelbookimg/archives_type_20220821083916.go new file mode 100644 index 0000000..20bcaa2 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821083916.go @@ -0,0 +1,6 @@ +package modelbookimg + +// 档案管理分类 +type Archives_type struct{ + +} \ No newline at end of file diff --git a/.history/models/modelbookimg/archives_type_20220821083918.go b/.history/models/modelbookimg/archives_type_20220821083918.go new file mode 100644 index 0000000..d7976cb --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821083918.go @@ -0,0 +1,6 @@ +package modelbookimg + +// 档案管理分类 +type Archivesype struct{ + +} \ No newline at end of file diff --git a/.history/models/modelbookimg/archives_type_20220821083920.go b/.history/models/modelbookimg/archives_type_20220821083920.go new file mode 100644 index 0000000..925b46d --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821083920.go @@ -0,0 +1,6 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct{ + +} \ No newline at end of file diff --git a/.history/models/modelbookimg/archives_type_20220821083923.go b/.history/models/modelbookimg/archives_type_20220821083923.go new file mode 100644 index 0000000..a425ec9 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821083923.go @@ -0,0 +1,6 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct{ + id +} \ No newline at end of file diff --git a/.history/models/modelbookimg/archives_type_20220821083929.go b/.history/models/modelbookimg/archives_type_20220821083929.go new file mode 100644 index 0000000..79d8988 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821083929.go @@ -0,0 +1,6 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct{ + id int64 +} \ No newline at end of file diff --git a/.history/models/modelbookimg/archives_type_20220821083932.go b/.history/models/modelbookimg/archives_type_20220821083932.go new file mode 100644 index 0000000..a7829bb --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821083932.go @@ -0,0 +1,6 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct{ + Id int64 +} \ No newline at end of file diff --git a/.history/models/modelbookimg/archives_type_20220821083933.go b/.history/models/modelbookimg/archives_type_20220821083933.go new file mode 100644 index 0000000..21961f1 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821083933.go @@ -0,0 +1,6 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct{ + Id int64 +} \ No newline at end of file diff --git a/.history/models/modelbookimg/archives_type_20220821083939.go b/.history/models/modelbookimg/archives_type_20220821083939.go new file mode 100644 index 0000000..ae48b78 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821083939.go @@ -0,0 +1,6 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct{ + Id int64 `json:"id"` +} \ No newline at end of file diff --git a/.history/models/modelbookimg/archives_type_20220821083940.go b/.history/models/modelbookimg/archives_type_20220821083940.go new file mode 100644 index 0000000..b67b43f --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821083940.go @@ -0,0 +1,6 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct{ + Id int64 `json:"id";` +} \ No newline at end of file diff --git a/.history/models/modelbookimg/archives_type_20220821083945.go b/.history/models/modelbookimg/archives_type_20220821083945.go new file mode 100644 index 0000000..caf9e6f --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821083945.go @@ -0,0 +1,6 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct{ + Id int64 `json:"id";gorm` +} \ No newline at end of file diff --git a/.history/models/modelbookimg/archives_type_20220821083947.go b/.history/models/modelbookimg/archives_type_20220821083947.go new file mode 100644 index 0000000..128fc01 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821083947.go @@ -0,0 +1,6 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct{ + Id int64 `json:"id";gorm:` +} \ No newline at end of file diff --git a/.history/models/modelbookimg/archives_type_20220821083953.go b/.history/models/modelbookimg/archives_type_20220821083953.go new file mode 100644 index 0000000..a76f7b5 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821083953.go @@ -0,0 +1,6 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct{ + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` +} \ No newline at end of file diff --git a/.history/models/modelbookimg/archives_type_20220821084000.go b/.history/models/modelbookimg/archives_type_20220821084000.go new file mode 100644 index 0000000..fe1aee8 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084000.go @@ -0,0 +1,6 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct{ + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` +} \ No newline at end of file diff --git a/.history/models/modelbookimg/archives_type_20220821084008.go b/.history/models/modelbookimg/archives_type_20220821084008.go new file mode 100644 index 0000000..6a0d018 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084008.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct{ + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + +} \ No newline at end of file diff --git a/.history/models/modelbookimg/archives_type_20220821084012.go b/.history/models/modelbookimg/archives_type_20220821084012.go new file mode 100644 index 0000000..1bab65c --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084012.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct{ + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title +} \ No newline at end of file diff --git a/.history/models/modelbookimg/archives_type_20220821084015.go b/.history/models/modelbookimg/archives_type_20220821084015.go new file mode 100644 index 0000000..952aa90 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084015.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct{ + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string +} \ No newline at end of file diff --git a/.history/models/modelbookimg/archives_type_20220821084016.go b/.history/models/modelbookimg/archives_type_20220821084016.go new file mode 100644 index 0000000..54c5c46 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084016.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct{ + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` +} \ No newline at end of file diff --git a/.history/models/modelbookimg/archives_type_20220821084019.go b/.history/models/modelbookimg/archives_type_20220821084019.go new file mode 100644 index 0000000..6c269fa --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084019.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct{ + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` +} \ No newline at end of file diff --git a/.history/models/modelbookimg/archives_type_20220821084026.go b/.history/models/modelbookimg/archives_type_20220821084026.go new file mode 100644 index 0000000..4864fe5 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084026.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct{ + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_id;type:bigint unsigned;not null;comment:ID"` +} \ No newline at end of file diff --git a/.history/models/modelbookimg/archives_type_20220821084028.go b/.history/models/modelbookimg/archives_type_20220821084028.go new file mode 100644 index 0000000..3c89768 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084028.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct{ + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:bigint unsigned;not null;comment:ID"` +} \ No newline at end of file diff --git a/.history/models/modelbookimg/archives_type_20220821084033.go b/.history/models/modelbookimg/archives_type_20220821084033.go new file mode 100644 index 0000000..0794b6e --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084033.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct{ + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:;not null;comment:ID"` +} \ No newline at end of file diff --git a/.history/models/modelbookimg/archives_type_20220821084037.go b/.history/models/modelbookimg/archives_type_20220821084037.go new file mode 100644 index 0000000..03c6ca8 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084037.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct{ + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar;not null;comment:ID"` +} \ No newline at end of file diff --git a/.history/models/modelbookimg/archives_type_20220821084039.go b/.history/models/modelbookimg/archives_type_20220821084039.go new file mode 100644 index 0000000..c916809 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084039.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct{ + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);not null;comment:ID"` +} \ No newline at end of file diff --git a/.history/models/modelbookimg/archives_type_20220821084048.go b/.history/models/modelbookimg/archives_type_20220821084048.go new file mode 100644 index 0000000..a865c79 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084048.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct{ + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:ID"` +} \ No newline at end of file diff --git a/.history/models/modelbookimg/archives_type_20220821084049.go b/.history/models/modelbookimg/archives_type_20220821084049.go new file mode 100644 index 0000000..465ec84 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084049.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` +} diff --git a/.history/models/modelbookimg/archives_type_20220821084056.go b/.history/models/modelbookimg/archives_type_20220821084056.go new file mode 100644 index 0000000..fb02857 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084056.go @@ -0,0 +1,8 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + +} diff --git a/.history/models/modelbookimg/archives_type_20220821084059.go b/.history/models/modelbookimg/archives_type_20220821084059.go new file mode 100644 index 0000000..71fbaee --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084059.go @@ -0,0 +1,8 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + satr +} diff --git a/.history/models/modelbookimg/archives_type_20220821084105.go b/.history/models/modelbookimg/archives_type_20220821084105.go new file mode 100644 index 0000000..d6d47ab --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084105.go @@ -0,0 +1,8 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + at_stater +} diff --git a/.history/models/modelbookimg/archives_type_20220821084108.go b/.history/models/modelbookimg/archives_type_20220821084108.go new file mode 100644 index 0000000..c529922 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084108.go @@ -0,0 +1,8 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater +} diff --git a/.history/models/modelbookimg/archives_type_20220821084111.go b/.history/models/modelbookimg/archives_type_20220821084111.go new file mode 100644 index 0000000..c7e2f35 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084111.go @@ -0,0 +1,8 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int +} diff --git a/.history/models/modelbookimg/archives_type_20220821084114.go b/.history/models/modelbookimg/archives_type_20220821084114.go new file mode 100644 index 0000000..e499779 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084114.go @@ -0,0 +1,8 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` +} diff --git a/.history/models/modelbookimg/archives_type_20220821084118.go b/.history/models/modelbookimg/archives_type_20220821084118.go new file mode 100644 index 0000000..45624f4 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084118.go @@ -0,0 +1,8 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"title" gorm:"column:at_stater;type:varchar(255);comment:档案分类名称"` +} diff --git a/.history/models/modelbookimg/archives_type_20220821084121.go b/.history/models/modelbookimg/archives_type_20220821084121.go new file mode 100644 index 0000000..458effe --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084121.go @@ -0,0 +1,8 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"stater" gorm:"column:at_stater;type:varchar(255);comment:档案分类名称"` +} diff --git a/.history/models/modelbookimg/archives_type_20220821084130.go b/.history/models/modelbookimg/archives_type_20220821084130.go new file mode 100644 index 0000000..92ffad7 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084130.go @@ -0,0 +1,8 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"stater" gorm:"column:at_stater;type:tinyint unsigned;comment:档案分类名称"` +} diff --git a/.history/models/modelbookimg/archives_type_20220821084134.go b/.history/models/modelbookimg/archives_type_20220821084134.go new file mode 100644 index 0000000..927af7b --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084134.go @@ -0,0 +1,8 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"stater" gorm:"column:at_stater;type:tinyint unsigned;not null ;comment:档案分类名称"` +} diff --git a/.history/models/modelbookimg/archives_type_20220821084135.go b/.history/models/modelbookimg/archives_type_20220821084135.go new file mode 100644 index 0000000..c9a2c0c --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084135.go @@ -0,0 +1,8 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"stater" gorm:"column:at_stater;type:tinyint unsigned;not null;comment:档案分类名称"` +} diff --git a/.history/models/modelbookimg/archives_type_20220821084140.go b/.history/models/modelbookimg/archives_type_20220821084140.go new file mode 100644 index 0000000..35ab82a --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084140.go @@ -0,0 +1,8 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"stater" gorm:"column:at_stater;type:tinyint unsigned;not null;default;comment:档案分类名称"` +} diff --git a/.history/models/modelbookimg/archives_type_20220821084142.go b/.history/models/modelbookimg/archives_type_20220821084142.go new file mode 100644 index 0000000..8694366 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084142.go @@ -0,0 +1,8 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"stater" gorm:"column:at_stater;type:tinyint unsigned;not null;default:1;comment:档案分类名称"` +} diff --git a/.history/models/modelbookimg/archives_type_20220821084146.go b/.history/models/modelbookimg/archives_type_20220821084146.go new file mode 100644 index 0000000..a5782d0 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084146.go @@ -0,0 +1,8 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"stater" gorm:"column:at_stater;type:tinyint unsigned;not null;default:1;comment:档案分类状态"` +} diff --git a/.history/models/modelbookimg/archives_type_20220821084148.go b/.history/models/modelbookimg/archives_type_20220821084148.go new file mode 100644 index 0000000..1743a51 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084148.go @@ -0,0 +1,9 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"stater" gorm:"column:at_stater;type:tinyint unsigned;not null;default:1;comment:档案分类状态"` + +} diff --git a/.history/models/modelbookimg/archives_type_20220821084156.go b/.history/models/modelbookimg/archives_type_20220821084156.go new file mode 100644 index 0000000..8d59687 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084156.go @@ -0,0 +1,9 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"stater" gorm:"column:at_stater;type:tinyint unsigned;not null;default:1;comment:档案分类状态"` + ParentId +} diff --git a/.history/models/modelbookimg/archives_type_20220821084158.go b/.history/models/modelbookimg/archives_type_20220821084158.go new file mode 100644 index 0000000..279aab6 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084158.go @@ -0,0 +1,9 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"stater" gorm:"column:at_stater;type:tinyint unsigned;not null;default:1;comment:档案分类状态"` + ParentId int +} diff --git a/.history/models/modelbookimg/archives_type_20220821084200.go b/.history/models/modelbookimg/archives_type_20220821084200.go new file mode 100644 index 0000000..ab78841 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084200.go @@ -0,0 +1,9 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"stater" gorm:"column:at_stater;type:tinyint unsigned;not null;default:1;comment:档案分类状态"` + ParentId i +} diff --git a/.history/models/modelbookimg/archives_type_20220821084203.go b/.history/models/modelbookimg/archives_type_20220821084203.go new file mode 100644 index 0000000..9531b9b --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084203.go @@ -0,0 +1,9 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"stater" gorm:"column:at_stater;type:tinyint unsigned;not null;default:1;comment:档案分类状态"` + ParentId int64 档案分类状态 +} diff --git a/.history/models/modelbookimg/archives_type_20220821084204.go b/.history/models/modelbookimg/archives_type_20220821084204.go new file mode 100644 index 0000000..01940a7 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084204.go @@ -0,0 +1,9 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"stater" gorm:"column:at_stater;type:tinyint unsigned;not null;default:1;comment:档案分类状态"` + ParentId int64 +} diff --git a/.history/models/modelbookimg/archives_type_20220821084207.go b/.history/models/modelbookimg/archives_type_20220821084207.go new file mode 100644 index 0000000..f311c6e --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084207.go @@ -0,0 +1,9 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"stater" gorm:"column:at_stater;type:tinyint unsigned;not null;default:1;comment:档案分类状态"` + ParentId int64 `json:"stater" gorm:"column:at_stater;type:tinyint unsigned;not null;default:1;comment:档案分类状态"` +} diff --git a/.history/models/modelbookimg/archives_type_20220821084211.go b/.history/models/modelbookimg/archives_type_20220821084211.go new file mode 100644 index 0000000..359c377 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084211.go @@ -0,0 +1,9 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"stater" gorm:"column:at_stater;type:tinyint unsigned;not null;default:1;comment:档案分类状态"` + ParentId int64 `json:"stater" gorm:"column:at_parent_id;type:tinyint unsigned;not null;default:1;comment:档案分类状态"` +} diff --git a/.history/models/modelbookimg/archives_type_20220821084215.go b/.history/models/modelbookimg/archives_type_20220821084215.go new file mode 100644 index 0000000..a03b9d2 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084215.go @@ -0,0 +1,9 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"stater" gorm:"column:at_stater;type:tinyint unsigned;not null;default:1;comment:档案分类状态"` + ParentId int64 `json:"parentid" gorm:"column:at_parent_id;type:tinyint unsigned;not null;default:1;comment:档案分类状态"` +} diff --git a/.history/models/modelbookimg/archives_type_20220821084227.go b/.history/models/modelbookimg/archives_type_20220821084227.go new file mode 100644 index 0000000..e371f23 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084227.go @@ -0,0 +1,9 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"stater" gorm:"column:at_stater;type:tinyint unsigned;not null;default:1;comment:档案分类状态"` + ParentId int64 `json:"parentid" gorm:"column:at_parent_id;type:bigint unsigned;not null;default:1;comment:档案分类状态"` +} diff --git a/.history/models/modelbookimg/archives_type_20220821084231.go b/.history/models/modelbookimg/archives_type_20220821084231.go new file mode 100644 index 0000000..8da6b63 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084231.go @@ -0,0 +1,9 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"stater" gorm:"column:at_stater;type:tinyint unsigned;not null;default:1;comment:档案分类状态"` + ParentId int64 `json:"parentid" gorm:"column:at_parent_id;type:bigint unsigned;not null;default:0;comment:档案分类状态"` +} diff --git a/.history/models/modelbookimg/archives_type_20220821084234.go b/.history/models/modelbookimg/archives_type_20220821084234.go new file mode 100644 index 0000000..9191f4b --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084234.go @@ -0,0 +1,9 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"stater" gorm:"column:at_stater;type:tinyint unsigned;not null;default:1;comment:档案分类状态"` + ParentId int64 `json:"parentid" gorm:"column:at_parent_id;type:bigint unsigned;not null;default:0;comment:档案分类父级"` +} diff --git a/.history/models/modelbookimg/archives_type_20220821084236.go b/.history/models/modelbookimg/archives_type_20220821084236.go new file mode 100644 index 0000000..b406938 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084236.go @@ -0,0 +1,10 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"stater" gorm:"column:at_stater;type:tinyint unsigned;not null;default:1;comment:档案分类状态"` + ParentId int64 `json:"parentid" gorm:"column:at_parent_id;type:bigint unsigned;not null;default:0;comment:档案分类父级"` + +} diff --git a/.history/models/modelbookimg/archives_type_20220821084242.go b/.history/models/modelbookimg/archives_type_20220821084242.go new file mode 100644 index 0000000..16dbedc --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084242.go @@ -0,0 +1,10 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"stater" gorm:"column:at_stater;type:tinyint unsigned;not null;default:1;comment:档案分类状态"` + ParentId int64 `json:"parentid" gorm:"column:at_parent_id;type:bigint unsigned;not null;default:0;comment:档案分类父级"` + Time +} diff --git a/.history/models/modelbookimg/archives_type_20220821084244.go b/.history/models/modelbookimg/archives_type_20220821084244.go new file mode 100644 index 0000000..31eb207 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084244.go @@ -0,0 +1,10 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"stater" gorm:"column:at_stater;type:tinyint unsigned;not null;default:1;comment:档案分类状态"` + ParentId int64 `json:"parentid" gorm:"column:at_parent_id;type:bigint unsigned;not null;default:0;comment:档案分类父级"` + Time int +} diff --git a/.history/models/modelbookimg/archives_type_20220821084245.go b/.history/models/modelbookimg/archives_type_20220821084245.go new file mode 100644 index 0000000..76207b0 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084245.go @@ -0,0 +1,10 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"stater" gorm:"column:at_stater;type:tinyint unsigned;not null;default:1;comment:档案分类状态"` + ParentId int64 `json:"parentid" gorm:"column:at_parent_id;type:bigint unsigned;not null;default:0;comment:档案分类父级"` + Time int64 +} diff --git a/.history/models/modelbookimg/archives_type_20220821084249.go b/.history/models/modelbookimg/archives_type_20220821084249.go new file mode 100644 index 0000000..d5de697 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084249.go @@ -0,0 +1,10 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"stater" gorm:"column:at_stater;type:tinyint unsigned;not null;default:1;comment:档案分类状态"` + ParentId int64 `json:"parentid" gorm:"column:at_parent_id;type:bigint unsigned;not null;default:0;comment:档案分类父级"` + Time int64 `json:"parentid" gorm:"column:at_parent_id;type:bigint unsigned;not null;default:0;comment:档案分类父级"` +} diff --git a/.history/models/modelbookimg/archives_type_20220821084258.go b/.history/models/modelbookimg/archives_type_20220821084258.go new file mode 100644 index 0000000..743cc07 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084258.go @@ -0,0 +1,10 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"stater" gorm:"column:at_stater;type:tinyint unsigned;not null;default:1;comment:档案分类状态"` + ParentId int64 `json:"parentid" gorm:"column:at_parent_id;type:bigint unsigned;not null;default:0;comment:档案分类父级"` + Time int64 `json:"time" gorm:"column:at_parent_id;type:bigint unsigned;not null;default:0;comment:档案分类父级"` +} diff --git a/.history/models/modelbookimg/archives_type_20220821084300.go b/.history/models/modelbookimg/archives_type_20220821084300.go new file mode 100644 index 0000000..1a73d04 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084300.go @@ -0,0 +1,10 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"stater" gorm:"column:at_stater;type:tinyint unsigned;not null;default:1;comment:档案分类状态"` + ParentId int64 `json:"parentid" gorm:"column:at_parent_id;type:bigint unsigned;not null;default:0;comment:档案分类父级"` + Time int64 `json:"time" gorm:"column:at_time;type:bigint unsigned;not null;default:0;comment:档案分类父级"` +} diff --git a/.history/models/modelbookimg/archives_type_20220821084307.go b/.history/models/modelbookimg/archives_type_20220821084307.go new file mode 100644 index 0000000..8fe9860 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084307.go @@ -0,0 +1,10 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"stater" gorm:"column:at_stater;type:tinyint unsigned;not null;default:1;comment:档案分类状态"` + ParentId int64 `json:"parentid" gorm:"column:at_parent_id;type:bigint unsigned;not null;default:0;comment:档案分类父级"` + Time int64 `json:"time" gorm:"column:at_time;type:bigint unsigned;not null;default:0;comment:写入时间"` +} diff --git a/.history/models/modelbookimg/archives_type_20220821084309.go b/.history/models/modelbookimg/archives_type_20220821084309.go new file mode 100644 index 0000000..e3c99e7 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084309.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"stater" gorm:"column:at_stater;type:tinyint unsigned;not null;default:1;comment:档案分类状态"` + ParentId int64 `json:"parentid" gorm:"column:at_parent_id;type:bigint unsigned;not null;default:0;comment:档案分类父级"` + Time int64 `json:"time" gorm:"column:at_time;type:bigint unsigned;not null;default:0;comment:写入时间"` + +} diff --git a/.history/models/modelbookimg/archives_type_20220821084315.go b/.history/models/modelbookimg/archives_type_20220821084315.go new file mode 100644 index 0000000..efc19cb --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084315.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"stater" gorm:"column:at_stater;type:tinyint unsigned;not null;default:1;comment:档案分类状态"` + ParentId int64 `json:"parentid" gorm:"column:at_parent_id;type:bigint unsigned;not null;default:0;comment:档案分类父级"` + Time int64 `json:"time" gorm:"column:at_time;type:bigint unsigned;not null;default:0;comment:写入时间"` + Uid +} diff --git a/.history/models/modelbookimg/archives_type_20220821084319.go b/.history/models/modelbookimg/archives_type_20220821084319.go new file mode 100644 index 0000000..2743cd6 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084319.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"stater" gorm:"column:at_stater;type:tinyint unsigned;not null;default:1;comment:档案分类状态"` + ParentId int64 `json:"parentid" gorm:"column:at_parent_id;type:bigint unsigned;not null;default:0;comment:档案分类父级"` + Time int64 `json:"time" gorm:"column:at_time;type:bigint unsigned;not null;default:0;comment:写入时间"` + Uid int64 +} diff --git a/.history/models/modelbookimg/archives_type_20220821084324.go b/.history/models/modelbookimg/archives_type_20220821084324.go new file mode 100644 index 0000000..1e20c8d --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084324.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"stater" gorm:"column:at_stater;type:tinyint unsigned;not null;default:1;comment:档案分类状态"` + ParentId int64 `json:"parentid" gorm:"column:at_parent_id;type:bigint unsigned;not null;default:0;comment:档案分类父级"` + Time int64 `json:"time" gorm:"column:at_time;type:bigint unsigned;not null;default:0;comment:写入时间"` + Uid int64 `json:"time" gorm:"column:at_time;type:bigint unsigned;not null;default:0;comment:写入时间"` +} diff --git a/.history/models/modelbookimg/archives_type_20220821084329.go b/.history/models/modelbookimg/archives_type_20220821084329.go new file mode 100644 index 0000000..6252425 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084329.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"stater" gorm:"column:at_stater;type:tinyint unsigned;not null;default:1;comment:档案分类状态"` + ParentId int64 `json:"parentid" gorm:"column:at_parent_id;type:bigint unsigned;not null;default:0;comment:档案分类父级"` + Time int64 `json:"time" gorm:"column:at_time;type:bigint unsigned;not null;default:0;comment:写入时间"` + Uid int64 `json:"uid" gorm:"column:at_time;type:bigint unsigned;not null;default:0;comment:写入时间"` +} diff --git a/.history/models/modelbookimg/archives_type_20220821084331.go b/.history/models/modelbookimg/archives_type_20220821084331.go new file mode 100644 index 0000000..0396689 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084331.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"stater" gorm:"column:at_stater;type:tinyint unsigned;not null;default:1;comment:档案分类状态"` + ParentId int64 `json:"parentid" gorm:"column:at_parent_id;type:bigint unsigned;not null;default:0;comment:档案分类父级"` + Time int64 `json:"time" gorm:"column:at_time;type:bigint unsigned;not null;default:0;comment:写入时间"` + Uid int64 `json:"uid" gorm:"column:at_uid;type:bigint unsigned;not null;default:0;comment:写入时间"` +} diff --git a/.history/models/modelbookimg/archives_type_20220821084339.go b/.history/models/modelbookimg/archives_type_20220821084339.go new file mode 100644 index 0000000..0ae68a6 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084339.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"stater" gorm:"column:at_stater;type:tinyint unsigned;not null;default:1;comment:档案分类状态"` + ParentId int64 `json:"parentid" gorm:"column:at_parent_id;type:bigint unsigned;not null;default:0;comment:档案分类父级"` + Time int64 `json:"time" gorm:"column:at_time;type:bigint unsigned;not null;default:0;comment:写入时间"` + Uid int64 `json:"uid" gorm:"column:at_uid;type:bigint unsigned;not null;default:0;comment:添加人员"` +} diff --git a/.history/models/modelbookimg/archives_type_20220821084340.go b/.history/models/modelbookimg/archives_type_20220821084340.go new file mode 100644 index 0000000..86ffe59 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084340.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"stater" gorm:"column:at_stater;type:tinyint unsigned;not null;default:1;comment:档案分类状态"` + ParentId int64 `json:"parentid" gorm:"column:at_parent_id;type:bigint unsigned;not null;default:0;comment:档案分类父级"` + Time int64 `json:"time" gorm:"column:at_time;type:bigint unsigned;not null;default:0;comment:写入时间"` + Uid int64 `json:"uid" gorm:"column:at_uid;type:bigint unsigned;not null;default:0;comment:添加人员"` + Uid int64 `json:"uid" gorm:"column:at_uid;type:bigint unsigned;not null;default:0;comment:添加人员"` +} diff --git a/.history/models/modelbookimg/archives_type_20220821084349.go b/.history/models/modelbookimg/archives_type_20220821084349.go new file mode 100644 index 0000000..1e2e278 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084349.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"stater" gorm:"column:at_stater;type:tinyint unsigned;not null;default:1;comment:档案分类状态"` + ParentId int64 `json:"parentid" gorm:"column:at_parent_id;type:bigint unsigned;not null;default:0;comment:档案分类父级"` + Time int64 `json:"time" gorm:"column:at_time;type:bigint unsigned;not null;default:0;comment:写入时间"` + Uid int64 `json:"uid" gorm:"column:at_uid;type:bigint unsigned;not null;default:0;comment:添加人员"` + Sort int64 `json:"uid" gorm:"column:at_uid;type:bigint unsigned;not null;default:0;comment:添加人员"` +} diff --git a/.history/models/modelbookimg/archives_type_20220821084352.go b/.history/models/modelbookimg/archives_type_20220821084352.go new file mode 100644 index 0000000..6156e9a --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084352.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"stater" gorm:"column:at_stater;type:tinyint unsigned;not null;default:1;comment:档案分类状态"` + ParentId int64 `json:"parentid" gorm:"column:at_parent_id;type:bigint unsigned;not null;default:0;comment:档案分类父级"` + Time int64 `json:"time" gorm:"column:at_time;type:bigint unsigned;not null;default:0;comment:写入时间"` + Uid int64 `json:"uid" gorm:"column:at_uid;type:bigint unsigned;not null;default:0;comment:添加人员"` + Sort int64 `json:"sort" gorm:"column:at_uid;type:bigint unsigned;not null;default:0;comment:添加人员"` +} diff --git a/.history/models/modelbookimg/archives_type_20220821084357.go b/.history/models/modelbookimg/archives_type_20220821084357.go new file mode 100644 index 0000000..dbec1fb --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084357.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"stater" gorm:"column:at_stater;type:tinyint unsigned;not null;default:1;comment:档案分类状态"` + ParentId int64 `json:"parentid" gorm:"column:at_parent_id;type:bigint unsigned;not null;default:0;comment:档案分类父级"` + Time int64 `json:"time" gorm:"column:at_time;type:bigint unsigned;not null;default:0;comment:写入时间"` + Uid int64 `json:"uid" gorm:"column:at_uid;type:bigint unsigned;not null;default:0;comment:添加人员"` + Sort int64 `json:"sort" gorm:"column:at_sort;type:bigint unsigned;not null;default:0;comment:添加人员"` +} diff --git a/.history/models/modelbookimg/archives_type_20220821084411.go b/.history/models/modelbookimg/archives_type_20220821084411.go new file mode 100644 index 0000000..42eaa0c --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084411.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"stater" gorm:"column:at_stater;type:tinyint unsigned;not null;default:1;comment:档案分类状态"` + ParentId int64 `json:"parentid" gorm:"column:at_parent_id;type:bigint unsigned;not null;default:0;comment:档案分类父级"` + Time int64 `json:"time" gorm:"column:at_time;type:bigint unsigned;not null;default:0;comment:写入时间"` + Uid int64 `json:"uid" gorm:"column:at_uid;type:bigint unsigned;not null;default:0;comment:添加人员"` + Sort int64 `json:"sort" gorm:"column:at_sort;type:smallint unsigned;not null;default:0;comment:添加人员"` +} diff --git a/.history/models/modelbookimg/archives_type_20220821084414.go b/.history/models/modelbookimg/archives_type_20220821084414.go new file mode 100644 index 0000000..016a32d --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084414.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"stater" gorm:"column:at_stater;type:tinyint unsigned;not null;default:1;comment:档案分类状态"` + ParentId int64 `json:"parentid" gorm:"column:at_parent_id;type:bigint unsigned;not null;default:0;comment:档案分类父级"` + Time int64 `json:"time" gorm:"column:at_time;type:bigint unsigned;not null;default:0;comment:写入时间"` + Uid int64 `json:"uid" gorm:"column:at_uid;type:bigint unsigned;not null;default:0;comment:添加人员"` + Sort int `json:"sort" gorm:"column:at_sort;type:smallint unsigned;not null;default:0;comment:添加人员"` +} diff --git a/.history/models/modelbookimg/archives_type_20220821084417.go b/.history/models/modelbookimg/archives_type_20220821084417.go new file mode 100644 index 0000000..5ac4e34 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084417.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"stater" gorm:"column:at_stater;type:tinyint unsigned;not null;default:1;comment:档案分类状态"` + ParentId int64 `json:"parentid" gorm:"column:at_parent_id;type:bigint unsigned;not null;default:0;comment:档案分类父级"` + Time int64 `json:"time" gorm:"column:at_time;type:bigint unsigned;not null;default:0;comment:写入时间"` + Uid int64 `json:"uid" gorm:"column:at_uid;type:bigint unsigned;not null;default:0;comment:添加人员"` + Sort int `json:"sort" gorm:"column:at_sort;type:smallint unsigned;not null;default:50;comment:添加人员"` +} diff --git a/.history/models/modelbookimg/archives_type_20220821084421.go b/.history/models/modelbookimg/archives_type_20220821084421.go new file mode 100644 index 0000000..b517183 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084421.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"stater" gorm:"column:at_stater;type:tinyint unsigned;not null;default:1;comment:档案分类状态"` + ParentId int64 `json:"parentid" gorm:"column:at_parent_id;type:bigint unsigned;not null;default:0;comment:档案分类父级"` + Time int64 `json:"time" gorm:"column:at_time;type:bigint unsigned;not null;default:0;comment:写入时间"` + Uid int64 `json:"uid" gorm:"column:at_uid;type:bigint unsigned;not null;default:0;comment:添加人员"` + Sort int `json:"sort" gorm:"column:at_sort;type:smallint unsigned;not null;default:50;comment:排序"` +} diff --git a/.history/models/modelbookimg/archives_type_20220821084423.go b/.history/models/modelbookimg/archives_type_20220821084423.go new file mode 100644 index 0000000..6ea1ce1 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084423.go @@ -0,0 +1,14 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"stater" gorm:"column:at_stater;type:tinyint unsigned;not null;default:1;comment:档案分类状态"` + ParentId int64 `json:"parentid" gorm:"column:at_parent_id;type:bigint unsigned;not null;default:0;comment:档案分类父级"` + Time int64 `json:"time" gorm:"column:at_time;type:bigint unsigned;not null;default:0;comment:写入时间"` + Uid int64 `json:"uid" gorm:"column:at_uid;type:bigint unsigned;not null;default:0;comment:添加人员"` + Sort int `json:"sort" gorm:"column:at_sort;type:smallint unsigned;not null;default:50;comment:排序"` +} + + diff --git a/.history/models/modelbookimg/archives_type_20220821084430.go b/.history/models/modelbookimg/archives_type_20220821084430.go new file mode 100644 index 0000000..d318593 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084430.go @@ -0,0 +1,40 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"stater" gorm:"column:at_stater;type:tinyint unsigned;not null;default:1;comment:档案分类状态"` + ParentId int64 `json:"parentid" gorm:"column:at_parent_id;type:bigint unsigned;not null;default:0;comment:档案分类父级"` + Time int64 `json:"time" gorm:"column:at_time;type:bigint unsigned;not null;default:0;comment:写入时间"` + Uid int64 `json:"uid" gorm:"column:at_uid;type:bigint unsigned;not null;default:0;comment:添加人员"` + Sort int `json:"sort" gorm:"column:at_sort;type:smallint unsigned;not null;default:50;comment:排序"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} + +// 编辑图文信息内容 +func (cont *GraphicForm) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取图文信息内容 +func (cont *GraphicForm) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *GraphicForm) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/archives_type_20220821084434.go b/.history/models/modelbookimg/archives_type_20220821084434.go new file mode 100644 index 0000000..b65e6eb --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084434.go @@ -0,0 +1,40 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"stater" gorm:"column:at_stater;type:tinyint unsigned;not null;default:1;comment:档案分类状态"` + ParentId int64 `json:"parentid" gorm:"column:at_parent_id;type:bigint unsigned;not null;default:0;comment:档案分类父级"` + Time int64 `json:"time" gorm:"column:at_time;type:bigint unsigned;not null;default:0;comment:写入时间"` + Uid int64 `json:"uid" gorm:"column:at_uid;type:bigint unsigned;not null;default:0;comment:添加人员"` + Sort int `json:"sort" gorm:"column:at_sort;type:smallint unsigned;not null;default:50;comment:排序"` +} + +func (gf *ArchivesType) TableName() string { + return "graphicform" +} + +// 编辑图文信息内容 +func (cont *GraphicForm) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取图文信息内容 +func (cont *GraphicForm) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *GraphicForm) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/archives_type_20220821084437.go b/.history/models/modelbookimg/archives_type_20220821084437.go new file mode 100644 index 0000000..0a429fc --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084437.go @@ -0,0 +1,40 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"stater" gorm:"column:at_stater;type:tinyint unsigned;not null;default:1;comment:档案分类状态"` + ParentId int64 `json:"parentid" gorm:"column:at_parent_id;type:bigint unsigned;not null;default:0;comment:档案分类父级"` + Time int64 `json:"time" gorm:"column:at_time;type:bigint unsigned;not null;default:0;comment:写入时间"` + Uid int64 `json:"uid" gorm:"column:at_uid;type:bigint unsigned;not null;default:0;comment:添加人员"` + Sort int `json:"sort" gorm:"column:at_sort;type:smallint unsigned;not null;default:50;comment:排序"` +} + +func (at *ArchivesType) TableName() string { + return "graphicform" +} + +// 编辑图文信息内容 +func (cont *GraphicForm) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取图文信息内容 +func (cont *GraphicForm) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *GraphicForm) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/archives_type_20220821084445.go b/.history/models/modelbookimg/archives_type_20220821084445.go new file mode 100644 index 0000000..1759403 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084445.go @@ -0,0 +1,45 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"stater" gorm:"column:at_stater;type:tinyint unsigned;not null;default:1;comment:档案分类状态"` + ParentId int64 `json:"parentid" gorm:"column:at_parent_id;type:bigint unsigned;not null;default:0;comment:档案分类父级"` + Time int64 `json:"time" gorm:"column:at_time;type:bigint unsigned;not null;default:0;comment:写入时间"` + Uid int64 `json:"uid" gorm:"column:at_uid;type:bigint unsigned;not null;default:0;comment:添加人员"` + Sort int `json:"sort" gorm:"column:at_sort;type:smallint unsigned;not null;default:50;comment:排序"` +} + +func (at *ArchivesType) TableName() string { + return "archives_type" +} + +// 编辑图文信息内容 +func (cont *GraphicForm) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取图文信息内容 +func (cont *GraphicForm) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *GraphicForm) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/archives_type_20220821084452.go b/.history/models/modelbookimg/archives_type_20220821084452.go new file mode 100644 index 0000000..c011bfa --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084452.go @@ -0,0 +1,40 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"stater" gorm:"column:at_stater;type:tinyint unsigned;not null;default:1;comment:档案分类状态"` + ParentId int64 `json:"parentid" gorm:"column:at_parent_id;type:bigint unsigned;not null;default:0;comment:档案分类父级"` + Time int64 `json:"time" gorm:"column:at_time;type:bigint unsigned;not null;default:0;comment:写入时间"` + Uid int64 `json:"uid" gorm:"column:at_uid;type:bigint unsigned;not null;default:0;comment:添加人员"` + Sort int `json:"sort" gorm:"column:at_sort;type:smallint unsigned;not null;default:50;comment:排序"` +} + +func (at *ArchivesType) TableName() string { + return "archives_type" +} + +// 编辑图文信息内容 +func (cont *GraphicForm) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取图文信息内容 +func (cont *GraphicForm) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *GraphicForm) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/archives_type_20220821084457.go b/.history/models/modelbookimg/archives_type_20220821084457.go new file mode 100644 index 0000000..923038e --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084457.go @@ -0,0 +1,40 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"stater" gorm:"column:at_stater;type:tinyint unsigned;not null;default:1;comment:档案分类状态"` + ParentId int64 `json:"parentid" gorm:"column:at_parent_id;type:bigint unsigned;not null;default:0;comment:档案分类父级"` + Time int64 `json:"time" gorm:"column:at_time;type:bigint unsigned;not null;default:0;comment:写入时间"` + Uid int64 `json:"uid" gorm:"column:at_uid;type:bigint unsigned;not null;default:0;comment:添加人员"` + Sort int `json:"sort" gorm:"column:at_sort;type:smallint unsigned;not null;default:50;comment:排序"` +} + +func (at *ArchivesType) TableName() string { + return "archives_type" +} + +// 编辑图文信息内容 +func (cont *ArchivesType) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取图文信息内容 +func (cont *GraphicForm) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *GraphicForm) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/archives_type_20220821084458.go b/.history/models/modelbookimg/archives_type_20220821084458.go new file mode 100644 index 0000000..4422cef --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084458.go @@ -0,0 +1,40 @@ +package modelbookimg + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"stater" gorm:"column:at_stater;type:tinyint unsigned;not null;default:1;comment:档案分类状态"` + ParentId int64 `json:"parentid" gorm:"column:at_parent_id;type:bigint unsigned;not null;default:0;comment:档案分类父级"` + Time int64 `json:"time" gorm:"column:at_time;type:bigint unsigned;not null;default:0;comment:写入时间"` + Uid int64 `json:"uid" gorm:"column:at_uid;type:bigint unsigned;not null;default:0;comment:添加人员"` + Sort int `json:"sort" gorm:"column:at_sort;type:smallint unsigned;not null;default:50;comment:排序"` +} + +func (at *ArchivesType) TableName() string { + return "archives_type" +} + +// 编辑图文信息内容 +func (cont *ArchivesType) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取图文信息内容 +func (cont *ArchivesType) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *GraphicForm) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/archives_type_20220821084459.go b/.history/models/modelbookimg/archives_type_20220821084459.go new file mode 100644 index 0000000..d07b054 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084459.go @@ -0,0 +1,45 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"stater" gorm:"column:at_stater;type:tinyint unsigned;not null;default:1;comment:档案分类状态"` + ParentId int64 `json:"parentid" gorm:"column:at_parent_id;type:bigint unsigned;not null;default:0;comment:档案分类父级"` + Time int64 `json:"time" gorm:"column:at_time;type:bigint unsigned;not null;default:0;comment:写入时间"` + Uid int64 `json:"uid" gorm:"column:at_uid;type:bigint unsigned;not null;default:0;comment:添加人员"` + Sort int `json:"sort" gorm:"column:at_sort;type:smallint unsigned;not null;default:50;comment:排序"` +} + +func (at *ArchivesType) TableName() string { + return "archives_type" +} + +// 编辑图文信息内容 +func (cont *ArchivesType) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取图文信息内容 +func (cont *ArchivesType) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *ArchivesType) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/archives_type_20220821084503.go b/.history/models/modelbookimg/archives_type_20220821084503.go new file mode 100644 index 0000000..d07b054 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084503.go @@ -0,0 +1,45 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"stater" gorm:"column:at_stater;type:tinyint unsigned;not null;default:1;comment:档案分类状态"` + ParentId int64 `json:"parentid" gorm:"column:at_parent_id;type:bigint unsigned;not null;default:0;comment:档案分类父级"` + Time int64 `json:"time" gorm:"column:at_time;type:bigint unsigned;not null;default:0;comment:写入时间"` + Uid int64 `json:"uid" gorm:"column:at_uid;type:bigint unsigned;not null;default:0;comment:添加人员"` + Sort int `json:"sort" gorm:"column:at_sort;type:smallint unsigned;not null;default:50;comment:排序"` +} + +func (at *ArchivesType) TableName() string { + return "archives_type" +} + +// 编辑图文信息内容 +func (cont *ArchivesType) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取图文信息内容 +func (cont *ArchivesType) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *ArchivesType) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/archives_type_20220821084513.go b/.history/models/modelbookimg/archives_type_20220821084513.go new file mode 100644 index 0000000..5156c36 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084513.go @@ -0,0 +1,45 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"stater" gorm:"column:at_stater;type:tinyint unsigned;not null;default:1;comment:档案分类状态"` + ParentId int64 `json:"parentid" gorm:"column:at_parent_id;type:bigint unsigned;not null;default:0;comment:档案分类父级"` + Time int64 `json:"time" gorm:"column:at_time;type:bigint unsigned;not null;default:0;comment:写入时间"` + Uid int64 `json:"uid" gorm:"column:at_uid;type:bigint unsigned;not null;default:0;comment:添加人员"` + Sort int `json:"sort" gorm:"column:at_sort;type:smallint unsigned;not null;default:50;comment:排序"` +} + +func (at *ArchivesType) TableName() string { + return "archives_type" +} + +// 编辑档案管理f内容 +func (cont *ArchivesType) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取图文信息内容 +func (cont *ArchivesType) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *ArchivesType) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/archives_type_20220821084515.go b/.history/models/modelbookimg/archives_type_20220821084515.go new file mode 100644 index 0000000..2da02f7 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084515.go @@ -0,0 +1,45 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"stater" gorm:"column:at_stater;type:tinyint unsigned;not null;default:1;comment:档案分类状态"` + ParentId int64 `json:"parentid" gorm:"column:at_parent_id;type:bigint unsigned;not null;default:0;comment:档案分类父级"` + Time int64 `json:"time" gorm:"column:at_time;type:bigint unsigned;not null;default:0;comment:写入时间"` + Uid int64 `json:"uid" gorm:"column:at_uid;type:bigint unsigned;not null;default:0;comment:添加人员"` + Sort int `json:"sort" gorm:"column:at_sort;type:smallint unsigned;not null;default:50;comment:排序"` +} + +func (at *ArchivesType) TableName() string { + return "archives_type" +} + +// 编辑档案管理分类内容 +func (cont *ArchivesType) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取图文信息内容 +func (cont *ArchivesType) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *ArchivesType) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/archives_type_20220821084519.go b/.history/models/modelbookimg/archives_type_20220821084519.go new file mode 100644 index 0000000..b812ef4 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084519.go @@ -0,0 +1,45 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"stater" gorm:"column:at_stater;type:tinyint unsigned;not null;default:1;comment:档案分类状态"` + ParentId int64 `json:"parentid" gorm:"column:at_parent_id;type:bigint unsigned;not null;default:0;comment:档案分类父级"` + Time int64 `json:"time" gorm:"column:at_time;type:bigint unsigned;not null;default:0;comment:写入时间"` + Uid int64 `json:"uid" gorm:"column:at_uid;type:bigint unsigned;not null;default:0;comment:添加人员"` + Sort int `json:"sort" gorm:"column:at_sort;type:smallint unsigned;not null;default:50;comment:排序"` +} + +func (at *ArchivesType) TableName() string { + return "archives_type" +} + +// 编辑档案管理分类内容 +func (cont *ArchivesType) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取档案管理分类内容 +func (cont *ArchivesType) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *ArchivesType) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/archives_type_20220821084523.go b/.history/models/modelbookimg/archives_type_20220821084523.go new file mode 100644 index 0000000..182c9f8 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084523.go @@ -0,0 +1,45 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"stater" gorm:"column:at_stater;type:tinyint unsigned;not null;default:1;comment:档案分类状态"` + ParentId int64 `json:"parentid" gorm:"column:at_parent_id;type:bigint unsigned;not null;default:0;comment:档案分类父级"` + Time int64 `json:"time" gorm:"column:at_time;type:bigint unsigned;not null;default:0;comment:写入时间"` + Uid int64 `json:"uid" gorm:"column:at_uid;type:bigint unsigned;not null;default:0;comment:添加人员"` + Sort int `json:"sort" gorm:"column:at_sort;type:smallint unsigned;not null;default:50;comment:排序"` +} + +func (at *ArchivesType) TableName() string { + return "archives_type" +} + +// 编辑档案管理分类内容 +func (cont *ArchivesType) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取档案管理分类内容 +func (cont *ArchivesType) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除档案管理分类 +func (cont *ArchivesType) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/archives_type_20220821084526.go b/.history/models/modelbookimg/archives_type_20220821084526.go new file mode 100644 index 0000000..b812ef4 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821084526.go @@ -0,0 +1,45 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"stater" gorm:"column:at_stater;type:tinyint unsigned;not null;default:1;comment:档案分类状态"` + ParentId int64 `json:"parentid" gorm:"column:at_parent_id;type:bigint unsigned;not null;default:0;comment:档案分类父级"` + Time int64 `json:"time" gorm:"column:at_time;type:bigint unsigned;not null;default:0;comment:写入时间"` + Uid int64 `json:"uid" gorm:"column:at_uid;type:bigint unsigned;not null;default:0;comment:添加人员"` + Sort int `json:"sort" gorm:"column:at_sort;type:smallint unsigned;not null;default:50;comment:排序"` +} + +func (at *ArchivesType) TableName() string { + return "archives_type" +} + +// 编辑档案管理分类内容 +func (cont *ArchivesType) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取档案管理分类内容 +func (cont *ArchivesType) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *ArchivesType) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/archives_type_20220821091226.go b/.history/models/modelbookimg/archives_type_20220821091226.go new file mode 100644 index 0000000..b812ef4 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821091226.go @@ -0,0 +1,45 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"stater" gorm:"column:at_stater;type:tinyint unsigned;not null;default:1;comment:档案分类状态"` + ParentId int64 `json:"parentid" gorm:"column:at_parent_id;type:bigint unsigned;not null;default:0;comment:档案分类父级"` + Time int64 `json:"time" gorm:"column:at_time;type:bigint unsigned;not null;default:0;comment:写入时间"` + Uid int64 `json:"uid" gorm:"column:at_uid;type:bigint unsigned;not null;default:0;comment:添加人员"` + Sort int `json:"sort" gorm:"column:at_sort;type:smallint unsigned;not null;default:50;comment:排序"` +} + +func (at *ArchivesType) TableName() string { + return "archives_type" +} + +// 编辑档案管理分类内容 +func (cont *ArchivesType) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取档案管理分类内容 +func (cont *ArchivesType) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *ArchivesType) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/archives_type_20220821093001.go b/.history/models/modelbookimg/archives_type_20220821093001.go new file mode 100644 index 0000000..7b6986c --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821093001.go @@ -0,0 +1,45 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"stater" gorm:"column:at_stater;type:tinyint unsigned;not null;default:1;comment:档案分类状态"` + ParentId int64 `json:"parentid" gorm:"column:at_parent_id;type:bigint unsigned;not null;default:0;comment:档案分类父级"` + Time int64 `json:"time" gorm:"column:at_time;type:bigint unsigned;not null;default:0;comment:写入时间"` + Uid int64 `json:"uid" gorm:"column:at_uid;type:bigint unsigned;not null;default:0;comment:添加人员"` + Sort int `json:"sort" gorm:"column:at_sort;type:smallint unsigned;not null;default:50;comment:排序"` +} + +func (at *ArchivesType) TableName() string { + return "archives_type" +} + +// 编辑档案管理分类内容 +func (cont *ArchivesType) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_Master.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取档案管理分类内容 +func (cont *ArchivesType) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *ArchivesType) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/archives_type_20220821093002.go b/.history/models/modelbookimg/archives_type_20220821093002.go new file mode 100644 index 0000000..271e9b4 --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821093002.go @@ -0,0 +1,45 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"stater" gorm:"column:at_stater;type:tinyint unsigned;not null;default:1;comment:档案分类状态"` + ParentId int64 `json:"parentid" gorm:"column:at_parent_id;type:bigint unsigned;not null;default:0;comment:档案分类父级"` + Time int64 `json:"time" gorm:"column:at_time;type:bigint unsigned;not null;default:0;comment:写入时间"` + Uid int64 `json:"uid" gorm:"column:at_uid;type:bigint unsigned;not null;default:0;comment:添加人员"` + Sort int `json:"sort" gorm:"column:at_sort;type:smallint unsigned;not null;default:50;comment:排序"` +} + +func (at *ArchivesType) TableName() string { + return "archives_type" +} + +// 编辑档案管理分类内容 +func (cont *ArchivesType) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_Master.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取档案管理分类内容 +func (cont *ArchivesType) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_Master.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *ArchivesType) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/archives_type_20220821093005.go b/.history/models/modelbookimg/archives_type_20220821093005.go new file mode 100644 index 0000000..51ae40b --- /dev/null +++ b/.history/models/modelbookimg/archives_type_20220821093005.go @@ -0,0 +1,45 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"stater" gorm:"column:at_stater;type:tinyint unsigned;not null;default:1;comment:档案分类状态"` + ParentId int64 `json:"parentid" gorm:"column:at_parent_id;type:bigint unsigned;not null;default:0;comment:档案分类父级"` + Time int64 `json:"time" gorm:"column:at_time;type:bigint unsigned;not null;default:0;comment:写入时间"` + Uid int64 `json:"uid" gorm:"column:at_uid;type:bigint unsigned;not null;default:0;comment:添加人员"` + Sort int `json:"sort" gorm:"column:at_sort;type:smallint unsigned;not null;default:50;comment:排序"` +} + +func (at *ArchivesType) TableName() string { + return "archives_type" +} + +// 编辑档案管理分类内容 +func (cont *ArchivesType) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_Master.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取档案管理分类内容 +func (cont *ArchivesType) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_Master.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *ArchivesType) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_Master.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/bookattribute_20220821084648.go b/.history/models/modelbookimg/bookattribute_20220821084648.go new file mode 100644 index 0000000..e69de29 diff --git a/.history/models/modelbookimg/bookattribute_20220821084652.go b/.history/models/modelbookimg/bookattribute_20220821084652.go new file mode 100644 index 0000000..05a880b --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821084652.go @@ -0,0 +1 @@ +pa \ No newline at end of file diff --git a/.history/models/modelbookimg/bookattribute_20220821084654.go b/.history/models/modelbookimg/bookattribute_20220821084654.go new file mode 100644 index 0000000..e69de29 diff --git a/.history/models/modelbookimg/bookattribute_20220821084655.go b/.history/models/modelbookimg/bookattribute_20220821084655.go new file mode 100644 index 0000000..e69de29 diff --git a/.history/models/modelbookimg/bookattribute_20220821084658.go b/.history/models/modelbookimg/bookattribute_20220821084658.go new file mode 100644 index 0000000..59c77e4 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821084658.go @@ -0,0 +1 @@ +package \ No newline at end of file diff --git a/.history/models/modelbookimg/bookattribute_20220821084702.go b/.history/models/modelbookimg/bookattribute_20220821084702.go new file mode 100644 index 0000000..36b0a87 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821084702.go @@ -0,0 +1 @@ +package modelbookimg \ No newline at end of file diff --git a/.history/models/modelbookimg/bookattribute_20220821084703.go b/.history/models/modelbookimg/bookattribute_20220821084703.go new file mode 100644 index 0000000..600480e --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821084703.go @@ -0,0 +1 @@ +package modelbookimg diff --git a/.history/models/modelbookimg/bookattribute_20220821084710.go b/.history/models/modelbookimg/bookattribute_20220821084710.go new file mode 100644 index 0000000..87dd386 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821084710.go @@ -0,0 +1,3 @@ +package modelbookimg + +type \ No newline at end of file diff --git a/.history/models/modelbookimg/bookattribute_20220821084713.go b/.history/models/modelbookimg/bookattribute_20220821084713.go new file mode 100644 index 0000000..9b24d26 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821084713.go @@ -0,0 +1,3 @@ +package modelbookimg + +type modelbookimg \ No newline at end of file diff --git a/.history/models/modelbookimg/bookattribute_20220821084715.go b/.history/models/modelbookimg/bookattribute_20220821084715.go new file mode 100644 index 0000000..7a27da9 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821084715.go @@ -0,0 +1,3 @@ +package modelbookimg + +type bookattribute \ No newline at end of file diff --git a/.history/models/modelbookimg/bookattribute_20220821084718.go b/.history/models/modelbookimg/bookattribute_20220821084718.go new file mode 100644 index 0000000..5e5e3d6 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821084718.go @@ -0,0 +1,3 @@ +package modelbookimg + +type Bookattribute \ No newline at end of file diff --git a/.history/models/modelbookimg/bookattribute_20220821084720.go b/.history/models/modelbookimg/bookattribute_20220821084720.go new file mode 100644 index 0000000..db6bf57 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821084720.go @@ -0,0 +1,3 @@ +package modelbookimg + +type BookAttribute \ No newline at end of file diff --git a/.history/models/modelbookimg/bookattribute_20220821084724.go b/.history/models/modelbookimg/bookattribute_20220821084724.go new file mode 100644 index 0000000..c775391 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821084724.go @@ -0,0 +1,4 @@ +package modelbookimg + +type BookAttribute struct { +} diff --git a/.history/models/modelbookimg/bookattribute_20220821084726.go b/.history/models/modelbookimg/bookattribute_20220821084726.go new file mode 100644 index 0000000..25f781d --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821084726.go @@ -0,0 +1,5 @@ +package modelbookimg + +type BookAttribute struct { + +} diff --git a/.history/models/modelbookimg/bookattribute_20220821084735.go b/.history/models/modelbookimg/bookattribute_20220821084735.go new file mode 100644 index 0000000..8c1f10d --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821084735.go @@ -0,0 +1,5 @@ +package modelbookimg + +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` +} diff --git a/.history/models/modelbookimg/bookattribute_20220821084740.go b/.history/models/modelbookimg/bookattribute_20220821084740.go new file mode 100644 index 0000000..3748d34 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821084740.go @@ -0,0 +1,6 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` +} diff --git a/.history/models/modelbookimg/bookattribute_20220821084742.go b/.history/models/modelbookimg/bookattribute_20220821084742.go new file mode 100644 index 0000000..23fa3a9 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821084742.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + +} diff --git a/.history/models/modelbookimg/bookattribute_20220821084752.go b/.history/models/modelbookimg/bookattribute_20220821084752.go new file mode 100644 index 0000000..86ca224 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821084752.go @@ -0,0 +1,6 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;comment:ID"` +} diff --git a/.history/models/modelbookimg/bookattribute_20220821084757.go b/.history/models/modelbookimg/bookattribute_20220821084757.go new file mode 100644 index 0000000..777aae2 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821084757.go @@ -0,0 +1,6 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;;comment:ID"` +} diff --git a/.history/models/modelbookimg/bookattribute_20220821084801.go b/.history/models/modelbookimg/bookattribute_20220821084801.go new file mode 100644 index 0000000..40fc374 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821084801.go @@ -0,0 +1,6 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` +} diff --git a/.history/models/modelbookimg/bookattribute_20220821084803.go b/.history/models/modelbookimg/bookattribute_20220821084803.go new file mode 100644 index 0000000..e5a49da --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821084803.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + +} diff --git a/.history/models/modelbookimg/bookattribute_20220821084816.go b/.history/models/modelbookimg/bookattribute_20220821084816.go new file mode 100644 index 0000000..77e1f06 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821084816.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int +} diff --git a/.history/models/modelbookimg/bookattribute_20220821084818.go b/.history/models/modelbookimg/bookattribute_20220821084818.go new file mode 100644 index 0000000..e8a6ccb --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821084818.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 +} diff --git a/.history/models/modelbookimg/bookattribute_20220821084824.go b/.history/models/modelbookimg/bookattribute_20220821084824.go new file mode 100644 index 0000000..9e75584 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821084824.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` +} diff --git a/.history/models/modelbookimg/bookattribute_20220821084828.go b/.history/models/modelbookimg/bookattribute_20220821084828.go new file mode 100644 index 0000000..69da08b --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821084828.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"id" gorm:"primaryKey;column:b_file_id;type:bigint unsigned;not null;auto_increment;comment:ID"` +} diff --git a/.history/models/modelbookimg/bookattribute_20220821084831.go b/.history/models/modelbookimg/bookattribute_20220821084831.go new file mode 100644 index 0000000..520d778 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821084831.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"primaryKey;column:b_file_id;type:bigint unsigned;not null;auto_increment;comment:ID"` +} diff --git a/.history/models/modelbookimg/bookattribute_20220821084839.go b/.history/models/modelbookimg/bookattribute_20220821084839.go new file mode 100644 index 0000000..89c881a --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821084839.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;auto_increment;comment:ID"` +} diff --git a/.history/models/modelbookimg/bookattribute_20220821084843.go b/.history/models/modelbookimg/bookattribute_20220821084843.go new file mode 100644 index 0000000..a88f47f --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821084843.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;comment:ID"` +} diff --git a/.history/models/modelbookimg/bookattribute_20220821084854.go b/.history/models/modelbookimg/bookattribute_20220821084854.go new file mode 100644 index 0000000..d293179 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821084854.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:ID"` +} diff --git a/.history/models/modelbookimg/bookattribute_20220821084859.go b/.history/models/modelbookimg/bookattribute_20220821084859.go new file mode 100644 index 0000000..d5b1611 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821084859.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` +} diff --git a/.history/models/modelbookimg/bookattribute_20220821084901.go b/.history/models/modelbookimg/bookattribute_20220821084901.go new file mode 100644 index 0000000..ae2eee7 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821084901.go @@ -0,0 +1,8 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + +} diff --git a/.history/models/modelbookimg/bookattribute_20220821084908.go b/.history/models/modelbookimg/bookattribute_20220821084908.go new file mode 100644 index 0000000..1c9f8e2 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821084908.go @@ -0,0 +1,9 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + +} diff --git a/.history/models/modelbookimg/bookattribute_20220821084911.go b/.history/models/modelbookimg/bookattribute_20220821084911.go new file mode 100644 index 0000000..568e746 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821084911.go @@ -0,0 +1,9 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + FileId int64 `json:"fileid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:文档ID"` + +} diff --git a/.history/models/modelbookimg/bookattribute_20220821084915.go b/.history/models/modelbookimg/bookattribute_20220821084915.go new file mode 100644 index 0000000..0caf3e7 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821084915.go @@ -0,0 +1,9 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"fileid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:文档ID"` + +} diff --git a/.history/models/modelbookimg/bookattribute_20220821084918.go b/.history/models/modelbookimg/bookattribute_20220821084918.go new file mode 100644 index 0000000..4b731d5 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821084918.go @@ -0,0 +1,9 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:文档ID"` + +} diff --git a/.history/models/modelbookimg/bookattribute_20220821084928.go b/.history/models/modelbookimg/bookattribute_20220821084928.go new file mode 100644 index 0000000..01a0b4b --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821084928.go @@ -0,0 +1,8 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` +} diff --git a/.history/models/modelbookimg/bookattribute_20220821084930.go b/.history/models/modelbookimg/bookattribute_20220821084930.go new file mode 100644 index 0000000..5ee834f --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821084930.go @@ -0,0 +1,9 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + +} diff --git a/.history/models/modelbookimg/bookattribute_20220821084936.go b/.history/models/modelbookimg/bookattribute_20220821084936.go new file mode 100644 index 0000000..53545e6 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821084936.go @@ -0,0 +1,9 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int +} diff --git a/.history/models/modelbookimg/bookattribute_20220821084937.go b/.history/models/modelbookimg/bookattribute_20220821084937.go new file mode 100644 index 0000000..a599034 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821084937.go @@ -0,0 +1,9 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 +} diff --git a/.history/models/modelbookimg/bookattribute_20220821084941.go b/.history/models/modelbookimg/bookattribute_20220821084941.go new file mode 100644 index 0000000..235f247 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821084941.go @@ -0,0 +1,9 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64`json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` +} diff --git a/.history/models/modelbookimg/bookattribute_20220821084943.go b/.history/models/modelbookimg/bookattribute_20220821084943.go new file mode 100644 index 0000000..4248640 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821084943.go @@ -0,0 +1,9 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` +} diff --git a/.history/models/modelbookimg/bookattribute_20220821084947.go b/.history/models/modelbookimg/bookattribute_20220821084947.go new file mode 100644 index 0000000..9b8a4b3 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821084947.go @@ -0,0 +1,9 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 `json:"time" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` +} diff --git a/.history/models/modelbookimg/bookattribute_20220821084948.go b/.history/models/modelbookimg/bookattribute_20220821084948.go new file mode 100644 index 0000000..affaf54 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821084948.go @@ -0,0 +1,9 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 `json:"time" gorm:"column:b_time;type:bigint unsigned;not null;default:0;comment:阅读人ID"` +} diff --git a/.history/models/modelbookimg/bookattribute_20220821084957.go b/.history/models/modelbookimg/bookattribute_20220821084957.go new file mode 100644 index 0000000..87cf441 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821084957.go @@ -0,0 +1,9 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 `json:"time" gorm:"column:b_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` +} diff --git a/.history/models/modelbookimg/bookattribute_20220821085000.go b/.history/models/modelbookimg/bookattribute_20220821085000.go new file mode 100644 index 0000000..56e4a7b --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821085000.go @@ -0,0 +1,10 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 `json:"time" gorm:"column:b_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` + +} diff --git a/.history/models/modelbookimg/bookattribute_20220821085005.go b/.history/models/modelbookimg/bookattribute_20220821085005.go new file mode 100644 index 0000000..e7b902c --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821085005.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 `json:"time" gorm:"column:b_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` + Time int64 `json:"time" gorm:"column:b_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` + +} diff --git a/.history/models/modelbookimg/bookattribute_20220821085010.go b/.history/models/modelbookimg/bookattribute_20220821085010.go new file mode 100644 index 0000000..e2e2819 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821085010.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 `json:"time" gorm:"column:b_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` + Time int64 `json:"time" gorm:"column:b_type;type:bigint unsigned;not null;default:0;comment:阅读时间"` + +} diff --git a/.history/models/modelbookimg/bookattribute_20220821085013.go b/.history/models/modelbookimg/bookattribute_20220821085013.go new file mode 100644 index 0000000..6466916 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821085013.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 `json:"time" gorm:"column:b_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` + Type int64 `json:"time" gorm:"column:b_type;type:bigint unsigned;not null;default:0;comment:阅读时间"` + +} diff --git a/.history/models/modelbookimg/bookattribute_20220821085016.go b/.history/models/modelbookimg/bookattribute_20220821085016.go new file mode 100644 index 0000000..067ea71 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821085016.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 `json:"time" gorm:"column:b_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` + Type int64 `json:"type" gorm:"column:b_type;type:bigint unsigned;not null;default:0;comment:阅读时间"` + +} diff --git a/.history/models/modelbookimg/bookattribute_20220821085019.go b/.history/models/modelbookimg/bookattribute_20220821085019.go new file mode 100644 index 0000000..45cbc9c --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821085019.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 `json:"time" gorm:"column:b_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` + Type int64 `json:"type" gorm:"column:b_type;type:bigint unsigned;not null;default:;comment:阅读时间"` + +} diff --git a/.history/models/modelbookimg/bookattribute_20220821085020.go b/.history/models/modelbookimg/bookattribute_20220821085020.go new file mode 100644 index 0000000..9e9bfc2 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821085020.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 `json:"time" gorm:"column:b_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` + Type int64 `json:"type" gorm:"column:b_type;type:bigint unsigned;not null;default:1;comment:阅读时间"` + +} diff --git a/.history/models/modelbookimg/bookattribute_20220821085024.go b/.history/models/modelbookimg/bookattribute_20220821085024.go new file mode 100644 index 0000000..a9164c4 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821085024.go @@ -0,0 +1,10 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 `json:"time" gorm:"column:b_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` + Type int64 `json:"type" gorm:"column:b_type;type:bigint unsigned;not null;default:1;comment:类型 (1:阅读量;2:收藏数;3:赞;4:踩)"` +} diff --git a/.history/models/modelbookimg/bookattribute_20220821085026.go b/.history/models/modelbookimg/bookattribute_20220821085026.go new file mode 100644 index 0000000..ab18597 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821085026.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 `json:"time" gorm:"column:b_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` + Type int64 `json:"type" gorm:"column:b_type;type:bigint unsigned;not null;default:1;comment:类型 (1:阅读量;2:收藏数;3:赞;4:踩)"` + +} diff --git a/.history/models/modelbookimg/bookattribute_20220821085035.go b/.history/models/modelbookimg/bookattribute_20220821085035.go new file mode 100644 index 0000000..45d0848 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821085035.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 `json:"time" gorm:"column:b_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` + Type int `json:"type" gorm:"column:b_type;type:bigint unsigned;not null;default:1;comment:类型 (1:阅读量;2:收藏数;3:赞;4:踩)"` + +} diff --git a/.history/models/modelbookimg/bookattribute_20220821085040.go b/.history/models/modelbookimg/bookattribute_20220821085040.go new file mode 100644 index 0000000..74f4e5e --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821085040.go @@ -0,0 +1,10 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 `json:"time" gorm:"column:b_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` + Type int `json:"type" gorm:"column:b_type;type:tinyint unsigned;not null;default:1;comment:类型 (1:阅读量;2:收藏数;3:赞;4:踩)"` +} diff --git a/.history/models/modelbookimg/bookattribute_20220821085054.go b/.history/models/modelbookimg/bookattribute_20220821085054.go new file mode 100644 index 0000000..e549627 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821085054.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 `json:"time" gorm:"column:b_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` + Type int `json:"type" gorm:"column:b_type;type:tinyint unsigned;not null;default:1;comment:类型 (1:阅读量;2:收藏数;3:赞;4:踩)"` + Type int `json:"type" gorm:"column:b_type;type:tinyint unsigned;not null;default:1;comment:类型 (1:阅读量;2:收藏数;3:赞;4:踩)"` +} diff --git a/.history/models/modelbookimg/bookattribute_20220821085058.go b/.history/models/modelbookimg/bookattribute_20220821085058.go new file mode 100644 index 0000000..12dbbc9 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821085058.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 `json:"time" gorm:"column:b_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` + Type int `json:"type" gorm:"column:b_type;type:tinyint unsigned;not null;default:1;comment:类型 (1:阅读量;2:收藏数;3:赞;4:踩)"` + Type int `json:"type" gorm:"column:b_stater;type:tinyint unsigned;not null;default:1;comment:类型 (1:阅读量;2:收藏数;3:赞;4:踩)"` +} diff --git a/.history/models/modelbookimg/bookattribute_20220821085102.go b/.history/models/modelbookimg/bookattribute_20220821085102.go new file mode 100644 index 0000000..bb1b0a4 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821085102.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 `json:"time" gorm:"column:b_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` + Type int `json:"type" gorm:"column:b_type;type:tinyint unsigned;not null;default:1;comment:类型 (1:阅读量;2:收藏数;3:赞;4:踩)"` + State int `json:"type" gorm:"column:b_stater;type:tinyint unsigned;not null;default:1;comment:类型 (1:阅读量;2:收藏数;3:赞;4:踩)"` +} diff --git a/.history/models/modelbookimg/bookattribute_20220821085103.go b/.history/models/modelbookimg/bookattribute_20220821085103.go new file mode 100644 index 0000000..30bf929 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821085103.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 `json:"time" gorm:"column:b_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` + Type int `json:"type" gorm:"column:b_type;type:tinyint unsigned;not null;default:1;comment:类型 (1:阅读量;2:收藏数;3:赞;4:踩)"` + Stater int `json:"type" gorm:"column:b_stater;type:tinyint unsigned;not null;default:1;comment:类型 (1:阅读量;2:收藏数;3:赞;4:踩)"` +} diff --git a/.history/models/modelbookimg/bookattribute_20220821085109.go b/.history/models/modelbookimg/bookattribute_20220821085109.go new file mode 100644 index 0000000..cd17154 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821085109.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 `json:"time" gorm:"column:b_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` + Type int `json:"type" gorm:"column:b_type;type:tinyint unsigned;not null;default:1;comment:类型 (1:阅读量;2:收藏数;3:赞;4:踩)"` + Stater int `json:"stater" gorm:"column:b_stater;type:tinyint unsigned;not null;default:1;comment:类型 (1:阅读量;2:收藏数;3:赞;4:踩)"` +} diff --git a/.history/models/modelbookimg/bookattribute_20220821085123.go b/.history/models/modelbookimg/bookattribute_20220821085123.go new file mode 100644 index 0000000..136226a --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821085123.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 `json:"time" gorm:"column:b_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` + Type int `json:"type" gorm:"column:b_type;type:tinyint unsigned;not null;default:1;comment:类型 (1:阅读量;2:收藏数;3:赞;4:踩)"` + Stater int `json:"stater" gorm:"column:b_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:有效;2:无效)"` +} diff --git a/.history/models/modelbookimg/bookattribute_20220821085125.go b/.history/models/modelbookimg/bookattribute_20220821085125.go new file mode 100644 index 0000000..4a5551e --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821085125.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 `json:"time" gorm:"column:b_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` + Type int `json:"type" gorm:"column:b_type;type:tinyint unsigned;not null;default:1;comment:类型 (1:阅读量;2:收藏数;3:赞;4:踩)"` + Stater int `json:"stater" gorm:"column:b_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:有效;2:无效)"` + +} diff --git a/.history/models/modelbookimg/bookattribute_20220821085134.go b/.history/models/modelbookimg/bookattribute_20220821085134.go new file mode 100644 index 0000000..4a5551e --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821085134.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 `json:"time" gorm:"column:b_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` + Type int `json:"type" gorm:"column:b_type;type:tinyint unsigned;not null;default:1;comment:类型 (1:阅读量;2:收藏数;3:赞;4:踩)"` + Stater int `json:"stater" gorm:"column:b_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:有效;2:无效)"` + +} diff --git a/.history/models/modelbookimg/bookattribute_20220821085137.go b/.history/models/modelbookimg/bookattribute_20220821085137.go new file mode 100644 index 0000000..45c2575 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821085137.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 `json:"time" gorm:"column:b_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` + Type int `json:"type" gorm:"column:b_type;type:tinyint unsigned;not null;default:1;comment:类型 (1:阅读量;2:收藏数;3:赞;4:踩)"` + Stater int `json:"stater" gorm:"column:b_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:有效;2:无效)"` + Edit +} diff --git a/.history/models/modelbookimg/bookattribute_20220821085139.go b/.history/models/modelbookimg/bookattribute_20220821085139.go new file mode 100644 index 0000000..a62fa78 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821085139.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 `json:"time" gorm:"column:b_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` + Type int `json:"type" gorm:"column:b_type;type:tinyint unsigned;not null;default:1;comment:类型 (1:阅读量;2:收藏数;3:赞;4:踩)"` + Stater int `json:"stater" gorm:"column:b_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:有效;2:无效)"` + EditTime +} diff --git a/.history/models/modelbookimg/bookattribute_20220821085141.go b/.history/models/modelbookimg/bookattribute_20220821085141.go new file mode 100644 index 0000000..f55a134 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821085141.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 `json:"time" gorm:"column:b_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` + Type int `json:"type" gorm:"column:b_type;type:tinyint unsigned;not null;default:1;comment:类型 (1:阅读量;2:收藏数;3:赞;4:踩)"` + Stater int `json:"stater" gorm:"column:b_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:有效;2:无效)"` + EditTime int +} diff --git a/.history/models/modelbookimg/bookattribute_20220821085142.go b/.history/models/modelbookimg/bookattribute_20220821085142.go new file mode 100644 index 0000000..9dc5edd --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821085142.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 `json:"time" gorm:"column:b_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` + Type int `json:"type" gorm:"column:b_type;type:tinyint unsigned;not null;default:1;comment:类型 (1:阅读量;2:收藏数;3:赞;4:踩)"` + Stater int `json:"stater" gorm:"column:b_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:有效;2:无效)"` + EditTime int64 +} diff --git a/.history/models/modelbookimg/bookattribute_20220821085147.go b/.history/models/modelbookimg/bookattribute_20220821085147.go new file mode 100644 index 0000000..f57ef43 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821085147.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 `json:"time" gorm:"column:b_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` + Type int `json:"type" gorm:"column:b_type;type:tinyint unsigned;not null;default:1;comment:类型 (1:阅读量;2:收藏数;3:赞;4:踩)"` + Stater int `json:"stater" gorm:"column:b_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:有效;2:无效)"` + EditTime int64 `json:"time" gorm:"column:b_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` +} diff --git a/.history/models/modelbookimg/bookattribute_20220821085151.go b/.history/models/modelbookimg/bookattribute_20220821085151.go new file mode 100644 index 0000000..ce8c58b --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821085151.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 `json:"time" gorm:"column:b_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` + Type int `json:"type" gorm:"column:b_type;type:tinyint unsigned;not null;default:1;comment:类型 (1:阅读量;2:收藏数;3:赞;4:踩)"` + Stater int `json:"stater" gorm:"column:b_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:有效;2:无效)"` + EditTime int64 `json:"time" gorm:"column:b_eite_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` +} diff --git a/.history/models/modelbookimg/bookattribute_20220821085157.go b/.history/models/modelbookimg/bookattribute_20220821085157.go new file mode 100644 index 0000000..eec33a2 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821085157.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 `json:"time" gorm:"column:b_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` + Type int `json:"type" gorm:"column:b_type;type:tinyint unsigned;not null;default:1;comment:类型 (1:阅读量;2:收藏数;3:赞;4:踩)"` + Stater int `json:"stater" gorm:"column:b_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:有效;2:无效)"` + EditTime int64 `json:"eitetime" gorm:"column:b_eite_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` +} diff --git a/.history/models/modelbookimg/bookattribute_20220821085201.go b/.history/models/modelbookimg/bookattribute_20220821085201.go new file mode 100644 index 0000000..a3e6d0f --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821085201.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 `json:"time" gorm:"column:b_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` + Type int `json:"type" gorm:"column:b_type;type:tinyint unsigned;not null;default:1;comment:类型 (1:阅读量;2:收藏数;3:赞;4:踩)"` + Stater int `json:"stater" gorm:"column:b_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:有效;2:无效)"` + eiteTime int64 `json:"eitetime" gorm:"column:b_eite_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` +} diff --git a/.history/models/modelbookimg/bookattribute_20220821085202.go b/.history/models/modelbookimg/bookattribute_20220821085202.go new file mode 100644 index 0000000..abca3e6 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821085202.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 `json:"time" gorm:"column:b_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` + Type int `json:"type" gorm:"column:b_type;type:tinyint unsigned;not null;default:1;comment:类型 (1:阅读量;2:收藏数;3:赞;4:踩)"` + Stater int `json:"stater" gorm:"column:b_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:有效;2:无效)"` + EiteTime int64 `json:"eitetime" gorm:"column:b_eite_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` +} diff --git a/.history/models/modelbookimg/bookattribute_20220821085204.go b/.history/models/modelbookimg/bookattribute_20220821085204.go new file mode 100644 index 0000000..da5b478 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821085204.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 `json:"time" gorm:"column:b_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` + Type int `json:"type" gorm:"column:b_type;type:tinyint unsigned;not null;default:1;comment:类型 (1:阅读量;2:收藏数;3:赞;4:踩)"` + Stater int `json:"stater" gorm:"column:b_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:有效;2:无效)"` + EiteTime int64 `json:"eitetime" gorm:"column:b_eite_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` +} diff --git a/.history/models/modelbookimg/bookattribute_20220821085216.go b/.history/models/modelbookimg/bookattribute_20220821085216.go new file mode 100644 index 0000000..de8a44a --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821085216.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 `json:"time" gorm:"column:b_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` + Type int `json:"type" gorm:"column:b_type;type:tinyint unsigned;not null;default:1;comment:类型 (1:阅读量;2:收藏数;3:赞;4:踩)"` + Stater int `json:"stater" gorm:"column:b_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:有效;2:无效)"` + EiteTime int64 `json:"eitetime" gorm:"column:b_eite_time;type:bigint unsigned;not null;default:0;comment:编辑时间"` +} diff --git a/.history/models/modelbookimg/bookattribute_20220821085218.go b/.history/models/modelbookimg/bookattribute_20220821085218.go new file mode 100644 index 0000000..de8a44a --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821085218.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 `json:"time" gorm:"column:b_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` + Type int `json:"type" gorm:"column:b_type;type:tinyint unsigned;not null;default:1;comment:类型 (1:阅读量;2:收藏数;3:赞;4:踩)"` + Stater int `json:"stater" gorm:"column:b_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:有效;2:无效)"` + EiteTime int64 `json:"eitetime" gorm:"column:b_eite_time;type:bigint unsigned;not null;default:0;comment:编辑时间"` +} diff --git a/.history/models/modelbookimg/bookattribute_20220821085229.go b/.history/models/modelbookimg/bookattribute_20220821085229.go new file mode 100644 index 0000000..200504a --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821085229.go @@ -0,0 +1,13 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 `json:"time" gorm:"column:b_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` + Type int `json:"type" gorm:"column:b_type;type:tinyint unsigned;not null;default:1;comment:类型 (1:阅读量;2:收藏数;3:赞;4:踩)"` + Stater int `json:"stater" gorm:"column:b_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:有效;2:无效)"` + EiteTime int64 `json:"eitetime" gorm:"column:b_eite_time;type:bigint unsigned;not null;default:0;comment:编辑时间"` + +} diff --git a/.history/models/modelbookimg/bookattribute_20220821085233.go b/.history/models/modelbookimg/bookattribute_20220821085233.go new file mode 100644 index 0000000..e805b88 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821085233.go @@ -0,0 +1,13 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 `json:"time" gorm:"column:b_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` + Type int `json:"type" gorm:"column:b_type;type:tinyint unsigned;not null;default:1;comment:类型 (1:阅读量;2:收藏数;3:赞;4:踩)"` + Stater int `json:"stater" gorm:"column:b_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:有效;2:无效)"` + EiteTime int64 `json:"eitetime" gorm:"column:b_eite_time;type:bigint unsigned;not null;default:0;comment:编辑时间"` + Source +} diff --git a/.history/models/modelbookimg/bookattribute_20220821085236.go b/.history/models/modelbookimg/bookattribute_20220821085236.go new file mode 100644 index 0000000..76e3ddf --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821085236.go @@ -0,0 +1,13 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 `json:"time" gorm:"column:b_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` + Type int `json:"type" gorm:"column:b_type;type:tinyint unsigned;not null;default:1;comment:类型 (1:阅读量;2:收藏数;3:赞;4:踩)"` + Stater int `json:"stater" gorm:"column:b_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:有效;2:无效)"` + EiteTime int64 `json:"eitetime" gorm:"column:b_eite_time;type:bigint unsigned;not null;default:0;comment:编辑时间"` + Source int +} diff --git a/.history/models/modelbookimg/bookattribute_20220821085239.go b/.history/models/modelbookimg/bookattribute_20220821085239.go new file mode 100644 index 0000000..a1d0f92 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821085239.go @@ -0,0 +1,13 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 `json:"time" gorm:"column:b_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` + Type int `json:"type" gorm:"column:b_type;type:tinyint unsigned;not null;default:1;comment:类型 (1:阅读量;2:收藏数;3:赞;4:踩)"` + Stater int `json:"stater" gorm:"column:b_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:有效;2:无效)"` + EiteTime int64 `json:"eitetime" gorm:"column:b_eite_time;type:bigint unsigned;not null;default:0;comment:编辑时间"` + Source int `json:"eitetime" gorm:"column:b_eite_time;type:bigint unsigned;not null;default:0;comment:编辑时间"` +} diff --git a/.history/models/modelbookimg/bookattribute_20220821085243.go b/.history/models/modelbookimg/bookattribute_20220821085243.go new file mode 100644 index 0000000..99d8227 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821085243.go @@ -0,0 +1,13 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 `json:"time" gorm:"column:b_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` + Type int `json:"type" gorm:"column:b_type;type:tinyint unsigned;not null;default:1;comment:类型 (1:阅读量;2:收藏数;3:赞;4:踩)"` + Stater int `json:"stater" gorm:"column:b_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:有效;2:无效)"` + EiteTime int64 `json:"eitetime" gorm:"column:b_eite_time;type:bigint unsigned;not null;default:0;comment:编辑时间"` + Source int `json:"eitetime" gorm:"column:b_source;type:bigint unsigned;not null;default:0;comment:编辑时间"` +} diff --git a/.history/models/modelbookimg/bookattribute_20220821085247.go b/.history/models/modelbookimg/bookattribute_20220821085247.go new file mode 100644 index 0000000..9ac1967 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821085247.go @@ -0,0 +1,13 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 `json:"time" gorm:"column:b_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` + Type int `json:"type" gorm:"column:b_type;type:tinyint unsigned;not null;default:1;comment:类型 (1:阅读量;2:收藏数;3:赞;4:踩)"` + Stater int `json:"stater" gorm:"column:b_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:有效;2:无效)"` + EiteTime int64 `json:"eitetime" gorm:"column:b_eite_time;type:bigint unsigned;not null;default:0;comment:编辑时间"` + Source int `json:"source" gorm:"column:b_source;type:bigint unsigned;not null;default:0;comment:编辑时间"` +} diff --git a/.history/models/modelbookimg/bookattribute_20220821085254.go b/.history/models/modelbookimg/bookattribute_20220821085254.go new file mode 100644 index 0000000..0172bbc --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821085254.go @@ -0,0 +1,13 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 `json:"time" gorm:"column:b_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` + Type int `json:"type" gorm:"column:b_type;type:tinyint unsigned;not null;default:1;comment:类型 (1:阅读量;2:收藏数;3:赞;4:踩)"` + Stater int `json:"stater" gorm:"column:b_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:有效;2:无效)"` + EiteTime int64 `json:"eitetime" gorm:"column:b_eite_time;type:bigint unsigned;not null;default:0;comment:编辑时间"` + Source int `json:"source" gorm:"column:b_source;type:tinyint unsigned;not null;default:0;comment:编辑时间"` +} diff --git a/.history/models/modelbookimg/bookattribute_20220821085258.go b/.history/models/modelbookimg/bookattribute_20220821085258.go new file mode 100644 index 0000000..1f7dc8d --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821085258.go @@ -0,0 +1,13 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 `json:"time" gorm:"column:b_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` + Type int `json:"type" gorm:"column:b_type;type:tinyint unsigned;not null;default:1;comment:类型 (1:阅读量;2:收藏数;3:赞;4:踩)"` + Stater int `json:"stater" gorm:"column:b_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:有效;2:无效)"` + EiteTime int64 `json:"eitetime" gorm:"column:b_eite_time;type:bigint unsigned;not null;default:0;comment:编辑时间"` + Source int `json:"source" gorm:"column:b_source;type:tinyint unsigned;not null;default:1;comment:编辑时间"` +} diff --git a/.history/models/modelbookimg/bookattribute_20220821085301.go b/.history/models/modelbookimg/bookattribute_20220821085301.go new file mode 100644 index 0000000..c9d2a8f --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821085301.go @@ -0,0 +1,13 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 `json:"time" gorm:"column:b_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` + Type int `json:"type" gorm:"column:b_type;type:tinyint unsigned;not null;default:1;comment:类型 (1:阅读量;2:收藏数;3:赞;4:踩)"` + Stater int `json:"stater" gorm:"column:b_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:有效;2:无效)"` + EiteTime int64 `json:"eitetime" gorm:"column:b_eite_time;type:bigint unsigned;not null;default:0;comment:编辑时间"` + Source int `json:"source" gorm:"column:b_source;type:tinyint unsigned;not null;default:1;comment:来源(1:文档类;2:文档类评论;3:问题;4:问题答案;5:问题答案评论)"` +} diff --git a/.history/models/modelbookimg/bookattribute_20220821085317.go b/.history/models/modelbookimg/bookattribute_20220821085317.go new file mode 100644 index 0000000..30cddba --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821085317.go @@ -0,0 +1,14 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 `json:"time" gorm:"column:b_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` + Type int `json:"type" gorm:"column:b_type;type:tinyint unsigned;not null;default:1;comment:类型 (1:阅读量;2:收藏数;3:赞;4:踩)"` + Stater int `json:"stater" gorm:"column:b_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:有效;2:无效)"` + EiteTime int64 `json:"eitetime" gorm:"column:b_eite_time;type:bigint unsigned;not null;default:0;comment:编辑时间"` + Source int `json:"source" gorm:"column:b_source;type:tinyint unsigned;not null;default:1;comment:来源(1:文档类;2:文档类评论;3:问题;4:问题答案;5:问题答案评论)"` +} + diff --git a/.history/models/modelbookimg/bookattribute_20220821085323.go b/.history/models/modelbookimg/bookattribute_20220821085323.go new file mode 100644 index 0000000..5ca781f --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821085323.go @@ -0,0 +1,41 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 `json:"time" gorm:"column:b_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` + Type int `json:"type" gorm:"column:b_type;type:tinyint unsigned;not null;default:1;comment:类型 (1:阅读量;2:收藏数;3:赞;4:踩)"` + Stater int `json:"stater" gorm:"column:b_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:有效;2:无效)"` + EiteTime int64 `json:"eitetime" gorm:"column:b_eite_time;type:bigint unsigned;not null;default:0;comment:编辑时间"` + Source int `json:"source" gorm:"column:b_source;type:tinyint unsigned;not null;default:1;comment:来源(1:文档类;2:文档类评论;3:问题;4:问题答案;5:问题答案评论)"` +} + +func (at *ArchivesType) TableName() string { + return "archives_type" +} + +// 编辑档案管理分类内容 +func (cont *ArchivesType) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取档案管理分类内容 +func (cont *ArchivesType) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *ArchivesType) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/bookattribute_20220821085326.go b/.history/models/modelbookimg/bookattribute_20220821085326.go new file mode 100644 index 0000000..c53214d --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821085326.go @@ -0,0 +1,41 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 `json:"time" gorm:"column:b_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` + Type int `json:"type" gorm:"column:b_type;type:tinyint unsigned;not null;default:1;comment:类型 (1:阅读量;2:收藏数;3:赞;4:踩)"` + Stater int `json:"stater" gorm:"column:b_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:有效;2:无效)"` + EiteTime int64 `json:"eitetime" gorm:"column:b_eite_time;type:bigint unsigned;not null;default:0;comment:编辑时间"` + Source int `json:"source" gorm:"column:b_source;type:tinyint unsigned;not null;default:1;comment:来源(1:文档类;2:文档类评论;3:问题;4:问题答案;5:问题答案评论)"` +} + +func (at *BookAttribute) TableName() string { + return "archives_type" +} + +// 编辑档案管理分类内容 +func (cont *ArchivesType) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取档案管理分类内容 +func (cont *ArchivesType) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *ArchivesType) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/bookattribute_20220821085330.go b/.history/models/modelbookimg/bookattribute_20220821085330.go new file mode 100644 index 0000000..222cb19 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821085330.go @@ -0,0 +1,41 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 `json:"time" gorm:"column:b_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` + Type int `json:"type" gorm:"column:b_type;type:tinyint unsigned;not null;default:1;comment:类型 (1:阅读量;2:收藏数;3:赞;4:踩)"` + Stater int `json:"stater" gorm:"column:b_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:有效;2:无效)"` + EiteTime int64 `json:"eitetime" gorm:"column:b_eite_time;type:bigint unsigned;not null;default:0;comment:编辑时间"` + Source int `json:"source" gorm:"column:b_source;type:tinyint unsigned;not null;default:1;comment:来源(1:文档类;2:文档类评论;3:问题;4:问题答案;5:问题答案评论)"` +} + +func (at *BookAttribute) TableName() string { + return "bookattribute" +} + +// 编辑档案管理分类内容 +func (cont *ArchivesType) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取档案管理分类内容 +func (cont *ArchivesType) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *ArchivesType) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/bookattribute_20220821085332.go b/.history/models/modelbookimg/bookattribute_20220821085332.go new file mode 100644 index 0000000..9d9f17b --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821085332.go @@ -0,0 +1,41 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 `json:"time" gorm:"column:b_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` + Type int `json:"type" gorm:"column:b_type;type:tinyint unsigned;not null;default:1;comment:类型 (1:阅读量;2:收藏数;3:赞;4:踩)"` + Stater int `json:"stater" gorm:"column:b_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:有效;2:无效)"` + EiteTime int64 `json:"eitetime" gorm:"column:b_eite_time;type:bigint unsigned;not null;default:0;comment:编辑时间"` + Source int `json:"source" gorm:"column:b_source;type:tinyint unsigned;not null;default:1;comment:来源(1:文档类;2:文档类评论;3:问题;4:问题答案;5:问题答案评论)"` +} + +func (at *BookAttribute) TableName() string { + return "bookattribute" +} + +// 编辑档案管理分类内容 +func (cont *BookAttribute) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取档案管理分类内容 +func (cont *ArchivesType) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *ArchivesType) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/bookattribute_20220821085333.go b/.history/models/modelbookimg/bookattribute_20220821085333.go new file mode 100644 index 0000000..cd318e2 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821085333.go @@ -0,0 +1,41 @@ +package modelbookimg + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 `json:"time" gorm:"column:b_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` + Type int `json:"type" gorm:"column:b_type;type:tinyint unsigned;not null;default:1;comment:类型 (1:阅读量;2:收藏数;3:赞;4:踩)"` + Stater int `json:"stater" gorm:"column:b_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:有效;2:无效)"` + EiteTime int64 `json:"eitetime" gorm:"column:b_eite_time;type:bigint unsigned;not null;default:0;comment:编辑时间"` + Source int `json:"source" gorm:"column:b_source;type:tinyint unsigned;not null;default:1;comment:来源(1:文档类;2:文档类评论;3:问题;4:问题答案;5:问题答案评论)"` +} + +func (at *BookAttribute) TableName() string { + return "bookattribute" +} + +// 编辑档案管理分类内容 +func (cont *BookAttribute) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取档案管理分类内容 +func (cont *BookAttribute) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *ArchivesType) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/bookattribute_20220821085334.go b/.history/models/modelbookimg/bookattribute_20220821085334.go new file mode 100644 index 0000000..8c9f7af --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821085334.go @@ -0,0 +1,46 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 `json:"time" gorm:"column:b_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` + Type int `json:"type" gorm:"column:b_type;type:tinyint unsigned;not null;default:1;comment:类型 (1:阅读量;2:收藏数;3:赞;4:踩)"` + Stater int `json:"stater" gorm:"column:b_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:有效;2:无效)"` + EiteTime int64 `json:"eitetime" gorm:"column:b_eite_time;type:bigint unsigned;not null;default:0;comment:编辑时间"` + Source int `json:"source" gorm:"column:b_source;type:tinyint unsigned;not null;default:1;comment:来源(1:文档类;2:文档类评论;3:问题;4:问题答案;5:问题答案评论)"` +} + +func (at *BookAttribute) TableName() string { + return "bookattribute" +} + +// 编辑档案管理分类内容 +func (cont *BookAttribute) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取档案管理分类内容 +func (cont *BookAttribute) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *BookAttribute) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/bookattribute_20220821085346.go b/.history/models/modelbookimg/bookattribute_20220821085346.go new file mode 100644 index 0000000..0c5e382 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821085346.go @@ -0,0 +1,46 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 `json:"time" gorm:"column:b_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` + Type int `json:"type" gorm:"column:b_type;type:tinyint unsigned;not null;default:1;comment:类型 (1:阅读量;2:收藏数;3:赞;4:踩)"` + Stater int `json:"stater" gorm:"column:b_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:有效;2:无效)"` + EiteTime int64 `json:"eitetime" gorm:"column:b_eite_time;type:bigint unsigned;not null;default:0;comment:编辑时间"` + Source int `json:"source" gorm:"column:b_source;type:tinyint unsigned;not null;default:1;comment:来源(1:文档类;2:文档类评论;3:问题;4:问题答案;5:问题答案评论)"` +} + +func (at *BookAttribute) TableName() string { + return "bookattribute" +} + +// 编辑文档属性内容 +func (cont *BookAttribute) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取档案管理分类内容 +func (cont *BookAttribute) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *BookAttribute) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/bookattribute_20220821085349.go b/.history/models/modelbookimg/bookattribute_20220821085349.go new file mode 100644 index 0000000..9e009d7 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821085349.go @@ -0,0 +1,46 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 `json:"time" gorm:"column:b_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` + Type int `json:"type" gorm:"column:b_type;type:tinyint unsigned;not null;default:1;comment:类型 (1:阅读量;2:收藏数;3:赞;4:踩)"` + Stater int `json:"stater" gorm:"column:b_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:有效;2:无效)"` + EiteTime int64 `json:"eitetime" gorm:"column:b_eite_time;type:bigint unsigned;not null;default:0;comment:编辑时间"` + Source int `json:"source" gorm:"column:b_source;type:tinyint unsigned;not null;default:1;comment:来源(1:文档类;2:文档类评论;3:问题;4:问题答案;5:问题答案评论)"` +} + +func (at *BookAttribute) TableName() string { + return "bookattribute" +} + +// 编辑文档属性内容 +func (cont *BookAttribute) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取文档属性内容 +func (cont *BookAttribute) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *BookAttribute) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/bookattribute_20220821085352.go b/.history/models/modelbookimg/bookattribute_20220821085352.go new file mode 100644 index 0000000..9e009d7 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821085352.go @@ -0,0 +1,46 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 `json:"time" gorm:"column:b_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` + Type int `json:"type" gorm:"column:b_type;type:tinyint unsigned;not null;default:1;comment:类型 (1:阅读量;2:收藏数;3:赞;4:踩)"` + Stater int `json:"stater" gorm:"column:b_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:有效;2:无效)"` + EiteTime int64 `json:"eitetime" gorm:"column:b_eite_time;type:bigint unsigned;not null;default:0;comment:编辑时间"` + Source int `json:"source" gorm:"column:b_source;type:tinyint unsigned;not null;default:1;comment:来源(1:文档类;2:文档类评论;3:问题;4:问题答案;5:问题答案评论)"` +} + +func (at *BookAttribute) TableName() string { + return "bookattribute" +} + +// 编辑文档属性内容 +func (cont *BookAttribute) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取文档属性内容 +func (cont *BookAttribute) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *BookAttribute) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/bookattribute_20220821091221.go b/.history/models/modelbookimg/bookattribute_20220821091221.go new file mode 100644 index 0000000..b84b11a --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821091221.go @@ -0,0 +1,46 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 `json:"time" gorm:"column:b_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` + Type int `json:"type" gorm:"column:b_type;type:tinyint unsigned;not null;default:1;comment:类型 (1:阅读量;2:收藏数;3:赞;4:踩)"` + Stater int `json:"stater" gorm:"column:b_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:有效;2:无效)"` + EiteTime int64 `json:"eitetime" gorm:"column:b_eite_time;type:bigint unsigned;not null;default:0;comment:编辑时间"` + Source int `json:"source" gorm:"column:b_source;type:tinyint unsigned;not null;default:1;comment:来源(1:文档类;2:文档类评论;3:问题;4:问题答案;5:问题答案评论)"` +} + +func (b *BookAttribute) TableName() string { + return "bookattribute" +} + +// 编辑文档属性内容 +func (cont *BookAttribute) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取文档属性内容 +func (cont *BookAttribute) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *BookAttribute) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/bookattribute_20220821091222.go b/.history/models/modelbookimg/bookattribute_20220821091222.go new file mode 100644 index 0000000..cbc5346 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821091222.go @@ -0,0 +1,46 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 `json:"time" gorm:"column:b_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` + Type int `json:"type" gorm:"column:b_type;type:tinyint unsigned;not null;default:1;comment:类型 (1:阅读量;2:收藏数;3:赞;4:踩)"` + Stater int `json:"stater" gorm:"column:b_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:有效;2:无效)"` + EiteTime int64 `json:"eitetime" gorm:"column:b_eite_time;type:bigint unsigned;not null;default:0;comment:编辑时间"` + Source int `json:"source" gorm:"column:b_source;type:tinyint unsigned;not null;default:1;comment:来源(1:文档类;2:文档类评论;3:问题;4:问题答案;5:问题答案评论)"` +} + +func (ba *BookAttribute) TableName() string { + return "bookattribute" +} + +// 编辑文档属性内容 +func (cont *BookAttribute) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取文档属性内容 +func (cont *BookAttribute) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *BookAttribute) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/bookattribute_20220821091223.go b/.history/models/modelbookimg/bookattribute_20220821091223.go new file mode 100644 index 0000000..cbc5346 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821091223.go @@ -0,0 +1,46 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 `json:"time" gorm:"column:b_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` + Type int `json:"type" gorm:"column:b_type;type:tinyint unsigned;not null;default:1;comment:类型 (1:阅读量;2:收藏数;3:赞;4:踩)"` + Stater int `json:"stater" gorm:"column:b_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:有效;2:无效)"` + EiteTime int64 `json:"eitetime" gorm:"column:b_eite_time;type:bigint unsigned;not null;default:0;comment:编辑时间"` + Source int `json:"source" gorm:"column:b_source;type:tinyint unsigned;not null;default:1;comment:来源(1:文档类;2:文档类评论;3:问题;4:问题答案;5:问题答案评论)"` +} + +func (ba *BookAttribute) TableName() string { + return "bookattribute" +} + +// 编辑文档属性内容 +func (cont *BookAttribute) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取文档属性内容 +func (cont *BookAttribute) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *BookAttribute) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/bookattribute_20220821091224.go b/.history/models/modelbookimg/bookattribute_20220821091224.go new file mode 100644 index 0000000..cbc5346 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821091224.go @@ -0,0 +1,46 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 `json:"time" gorm:"column:b_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` + Type int `json:"type" gorm:"column:b_type;type:tinyint unsigned;not null;default:1;comment:类型 (1:阅读量;2:收藏数;3:赞;4:踩)"` + Stater int `json:"stater" gorm:"column:b_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:有效;2:无效)"` + EiteTime int64 `json:"eitetime" gorm:"column:b_eite_time;type:bigint unsigned;not null;default:0;comment:编辑时间"` + Source int `json:"source" gorm:"column:b_source;type:tinyint unsigned;not null;default:1;comment:来源(1:文档类;2:文档类评论;3:问题;4:问题答案;5:问题答案评论)"` +} + +func (ba *BookAttribute) TableName() string { + return "bookattribute" +} + +// 编辑文档属性内容 +func (cont *BookAttribute) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取文档属性内容 +func (cont *BookAttribute) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *BookAttribute) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/bookattribute_20220821092834.go b/.history/models/modelbookimg/bookattribute_20220821092834.go new file mode 100644 index 0000000..28f6857 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821092834.go @@ -0,0 +1,46 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 `json:"time" gorm:"column:b_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` + Type int `json:"type" gorm:"column:b_type;type:tinyint unsigned;not null;default:1;comment:类型 (1:阅读量;2:收藏数;3:赞;4:踩)"` + Stater int `json:"stater" gorm:"column:b_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:有效;2:无效)"` + EiteTime int64 `json:"eitetime" gorm:"column:b_eite_time;type:bigint unsigned;not null;default:0;comment:编辑时间"` + Source int `json:"source" gorm:"column:b_source;type:tinyint unsigned;not null;default:1;comment:来源(1:文档类;2:文档类评论;3:问题;4:问题答案;5:问题答案评论)"` +} + +func (ba *BookAttribute) TableName() string { + return "bookattribute" +} + +// 编辑文档属性内容 +func (cont *BookAttribute) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_FILE_BOOK.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取文档属性内容 +func (cont *BookAttribute) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_FILE_BOOK.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *BookAttribute) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/bookattribute_20220821092837.go b/.history/models/modelbookimg/bookattribute_20220821092837.go new file mode 100644 index 0000000..e62ecf8 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821092837.go @@ -0,0 +1,46 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 `json:"time" gorm:"column:b_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` + Type int `json:"type" gorm:"column:b_type;type:tinyint unsigned;not null;default:1;comment:类型 (1:阅读量;2:收藏数;3:赞;4:踩)"` + Stater int `json:"stater" gorm:"column:b_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:有效;2:无效)"` + EiteTime int64 `json:"eitetime" gorm:"column:b_eite_time;type:bigint unsigned;not null;default:0;comment:编辑时间"` + Source int `json:"source" gorm:"column:b_source;type:tinyint unsigned;not null;default:1;comment:来源(1:文档类;2:文档类评论;3:问题;4:问题答案;5:问题答案评论)"` +} + +func (ba *BookAttribute) TableName() string { + return "bookattribute" +} + +// 编辑文档属性内容 +func (cont *BookAttribute) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_FILE_BOOK.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取文档属性内容 +func (cont *BookAttribute) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_FILE_BOOK.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *BookAttribute) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGECONSTANT_DB_FILE_BOOK_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/bookattribute_20220821092840.go b/.history/models/modelbookimg/bookattribute_20220821092840.go new file mode 100644 index 0000000..de816d2 --- /dev/null +++ b/.history/models/modelbookimg/bookattribute_20220821092840.go @@ -0,0 +1,46 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 `json:"time" gorm:"column:b_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` + Type int `json:"type" gorm:"column:b_type;type:tinyint unsigned;not null;default:1;comment:类型 (1:阅读量;2:收藏数;3:赞;4:踩)"` + Stater int `json:"stater" gorm:"column:b_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:有效;2:无效)"` + EiteTime int64 `json:"eitetime" gorm:"column:b_eite_time;type:bigint unsigned;not null;default:0;comment:编辑时间"` + Source int `json:"source" gorm:"column:b_source;type:tinyint unsigned;not null;default:1;comment:来源(1:文档类;2:文档类评论;3:问题;4:问题答案;5:问题答案评论)"` +} + +func (ba *BookAttribute) TableName() string { + return "bookattribute" +} + +// 编辑文档属性内容 +func (cont *BookAttribute) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_FILE_BOOK.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取文档属性内容 +func (cont *BookAttribute) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_FILE_BOOK.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *BookAttribute) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_FILE_BOOK.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/discussmsg_20220821085412.go b/.history/models/modelbookimg/discussmsg_20220821085412.go new file mode 100644 index 0000000..e69de29 diff --git a/.history/models/modelbookimg/discussmsg_20220821085417.go b/.history/models/modelbookimg/discussmsg_20220821085417.go new file mode 100644 index 0000000..59c77e4 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085417.go @@ -0,0 +1 @@ +package \ No newline at end of file diff --git a/.history/models/modelbookimg/discussmsg_20220821085419.go b/.history/models/modelbookimg/discussmsg_20220821085419.go new file mode 100644 index 0000000..59c77e4 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085419.go @@ -0,0 +1 @@ +package \ No newline at end of file diff --git a/.history/models/modelbookimg/discussmsg_20220821085421.go b/.history/models/modelbookimg/discussmsg_20220821085421.go new file mode 100644 index 0000000..b124644 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085421.go @@ -0,0 +1 @@ +package book \ No newline at end of file diff --git a/.history/models/modelbookimg/discussmsg_20220821085423.go b/.history/models/modelbookimg/discussmsg_20220821085423.go new file mode 100644 index 0000000..cfc8841 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085423.go @@ -0,0 +1 @@ +package bookimg diff --git a/.history/models/modelbookimg/discussmsg_20220821085429.go b/.history/models/modelbookimg/discussmsg_20220821085429.go new file mode 100644 index 0000000..600480e --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085429.go @@ -0,0 +1 @@ +package modelbookimg diff --git a/.history/models/modelbookimg/discussmsg_20220821085436.go b/.history/models/modelbookimg/discussmsg_20220821085436.go new file mode 100644 index 0000000..87dd386 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085436.go @@ -0,0 +1,3 @@ +package modelbookimg + +type \ No newline at end of file diff --git a/.history/models/modelbookimg/discussmsg_20220821085441.go b/.history/models/modelbookimg/discussmsg_20220821085441.go new file mode 100644 index 0000000..0aa7b64 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085441.go @@ -0,0 +1,5 @@ +package modelbookimg + +type discussmsg struct{ + +} \ No newline at end of file diff --git a/.history/models/modelbookimg/discussmsg_20220821085444.go b/.history/models/modelbookimg/discussmsg_20220821085444.go new file mode 100644 index 0000000..2016b99 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085444.go @@ -0,0 +1,5 @@ +package modelbookimg + +type Siscussmsg struct{ + +} \ No newline at end of file diff --git a/.history/models/modelbookimg/discussmsg_20220821085445.go b/.history/models/modelbookimg/discussmsg_20220821085445.go new file mode 100644 index 0000000..b16a0c1 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085445.go @@ -0,0 +1,5 @@ +package modelbookimg + +type Discussmsg struct{ + +} \ No newline at end of file diff --git a/.history/models/modelbookimg/discussmsg_20220821085448.go b/.history/models/modelbookimg/discussmsg_20220821085448.go new file mode 100644 index 0000000..35fe29a --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085448.go @@ -0,0 +1,4 @@ +package modelbookimg + +type DiscussMsg struct { +} diff --git a/.history/models/modelbookimg/discussmsg_20220821085453.go b/.history/models/modelbookimg/discussmsg_20220821085453.go new file mode 100644 index 0000000..d30b555 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085453.go @@ -0,0 +1,6 @@ +package modelbookimg + + +// +type DiscussMsg struct { +} diff --git a/.history/models/modelbookimg/discussmsg_20220821085456.go b/.history/models/modelbookimg/discussmsg_20220821085456.go new file mode 100644 index 0000000..6456e17 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085456.go @@ -0,0 +1,5 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { +} diff --git a/.history/models/modelbookimg/discussmsg_20220821085458.go b/.history/models/modelbookimg/discussmsg_20220821085458.go new file mode 100644 index 0000000..ff19c5b --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085458.go @@ -0,0 +1,6 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + +} diff --git a/.history/models/modelbookimg/discussmsg_20220821085522.go b/.history/models/modelbookimg/discussmsg_20220821085522.go new file mode 100644 index 0000000..fff3394 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085522.go @@ -0,0 +1,6 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821085528.go b/.history/models/modelbookimg/discussmsg_20220821085528.go new file mode 100644 index 0000000..dc78989 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085528.go @@ -0,0 +1,6 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821085545.go b/.history/models/modelbookimg/discussmsg_20220821085545.go new file mode 100644 index 0000000..26b8ea6 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085545.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + +} diff --git a/.history/models/modelbookimg/discussmsg_20220821085550.go b/.history/models/modelbookimg/discussmsg_20220821085550.go new file mode 100644 index 0000000..a306cff --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085550.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId +} diff --git a/.history/models/modelbookimg/discussmsg_20220821085552.go b/.history/models/modelbookimg/discussmsg_20220821085552.go new file mode 100644 index 0000000..a6a677a --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085552.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int +} diff --git a/.history/models/modelbookimg/discussmsg_20220821085554.go b/.history/models/modelbookimg/discussmsg_20220821085554.go new file mode 100644 index 0000000..0ac501a --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085554.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 +} diff --git a/.history/models/modelbookimg/discussmsg_20220821085603.go b/.history/models/modelbookimg/discussmsg_20220821085603.go new file mode 100644 index 0000000..788c304 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085603.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821085613.go b/.history/models/modelbookimg/discussmsg_20220821085613.go new file mode 100644 index 0000000..516bdaf --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085613.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821085622.go b/.history/models/modelbookimg/discussmsg_20220821085622.go new file mode 100644 index 0000000..4ebf6f3 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085622.go @@ -0,0 +1,8 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + +} diff --git a/.history/models/modelbookimg/discussmsg_20220821085629.go b/.history/models/modelbookimg/discussmsg_20220821085629.go new file mode 100644 index 0000000..0189bd4 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085629.go @@ -0,0 +1,8 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821085637.go b/.history/models/modelbookimg/discussmsg_20220821085637.go new file mode 100644 index 0000000..2eeede0 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085637.go @@ -0,0 +1,8 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:阅读人ID"` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821085653.go b/.history/models/modelbookimg/discussmsg_20220821085653.go new file mode 100644 index 0000000..57a8201 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085653.go @@ -0,0 +1,8 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821085654.go b/.history/models/modelbookimg/discussmsg_20220821085654.go new file mode 100644 index 0000000..a0e2a2c --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085654.go @@ -0,0 +1,8 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821085658.go b/.history/models/modelbookimg/discussmsg_20220821085658.go new file mode 100644 index 0000000..55e1286 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085658.go @@ -0,0 +1,9 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821085704.go b/.history/models/modelbookimg/discussmsg_20220821085704.go new file mode 100644 index 0000000..ef148b6 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085704.go @@ -0,0 +1,9 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + UserId int64 `json:"userid" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:评论人ID"` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821085709.go b/.history/models/modelbookimg/discussmsg_20220821085709.go new file mode 100644 index 0000000..ddbd450 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085709.go @@ -0,0 +1,9 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"userid" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:评论人ID"` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821085713.go b/.history/models/modelbookimg/discussmsg_20220821085713.go new file mode 100644 index 0000000..262a371 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085713.go @@ -0,0 +1,9 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"Prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:评论人ID"` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821085723.go b/.history/models/modelbookimg/discussmsg_20220821085723.go new file mode 100644 index 0000000..ceb847b --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085723.go @@ -0,0 +1,9 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"Prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821085725.go b/.history/models/modelbookimg/discussmsg_20220821085725.go new file mode 100644 index 0000000..5788baf --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085725.go @@ -0,0 +1,9 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"Prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821085727.go b/.history/models/modelbookimg/discussmsg_20220821085727.go new file mode 100644 index 0000000..62fb43e --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085727.go @@ -0,0 +1,10 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"Prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + +} diff --git a/.history/models/modelbookimg/discussmsg_20220821085732.go b/.history/models/modelbookimg/discussmsg_20220821085732.go new file mode 100644 index 0000000..6377355 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085732.go @@ -0,0 +1,10 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"Prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Coun +} diff --git a/.history/models/modelbookimg/discussmsg_20220821085734.go b/.history/models/modelbookimg/discussmsg_20220821085734.go new file mode 100644 index 0000000..364be2b --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085734.go @@ -0,0 +1,10 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"Prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Co +} diff --git a/.history/models/modelbookimg/discussmsg_20220821085736.go b/.history/models/modelbookimg/discussmsg_20220821085736.go new file mode 100644 index 0000000..2304e2e --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085736.go @@ -0,0 +1,10 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"Prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont +} diff --git a/.history/models/modelbookimg/discussmsg_20220821085740.go b/.history/models/modelbookimg/discussmsg_20220821085740.go new file mode 100644 index 0000000..f26ba12 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085740.go @@ -0,0 +1,10 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"Prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string +} diff --git a/.history/models/modelbookimg/discussmsg_20220821085745.go b/.history/models/modelbookimg/discussmsg_20220821085745.go new file mode 100644 index 0000000..1756e6d --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085745.go @@ -0,0 +1,10 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"Prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"Prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821085749.go b/.history/models/modelbookimg/discussmsg_20220821085749.go new file mode 100644 index 0000000..4ff7900 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085749.go @@ -0,0 +1,10 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"Prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"Prent" gorm:"column:dis_cont;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821085752.go b/.history/models/modelbookimg/discussmsg_20220821085752.go new file mode 100644 index 0000000..baad91a --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085752.go @@ -0,0 +1,10 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"Prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821085755.go b/.history/models/modelbookimg/discussmsg_20220821085755.go new file mode 100644 index 0000000..f9b8997 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085755.go @@ -0,0 +1,10 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821085803.go b/.history/models/modelbookimg/discussmsg_20220821085803.go new file mode 100644 index 0000000..da3c43c --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085803.go @@ -0,0 +1,10 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;not null;default:0;comment:归属(0:评论源)"` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821085808.go b/.history/models/modelbookimg/discussmsg_20220821085808.go new file mode 100644 index 0000000..e412244 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085808.go @@ -0,0 +1,10 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;not null;comment:归属(0:评论源)"` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821085812.go b/.history/models/modelbookimg/discussmsg_20220821085812.go new file mode 100644 index 0000000..e8c0d36 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085812.go @@ -0,0 +1,10 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:归属(0:评论源)"` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821085817.go b/.history/models/modelbookimg/discussmsg_20220821085817.go new file mode 100644 index 0000000..baf76ac --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085817.go @@ -0,0 +1,10 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821085819.go b/.history/models/modelbookimg/discussmsg_20220821085819.go new file mode 100644 index 0000000..92eb49b --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085819.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + +} diff --git a/.history/models/modelbookimg/discussmsg_20220821085826.go b/.history/models/modelbookimg/discussmsg_20220821085826.go new file mode 100644 index 0000000..80df02a --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085826.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time +} diff --git a/.history/models/modelbookimg/discussmsg_20220821085828.go b/.history/models/modelbookimg/discussmsg_20220821085828.go new file mode 100644 index 0000000..ac9c454 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085828.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int +} diff --git a/.history/models/modelbookimg/discussmsg_20220821085830.go b/.history/models/modelbookimg/discussmsg_20220821085830.go new file mode 100644 index 0000000..27c9b45 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085830.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 +} diff --git a/.history/models/modelbookimg/discussmsg_20220821085850.go b/.history/models/modelbookimg/discussmsg_20220821085850.go new file mode 100644 index 0000000..a1d358c --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085850.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821085853.go b/.history/models/modelbookimg/discussmsg_20220821085853.go new file mode 100644 index 0000000..7a5eff7 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085853.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821085856.go b/.history/models/modelbookimg/discussmsg_20220821085856.go new file mode 100644 index 0000000..7b62efd --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085856.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;de` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821085900.go b/.history/models/modelbookimg/discussmsg_20220821085900.go new file mode 100644 index 0000000..bf4b7d1 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085900.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821085904.go b/.history/models/modelbookimg/discussmsg_20220821085904.go new file mode 100644 index 0000000..f0ded8f --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085904.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821085908.go b/.history/models/modelbookimg/discussmsg_20220821085908.go new file mode 100644 index 0000000..2c09950 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085908.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821085919.go b/.history/models/modelbookimg/discussmsg_20220821085919.go new file mode 100644 index 0000000..4c452ce --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085919.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821085924.go b/.history/models/modelbookimg/discussmsg_20220821085924.go new file mode 100644 index 0000000..9e18262 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085924.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"cont" gorm:"column:dis_time;type:text;comment:评论内容"` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821085927.go b/.history/models/modelbookimg/discussmsg_20220821085927.go new file mode 100644 index 0000000..333d247 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085927.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"cont" gorm:"column:dis_time;type:bigint unsigned;comment:评论内容"` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821085931.go b/.history/models/modelbookimg/discussmsg_20220821085931.go new file mode 100644 index 0000000..d7d4165 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085931.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"cont" gorm:"column:dis_time;type:bigint unsigned;default;comment:评论内容"` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821085933.go b/.history/models/modelbookimg/discussmsg_20220821085933.go new file mode 100644 index 0000000..e0a079b --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085933.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"cont" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论内容"` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821085935.go b/.history/models/modelbookimg/discussmsg_20220821085935.go new file mode 100644 index 0000000..a823ac4 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085935.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论内容"` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821085947.go b/.history/models/modelbookimg/discussmsg_20220821085947.go new file mode 100644 index 0000000..77a9cdd --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085947.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821085955.go b/.history/models/modelbookimg/discussmsg_20220821085955.go new file mode 100644 index 0000000..2027577 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085955.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + +} diff --git a/.history/models/modelbookimg/discussmsg_20220821085956.go b/.history/models/modelbookimg/discussmsg_20220821085956.go new file mode 100644 index 0000000..9d488d4 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821085956.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + St +} diff --git a/.history/models/modelbookimg/discussmsg_20220821090000.go b/.history/models/modelbookimg/discussmsg_20220821090000.go new file mode 100644 index 0000000..005ee59 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821090000.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + Stater +} diff --git a/.history/models/modelbookimg/discussmsg_20220821090002.go b/.history/models/modelbookimg/discussmsg_20220821090002.go new file mode 100644 index 0000000..7c19759 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821090002.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + Stater int +} diff --git a/.history/models/modelbookimg/discussmsg_20220821090004.go b/.history/models/modelbookimg/discussmsg_20220821090004.go new file mode 100644 index 0000000..bb2e76a --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821090004.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + Stater int `k` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821090008.go b/.history/models/modelbookimg/discussmsg_20220821090008.go new file mode 100644 index 0000000..f8f8d7b --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821090008.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + Stater int `json:"` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821090014.go b/.history/models/modelbookimg/discussmsg_20220821090014.go new file mode 100644 index 0000000..58d0b58 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821090014.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + Stater int `json:"stater" gorm:""` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821090018.go b/.history/models/modelbookimg/discussmsg_20220821090018.go new file mode 100644 index 0000000..44dca91 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821090018.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + Stater int `json:"stater" gorm:"column:"` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821090023.go b/.history/models/modelbookimg/discussmsg_20220821090023.go new file mode 100644 index 0000000..55bb2f3 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821090023.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + Stater int `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821090028.go b/.history/models/modelbookimg/discussmsg_20220821090028.go new file mode 100644 index 0000000..20ad472 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821090028.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + Stater int `json:"time" gorm:"column:dis_stater;type:bigint unsigned;default:0;comment:评论时间"` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821090030.go b/.history/models/modelbookimg/discussmsg_20220821090030.go new file mode 100644 index 0000000..4d58f12 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821090030.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + Stater int `json:"sta" gorm:"column:dis_stater;type:bigint unsigned;default:0;comment:评论时间"` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821090032.go b/.history/models/modelbookimg/discussmsg_20220821090032.go new file mode 100644 index 0000000..0c4a74a --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821090032.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + Stater int `json:"stater" gorm:"column:dis_stater;type:bigint unsigned;default:0;comment:评论时间"` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821090038.go b/.history/models/modelbookimg/discussmsg_20220821090038.go new file mode 100644 index 0000000..40907a6 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821090038.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + Stater int `json:"stater" gorm:"column:dis_stater;type:tinyint unsigned;default:0;comment:评论时间"` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821090046.go b/.history/models/modelbookimg/discussmsg_20220821090046.go new file mode 100644 index 0000000..62752d8 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821090046.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + Stater int `json:"stater" gorm:"column:dis_stater;type:tinyint unsigned;default:1;comment:评论时间"` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821090049.go b/.history/models/modelbookimg/discussmsg_20220821090049.go new file mode 100644 index 0000000..b946c24 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821090049.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + Stater int `json:"stater" gorm:"column:dis_stater;type:tinyint unsigned;;default:1;comment:评论时间"` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821090052.go b/.history/models/modelbookimg/discussmsg_20220821090052.go new file mode 100644 index 0000000..ee63f05 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821090052.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + Stater int `json:"stater" gorm:"column:dis_stater;type:tinyint unsigned;not null;default:1;comment:评论时间"` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821090056.go b/.history/models/modelbookimg/discussmsg_20220821090056.go new file mode 100644 index 0000000..77d899c --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821090056.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + Stater int `json:"stater" gorm:"column:dis_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:审核;2:发布;3:下架;4:删除)"` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821090100.go b/.history/models/modelbookimg/discussmsg_20220821090100.go new file mode 100644 index 0000000..a0e12d5 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821090100.go @@ -0,0 +1,13 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + Stater int `json:"stater" gorm:"column:dis_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:审核;2:发布;3:下架;4:删除)"` + +} diff --git a/.history/models/modelbookimg/discussmsg_20220821090106.go b/.history/models/modelbookimg/discussmsg_20220821090106.go new file mode 100644 index 0000000..88517ad --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821090106.go @@ -0,0 +1,14 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + Stater int `json:"stater" gorm:"column:dis_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:审核;2:发布;3:下架;4:删除)"` + Stater int `json:"stater" gorm:"column:dis_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:审核;2:发布;3:下架;4:删除)"` + +} diff --git a/.history/models/modelbookimg/discussmsg_20220821090108.go b/.history/models/modelbookimg/discussmsg_20220821090108.go new file mode 100644 index 0000000..ff8a2f2 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821090108.go @@ -0,0 +1,14 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + Stater int `json:"stater" gorm:"column:dis_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:审核;2:发布;3:下架;4:删除)"` + S int `json:"stater" gorm:"column:dis_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:审核;2:发布;3:下架;4:删除)"` + +} diff --git a/.history/models/modelbookimg/discussmsg_20220821090111.go b/.history/models/modelbookimg/discussmsg_20220821090111.go new file mode 100644 index 0000000..8185bad --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821090111.go @@ -0,0 +1,14 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + Stater int `json:"stater" gorm:"column:dis_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:审核;2:发布;3:下架;4:删除)"` + Source int `json:"stater" gorm:"column:dis_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:审核;2:发布;3:下架;4:删除)"` + +} diff --git a/.history/models/modelbookimg/discussmsg_20220821090114.go b/.history/models/modelbookimg/discussmsg_20220821090114.go new file mode 100644 index 0000000..635c1dc --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821090114.go @@ -0,0 +1,14 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + Stater int `json:"stater" gorm:"column:dis_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:审核;2:发布;3:下架;4:删除)"` + Source int `json:"so" gorm:"column:dis_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:审核;2:发布;3:下架;4:删除)"` + +} diff --git a/.history/models/modelbookimg/discussmsg_20220821090116.go b/.history/models/modelbookimg/discussmsg_20220821090116.go new file mode 100644 index 0000000..19863b0 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821090116.go @@ -0,0 +1,14 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + Stater int `json:"stater" gorm:"column:dis_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:审核;2:发布;3:下架;4:删除)"` + Source int `json:"source" gorm:"column:dis_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:审核;2:发布;3:下架;4:删除)"` + +} diff --git a/.history/models/modelbookimg/discussmsg_20220821090123.go b/.history/models/modelbookimg/discussmsg_20220821090123.go new file mode 100644 index 0000000..e1654ee --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821090123.go @@ -0,0 +1,14 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + Stater int `json:"stater" gorm:"column:dis_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:审核;2:发布;3:下架;4:删除)"` + Source int `json:"source" gorm:"column:dis_source;type:tinyint unsigned;not null;default:1;comment:状态(1:审核;2:发布;3:下架;4:删除)"` + +} diff --git a/.history/models/modelbookimg/discussmsg_20220821090135.go b/.history/models/modelbookimg/discussmsg_20220821090135.go new file mode 100644 index 0000000..e06bf55 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821090135.go @@ -0,0 +1,13 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + Stater int `json:"stater" gorm:"column:dis_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:审核;2:发布;3:下架;4:删除)"` + Source int `json:"source" gorm:"column:dis_source;type:tinyint unsigned;not null;default:1;comment:来源(1:文档类;2:文档类评论;3:问题;4:问题答案;5:问题答案评论)"` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821090137.go b/.history/models/modelbookimg/discussmsg_20220821090137.go new file mode 100644 index 0000000..4da86ec --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821090137.go @@ -0,0 +1,15 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + Stater int `json:"stater" gorm:"column:dis_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:审核;2:发布;3:下架;4:删除)"` + Source int `json:"source" gorm:"column:dis_source;type:tinyint unsigned;not null;default:1;comment:来源(1:文档类;2:文档类评论;3:问题;4:问题答案;5:问题答案评论) + + "` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821090139.go b/.history/models/modelbookimg/discussmsg_20220821090139.go new file mode 100644 index 0000000..e06bf55 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821090139.go @@ -0,0 +1,13 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + Stater int `json:"stater" gorm:"column:dis_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:审核;2:发布;3:下架;4:删除)"` + Source int `json:"source" gorm:"column:dis_source;type:tinyint unsigned;not null;default:1;comment:来源(1:文档类;2:文档类评论;3:问题;4:问题答案;5:问题答案评论)"` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821090140.go b/.history/models/modelbookimg/discussmsg_20220821090140.go new file mode 100644 index 0000000..e06bf55 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821090140.go @@ -0,0 +1,13 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + Stater int `json:"stater" gorm:"column:dis_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:审核;2:发布;3:下架;4:删除)"` + Source int `json:"source" gorm:"column:dis_source;type:tinyint unsigned;not null;default:1;comment:来源(1:文档类;2:文档类评论;3:问题;4:问题答案;5:问题答案评论)"` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821090147.go b/.history/models/modelbookimg/discussmsg_20220821090147.go new file mode 100644 index 0000000..f4ec6b7 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821090147.go @@ -0,0 +1,13 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + Stater int `json:"stater" gorm:"column:dis_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:审核;2:发布;3:下架;4:删除)"` + Source int `json:"source" gorm:"column:dis_source;type:tinyint unsigned;not null;default:1;comment:来源(1:文档类;2:文档类评论;3:问题;4:问题答案;5:问题答案评论)"` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821090151.go b/.history/models/modelbookimg/discussmsg_20220821090151.go new file mode 100644 index 0000000..78f24d1 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821090151.go @@ -0,0 +1,14 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + Stater int `json:"stater" gorm:"column:dis_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:审核;2:发布;3:下架;4:删除)"` + Source int `json:"source" gorm:"column:dis_source;type:tinyint unsigned;not null;default:1;comment:来源(1:文档类;2:文档类评论;3:问题;4:问题答案;5:问题答案评论)"` + UserJson +} diff --git a/.history/models/modelbookimg/discussmsg_20220821090201.go b/.history/models/modelbookimg/discussmsg_20220821090201.go new file mode 100644 index 0000000..d43ae73 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821090201.go @@ -0,0 +1,14 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + Stater int `json:"stater" gorm:"column:dis_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:审核;2:发布;3:下架;4:删除)"` + Source int `json:"source" gorm:"column:dis_source;type:tinyint unsigned;not null;default:1;comment:来源(1:文档类;2:文档类评论;3:问题;4:问题答案;5:问题答案评论)"` + UserJson +} diff --git a/.history/models/modelbookimg/discussmsg_20220821090204.go b/.history/models/modelbookimg/discussmsg_20220821090204.go new file mode 100644 index 0000000..4c38dbd --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821090204.go @@ -0,0 +1,14 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + Stater int `json:"stater" gorm:"column:dis_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:审核;2:发布;3:下架;4:删除)"` + Source int `json:"source" gorm:"column:dis_source;type:tinyint unsigned;not null;default:1;comment:来源(1:文档类;2:文档类评论;3:问题;4:问题答案;5:问题答案评论)"` + UserJson string +} diff --git a/.history/models/modelbookimg/discussmsg_20220821090209.go b/.history/models/modelbookimg/discussmsg_20220821090209.go new file mode 100644 index 0000000..c33326e --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821090209.go @@ -0,0 +1,14 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + Stater int `json:"stater" gorm:"column:dis_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:审核;2:发布;3:下架;4:删除)"` + Source int `json:"source" gorm:"column:dis_source;type:tinyint unsigned;not null;default:1;comment:来源(1:文档类;2:文档类评论;3:问题;4:问题答案;5:问题答案评论)"` + UserJson string `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821090214.go b/.history/models/modelbookimg/discussmsg_20220821090214.go new file mode 100644 index 0000000..12f68b2 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821090214.go @@ -0,0 +1,14 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + Stater int `json:"stater" gorm:"column:dis_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:审核;2:发布;3:下架;4:删除)"` + Source int `json:"source" gorm:"column:dis_source;type:tinyint unsigned;not null;default:1;comment:来源(1:文档类;2:文档类评论;3:问题;4:问题答案;5:问题答案评论)"` + UserJson string `json:"userjson" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821090219.go b/.history/models/modelbookimg/discussmsg_20220821090219.go new file mode 100644 index 0000000..7e28b9a --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821090219.go @@ -0,0 +1,14 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + Stater int `json:"stater" gorm:"column:dis_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:审核;2:发布;3:下架;4:删除)"` + Source int `json:"source" gorm:"column:dis_source;type:tinyint unsigned;not null;default:1;comment:来源(1:文档类;2:文档类评论;3:问题;4:问题答案;5:问题答案评论)"` + UserJson string `json:"userjson" gorm:"column:dis_user_json;type:bigint unsigned;default:0;comment:评论时间"` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821090224.go b/.history/models/modelbookimg/discussmsg_20220821090224.go new file mode 100644 index 0000000..99f0495 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821090224.go @@ -0,0 +1,14 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + Stater int `json:"stater" gorm:"column:dis_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:审核;2:发布;3:下架;4:删除)"` + Source int `json:"source" gorm:"column:dis_source;type:tinyint unsigned;not null;default:1;comment:来源(1:文档类;2:文档类评论;3:问题;4:问题答案;5:问题答案评论)"` + UserJson string `json:"userjson" gorm:"column:dis_user_json;type:mediumtext;default:0;comment:评论时间"` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821090227.go b/.history/models/modelbookimg/discussmsg_20220821090227.go new file mode 100644 index 0000000..9a459ed --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821090227.go @@ -0,0 +1,14 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + Stater int `json:"stater" gorm:"column:dis_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:审核;2:发布;3:下架;4:删除)"` + Source int `json:"source" gorm:"column:dis_source;type:tinyint unsigned;not null;default:1;comment:来源(1:文档类;2:文档类评论;3:问题;4:问题答案;5:问题答案评论)"` + UserJson string `json:"userjson" gorm:"column:dis_user_json;type:mediumtext;comment:评论时间"` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821090231.go b/.history/models/modelbookimg/discussmsg_20220821090231.go new file mode 100644 index 0000000..40a45b2 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821090231.go @@ -0,0 +1,14 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + Stater int `json:"stater" gorm:"column:dis_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:审核;2:发布;3:下架;4:删除)"` + Source int `json:"source" gorm:"column:dis_source;type:tinyint unsigned;not null;default:1;comment:来源(1:文档类;2:文档类评论;3:问题;4:问题答案;5:问题答案评论)"` + UserJson string `json:"userjson" gorm:"column:dis_user_json;type:mediumtext;comment:评论人基本信息"` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821090233.go b/.history/models/modelbookimg/discussmsg_20220821090233.go new file mode 100644 index 0000000..af1d480 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821090233.go @@ -0,0 +1,15 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + Stater int `json:"stater" gorm:"column:dis_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:审核;2:发布;3:下架;4:删除)"` + Source int `json:"source" gorm:"column:dis_source;type:tinyint unsigned;not null;default:1;comment:来源(1:文档类;2:文档类评论;3:问题;4:问题答案;5:问题答案评论)"` + UserJson string `json:"userjson" gorm:"column:dis_user_json;type:mediumtext;comment:评论人基本信息"` + +} diff --git a/.history/models/modelbookimg/discussmsg_20220821090251.go b/.history/models/modelbookimg/discussmsg_20220821090251.go new file mode 100644 index 0000000..60bbdd7 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821090251.go @@ -0,0 +1,15 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + Stater int `json:"stater" gorm:"column:dis_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:审核;2:发布;3:下架;4:删除)"` + Source int `json:"source" gorm:"column:dis_source;type:tinyint unsigned;not null;default:1;comment:来源(1:文档类;2:文档类评论;3:问题;4:问题答案;5:问题答案评论)"` + UserJson string `json:"userjson" gorm:"column:dis_user_json;type:mediumtext;comment:评论人基本信息"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821090255.go b/.history/models/modelbookimg/discussmsg_20220821090255.go new file mode 100644 index 0000000..26c6268 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821090255.go @@ -0,0 +1,15 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + Stater int `json:"stater" gorm:"column:dis_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:审核;2:发布;3:下架;4:删除)"` + Source int `json:"source" gorm:"column:dis_source;type:tinyint unsigned;not null;default:1;comment:来源(1:文档类;2:文档类评论;3:问题;4:问题答案;5:问题答案评论)"` + UserJson string `json:"userjson" gorm:"column:dis_user_json;type:mediumtext;comment:评论人基本信息"` + EtitTime int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821090303.go b/.history/models/modelbookimg/discussmsg_20220821090303.go new file mode 100644 index 0000000..8d196b9 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821090303.go @@ -0,0 +1,15 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + Stater int `json:"stater" gorm:"column:dis_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:审核;2:发布;3:下架;4:删除)"` + Source int `json:"source" gorm:"column:dis_source;type:tinyint unsigned;not null;default:1;comment:来源(1:文档类;2:文档类评论;3:问题;4:问题答案;5:问题答案评论)"` + UserJson string `json:"userjson" gorm:"column:dis_user_json;type:mediumtext;comment:评论人基本信息"` + EtitTime int64 `json:"time" gorm:"column:dis_eite_time;type:bigint unsigned;default:0;comment:评论时间"` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821090307.go b/.history/models/modelbookimg/discussmsg_20220821090307.go new file mode 100644 index 0000000..cf4cd6a --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821090307.go @@ -0,0 +1,15 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + Stater int `json:"stater" gorm:"column:dis_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:审核;2:发布;3:下架;4:删除)"` + Source int `json:"source" gorm:"column:dis_source;type:tinyint unsigned;not null;default:1;comment:来源(1:文档类;2:文档类评论;3:问题;4:问题答案;5:问题答案评论)"` + UserJson string `json:"userjson" gorm:"column:dis_user_json;type:mediumtext;comment:评论人基本信息"` + EtitTime int64 `json:"eitetime" gorm:"column:dis_eite_time;type:bigint unsigned;default:0;comment:评论时间"` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821090311.go b/.history/models/modelbookimg/discussmsg_20220821090311.go new file mode 100644 index 0000000..ab16a11 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821090311.go @@ -0,0 +1,15 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + Stater int `json:"stater" gorm:"column:dis_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:审核;2:发布;3:下架;4:删除)"` + Source int `json:"source" gorm:"column:dis_source;type:tinyint unsigned;not null;default:1;comment:来源(1:文档类;2:文档类评论;3:问题;4:问题答案;5:问题答案评论)"` + UserJson string `json:"userjson" gorm:"column:dis_user_json;type:mediumtext;comment:评论人基本信息"` + eiteTime int64 `json:"eitetime" gorm:"column:dis_eite_time;type:bigint unsigned;default:0;comment:评论时间"` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821090314.go b/.history/models/modelbookimg/discussmsg_20220821090314.go new file mode 100644 index 0000000..0a6d5c4 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821090314.go @@ -0,0 +1,15 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + Stater int `json:"stater" gorm:"column:dis_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:审核;2:发布;3:下架;4:删除)"` + Source int `json:"source" gorm:"column:dis_source;type:tinyint unsigned;not null;default:1;comment:来源(1:文档类;2:文档类评论;3:问题;4:问题答案;5:问题答案评论)"` + UserJson string `json:"userjson" gorm:"column:dis_user_json;type:mediumtext;comment:评论人基本信息"` + EiteTime int64 `json:"eitetime" gorm:"column:dis_eite_time;type:bigint unsigned;default:0;comment:评论时间"` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821090326.go b/.history/models/modelbookimg/discussmsg_20220821090326.go new file mode 100644 index 0000000..b76cd2e --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821090326.go @@ -0,0 +1,15 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + Stater int `json:"stater" gorm:"column:dis_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:审核;2:发布;3:下架;4:删除)"` + Source int `json:"source" gorm:"column:dis_source;type:tinyint unsigned;not null;default:1;comment:来源(1:文档类;2:文档类评论;3:问题;4:问题答案;5:问题答案评论)"` + UserJson string `json:"userjson" gorm:"column:dis_user_json;type:mediumtext;comment:评论人基本信息"` + EiteTime int64 `json:"eitetime" gorm:"column:dis_eite_time;type:bigint unsigned;default:0;comment:修改时间"` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821090338.go b/.history/models/modelbookimg/discussmsg_20220821090338.go new file mode 100644 index 0000000..79be5ef --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821090338.go @@ -0,0 +1,15 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + Stater int `json:"stater" gorm:"column:dis_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:审核;2:发布;3:下架;4:删除)"` + Source int `json:"source" gorm:"column:dis_source;type:tinyint unsigned;not null;default:1;comment:来源(1:文档类;2:文档类评论;3:问题;4:问题答案;5:问题答案评论)"` + UserJson string `json:"userjson" gorm:"column:dis_user_json;type:mediumtext;comment:评论人基本信息"` + EiteTime int64 `json:"eitetime" gorm:"column:dis_eite_time;type:bigint unsigned;;default:0;comment:修改时间"` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821090340.go b/.history/models/modelbookimg/discussmsg_20220821090340.go new file mode 100644 index 0000000..b7ec731 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821090340.go @@ -0,0 +1,15 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + Stater int `json:"stater" gorm:"column:dis_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:审核;2:发布;3:下架;4:删除)"` + Source int `json:"source" gorm:"column:dis_source;type:tinyint unsigned;not null;default:1;comment:来源(1:文档类;2:文档类评论;3:问题;4:问题答案;5:问题答案评论)"` + UserJson string `json:"userjson" gorm:"column:dis_user_json;type:mediumtext;comment:评论人基本信息"` + EiteTime int64 `json:"eitetime" gorm:"column:dis_eite_time;type:bigint unsigned;not nul;default:0;comment:修改时间"` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821090342.go b/.history/models/modelbookimg/discussmsg_20220821090342.go new file mode 100644 index 0000000..7cbee96 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821090342.go @@ -0,0 +1,15 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + Stater int `json:"stater" gorm:"column:dis_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:审核;2:发布;3:下架;4:删除)"` + Source int `json:"source" gorm:"column:dis_source;type:tinyint unsigned;not null;default:1;comment:来源(1:文档类;2:文档类评论;3:问题;4:问题答案;5:问题答案评论)"` + UserJson string `json:"userjson" gorm:"column:dis_user_json;type:mediumtext;comment:评论人基本信息"` + EiteTime int64 `json:"eitetime" gorm:"column:dis_eite_time;type:bigint unsigned;not null;default:0;comment:修改时间"` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821090411.go b/.history/models/modelbookimg/discussmsg_20220821090411.go new file mode 100644 index 0000000..7cbee96 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821090411.go @@ -0,0 +1,15 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + Stater int `json:"stater" gorm:"column:dis_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:审核;2:发布;3:下架;4:删除)"` + Source int `json:"source" gorm:"column:dis_source;type:tinyint unsigned;not null;default:1;comment:来源(1:文档类;2:文档类评论;3:问题;4:问题答案;5:问题答案评论)"` + UserJson string `json:"userjson" gorm:"column:dis_user_json;type:mediumtext;comment:评论人基本信息"` + EiteTime int64 `json:"eitetime" gorm:"column:dis_eite_time;type:bigint unsigned;not null;default:0;comment:修改时间"` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821090413.go b/.history/models/modelbookimg/discussmsg_20220821090413.go new file mode 100644 index 0000000..7cbee96 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821090413.go @@ -0,0 +1,15 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + Stater int `json:"stater" gorm:"column:dis_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:审核;2:发布;3:下架;4:删除)"` + Source int `json:"source" gorm:"column:dis_source;type:tinyint unsigned;not null;default:1;comment:来源(1:文档类;2:文档类评论;3:问题;4:问题答案;5:问题答案评论)"` + UserJson string `json:"userjson" gorm:"column:dis_user_json;type:mediumtext;comment:评论人基本信息"` + EiteTime int64 `json:"eitetime" gorm:"column:dis_eite_time;type:bigint unsigned;not null;default:0;comment:修改时间"` +} diff --git a/.history/models/modelbookimg/discussmsg_20220821090420.go b/.history/models/modelbookimg/discussmsg_20220821090420.go new file mode 100644 index 0000000..ac7fd1c --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821090420.go @@ -0,0 +1,44 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + Stater int `json:"stater" gorm:"column:dis_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:审核;2:发布;3:下架;4:删除)"` + Source int `json:"source" gorm:"column:dis_source;type:tinyint unsigned;not null;default:1;comment:来源(1:文档类;2:文档类评论;3:问题;4:问题答案;5:问题答案评论)"` + UserJson string `json:"userjson" gorm:"column:dis_user_json;type:mediumtext;comment:评论人基本信息"` + EiteTime int64 `json:"eitetime" gorm:"column:dis_eite_time;type:bigint unsigned;not null;default:0;comment:修改时间"` +} + + +func (at *BookAttribute) TableName() string { + return "bookattribute" +} + +// 编辑文档属性内容 +func (cont *BookAttribute) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取文档属性内容 +func (cont *BookAttribute) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *BookAttribute) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/discussmsg_20220821090427.go b/.history/models/modelbookimg/discussmsg_20220821090427.go new file mode 100644 index 0000000..906caea --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821090427.go @@ -0,0 +1,44 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + Stater int `json:"stater" gorm:"column:dis_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:审核;2:发布;3:下架;4:删除)"` + Source int `json:"source" gorm:"column:dis_source;type:tinyint unsigned;not null;default:1;comment:来源(1:文档类;2:文档类评论;3:问题;4:问题答案;5:问题答案评论)"` + UserJson string `json:"userjson" gorm:"column:dis_user_json;type:mediumtext;comment:评论人基本信息"` + EiteTime int64 `json:"eitetime" gorm:"column:dis_eite_time;type:bigint unsigned;not null;default:0;comment:修改时间"` +} + + +func (at *DiscussMsg) TableName() string { + return "bookattribute" +} + +// 编辑文档属性内容 +func (cont *DiscussMsg) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取文档属性内容 +func (cont *DiscussMsg) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *BookAttribute) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/discussmsg_20220821090430.go b/.history/models/modelbookimg/discussmsg_20220821090430.go new file mode 100644 index 0000000..7692fd7 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821090430.go @@ -0,0 +1,44 @@ +package modelbookimg + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + Stater int `json:"stater" gorm:"column:dis_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:审核;2:发布;3:下架;4:删除)"` + Source int `json:"source" gorm:"column:dis_source;type:tinyint unsigned;not null;default:1;comment:来源(1:文档类;2:文档类评论;3:问题;4:问题答案;5:问题答案评论)"` + UserJson string `json:"userjson" gorm:"column:dis_user_json;type:mediumtext;comment:评论人基本信息"` + EiteTime int64 `json:"eitetime" gorm:"column:dis_eite_time;type:bigint unsigned;not null;default:0;comment:修改时间"` +} + + +func (at *DiscussMsg) TableName() string { + return "bookattribute" +} + +// 编辑文档属性内容 +func (cont *DiscussMsg) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取文档属性内容 +func (cont *DiscussMsg) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *DiscussMsg) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/discussmsg_20220821090436.go b/.history/models/modelbookimg/discussmsg_20220821090436.go new file mode 100644 index 0000000..1da9e57 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821090436.go @@ -0,0 +1,48 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + Stater int `json:"stater" gorm:"column:dis_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:审核;2:发布;3:下架;4:删除)"` + Source int `json:"source" gorm:"column:dis_source;type:tinyint unsigned;not null;default:1;comment:来源(1:文档类;2:文档类评论;3:问题;4:问题答案;5:问题答案评论)"` + UserJson string `json:"userjson" gorm:"column:dis_user_json;type:mediumtext;comment:评论人基本信息"` + EiteTime int64 `json:"eitetime" gorm:"column:dis_eite_time;type:bigint unsigned;not null;default:0;comment:修改时间"` +} + +func (at *DiscussMsg) TableName() string { + return "discussmsg" +} + +// 编辑文档属性内容 +func (cont *DiscussMsg) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取文档属性内容 +func (cont *DiscussMsg) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *DiscussMsg) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/discussmsg_20220821090441.go b/.history/models/modelbookimg/discussmsg_20220821090441.go new file mode 100644 index 0000000..b8ecf5a --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821090441.go @@ -0,0 +1,48 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + Stater int `json:"stater" gorm:"column:dis_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:审核;2:发布;3:下架;4:删除)"` + Source int `json:"source" gorm:"column:dis_source;type:tinyint unsigned;not null;default:1;comment:来源(1:文档类;2:文档类评论;3:问题;4:问题答案;5:问题答案评论)"` + UserJson string `json:"userjson" gorm:"column:dis_user_json;type:mediumtext;comment:评论人基本信息"` + EiteTime int64 `json:"eitetime" gorm:"column:dis_eite_time;type:bigint unsigned;not null;default:0;comment:修改时间"` +} + +func (at *DiscussMsg) TableName() string { + return "discussmsg" +} + +// 编辑内容 +func (cont *DiscussMsg) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取文档属性内容 +func (cont *DiscussMsg) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *DiscussMsg) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/discussmsg_20220821090447.go b/.history/models/modelbookimg/discussmsg_20220821090447.go new file mode 100644 index 0000000..4ec7b2c --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821090447.go @@ -0,0 +1,48 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + Stater int `json:"stater" gorm:"column:dis_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:审核;2:发布;3:下架;4:删除)"` + Source int `json:"source" gorm:"column:dis_source;type:tinyint unsigned;not null;default:1;comment:来源(1:文档类;2:文档类评论;3:问题;4:问题答案;5:问题答案评论)"` + UserJson string `json:"userjson" gorm:"column:dis_user_json;type:mediumtext;comment:评论人基本信息"` + EiteTime int64 `json:"eitetime" gorm:"column:dis_eite_time;type:bigint unsigned;not null;default:0;comment:修改时间"` +} + +func (at *DiscussMsg) TableName() string { + return "discussmsg" +} + +// 编辑评论列表内容 +func (cont *DiscussMsg) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取文档属性内容 +func (cont *DiscussMsg) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *DiscussMsg) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/discussmsg_20220821090452.go b/.history/models/modelbookimg/discussmsg_20220821090452.go new file mode 100644 index 0000000..86306de --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821090452.go @@ -0,0 +1,48 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + Stater int `json:"stater" gorm:"column:dis_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:审核;2:发布;3:下架;4:删除)"` + Source int `json:"source" gorm:"column:dis_source;type:tinyint unsigned;not null;default:1;comment:来源(1:文档类;2:文档类评论;3:问题;4:问题答案;5:问题答案评论)"` + UserJson string `json:"userjson" gorm:"column:dis_user_json;type:mediumtext;comment:评论人基本信息"` + EiteTime int64 `json:"eitetime" gorm:"column:dis_eite_time;type:bigint unsigned;not null;default:0;comment:修改时间"` +} + +func (at *DiscussMsg) TableName() string { + return "discussmsg" +} + +// 编辑评论列表内容 +func (cont *DiscussMsg) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取评论列表内容 +func (cont *DiscussMsg) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *DiscussMsg) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/discussmsg_20220821091214.go b/.history/models/modelbookimg/discussmsg_20220821091214.go new file mode 100644 index 0000000..47c5190 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821091214.go @@ -0,0 +1,48 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + Stater int `json:"stater" gorm:"column:dis_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:审核;2:发布;3:下架;4:删除)"` + Source int `json:"source" gorm:"column:dis_source;type:tinyint unsigned;not null;default:1;comment:来源(1:文档类;2:文档类评论;3:问题;4:问题答案;5:问题答案评论)"` + UserJson string `json:"userjson" gorm:"column:dis_user_json;type:mediumtext;comment:评论人基本信息"` + EiteTime int64 `json:"eitetime" gorm:"column:dis_eite_time;type:bigint unsigned;not null;default:0;comment:修改时间"` +} + +func (dm *DiscussMsg) TableName() string { + return "discussmsg" +} + +// 编辑评论列表内容 +func (cont *DiscussMsg) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取评论列表内容 +func (cont *DiscussMsg) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *DiscussMsg) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/discussmsg_20220821091215.go b/.history/models/modelbookimg/discussmsg_20220821091215.go new file mode 100644 index 0000000..47c5190 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821091215.go @@ -0,0 +1,48 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + Stater int `json:"stater" gorm:"column:dis_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:审核;2:发布;3:下架;4:删除)"` + Source int `json:"source" gorm:"column:dis_source;type:tinyint unsigned;not null;default:1;comment:来源(1:文档类;2:文档类评论;3:问题;4:问题答案;5:问题答案评论)"` + UserJson string `json:"userjson" gorm:"column:dis_user_json;type:mediumtext;comment:评论人基本信息"` + EiteTime int64 `json:"eitetime" gorm:"column:dis_eite_time;type:bigint unsigned;not null;default:0;comment:修改时间"` +} + +func (dm *DiscussMsg) TableName() string { + return "discussmsg" +} + +// 编辑评论列表内容 +func (cont *DiscussMsg) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取评论列表内容 +func (cont *DiscussMsg) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *DiscussMsg) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/discussmsg_20220821092822.go b/.history/models/modelbookimg/discussmsg_20220821092822.go new file mode 100644 index 0000000..83cd940 --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821092822.go @@ -0,0 +1,48 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + Stater int `json:"stater" gorm:"column:dis_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:审核;2:发布;3:下架;4:删除)"` + Source int `json:"source" gorm:"column:dis_source;type:tinyint unsigned;not null;default:1;comment:来源(1:文档类;2:文档类评论;3:问题;4:问题答案;5:问题答案评论)"` + UserJson string `json:"userjson" gorm:"column:dis_user_json;type:mediumtext;comment:评论人基本信息"` + EiteTime int64 `json:"eitetime" gorm:"column:dis_eite_time;type:bigint unsigned;not null;default:0;comment:修改时间"` +} + +func (dm *DiscussMsg) TableName() string { + return "discussmsg" +} + +// 编辑评论列表内容 +func (cont *DiscussMsg) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_FILE_BOOK.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取评论列表内容 +func (cont *DiscussMsg) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_FILE_BOOK.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *DiscussMsg) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/discussmsg_20220821092823.go b/.history/models/modelbookimg/discussmsg_20220821092823.go new file mode 100644 index 0000000..eed31fc --- /dev/null +++ b/.history/models/modelbookimg/discussmsg_20220821092823.go @@ -0,0 +1,48 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + Stater int `json:"stater" gorm:"column:dis_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:审核;2:发布;3:下架;4:删除)"` + Source int `json:"source" gorm:"column:dis_source;type:tinyint unsigned;not null;default:1;comment:来源(1:文档类;2:文档类评论;3:问题;4:问题答案;5:问题答案评论)"` + UserJson string `json:"userjson" gorm:"column:dis_user_json;type:mediumtext;comment:评论人基本信息"` + EiteTime int64 `json:"eitetime" gorm:"column:dis_eite_time;type:bigint unsigned;not null;default:0;comment:修改时间"` +} + +func (dm *DiscussMsg) TableName() string { + return "discussmsg" +} + +// 编辑评论列表内容 +func (cont *DiscussMsg) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_FILE_BOOK.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取评论列表内容 +func (cont *DiscussMsg) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_FILE_BOOK.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *DiscussMsg) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_FILE_BOOK.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/graphicform_20220819162409.go b/.history/models/modelbookimg/graphicform_20220819162409.go new file mode 100644 index 0000000..e69de29 diff --git a/.history/models/modelbookimg/graphicform_20220819162418.go b/.history/models/modelbookimg/graphicform_20220819162418.go new file mode 100644 index 0000000..600480e --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819162418.go @@ -0,0 +1 @@ +package modelbookimg diff --git a/.history/models/modelbookimg/graphicform_20220819162421.go b/.history/models/modelbookimg/graphicform_20220819162421.go new file mode 100644 index 0000000..bb0a336 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819162421.go @@ -0,0 +1,2 @@ +package modelbookimg + diff --git a/.history/models/modelbookimg/graphicform_20220819162423.go b/.history/models/modelbookimg/graphicform_20220819162423.go new file mode 100644 index 0000000..600480e --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819162423.go @@ -0,0 +1 @@ +package modelbookimg diff --git a/.history/models/modelbookimg/graphicform_20220819162429.go b/.history/models/modelbookimg/graphicform_20220819162429.go new file mode 100644 index 0000000..87dd386 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819162429.go @@ -0,0 +1,3 @@ +package modelbookimg + +type \ No newline at end of file diff --git a/.history/models/modelbookimg/graphicform_20220819162434.go b/.history/models/modelbookimg/graphicform_20220819162434.go new file mode 100644 index 0000000..074a218 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819162434.go @@ -0,0 +1,3 @@ +package modelbookimg + +type graphicform \ No newline at end of file diff --git a/.history/models/modelbookimg/graphicform_20220819162437.go b/.history/models/modelbookimg/graphicform_20220819162437.go new file mode 100644 index 0000000..4acb27c --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819162437.go @@ -0,0 +1,4 @@ +package modelbookimg + +type graphicform struct { +} diff --git a/.history/models/modelbookimg/graphicform_20220819162545.go b/.history/models/modelbookimg/graphicform_20220819162545.go new file mode 100644 index 0000000..ff9edfe --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819162545.go @@ -0,0 +1,5 @@ +package modelbookimg + +// +type graphicform struct { +} diff --git a/.history/models/modelbookimg/graphicform_20220819162638.go b/.history/models/modelbookimg/graphicform_20220819162638.go new file mode 100644 index 0000000..75910de --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819162638.go @@ -0,0 +1,5 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { +} diff --git a/.history/models/modelbookimg/graphicform_20220819162640.go b/.history/models/modelbookimg/graphicform_20220819162640.go new file mode 100644 index 0000000..75910de --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819162640.go @@ -0,0 +1,5 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { +} diff --git a/.history/models/modelbookimg/graphicform_20220819162649.go b/.history/models/modelbookimg/graphicform_20220819162649.go new file mode 100644 index 0000000..d60d82e --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819162649.go @@ -0,0 +1,6 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + +} diff --git a/.history/models/modelbookimg/graphicform_20220819162653.go b/.history/models/modelbookimg/graphicform_20220819162653.go new file mode 100644 index 0000000..03bbc75 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819162653.go @@ -0,0 +1,6 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id +} diff --git a/.history/models/modelbookimg/graphicform_20220819162702.go b/.history/models/modelbookimg/graphicform_20220819162702.go new file mode 100644 index 0000000..fa7bcae --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819162702.go @@ -0,0 +1,6 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int +} diff --git a/.history/models/modelbookimg/graphicform_20220819162704.go b/.history/models/modelbookimg/graphicform_20220819162704.go new file mode 100644 index 0000000..b055739 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819162704.go @@ -0,0 +1,6 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 +} diff --git a/.history/models/modelbookimg/graphicform_20220819162708.go b/.history/models/modelbookimg/graphicform_20220819162708.go new file mode 100644 index 0000000..dcc0b75 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819162708.go @@ -0,0 +1,6 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `` +} diff --git a/.history/models/modelbookimg/graphicform_20220819162712.go b/.history/models/modelbookimg/graphicform_20220819162712.go new file mode 100644 index 0000000..04eb486 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819162712.go @@ -0,0 +1,6 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:id` +} diff --git a/.history/models/modelbookimg/graphicform_20220819162713.go b/.history/models/modelbookimg/graphicform_20220819162713.go new file mode 100644 index 0000000..53af0c2 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819162713.go @@ -0,0 +1,6 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:id ` +} diff --git a/.history/models/modelbookimg/graphicform_20220819162721.go b/.history/models/modelbookimg/graphicform_20220819162721.go new file mode 100644 index 0000000..026ecbc --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819162721.go @@ -0,0 +1,6 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:id;type:bigint(20) unsigned;not null;comment:ID"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819162731.go b/.history/models/modelbookimg/graphicform_20220819162731.go new file mode 100644 index 0000000..556c7f7 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819162731.go @@ -0,0 +1,6 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint(20) unsigned;not null;comment:ID"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819162737.go b/.history/models/modelbookimg/graphicform_20220819162737.go new file mode 100644 index 0000000..8e53918 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819162737.go @@ -0,0 +1,6 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned(20) unsigned;not null;comment:ID"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819162741.go b/.history/models/modelbookimg/graphicform_20220819162741.go new file mode 100644 index 0000000..0b669fb --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819162741.go @@ -0,0 +1,6 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819162742.go b/.history/models/modelbookimg/graphicform_20220819162742.go new file mode 100644 index 0000000..0b669fb --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819162742.go @@ -0,0 +1,6 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819162757.go b/.history/models/modelbookimg/graphicform_20220819162757.go new file mode 100644 index 0000000..19606b2 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819162757.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title +} diff --git a/.history/models/modelbookimg/graphicform_20220819162804.go b/.history/models/modelbookimg/graphicform_20220819162804.go new file mode 100644 index 0000000..b535981 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819162804.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string +} diff --git a/.history/models/modelbookimg/graphicform_20220819162809.go b/.history/models/modelbookimg/graphicform_20220819162809.go new file mode 100644 index 0000000..293d453 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819162809.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json ` +} diff --git a/.history/models/modelbookimg/graphicform_20220819162810.go b/.history/models/modelbookimg/graphicform_20220819162810.go new file mode 100644 index 0000000..64392d5 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819162810.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json` +} diff --git a/.history/models/modelbookimg/graphicform_20220819162812.go b/.history/models/modelbookimg/graphicform_20220819162812.go new file mode 100644 index 0000000..8ca9e1d --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819162812.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819162819.go b/.history/models/modelbookimg/graphicform_20220819162819.go new file mode 100644 index 0000000..14b03e1 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819162819.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819163154.go b/.history/models/modelbookimg/graphicform_20220819163154.go new file mode 100644 index 0000000..7e595f5 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819163154.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:""` +} diff --git a/.history/models/modelbookimg/graphicform_20220819163202.go b/.history/models/modelbookimg/graphicform_20220819163202.go new file mode 100644 index 0000000..8052b32 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819163202.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819163213.go b/.history/models/modelbookimg/graphicform_20220819163213.go new file mode 100644 index 0000000..b9440b1 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819163213.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819163215.go b/.history/models/modelbookimg/graphicform_20220819163215.go new file mode 100644 index 0000000..c808bf8 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819163215.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819163219.go b/.history/models/modelbookimg/graphicform_20220819163219.go new file mode 100644 index 0000000..b8c4d79 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819163219.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar("` +} diff --git a/.history/models/modelbookimg/graphicform_20220819163223.go b/.history/models/modelbookimg/graphicform_20220819163223.go new file mode 100644 index 0000000..92240f1 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819163223.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255)"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819163225.go b/.history/models/modelbookimg/graphicform_20220819163225.go new file mode 100644 index 0000000..7133c3f --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819163225.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819163230.go b/.history/models/modelbookimg/graphicform_20220819163230.go new file mode 100644 index 0000000..c9a8ad9 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819163230.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819163235.go b/.history/models/modelbookimg/graphicform_20220819163235.go new file mode 100644 index 0000000..b86342a --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819163235.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819163238.go b/.history/models/modelbookimg/graphicform_20220819163238.go new file mode 100644 index 0000000..b55e306 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819163238.go @@ -0,0 +1,8 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + +} diff --git a/.history/models/modelbookimg/graphicform_20220819163247.go b/.history/models/modelbookimg/graphicform_20220819163247.go new file mode 100644 index 0000000..0bc35d1 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819163247.go @@ -0,0 +1,8 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key +} diff --git a/.history/models/modelbookimg/graphicform_20220819163251.go b/.history/models/modelbookimg/graphicform_20220819163251.go new file mode 100644 index 0000000..7fcbf3c --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819163251.go @@ -0,0 +1,8 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key String +} diff --git a/.history/models/modelbookimg/graphicform_20220819163254.go b/.history/models/modelbookimg/graphicform_20220819163254.go new file mode 100644 index 0000000..3e5184f --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819163254.go @@ -0,0 +1,8 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string +} diff --git a/.history/models/modelbookimg/graphicform_20220819163258.go b/.history/models/modelbookimg/graphicform_20220819163258.go new file mode 100644 index 0000000..b72ac5b --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819163258.go @@ -0,0 +1,8 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819163302.go b/.history/models/modelbookimg/graphicform_20220819163302.go new file mode 100644 index 0000000..bc4bfe6 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819163302.go @@ -0,0 +1,8 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"v" gorm:"column:g_title;type:varchar(255);comment:标题"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819163303.go b/.history/models/modelbookimg/graphicform_20220819163303.go new file mode 100644 index 0000000..f0108af --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819163303.go @@ -0,0 +1,8 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"Key" gorm:"column:g_title;type:varchar(255);comment:标题"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819163306.go b/.history/models/modelbookimg/graphicform_20220819163306.go new file mode 100644 index 0000000..ff9288d --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819163306.go @@ -0,0 +1,8 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_title;type:varchar(255);comment:标题"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819163310.go b/.history/models/modelbookimg/graphicform_20220819163310.go new file mode 100644 index 0000000..9a1b2f5 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819163310.go @@ -0,0 +1,8 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:标题"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819163323.go b/.history/models/modelbookimg/graphicform_20220819163323.go new file mode 100644 index 0000000..b5c8317 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819163323.go @@ -0,0 +1,8 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819163325.go b/.history/models/modelbookimg/graphicform_20220819163325.go new file mode 100644 index 0000000..a012727 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819163325.go @@ -0,0 +1,9 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + +} diff --git a/.history/models/modelbookimg/graphicform_20220819163338.go b/.history/models/modelbookimg/graphicform_20220819163338.go new file mode 100644 index 0000000..7f69e01 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819163338.go @@ -0,0 +1,9 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + describe +} diff --git a/.history/models/modelbookimg/graphicform_20220819163344.go b/.history/models/modelbookimg/graphicform_20220819163344.go new file mode 100644 index 0000000..f86d3e8 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819163344.go @@ -0,0 +1,9 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + describe string +} diff --git a/.history/models/modelbookimg/graphicform_20220819163347.go b/.history/models/modelbookimg/graphicform_20220819163347.go new file mode 100644 index 0000000..e2accd1 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819163347.go @@ -0,0 +1,9 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + describe string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819163352.go b/.history/models/modelbookimg/graphicform_20220819163352.go new file mode 100644 index 0000000..a8d88e1 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819163352.go @@ -0,0 +1,9 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + describe string `json:"describe" gorm:"column:g_key;type:varchar(255);comment:关键字"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819163359.go b/.history/models/modelbookimg/graphicform_20220819163359.go new file mode 100644 index 0000000..5402920 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819163359.go @@ -0,0 +1,9 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + describe string `json:"describe" gorm:"column:g_describe;type:varchar(255);comment:关键字"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819163418.go b/.history/models/modelbookimg/graphicform_20220819163418.go new file mode 100644 index 0000000..8bd60e3 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819163418.go @@ -0,0 +1,9 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + describe string `json:"describe" gorm:"column:g_describe;type:mediumtext(255);comment:关键字"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819163420.go b/.history/models/modelbookimg/graphicform_20220819163420.go new file mode 100644 index 0000000..2a728bd --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819163420.go @@ -0,0 +1,9 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:关键字"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819163425.go b/.history/models/modelbookimg/graphicform_20220819163425.go new file mode 100644 index 0000000..d48b995 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819163425.go @@ -0,0 +1,9 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819163427.go b/.history/models/modelbookimg/graphicform_20220819163427.go new file mode 100644 index 0000000..2ae232c --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819163427.go @@ -0,0 +1,10 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + +} diff --git a/.history/models/modelbookimg/graphicform_20220819163430.go b/.history/models/modelbookimg/graphicform_20220819163430.go new file mode 100644 index 0000000..6093c6f --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819163430.go @@ -0,0 +1,10 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + +} diff --git a/.history/models/modelbookimg/graphicform_20220819163434.go b/.history/models/modelbookimg/graphicform_20220819163434.go new file mode 100644 index 0000000..0889ebe --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819163434.go @@ -0,0 +1,10 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent +} diff --git a/.history/models/modelbookimg/graphicform_20220819163440.go b/.history/models/modelbookimg/graphicform_20220819163440.go new file mode 100644 index 0000000..ee9c7ac --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819163440.go @@ -0,0 +1,10 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int +} diff --git a/.history/models/modelbookimg/graphicform_20220819163442.go b/.history/models/modelbookimg/graphicform_20220819163442.go new file mode 100644 index 0000000..ef5a7bf --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819163442.go @@ -0,0 +1,10 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 +} diff --git a/.history/models/modelbookimg/graphicform_20220819163445.go b/.history/models/modelbookimg/graphicform_20220819163445.go new file mode 100644 index 0000000..ac80145 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819163445.go @@ -0,0 +1,10 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819163447.go b/.history/models/modelbookimg/graphicform_20220819163447.go new file mode 100644 index 0000000..50bfa3c --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819163447.go @@ -0,0 +1,10 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819163455.go b/.history/models/modelbookimg/graphicform_20220819163455.go new file mode 100644 index 0000000..f5d7b62 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819163455.go @@ -0,0 +1,10 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_describe;type:mediumtext;comment:描述"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819163504.go b/.history/models/modelbookimg/graphicform_20220819163504.go new file mode 100644 index 0000000..a011d3c --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819163504.go @@ -0,0 +1,10 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:mediumtext;comment:描述"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819163515.go b/.history/models/modelbookimg/graphicform_20220819163515.go new file mode 100644 index 0000000..66c55b9 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819163515.go @@ -0,0 +1,10 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;comment:描述"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819163521.go b/.history/models/modelbookimg/graphicform_20220819163521.go new file mode 100644 index 0000000..a55f254 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819163521.go @@ -0,0 +1,10 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;comment:fu'ji"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819163523.go b/.history/models/modelbookimg/graphicform_20220819163523.go new file mode 100644 index 0000000..cc14a04 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819163523.go @@ -0,0 +1,10 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;comment:父级"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819163524.go b/.history/models/modelbookimg/graphicform_20220819163524.go new file mode 100644 index 0000000..9abbe19 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819163524.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;comment:父级"` + +} diff --git a/.history/models/modelbookimg/graphicform_20220819163541.go b/.history/models/modelbookimg/graphicform_20220819163541.go new file mode 100644 index 0000000..db7092c --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819163541.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;comment:父级"` + Parent_ +} diff --git a/.history/models/modelbookimg/graphicform_20220819163551.go b/.history/models/modelbookimg/graphicform_20220819163551.go new file mode 100644 index 0000000..10e04ff --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819163551.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;comment:父级"` + Parent_Sun +} diff --git a/.history/models/modelbookimg/graphicform_20220819163554.go b/.history/models/modelbookimg/graphicform_20220819163554.go new file mode 100644 index 0000000..2975f57 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819163554.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;comment:父级"` + Parent_Sun int +} diff --git a/.history/models/modelbookimg/graphicform_20220819163557.go b/.history/models/modelbookimg/graphicform_20220819163557.go new file mode 100644 index 0000000..1fa73d5 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819163557.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;comment:父级"` + Parent_Sun int64 +} diff --git a/.history/models/modelbookimg/graphicform_20220819163608.go b/.history/models/modelbookimg/graphicform_20220819163608.go new file mode 100644 index 0000000..152a82e --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819163608.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;comment:父级"` + ParentSun int64 +} diff --git a/.history/models/modelbookimg/graphicform_20220819163611.go b/.history/models/modelbookimg/graphicform_20220819163611.go new file mode 100644 index 0000000..f126168 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819163611.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;comment:父级"` + ParentSun int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;comment:父级"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819163616.go b/.history/models/modelbookimg/graphicform_20220819163616.go new file mode 100644 index 0000000..349a90a --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819163616.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent;type:bigint unsigned;comment:父级"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819163641.go b/.history/models/modelbookimg/graphicform_20220819163641.go new file mode 100644 index 0000000..13c848e --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819163641.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;comment:父级"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819163732.go b/.history/models/modelbookimg/graphicform_20220819163732.go new file mode 100644 index 0000000..1674923 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819163732.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;comment:父类"` + +} diff --git a/.history/models/modelbookimg/graphicform_20220819163736.go b/.history/models/modelbookimg/graphicform_20220819163736.go new file mode 100644 index 0000000..f76b90e --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819163736.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;comment:父类"` + Source +} diff --git a/.history/models/modelbookimg/graphicform_20220819163752.go b/.history/models/modelbookimg/graphicform_20220819163752.go new file mode 100644 index 0000000..c2d29c5 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819163752.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0comment:父类"` + Source +} diff --git a/.history/models/modelbookimg/graphicform_20220819163759.go b/.history/models/modelbookimg/graphicform_20220819163759.go new file mode 100644 index 0000000..89b10d0 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819163759.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source +} diff --git a/.history/models/modelbookimg/graphicform_20220819163802.go b/.history/models/modelbookimg/graphicform_20220819163802.go new file mode 100644 index 0000000..526b899 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819163802.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source +} diff --git a/.history/models/modelbookimg/graphicform_20220819163803.go b/.history/models/modelbookimg/graphicform_20220819163803.go new file mode 100644 index 0000000..0ca6ed9 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819163803.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source +} diff --git a/.history/models/modelbookimg/graphicform_20220819163916.go b/.history/models/modelbookimg/graphicform_20220819163916.go new file mode 100644 index 0000000..4cbc98e --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819163916.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source +} diff --git a/.history/models/modelbookimg/graphicform_20220819163921.go b/.history/models/modelbookimg/graphicform_20220819163921.go new file mode 100644 index 0000000..ed5738c --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819163921.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int +} diff --git a/.history/models/modelbookimg/graphicform_20220819163923.go b/.history/models/modelbookimg/graphicform_20220819163923.go new file mode 100644 index 0000000..76027d2 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819163923.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int64 +} diff --git a/.history/models/modelbookimg/graphicform_20220819163927.go b/.history/models/modelbookimg/graphicform_20220819163927.go new file mode 100644 index 0000000..bbdf630 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819163927.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819163930.go b/.history/models/modelbookimg/graphicform_20220819163930.go new file mode 100644 index 0000000..19e9116 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819163930.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int64 `json:"source" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819163938.go b/.history/models/modelbookimg/graphicform_20220819163938.go new file mode 100644 index 0000000..2215892 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819163938.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int64 `json:"source" gorm:"column:g_source;type:bigint unsigned;default:0;comment:父类"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819163957.go b/.history/models/modelbookimg/graphicform_20220819163957.go new file mode 100644 index 0000000..c4373e5 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819163957.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int64 `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:0;comment:父类"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819164003.go b/.history/models/modelbookimg/graphicform_20220819164003.go new file mode 100644 index 0000000..f475e38 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164003.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int64 `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:父类"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819164008.go b/.history/models/modelbookimg/graphicform_20220819164008.go new file mode 100644 index 0000000..af89ac9 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164008.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int64 `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819164013.go b/.history/models/modelbookimg/graphicform_20220819164013.go new file mode 100644 index 0000000..bb77b12 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164013.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819164015.go b/.history/models/modelbookimg/graphicform_20220819164015.go new file mode 100644 index 0000000..d467d4d --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164015.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int16 `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819164025.go b/.history/models/modelbookimg/graphicform_20220819164025.go new file mode 100644 index 0000000..cfcacf4 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164025.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819164027.go b/.history/models/modelbookimg/graphicform_20220819164027.go new file mode 100644 index 0000000..6ed49d9 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164027.go @@ -0,0 +1,13 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + +} diff --git a/.history/models/modelbookimg/graphicform_20220819164038.go b/.history/models/modelbookimg/graphicform_20220819164038.go new file mode 100644 index 0000000..9816305 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164038.go @@ -0,0 +1,13 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + Source +} diff --git a/.history/models/modelbookimg/graphicform_20220819164040.go b/.history/models/modelbookimg/graphicform_20220819164040.go new file mode 100644 index 0000000..7320f5d --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164040.go @@ -0,0 +1,13 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl +} diff --git a/.history/models/modelbookimg/graphicform_20220819164045.go b/.history/models/modelbookimg/graphicform_20220819164045.go new file mode 100644 index 0000000..f35d243 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164045.go @@ -0,0 +1,13 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string +} diff --git a/.history/models/modelbookimg/graphicform_20220819164051.go b/.history/models/modelbookimg/graphicform_20220819164051.go new file mode 100644 index 0000000..0102db4 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164051.go @@ -0,0 +1,13 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819164054.go b/.history/models/modelbookimg/graphicform_20220819164054.go new file mode 100644 index 0000000..0102db4 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164054.go @@ -0,0 +1,13 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819164056.go b/.history/models/modelbookimg/graphicform_20220819164056.go new file mode 100644 index 0000000..4f61182 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164056.go @@ -0,0 +1,13 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819164102.go b/.history/models/modelbookimg/graphicform_20220819164102.go new file mode 100644 index 0000000..4d160b7 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164102.go @@ -0,0 +1,13 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819164108.go b/.history/models/modelbookimg/graphicform_20220819164108.go new file mode 100644 index 0000000..a6cac97 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164108.go @@ -0,0 +1,13 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);default:1;comment:文档来源(1:原创;2:转载)"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819164113.go b/.history/models/modelbookimg/graphicform_20220819164113.go new file mode 100644 index 0000000..983b2ce --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164113.go @@ -0,0 +1,13 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:文档来源(1:原创;2:转载)"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819164121.go b/.history/models/modelbookimg/graphicform_20220819164121.go new file mode 100644 index 0000000..e1ede02 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164121.go @@ -0,0 +1,13 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819164124.go b/.history/models/modelbookimg/graphicform_20220819164124.go new file mode 100644 index 0000000..e057421 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164124.go @@ -0,0 +1,14 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + +} diff --git a/.history/models/modelbookimg/graphicform_20220819164132.go b/.history/models/modelbookimg/graphicform_20220819164132.go new file mode 100644 index 0000000..777085d --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164132.go @@ -0,0 +1,14 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + thumbnail +} diff --git a/.history/models/modelbookimg/graphicform_20220819164134.go b/.history/models/modelbookimg/graphicform_20220819164134.go new file mode 100644 index 0000000..feb6911 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164134.go @@ -0,0 +1,14 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail +} diff --git a/.history/models/modelbookimg/graphicform_20220819164138.go b/.history/models/modelbookimg/graphicform_20220819164138.go new file mode 100644 index 0000000..0d97ad5 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164138.go @@ -0,0 +1,14 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string +} diff --git a/.history/models/modelbookimg/graphicform_20220819164143.go b/.history/models/modelbookimg/graphicform_20220819164143.go new file mode 100644 index 0000000..22248d6 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164143.go @@ -0,0 +1,14 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819164145.go b/.history/models/modelbookimg/graphicform_20220819164145.go new file mode 100644 index 0000000..5075e60 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164145.go @@ -0,0 +1,14 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819164149.go b/.history/models/modelbookimg/graphicform_20220819164149.go new file mode 100644 index 0000000..0b80f51 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164149.go @@ -0,0 +1,14 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"tuh" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819164151.go b/.history/models/modelbookimg/graphicform_20220819164151.go new file mode 100644 index 0000000..0125634 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164151.go @@ -0,0 +1,14 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819164154.go b/.history/models/modelbookimg/graphicform_20220819164154.go new file mode 100644 index 0000000..6cba707 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164154.go @@ -0,0 +1,14 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"Thumbnail" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819164157.go b/.history/models/modelbookimg/graphicform_20220819164157.go new file mode 100644 index 0000000..dfe6fa2 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164157.go @@ -0,0 +1,14 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819164202.go b/.history/models/modelbookimg/graphicform_20220819164202.go new file mode 100644 index 0000000..8fdd445 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164202.go @@ -0,0 +1,14 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:转载地址"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819164208.go b/.history/models/modelbookimg/graphicform_20220819164208.go new file mode 100644 index 0000000..1065f9d --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164208.go @@ -0,0 +1,14 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819164211.go b/.history/models/modelbookimg/graphicform_20220819164211.go new file mode 100644 index 0000000..fb0c7bb --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164211.go @@ -0,0 +1,15 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + +} diff --git a/.history/models/modelbookimg/graphicform_20220819164218.go b/.history/models/modelbookimg/graphicform_20220819164218.go new file mode 100644 index 0000000..36ace56 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164218.go @@ -0,0 +1,15 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort +} diff --git a/.history/models/modelbookimg/graphicform_20220819164224.go b/.history/models/modelbookimg/graphicform_20220819164224.go new file mode 100644 index 0000000..0c89fbe --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164224.go @@ -0,0 +1,15 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int +} diff --git a/.history/models/modelbookimg/graphicform_20220819164229.go b/.history/models/modelbookimg/graphicform_20220819164229.go new file mode 100644 index 0000000..3e8db39 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164229.go @@ -0,0 +1,15 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 +} diff --git a/.history/models/modelbookimg/graphicform_20220819164234.go b/.history/models/modelbookimg/graphicform_20220819164234.go new file mode 100644 index 0000000..01a7d2e --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164234.go @@ -0,0 +1,15 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819164238.go b/.history/models/modelbookimg/graphicform_20220819164238.go new file mode 100644 index 0000000..cc0e2f4 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164238.go @@ -0,0 +1,15 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819164240.go b/.history/models/modelbookimg/graphicform_20220819164240.go new file mode 100644 index 0000000..3fca145 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164240.go @@ -0,0 +1,15 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:varchar(255);comment:缩略图"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819164255.go b/.history/models/modelbookimg/graphicform_20220819164255.go new file mode 100644 index 0000000..c8da335 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164255.go @@ -0,0 +1,15 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;comment:缩略图"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819164303.go b/.history/models/modelbookimg/graphicform_20220819164303.go new file mode 100644 index 0000000..ec29485 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164303.go @@ -0,0 +1,15 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:缩略图"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819164308.go b/.history/models/modelbookimg/graphicform_20220819164308.go new file mode 100644 index 0000000..26f2a09 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164308.go @@ -0,0 +1,15 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819164309.go b/.history/models/modelbookimg/graphicform_20220819164309.go new file mode 100644 index 0000000..8c9e73a --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164309.go @@ -0,0 +1,16 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + +} diff --git a/.history/models/modelbookimg/graphicform_20220819164319.go b/.history/models/modelbookimg/graphicform_20220819164319.go new file mode 100644 index 0000000..f3a6394 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164319.go @@ -0,0 +1,16 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment +} diff --git a/.history/models/modelbookimg/graphicform_20220819164325.go b/.history/models/modelbookimg/graphicform_20220819164325.go new file mode 100644 index 0000000..d7839f0 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164325.go @@ -0,0 +1,16 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int +} diff --git a/.history/models/modelbookimg/graphicform_20220819164327.go b/.history/models/modelbookimg/graphicform_20220819164327.go new file mode 100644 index 0000000..d7839f0 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164327.go @@ -0,0 +1,16 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int +} diff --git a/.history/models/modelbookimg/graphicform_20220819164328.go b/.history/models/modelbookimg/graphicform_20220819164328.go new file mode 100644 index 0000000..2eec18f --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164328.go @@ -0,0 +1,16 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int +} diff --git a/.history/models/modelbookimg/graphicform_20220819164333.go b/.history/models/modelbookimg/graphicform_20220819164333.go new file mode 100644 index 0000000..0298d34 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164333.go @@ -0,0 +1,16 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819164338.go b/.history/models/modelbookimg/graphicform_20220819164338.go new file mode 100644 index 0000000..a17b345 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164338.go @@ -0,0 +1,16 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"commnet" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819164340.go b/.history/models/modelbookimg/graphicform_20220819164340.go new file mode 100644 index 0000000..449f688 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164340.go @@ -0,0 +1,16 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819164346.go b/.history/models/modelbookimg/graphicform_20220819164346.go new file mode 100644 index 0000000..510a58a --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164346.go @@ -0,0 +1,16 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:bigint unsigned;default:50;comment:排序"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819164353.go b/.history/models/modelbookimg/graphicform_20220819164353.go new file mode 100644 index 0000000..a40e14e --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164353.go @@ -0,0 +1,16 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:50;comment:排序"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819164354.go b/.history/models/modelbookimg/graphicform_20220819164354.go new file mode 100644 index 0000000..3bd8c46 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164354.go @@ -0,0 +1,16 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:50;comment:排序"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819164357.go b/.history/models/modelbookimg/graphicform_20220819164357.go new file mode 100644 index 0000000..094a3c7 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164357.go @@ -0,0 +1,16 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:排序"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819164400.go b/.history/models/modelbookimg/graphicform_20220819164400.go new file mode 100644 index 0000000..a5e8c40 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164400.go @@ -0,0 +1,16 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819164403.go b/.history/models/modelbookimg/graphicform_20220819164403.go new file mode 100644 index 0000000..bd33221 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164403.go @@ -0,0 +1,17 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)" + ` +} diff --git a/.history/models/modelbookimg/graphicform_20220819164404.go b/.history/models/modelbookimg/graphicform_20220819164404.go new file mode 100644 index 0000000..a5e8c40 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164404.go @@ -0,0 +1,16 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819164405.go b/.history/models/modelbookimg/graphicform_20220819164405.go new file mode 100644 index 0000000..a5e8c40 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164405.go @@ -0,0 +1,16 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819164407.go b/.history/models/modelbookimg/graphicform_20220819164407.go new file mode 100644 index 0000000..963ecea --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164407.go @@ -0,0 +1,17 @@ +package modelbookimg + +// 图文信息表 +type graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + +} diff --git a/.history/models/modelbookimg/graphicform_20220819164411.go b/.history/models/modelbookimg/graphicform_20220819164411.go new file mode 100644 index 0000000..7613d4e --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164411.go @@ -0,0 +1,17 @@ +package modelbookimg + +// 图文信息表 +type Graphicform struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + +} diff --git a/.history/models/modelbookimg/graphicform_20220819164413.go b/.history/models/modelbookimg/graphicform_20220819164413.go new file mode 100644 index 0000000..372a4e9 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164413.go @@ -0,0 +1,16 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` +} diff --git a/.history/models/modelbookimg/graphicform_20220819164422.go b/.history/models/modelbookimg/graphicform_20220819164422.go new file mode 100644 index 0000000..566b4d6 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164422.go @@ -0,0 +1,19 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + +} + + diff --git a/.history/models/modelbookimg/graphicform_20220819164425.go b/.history/models/modelbookimg/graphicform_20220819164425.go new file mode 100644 index 0000000..7d3cbdc --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164425.go @@ -0,0 +1,19 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + +} + +func () diff --git a/.history/models/modelbookimg/graphicform_20220819164428.go b/.history/models/modelbookimg/graphicform_20220819164428.go new file mode 100644 index 0000000..7fff49b --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164428.go @@ -0,0 +1,19 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + +} + +func (*GraphicForm) diff --git a/.history/models/modelbookimg/graphicform_20220819164431.go b/.history/models/modelbookimg/graphicform_20220819164431.go new file mode 100644 index 0000000..5d9426f --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164431.go @@ -0,0 +1,19 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + +} + +func (gf *GraphicForm) diff --git a/.history/models/modelbookimg/graphicform_20220819164437.go b/.history/models/modelbookimg/graphicform_20220819164437.go new file mode 100644 index 0000000..dab13c3 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164437.go @@ -0,0 +1,19 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + +} + +func (gf *GraphicForm)TableName() diff --git a/.history/models/modelbookimg/graphicform_20220819164438.go b/.history/models/modelbookimg/graphicform_20220819164438.go new file mode 100644 index 0000000..b960e98 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164438.go @@ -0,0 +1,21 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + +} + +func (gf *GraphicForm)TableName(){ + +} diff --git a/.history/models/modelbookimg/graphicform_20220819164447.go b/.history/models/modelbookimg/graphicform_20220819164447.go new file mode 100644 index 0000000..6dcd0a8 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164447.go @@ -0,0 +1,21 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + +} + +func (gf *GraphicForm)TableName()string{ + return "" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164452.go b/.history/models/modelbookimg/graphicform_20220819164452.go new file mode 100644 index 0000000..b6be7ba --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164452.go @@ -0,0 +1,20 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164457.go b/.history/models/modelbookimg/graphicform_20220819164457.go new file mode 100644 index 0000000..1b365f5 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164457.go @@ -0,0 +1,21 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164507.go b/.history/models/modelbookimg/graphicform_20220819164507.go new file mode 100644 index 0000000..73e0592 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164507.go @@ -0,0 +1,21 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + Visit +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164509.go b/.history/models/modelbookimg/graphicform_20220819164509.go new file mode 100644 index 0000000..44d2922 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164509.go @@ -0,0 +1,21 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStart +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164513.go b/.history/models/modelbookimg/graphicform_20220819164513.go new file mode 100644 index 0000000..a48dcde --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164513.go @@ -0,0 +1,21 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStart +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164517.go b/.history/models/modelbookimg/graphicform_20220819164517.go new file mode 100644 index 0000000..fc8860a --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164517.go @@ -0,0 +1,21 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStart int +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164520.go b/.history/models/modelbookimg/graphicform_20220819164520.go new file mode 100644 index 0000000..dca732a --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164520.go @@ -0,0 +1,21 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStart int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164524.go b/.history/models/modelbookimg/graphicform_20220819164524.go new file mode 100644 index 0000000..a3e72b1 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164524.go @@ -0,0 +1,21 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStart int `json:"comment" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164528.go b/.history/models/modelbookimg/graphicform_20220819164528.go new file mode 100644 index 0000000..8198644 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164528.go @@ -0,0 +1,21 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStart int `json:"visit" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164531.go b/.history/models/modelbookimg/graphicform_20220819164531.go new file mode 100644 index 0000000..47e3654 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164531.go @@ -0,0 +1,21 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStart int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164535.go b/.history/models/modelbookimg/graphicform_20220819164535.go new file mode 100644 index 0000000..448105e --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164535.go @@ -0,0 +1,21 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + g_visit_strat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164538.go b/.history/models/modelbookimg/graphicform_20220819164538.go new file mode 100644 index 0000000..ba8a251 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164538.go @@ -0,0 +1,21 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + Visit_strat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164540.go b/.history/models/modelbookimg/graphicform_20220819164540.go new file mode 100644 index 0000000..44a5fd0 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164540.go @@ -0,0 +1,21 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164552.go b/.history/models/modelbookimg/graphicform_20220819164552.go new file mode 100644 index 0000000..db52e9a --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164552.go @@ -0,0 +1,21 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164555.go b/.history/models/modelbookimg/graphicform_20220819164555.go new file mode 100644 index 0000000..5dfe6b4 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164555.go @@ -0,0 +1,22 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164602.go b/.history/models/modelbookimg/graphicform_20220819164602.go new file mode 100644 index 0000000..c6dea48 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164602.go @@ -0,0 +1,22 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164604.go b/.history/models/modelbookimg/graphicform_20220819164604.go new file mode 100644 index 0000000..00b375d --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164604.go @@ -0,0 +1,22 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164612.go b/.history/models/modelbookimg/graphicform_20220819164612.go new file mode 100644 index 0000000..40492f0 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164612.go @@ -0,0 +1,22 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164614.go b/.history/models/modelbookimg/graphicform_20220819164614.go new file mode 100644 index 0000000..a301b19 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164614.go @@ -0,0 +1,22 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164618.go b/.history/models/modelbookimg/graphicform_20220819164618.go new file mode 100644 index 0000000..911d059 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164618.go @@ -0,0 +1,22 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:bigint unsigned;default:50;comment:排序"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164624.go b/.history/models/modelbookimg/graphicform_20220819164624.go new file mode 100644 index 0000000..85ff681 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164624.go @@ -0,0 +1,22 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:50;comment:排序"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164627.go b/.history/models/modelbookimg/graphicform_20220819164627.go new file mode 100644 index 0000000..2e0d845 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164627.go @@ -0,0 +1,22 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:排序"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164631.go b/.history/models/modelbookimg/graphicform_20220819164631.go new file mode 100644 index 0000000..5e414aa --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164631.go @@ -0,0 +1,22 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164636.go b/.history/models/modelbookimg/graphicform_20220819164636.go new file mode 100644 index 0000000..c0a8dac --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164636.go @@ -0,0 +1,23 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164645.go b/.history/models/modelbookimg/graphicform_20220819164645.go new file mode 100644 index 0000000..b7e215e --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164645.go @@ -0,0 +1,23 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164648.go b/.history/models/modelbookimg/graphicform_20220819164648.go new file mode 100644 index 0000000..4a90257 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164648.go @@ -0,0 +1,23 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164650.go b/.history/models/modelbookimg/graphicform_20220819164650.go new file mode 100644 index 0000000..d49095d --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164650.go @@ -0,0 +1,23 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164654.go b/.history/models/modelbookimg/graphicform_20220819164654.go new file mode 100644 index 0000000..b53ae6f --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164654.go @@ -0,0 +1,23 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164659.go b/.history/models/modelbookimg/graphicform_20220819164659.go new file mode 100644 index 0000000..2e69476 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164659.go @@ -0,0 +1,23 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"state" gorm:"column:g_add_time;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164702.go b/.history/models/modelbookimg/graphicform_20220819164702.go new file mode 100644 index 0000000..1e2cb58 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164702.go @@ -0,0 +1,23 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164709.go b/.history/models/modelbookimg/graphicform_20220819164709.go new file mode 100644 index 0000000..978261e --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164709.go @@ -0,0 +1,23 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164711.go b/.history/models/modelbookimg/graphicform_20220819164711.go new file mode 100644 index 0000000..05ae730 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164711.go @@ -0,0 +1,23 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164713.go b/.history/models/modelbookimg/graphicform_20220819164713.go new file mode 100644 index 0000000..c8c7d50 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164713.go @@ -0,0 +1,23 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164716.go b/.history/models/modelbookimg/graphicform_20220819164716.go new file mode 100644 index 0000000..0b98ba2 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164716.go @@ -0,0 +1,23 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164722.go b/.history/models/modelbookimg/graphicform_20220819164722.go new file mode 100644 index 0000000..30ecc17 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164722.go @@ -0,0 +1,23 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164724.go b/.history/models/modelbookimg/graphicform_20220819164724.go new file mode 100644 index 0000000..cfe0910 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164724.go @@ -0,0 +1,24 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164731.go b/.history/models/modelbookimg/graphicform_20220819164731.go new file mode 100644 index 0000000..967a3ef --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164731.go @@ -0,0 +1,24 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + eiteTime +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164734.go b/.history/models/modelbookimg/graphicform_20220819164734.go new file mode 100644 index 0000000..3b8ffc9 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164734.go @@ -0,0 +1,24 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164737.go b/.history/models/modelbookimg/graphicform_20220819164737.go new file mode 100644 index 0000000..969d01b --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164737.go @@ -0,0 +1,24 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164739.go b/.history/models/modelbookimg/graphicform_20220819164739.go new file mode 100644 index 0000000..4ae481d --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164739.go @@ -0,0 +1,24 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164740.go b/.history/models/modelbookimg/graphicform_20220819164740.go new file mode 100644 index 0000000..da05058 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164740.go @@ -0,0 +1,24 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164744.go b/.history/models/modelbookimg/graphicform_20220819164744.go new file mode 100644 index 0000000..59a8b29 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164744.go @@ -0,0 +1,24 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164749.go b/.history/models/modelbookimg/graphicform_20220819164749.go new file mode 100644 index 0000000..08fbe40 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164749.go @@ -0,0 +1,24 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"addtime" gorm:"column:g_eite_time;type:bigint unsigned;default:0;comment:写入时间"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164752.go b/.history/models/modelbookimg/graphicform_20220819164752.go new file mode 100644 index 0000000..2f7a627 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164752.go @@ -0,0 +1,24 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint unsigned;default:0;comment:写入时间"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164759.go b/.history/models/modelbookimg/graphicform_20220819164759.go new file mode 100644 index 0000000..2aad30a --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164759.go @@ -0,0 +1,24 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;default:0;comment:写入时间"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164804.go b/.history/models/modelbookimg/graphicform_20220819164804.go new file mode 100644 index 0000000..278b53a --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164804.go @@ -0,0 +1,24 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:写入时间"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164807.go b/.history/models/modelbookimg/graphicform_20220819164807.go new file mode 100644 index 0000000..84ccfdf --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164807.go @@ -0,0 +1,24 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164808.go b/.history/models/modelbookimg/graphicform_20220819164808.go new file mode 100644 index 0000000..84ccfdf --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164808.go @@ -0,0 +1,24 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164819.go b/.history/models/modelbookimg/graphicform_20220819164819.go new file mode 100644 index 0000000..8294718 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164819.go @@ -0,0 +1,25 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164821.go b/.history/models/modelbookimg/graphicform_20220819164821.go new file mode 100644 index 0000000..5c81ad4 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164821.go @@ -0,0 +1,25 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164823.go b/.history/models/modelbookimg/graphicform_20220819164823.go new file mode 100644 index 0000000..716032c --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164823.go @@ -0,0 +1,25 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164826.go b/.history/models/modelbookimg/graphicform_20220819164826.go new file mode 100644 index 0000000..39931ac --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164826.go @@ -0,0 +1,25 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64`json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164828.go b/.history/models/modelbookimg/graphicform_20220819164828.go new file mode 100644 index 0000000..7adc01b --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164828.go @@ -0,0 +1,25 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164837.go b/.history/models/modelbookimg/graphicform_20220819164837.go new file mode 100644 index 0000000..56896fb --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164837.go @@ -0,0 +1,25 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164841.go b/.history/models/modelbookimg/graphicform_20220819164841.go new file mode 100644 index 0000000..554fbd1 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164841.go @@ -0,0 +1,25 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:修改时间"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164848.go b/.history/models/modelbookimg/graphicform_20220819164848.go new file mode 100644 index 0000000..cbede38 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164848.go @@ -0,0 +1,25 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164852.go b/.history/models/modelbookimg/graphicform_20220819164852.go new file mode 100644 index 0000000..48f1eaa --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164852.go @@ -0,0 +1,26 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164901.go b/.history/models/modelbookimg/graphicform_20220819164901.go new file mode 100644 index 0000000..971eed6 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164901.go @@ -0,0 +1,26 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + Bf +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164905.go b/.history/models/modelbookimg/graphicform_20220819164905.go new file mode 100644 index 0000000..144e264 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164905.go @@ -0,0 +1,26 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164907.go b/.history/models/modelbookimg/graphicform_20220819164907.go new file mode 100644 index 0000000..28a5e42 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164907.go @@ -0,0 +1,26 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164909.go b/.history/models/modelbookimg/graphicform_20220819164909.go new file mode 100644 index 0000000..bdf9797 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164909.go @@ -0,0 +1,26 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164912.go b/.history/models/modelbookimg/graphicform_20220819164912.go new file mode 100644 index 0000000..706d605 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164912.go @@ -0,0 +1,26 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164915.go b/.history/models/modelbookimg/graphicform_20220819164915.go new file mode 100644 index 0000000..20b9146 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164915.go @@ -0,0 +1,26 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"userkey" gorm:"column:g_bf_id;type:bigint;comment:编辑人员"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164917.go b/.history/models/modelbookimg/graphicform_20220819164917.go new file mode 100644 index 0000000..8ec1906 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164917.go @@ -0,0 +1,26 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint;comment:编辑人员"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164925.go b/.history/models/modelbookimg/graphicform_20220819164925.go new file mode 100644 index 0000000..fde5115 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164925.go @@ -0,0 +1,26 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;comment:编辑人员"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164929.go b/.history/models/modelbookimg/graphicform_20220819164929.go new file mode 100644 index 0000000..5a67f60 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164929.go @@ -0,0 +1,26 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;comment:分厂"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164931.go b/.history/models/modelbookimg/graphicform_20220819164931.go new file mode 100644 index 0000000..a5c134d --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164931.go @@ -0,0 +1,27 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;comment:分厂"` + +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164953.go b/.history/models/modelbookimg/graphicform_20220819164953.go new file mode 100644 index 0000000..bf9f6e7 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164953.go @@ -0,0 +1,27 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;comment:分厂"` + WsId +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819164959.go b/.history/models/modelbookimg/graphicform_20220819164959.go new file mode 100644 index 0000000..0a95f0f --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819164959.go @@ -0,0 +1,27 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;comment:分厂"` + WsId int64 +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165001.go b/.history/models/modelbookimg/graphicform_20220819165001.go new file mode 100644 index 0000000..c080e3e --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165001.go @@ -0,0 +1,27 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;comment:分厂"` + WsId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;comment:分厂"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165005.go b/.history/models/modelbookimg/graphicform_20220819165005.go new file mode 100644 index 0000000..9dd8ff8 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165005.go @@ -0,0 +1,27 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;comment:分厂"` + WsId int64 `json:"bfid" gorm:"column:g_ws_id;type:bigint unsigned;comment:分厂"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165008.go b/.history/models/modelbookimg/graphicform_20220819165008.go new file mode 100644 index 0000000..6953daf --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165008.go @@ -0,0 +1,27 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;comment:分厂"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165013.go b/.history/models/modelbookimg/graphicform_20220819165013.go new file mode 100644 index 0000000..c6cbfdb --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165013.go @@ -0,0 +1,27 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;comment:工段"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165016.go b/.history/models/modelbookimg/graphicform_20220819165016.go new file mode 100644 index 0000000..ba4df2b --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165016.go @@ -0,0 +1,27 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;;comment:工段"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165018.go b/.history/models/modelbookimg/graphicform_20220819165018.go new file mode 100644 index 0000000..b5b5bc7 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165018.go @@ -0,0 +1,27 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;defa;comment:工段"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165021.go b/.history/models/modelbookimg/graphicform_20220819165021.go new file mode 100644 index 0000000..bae71a6 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165021.go @@ -0,0 +1,27 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165032.go b/.history/models/modelbookimg/graphicform_20220819165032.go new file mode 100644 index 0000000..7aea8c3 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165032.go @@ -0,0 +1,27 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165052.go b/.history/models/modelbookimg/graphicform_20220819165052.go new file mode 100644 index 0000000..7aea8c3 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165052.go @@ -0,0 +1,27 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165100.go b/.history/models/modelbookimg/graphicform_20220819165100.go new file mode 100644 index 0000000..dcf24e9 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165100.go @@ -0,0 +1,28 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + T +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165102.go b/.history/models/modelbookimg/graphicform_20220819165102.go new file mode 100644 index 0000000..778f0ab --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165102.go @@ -0,0 +1,28 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165104.go b/.history/models/modelbookimg/graphicform_20220819165104.go new file mode 100644 index 0000000..c87fc45 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165104.go @@ -0,0 +1,28 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165105.go b/.history/models/modelbookimg/graphicform_20220819165105.go new file mode 100644 index 0000000..94fd90a --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165105.go @@ -0,0 +1,28 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165108.go b/.history/models/modelbookimg/graphicform_20220819165108.go new file mode 100644 index 0000000..c327b1e --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165108.go @@ -0,0 +1,28 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165113.go b/.history/models/modelbookimg/graphicform_20220819165113.go new file mode 100644 index 0000000..06dde0b --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165113.go @@ -0,0 +1,28 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165120.go b/.history/models/modelbookimg/graphicform_20220819165120.go new file mode 100644 index 0000000..b920fb3 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165120.go @@ -0,0 +1,28 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:工段"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165127.go b/.history/models/modelbookimg/graphicform_20220819165127.go new file mode 100644 index 0000000..9e9cae6 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165127.go @@ -0,0 +1,28 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165128.go b/.history/models/modelbookimg/graphicform_20220819165128.go new file mode 100644 index 0000000..5d5a884 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165128.go @@ -0,0 +1,28 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165131.go b/.history/models/modelbookimg/graphicform_20220819165131.go new file mode 100644 index 0000000..0c06191 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165131.go @@ -0,0 +1,29 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165137.go b/.history/models/modelbookimg/graphicform_20220819165137.go new file mode 100644 index 0000000..ce0f5ad --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165137.go @@ -0,0 +1,29 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + Dow +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165141.go b/.history/models/modelbookimg/graphicform_20220819165141.go new file mode 100644 index 0000000..91e193e --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165141.go @@ -0,0 +1,29 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoad +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165143.go b/.history/models/modelbookimg/graphicform_20220819165143.go new file mode 100644 index 0000000..66782e9 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165143.go @@ -0,0 +1,29 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165151.go b/.history/models/modelbookimg/graphicform_20220819165151.go new file mode 100644 index 0000000..bf3eaed --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165151.go @@ -0,0 +1,29 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165154.go b/.history/models/modelbookimg/graphicform_20220819165154.go new file mode 100644 index 0000000..500cdf9 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165154.go @@ -0,0 +1,29 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165158.go b/.history/models/modelbookimg/graphicform_20220819165158.go new file mode 100644 index 0000000..4b1b96d --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165158.go @@ -0,0 +1,29 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165204.go b/.history/models/modelbookimg/graphicform_20220819165204.go new file mode 100644 index 0000000..d231750 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165204.go @@ -0,0 +1,29 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"download" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165206.go b/.history/models/modelbookimg/graphicform_20220819165206.go new file mode 100644 index 0000000..e41e769 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165206.go @@ -0,0 +1,29 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165209.go b/.history/models/modelbookimg/graphicform_20220819165209.go new file mode 100644 index 0000000..59cdea8 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165209.go @@ -0,0 +1,29 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:bigint unsigned;default:0;comment:班组"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165219.go b/.history/models/modelbookimg/graphicform_20220819165219.go new file mode 100644 index 0000000..d462e69 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165219.go @@ -0,0 +1,29 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:0;comment:班组"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165223.go b/.history/models/modelbookimg/graphicform_20220819165223.go new file mode 100644 index 0000000..98579fa --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165223.go @@ -0,0 +1,29 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:班组"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165226.go b/.history/models/modelbookimg/graphicform_20220819165226.go new file mode 100644 index 0000000..06a0f5d --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165226.go @@ -0,0 +1,29 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165228.go b/.history/models/modelbookimg/graphicform_20220819165228.go new file mode 100644 index 0000000..248e0d3 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165228.go @@ -0,0 +1,30 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165237.go b/.history/models/modelbookimg/graphicform_20220819165237.go new file mode 100644 index 0000000..3d61307 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165237.go @@ -0,0 +1,30 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165241.go b/.history/models/modelbookimg/graphicform_20220819165241.go new file mode 100644 index 0000000..12c127f --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165241.go @@ -0,0 +1,30 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165244.go b/.history/models/modelbookimg/graphicform_20220819165244.go new file mode 100644 index 0000000..0aa09ac --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165244.go @@ -0,0 +1,30 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165249.go b/.history/models/modelbookimg/graphicform_20220819165249.go new file mode 100644 index 0000000..234b867 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165249.go @@ -0,0 +1,30 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"downloadstate" gorm:"column:g_read;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165251.go b/.history/models/modelbookimg/graphicform_20220819165251.go new file mode 100644 index 0000000..0bb26e6 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165251.go @@ -0,0 +1,30 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165255.go b/.history/models/modelbookimg/graphicform_20220819165255.go new file mode 100644 index 0000000..521b950 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165255.go @@ -0,0 +1,30 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:iny unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165256.go b/.history/models/modelbookimg/graphicform_20220819165256.go new file mode 100644 index 0000000..5fbbb43 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165256.go @@ -0,0 +1,30 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165300.go b/.history/models/modelbookimg/graphicform_20220819165300.go new file mode 100644 index 0000000..f1eba6c --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165300.go @@ -0,0 +1,30 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:是否允许下载(1:允许;2:禁止)"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165308.go b/.history/models/modelbookimg/graphicform_20220819165308.go new file mode 100644 index 0000000..fd0367d --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165308.go @@ -0,0 +1,30 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165313.go b/.history/models/modelbookimg/graphicform_20220819165313.go new file mode 100644 index 0000000..fd0367d --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165313.go @@ -0,0 +1,30 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165322.go b/.history/models/modelbookimg/graphicform_20220819165322.go new file mode 100644 index 0000000..a220a9e --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165322.go @@ -0,0 +1,31 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165324.go b/.history/models/modelbookimg/graphicform_20220819165324.go new file mode 100644 index 0000000..e9ec178 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165324.go @@ -0,0 +1,31 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165327.go b/.history/models/modelbookimg/graphicform_20220819165327.go new file mode 100644 index 0000000..36f05c9 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165327.go @@ -0,0 +1,31 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165331.go b/.history/models/modelbookimg/graphicform_20220819165331.go new file mode 100644 index 0000000..ac015ae --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165331.go @@ -0,0 +1,31 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"read" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:阅读量"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165334.go b/.history/models/modelbookimg/graphicform_20220819165334.go new file mode 100644 index 0000000..e592a81 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165334.go @@ -0,0 +1,31 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:阅读量"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165341.go b/.history/models/modelbookimg/graphicform_20220819165341.go new file mode 100644 index 0000000..520a75a --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165341.go @@ -0,0 +1,31 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165343.go b/.history/models/modelbookimg/graphicform_20220819165343.go new file mode 100644 index 0000000..d1c6b63 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165343.go @@ -0,0 +1,32 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165353.go b/.history/models/modelbookimg/graphicform_20220819165353.go new file mode 100644 index 0000000..0517870 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165353.go @@ -0,0 +1,32 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + g_collection_sum +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165355.go b/.history/models/modelbookimg/graphicform_20220819165355.go new file mode 100644 index 0000000..d9b7119 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165355.go @@ -0,0 +1,32 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + Collection_sum +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165358.go b/.history/models/modelbookimg/graphicform_20220819165358.go new file mode 100644 index 0000000..08faa8c --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165358.go @@ -0,0 +1,32 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165359.go b/.history/models/modelbookimg/graphicform_20220819165359.go new file mode 100644 index 0000000..a8974ac --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165359.go @@ -0,0 +1,32 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165401.go b/.history/models/modelbookimg/graphicform_20220819165401.go new file mode 100644 index 0000000..100902d --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165401.go @@ -0,0 +1,32 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165405.go b/.history/models/modelbookimg/graphicform_20220819165405.go new file mode 100644 index 0000000..d674618 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165405.go @@ -0,0 +1,32 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165412.go b/.history/models/modelbookimg/graphicform_20220819165412.go new file mode 100644 index 0000000..e8fd142 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165412.go @@ -0,0 +1,32 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"comsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:评论数"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165415.go b/.history/models/modelbookimg/graphicform_20220819165415.go new file mode 100644 index 0000000..2ee7b90 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165415.go @@ -0,0 +1,32 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"g_collection_sum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:评论数"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165416.go b/.history/models/modelbookimg/graphicform_20220819165416.go new file mode 100644 index 0000000..6afb242 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165416.go @@ -0,0 +1,32 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collection_sum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:评论数"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165417.go b/.history/models/modelbookimg/graphicform_20220819165417.go new file mode 100644 index 0000000..761d4ed --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165417.go @@ -0,0 +1,32 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:评论数"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165436.go b/.history/models/modelbookimg/graphicform_20220819165436.go new file mode 100644 index 0000000..6001aab --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165436.go @@ -0,0 +1,32 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165438.go b/.history/models/modelbookimg/graphicform_20220819165438.go new file mode 100644 index 0000000..46321e8 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165438.go @@ -0,0 +1,33 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165450.go b/.history/models/modelbookimg/graphicform_20220819165450.go new file mode 100644 index 0000000..50cb0eb --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165450.go @@ -0,0 +1,33 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165456.go b/.history/models/modelbookimg/graphicform_20220819165456.go new file mode 100644 index 0000000..dbaff12 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165456.go @@ -0,0 +1,33 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165458.go b/.history/models/modelbookimg/graphicform_20220819165458.go new file mode 100644 index 0000000..f3f3fe2 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165458.go @@ -0,0 +1,33 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165502.go b/.history/models/modelbookimg/graphicform_20220819165502.go new file mode 100644 index 0000000..ad70688 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165502.go @@ -0,0 +1,33 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165506.go b/.history/models/modelbookimg/graphicform_20220819165506.go new file mode 100644 index 0000000..497d3a2 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165506.go @@ -0,0 +1,33 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"collectionsum" gorm:"column:g_likes;type:int unsigned;default:0;comment:收藏数"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165509.go b/.history/models/modelbookimg/graphicform_20220819165509.go new file mode 100644 index 0000000..ca6e010 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165509.go @@ -0,0 +1,33 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:收藏数"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165516.go b/.history/models/modelbookimg/graphicform_20220819165516.go new file mode 100644 index 0000000..c547a3d --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165516.go @@ -0,0 +1,33 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165518.go b/.history/models/modelbookimg/graphicform_20220819165518.go new file mode 100644 index 0000000..d9039ca --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165518.go @@ -0,0 +1,34 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165530.go b/.history/models/modelbookimg/graphicform_20220819165530.go new file mode 100644 index 0000000..5545320 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165530.go @@ -0,0 +1,35 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165533.go b/.history/models/modelbookimg/graphicform_20220819165533.go new file mode 100644 index 0000000..bd9b98a --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165533.go @@ -0,0 +1,35 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Likes int `json:"likes" gorm:"column:g_recommend;type:int unsigned;default:0;comment:点赞数"` + +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165539.go b/.history/models/modelbookimg/graphicform_20220819165539.go new file mode 100644 index 0000000..e30ed8b --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165539.go @@ -0,0 +1,35 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"likes" gorm:"column:g_recommend;type:int unsigned;default:0;comment:点赞数"` + +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165545.go b/.history/models/modelbookimg/graphicform_20220819165545.go new file mode 100644 index 0000000..1bf7a16 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165545.go @@ -0,0 +1,35 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"likes" gorm:"column:g_recommend;type:int unsigned;default:0;comment:点赞数"` + +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165549.go b/.history/models/modelbookimg/graphicform_20220819165549.go new file mode 100644 index 0000000..e131da2 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165549.go @@ -0,0 +1,34 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"likes" gorm:"column:g_recommend;type:tinyint unsigned;default:0;comment:点赞数"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165551.go b/.history/models/modelbookimg/graphicform_20220819165551.go new file mode 100644 index 0000000..5773d00 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165551.go @@ -0,0 +1,34 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"likes" gorm:"column:g_recommend;type:tinyint unsigned;default:0;comment:点赞数"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165555.go b/.history/models/modelbookimg/graphicform_20220819165555.go new file mode 100644 index 0000000..d787c49 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165555.go @@ -0,0 +1,34 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"likes" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:点赞数"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165558.go b/.history/models/modelbookimg/graphicform_20220819165558.go new file mode 100644 index 0000000..de4c84c --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165558.go @@ -0,0 +1,34 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"likes" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165559.go b/.history/models/modelbookimg/graphicform_20220819165559.go new file mode 100644 index 0000000..de4c84c --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165559.go @@ -0,0 +1,34 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"likes" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165606.go b/.history/models/modelbookimg/graphicform_20220819165606.go new file mode 100644 index 0000000..51de545 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165606.go @@ -0,0 +1,34 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165611.go b/.history/models/modelbookimg/graphicform_20220819165611.go new file mode 100644 index 0000000..f2aa372 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165611.go @@ -0,0 +1,35 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165621.go b/.history/models/modelbookimg/graphicform_20220819165621.go new file mode 100644 index 0000000..6cc5d85 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165621.go @@ -0,0 +1,35 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Conte +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165622.go b/.history/models/modelbookimg/graphicform_20220819165622.go new file mode 100644 index 0000000..8abf334 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165622.go @@ -0,0 +1,35 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165625.go b/.history/models/modelbookimg/graphicform_20220819165625.go new file mode 100644 index 0000000..f06de34 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165625.go @@ -0,0 +1,35 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165628.go b/.history/models/modelbookimg/graphicform_20220819165628.go new file mode 100644 index 0000000..7c28473 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165628.go @@ -0,0 +1,35 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165632.go b/.history/models/modelbookimg/graphicform_20220819165632.go new file mode 100644 index 0000000..1d28261 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165632.go @@ -0,0 +1,35 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165645.go b/.history/models/modelbookimg/graphicform_20220819165645.go new file mode 100644 index 0000000..2c75e75 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165645.go @@ -0,0 +1,35 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"recommend" gorm:"column:g_co;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165647.go b/.history/models/modelbookimg/graphicform_20220819165647.go new file mode 100644 index 0000000..d8a9d3c --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165647.go @@ -0,0 +1,35 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"recommend" gorm:"column:g_content;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165651.go b/.history/models/modelbookimg/graphicform_20220819165651.go new file mode 100644 index 0000000..4f2c7ec --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165651.go @@ -0,0 +1,35 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165701.go b/.history/models/modelbookimg/graphicform_20220819165701.go new file mode 100644 index 0000000..7614c5e --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165701.go @@ -0,0 +1,35 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:long;default:2;comment:推荐(1:推荐,2:不推荐)"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165703.go b/.history/models/modelbookimg/graphicform_20220819165703.go new file mode 100644 index 0000000..8b8f02e --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165703.go @@ -0,0 +1,35 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;default:2;comment:推荐(1:推荐,2:不推荐)"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165708.go b/.history/models/modelbookimg/graphicform_20220819165708.go new file mode 100644 index 0000000..e230aa4 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165708.go @@ -0,0 +1,35 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:推荐(1:推荐,2:不推荐)"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165715.go b/.history/models/modelbookimg/graphicform_20220819165715.go new file mode 100644 index 0000000..7022cf4 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165715.go @@ -0,0 +1,35 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165720.go b/.history/models/modelbookimg/graphicform_20220819165720.go new file mode 100644 index 0000000..550d4f9 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165720.go @@ -0,0 +1,35 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165722.go b/.history/models/modelbookimg/graphicform_20220819165722.go new file mode 100644 index 0000000..2f2d921 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165722.go @@ -0,0 +1,36 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165730.go b/.history/models/modelbookimg/graphicform_20220819165730.go new file mode 100644 index 0000000..d8afdea --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165730.go @@ -0,0 +1,36 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + S +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165734.go b/.history/models/modelbookimg/graphicform_20220819165734.go new file mode 100644 index 0000000..cbb4867 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165734.go @@ -0,0 +1,36 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165737.go b/.history/models/modelbookimg/graphicform_20220819165737.go new file mode 100644 index 0000000..5bdd22a --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165737.go @@ -0,0 +1,36 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165739.go b/.history/models/modelbookimg/graphicform_20220819165739.go new file mode 100644 index 0000000..808335c --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165739.go @@ -0,0 +1,36 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165742.go b/.history/models/modelbookimg/graphicform_20220819165742.go new file mode 100644 index 0000000..ae11ef9 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165742.go @@ -0,0 +1,36 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165746.go b/.history/models/modelbookimg/graphicform_20220819165746.go new file mode 100644 index 0000000..dab173f --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165746.go @@ -0,0 +1,36 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_content;type:longtext;comment:图文详情"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165750.go b/.history/models/modelbookimg/graphicform_20220819165750.go new file mode 100644 index 0000000..a9e878f --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165750.go @@ -0,0 +1,36 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:longtext;comment:图文详情"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165754.go b/.history/models/modelbookimg/graphicform_20220819165754.go new file mode 100644 index 0000000..aaab6c9 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165754.go @@ -0,0 +1,36 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;comment:图文详情"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165801.go b/.history/models/modelbookimg/graphicform_20220819165801.go new file mode 100644 index 0000000..c8fb5a5 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165801.go @@ -0,0 +1,36 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:图文详情"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165804.go b/.history/models/modelbookimg/graphicform_20220819165804.go new file mode 100644 index 0000000..4fe9b0f --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165804.go @@ -0,0 +1,36 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165805.go b/.history/models/modelbookimg/graphicform_20220819165805.go new file mode 100644 index 0000000..f60a49f --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165805.go @@ -0,0 +1,37 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165813.go b/.history/models/modelbookimg/graphicform_20220819165813.go new file mode 100644 index 0000000..4a6360e --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165813.go @@ -0,0 +1,37 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165818.go b/.history/models/modelbookimg/graphicform_20220819165818.go new file mode 100644 index 0000000..c5602dd --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165818.go @@ -0,0 +1,37 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165822.go b/.history/models/modelbookimg/graphicform_20220819165822.go new file mode 100644 index 0000000..d5d4821 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165822.go @@ -0,0 +1,37 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165826.go b/.history/models/modelbookimg/graphicform_20220819165826.go new file mode 100644 index 0000000..a1ea29a --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165826.go @@ -0,0 +1,37 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"stepon" gorm:"column:g_range;type:int unsigned;default:0;comment:踩数量"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165829.go b/.history/models/modelbookimg/graphicform_20220819165829.go new file mode 100644 index 0000000..aeb0e00 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165829.go @@ -0,0 +1,37 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:int unsigned;default:0;comment:踩数量"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165835.go b/.history/models/modelbookimg/graphicform_20220819165835.go new file mode 100644 index 0000000..6b11768 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165835.go @@ -0,0 +1,37 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;default:0;comment:踩数量"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165843.go b/.history/models/modelbookimg/graphicform_20220819165843.go new file mode 100644 index 0000000..62243a8 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165843.go @@ -0,0 +1,37 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:踩数量"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165847.go b/.history/models/modelbookimg/graphicform_20220819165847.go new file mode 100644 index 0000000..377102b --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165847.go @@ -0,0 +1,37 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165849.go b/.history/models/modelbookimg/graphicform_20220819165849.go new file mode 100644 index 0000000..2f986e3 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165849.go @@ -0,0 +1,38 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165900.go b/.history/models/modelbookimg/graphicform_20220819165900.go new file mode 100644 index 0000000..8048f01 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165900.go @@ -0,0 +1,39 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165906.go b/.history/models/modelbookimg/graphicform_20220819165906.go new file mode 100644 index 0000000..bb73584 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165906.go @@ -0,0 +1,39 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + Write string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165909.go b/.history/models/modelbookimg/graphicform_20220819165909.go new file mode 100644 index 0000000..e8931fa --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165909.go @@ -0,0 +1,39 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165915.go b/.history/models/modelbookimg/graphicform_20220819165915.go new file mode 100644 index 0000000..54fc8b2 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165915.go @@ -0,0 +1,39 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"range" gorm:"column:g_write_bfid;type:mediumtext;comment:自定义可见范围"` + +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165921.go b/.history/models/modelbookimg/graphicform_20220819165921.go new file mode 100644 index 0000000..c3c4a8e --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165921.go @@ -0,0 +1,39 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"write_bfid" gorm:"column:g_write_bfid;type:mediumtext;comment:自定义可见范围"` + +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165931.go b/.history/models/modelbookimg/graphicform_20220819165931.go new file mode 100644 index 0000000..2106f32 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165931.go @@ -0,0 +1,38 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"write_bfid" gorm:"column:g_write_bfid;type:bigint unsigned;comment:自定义可见范围"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165936.go b/.history/models/modelbookimg/graphicform_20220819165936.go new file mode 100644 index 0000000..20dc42b --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165936.go @@ -0,0 +1,38 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"write_bfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:;comment:自定义可见范围"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165938.go b/.history/models/modelbookimg/graphicform_20220819165938.go new file mode 100644 index 0000000..cd7df62 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165938.go @@ -0,0 +1,38 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"write_bfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:自定义可见范围"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165942.go b/.history/models/modelbookimg/graphicform_20220819165942.go new file mode 100644 index 0000000..0f8b269 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165942.go @@ -0,0 +1,38 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"write_bfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165943.go b/.history/models/modelbookimg/graphicform_20220819165943.go new file mode 100644 index 0000000..46057ba --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165943.go @@ -0,0 +1,39 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"write_bfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819165957.go b/.history/models/modelbookimg/graphicform_20220819165957.go new file mode 100644 index 0000000..75f4830 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819165957.go @@ -0,0 +1,39 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"write_bfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819170002.go b/.history/models/modelbookimg/graphicform_20220819170002.go new file mode 100644 index 0000000..3392920 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819170002.go @@ -0,0 +1,39 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"write_bfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"write_bfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819170005.go b/.history/models/modelbookimg/graphicform_20220819170005.go new file mode 100644 index 0000000..8f35964 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819170005.go @@ -0,0 +1,39 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"write_bfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"write_bfid" gorm:"column:g_text_name;type:bigint unsigned;default:0;comment:写入分厂"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819170008.go b/.history/models/modelbookimg/graphicform_20220819170008.go new file mode 100644 index 0000000..a16070e --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819170008.go @@ -0,0 +1,39 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"write_bfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:bigint unsigned;default:0;comment:写入分厂"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819170017.go b/.history/models/modelbookimg/graphicform_20220819170017.go new file mode 100644 index 0000000..dedbd97 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819170017.go @@ -0,0 +1,39 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"write_bfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:0;comment:写入分厂"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819170021.go b/.history/models/modelbookimg/graphicform_20220819170021.go new file mode 100644 index 0000000..b7f588f --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819170021.go @@ -0,0 +1,39 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"write_bfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:;comment:写入分厂"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819170022.go b/.history/models/modelbookimg/graphicform_20220819170022.go new file mode 100644 index 0000000..86575d3 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819170022.go @@ -0,0 +1,39 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"write_bfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:写入分厂"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819170025.go b/.history/models/modelbookimg/graphicform_20220819170025.go new file mode 100644 index 0000000..7419744 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819170025.go @@ -0,0 +1,39 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"write_bfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220819170031.go b/.history/models/modelbookimg/graphicform_20220819170031.go new file mode 100644 index 0000000..7419744 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220819170031.go @@ -0,0 +1,39 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"write_bfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220821075731.go b/.history/models/modelbookimg/graphicform_20220821075731.go new file mode 100644 index 0000000..8004439 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821075731.go @@ -0,0 +1,40 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"write_bfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220821075744.go b/.history/models/modelbookimg/graphicform_20220821075744.go new file mode 100644 index 0000000..8029601 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821075744.go @@ -0,0 +1,40 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"write_bfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220821075748.go b/.history/models/modelbookimg/graphicform_20220821075748.go new file mode 100644 index 0000000..477e35c --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821075748.go @@ -0,0 +1,40 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"write_bfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220821075818.go b/.history/models/modelbookimg/graphicform_20220821075818.go new file mode 100644 index 0000000..858629e --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821075818.go @@ -0,0 +1,40 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"write_bfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220821075825.go b/.history/models/modelbookimg/graphicform_20220821075825.go new file mode 100644 index 0000000..c3b6cd4 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821075825.go @@ -0,0 +1,40 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"write_bfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"textname" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档名称"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220821075831.go b/.history/models/modelbookimg/graphicform_20220821075831.go new file mode 100644 index 0000000..d319ee6 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821075831.go @@ -0,0 +1,40 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"write_bfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"test" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档名称"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220821075833.go b/.history/models/modelbookimg/graphicform_20220821075833.go new file mode 100644 index 0000000..294531a --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821075833.go @@ -0,0 +1,40 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"write_bfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档名称"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220821075843.go b/.history/models/modelbookimg/graphicform_20220821075843.go new file mode 100644 index 0000000..f9af34f --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821075843.go @@ -0,0 +1,40 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"write_bfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220821075845.go b/.history/models/modelbookimg/graphicform_20220821075845.go new file mode 100644 index 0000000..e40a118 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821075845.go @@ -0,0 +1,41 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"write_bfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220821075909.go b/.history/models/modelbookimg/graphicform_20220821075909.go new file mode 100644 index 0000000..e40a118 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821075909.go @@ -0,0 +1,41 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"write_bfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220821075914.go b/.history/models/modelbookimg/graphicform_20220821075914.go new file mode 100644 index 0000000..f5be79e --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821075914.go @@ -0,0 +1,42 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"write_bfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220821075916.go b/.history/models/modelbookimg/graphicform_20220821075916.go new file mode 100644 index 0000000..0f42519 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821075916.go @@ -0,0 +1,42 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"write_bfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + TestUrl string `json:"testurl" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:正文文档URL"` + +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220821075920.go b/.history/models/modelbookimg/graphicform_20220821075920.go new file mode 100644 index 0000000..3a123e2 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821075920.go @@ -0,0 +1,42 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"write_bfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + TestUrl string `json:"physics" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:正文文档URL"` + +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220821075922.go b/.history/models/modelbookimg/graphicform_20220821075922.go new file mode 100644 index 0000000..1f5becc --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821075922.go @@ -0,0 +1,42 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"write_bfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + TestUrl string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:正文文档URL"` + +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220821075929.go b/.history/models/modelbookimg/graphicform_20220821075929.go new file mode 100644 index 0000000..3fe8f96 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821075929.go @@ -0,0 +1,42 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"write_bfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:正文文档URL"` + +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220821075930.go b/.history/models/modelbookimg/graphicform_20220821075930.go new file mode 100644 index 0000000..98cf9ce --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821075930.go @@ -0,0 +1,41 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"write_bfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:正文文档URL"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220821075940.go b/.history/models/modelbookimg/graphicform_20220821075940.go new file mode 100644 index 0000000..bb992a6 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821075940.go @@ -0,0 +1,41 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"write_bfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:物理地址"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220821075942.go b/.history/models/modelbookimg/graphicform_20220821075942.go new file mode 100644 index 0000000..405a094 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821075942.go @@ -0,0 +1,42 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"write_bfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:物理地址"` + +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220821075947.go b/.history/models/modelbookimg/graphicform_20220821075947.go new file mode 100644 index 0000000..fda4559 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821075947.go @@ -0,0 +1,42 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"write_bfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:物理地址"` + write +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220821075950.go b/.history/models/modelbookimg/graphicform_20220821075950.go new file mode 100644 index 0000000..c1f96cf --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821075950.go @@ -0,0 +1,42 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"write_bfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:物理地址"` + writeGrop +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220821075953.go b/.history/models/modelbookimg/graphicform_20220821075953.go new file mode 100644 index 0000000..f9e7495 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821075953.go @@ -0,0 +1,42 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"write_bfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:物理地址"` + writeGroup +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220821075955.go b/.history/models/modelbookimg/graphicform_20220821075955.go new file mode 100644 index 0000000..f13405d --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821075955.go @@ -0,0 +1,42 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"write_bfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:物理地址"` + WriteGroup +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220821075959.go b/.history/models/modelbookimg/graphicform_20220821075959.go new file mode 100644 index 0000000..430797b --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821075959.go @@ -0,0 +1,42 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"write_bfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:物理地址"` + WriteGroup string +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220821080012.go b/.history/models/modelbookimg/graphicform_20220821080012.go new file mode 100644 index 0000000..45c4b86 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821080012.go @@ -0,0 +1,42 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"write_bfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:物理地址"` + WriteGroup string `json:"write_bfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220821080013.go b/.history/models/modelbookimg/graphicform_20220821080013.go new file mode 100644 index 0000000..da0a5bc --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821080013.go @@ -0,0 +1,42 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"write_bfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:物理地址"` + WriteGroup int `json:"write_bfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220821080015.go b/.history/models/modelbookimg/graphicform_20220821080015.go new file mode 100644 index 0000000..ad02f7e --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821080015.go @@ -0,0 +1,42 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"write_bfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:物理地址"` + WriteGroup int64 `json:"write_bfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220821080022.go b/.history/models/modelbookimg/graphicform_20220821080022.go new file mode 100644 index 0000000..33c07f0 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821080022.go @@ -0,0 +1,42 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"write_bfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:物理地址"` + WriteGroup int64 `json:"write_bfid" gorm:"column:g_write_group;type:bigint unsigned;default:0;comment:写入分厂"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220821080026.go b/.history/models/modelbookimg/graphicform_20220821080026.go new file mode 100644 index 0000000..8690c3c --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821080026.go @@ -0,0 +1,42 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"write_bfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:物理地址"` + WriteGroup int64 `json:"write" gorm:"column:g_write_group;type:bigint unsigned;default:0;comment:写入分厂"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220821080035.go b/.history/models/modelbookimg/graphicform_20220821080035.go new file mode 100644 index 0000000..31db57a --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821080035.go @@ -0,0 +1,42 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"writebfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:物理地址"` + WriteGroup int64 `json:"write" gorm:"column:g_write_group;type:bigint unsigned;default:0;comment:写入分厂"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220821080039.go b/.history/models/modelbookimg/graphicform_20220821080039.go new file mode 100644 index 0000000..34ecafc --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821080039.go @@ -0,0 +1,42 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"writebfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:物理地址"` + WriteGroup int64 `json:"writegroup" gorm:"column:g_write_group;type:bigint unsigned;default:0;comment:写入分厂"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220821080055.go b/.history/models/modelbookimg/graphicform_20220821080055.go new file mode 100644 index 0000000..34ecafc --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821080055.go @@ -0,0 +1,42 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"writebfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:物理地址"` + WriteGroup int64 `json:"writegroup" gorm:"column:g_write_group;type:bigint unsigned;default:0;comment:写入分厂"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220821080057.go b/.history/models/modelbookimg/graphicform_20220821080057.go new file mode 100644 index 0000000..e96eb9d --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821080057.go @@ -0,0 +1,42 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"writebfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:物理地址"` + WriteGroup int64 `json:"writegroup" gorm:"column:g_write_group;type:bigint unsigned;default:3;comment:写入分厂"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220821080102.go b/.history/models/modelbookimg/graphicform_20220821080102.go new file mode 100644 index 0000000..3209f1f --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821080102.go @@ -0,0 +1,42 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"writebfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:物理地址"` + WriteGroup int64 `json:"writegroup" gorm:"column:g_write_group;type:bigint unsigned;default:3;comment:写入人员组织"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220821080103.go b/.history/models/modelbookimg/graphicform_20220821080103.go new file mode 100644 index 0000000..f72e5a7 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821080103.go @@ -0,0 +1,42 @@ +package modelbookimg + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"writebfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:物理地址"` + WriteGroup int64 `json:"writegroup" gorm:"column:g_write_group;type:bigint unsigned;default:3;comment:写入人员组织"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} diff --git a/.history/models/modelbookimg/graphicform_20220821080159.go b/.history/models/modelbookimg/graphicform_20220821080159.go new file mode 100644 index 0000000..62bde7b --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821080159.go @@ -0,0 +1,71 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"writebfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:物理地址"` + WriteGroup int64 `json:"writegroup" gorm:"column:g_write_group;type:bigint unsigned;default:3;comment:写入人员组织"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} + +// 编辑荣誉档案内容 +func (cont *HonoraryArchives) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取荣誉档案内容 +func (cont *HonoraryArchives) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *HonoraryArchives) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/graphicform_20220821080247.go b/.history/models/modelbookimg/graphicform_20220821080247.go new file mode 100644 index 0000000..5760289 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821080247.go @@ -0,0 +1,71 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"writebfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:物理地址"` + WriteGroup int64 `json:"writegroup" gorm:"column:g_write_group;type:bigint unsigned;default:3;comment:写入人员组织"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} + +// 编辑荣誉档案内容 +func (cont *GraphicForm) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取荣誉档案内容 +func (cont *HonoraryArchives) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *HonoraryArchives) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/graphicform_20220821080248.go b/.history/models/modelbookimg/graphicform_20220821080248.go new file mode 100644 index 0000000..5b971b2 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821080248.go @@ -0,0 +1,71 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"writebfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:物理地址"` + WriteGroup int64 `json:"writegroup" gorm:"column:g_write_group;type:bigint unsigned;default:3;comment:写入人员组织"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} + +// 编辑荣誉档案内容 +func (cont *GraphicForm) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取荣誉档案内容 +func (cont *GraphicForm) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *HonoraryArchives) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/graphicform_20220821080249.go b/.history/models/modelbookimg/graphicform_20220821080249.go new file mode 100644 index 0000000..c0637ff --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821080249.go @@ -0,0 +1,71 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"writebfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:物理地址"` + WriteGroup int64 `json:"writegroup" gorm:"column:g_write_group;type:bigint unsigned;default:3;comment:写入人员组织"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} + +// 编辑荣誉档案内容 +func (cont *GraphicForm) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取荣誉档案内容 +func (cont *GraphicForm) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *GraphicForm) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/graphicform_20220821080305.go b/.history/models/modelbookimg/graphicform_20220821080305.go new file mode 100644 index 0000000..90a96ac --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821080305.go @@ -0,0 +1,71 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"writebfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:物理地址"` + WriteGroup int64 `json:"writegroup" gorm:"column:g_write_group;type:bigint unsigned;default:3;comment:写入人员组织"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} + +// 编辑图文信息内容 +func (cont *GraphicForm) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取荣誉档案内容 +func (cont *GraphicForm) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *GraphicForm) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/graphicform_20220821080314.go b/.history/models/modelbookimg/graphicform_20220821080314.go new file mode 100644 index 0000000..2f2a50a --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821080314.go @@ -0,0 +1,71 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"writebfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:物理地址"` + WriteGroup int64 `json:"writegroup" gorm:"column:g_write_group;type:bigint unsigned;default:3;comment:写入人员组织"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} + +// 编辑图文信息内容 +func (cont *GraphicForm) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取图文信息内容 +func (cont *GraphicForm) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *GraphicForm) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/graphicform_20220821080315.go b/.history/models/modelbookimg/graphicform_20220821080315.go new file mode 100644 index 0000000..2f2a50a --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821080315.go @@ -0,0 +1,71 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"writebfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:物理地址"` + WriteGroup int64 `json:"writegroup" gorm:"column:g_write_group;type:bigint unsigned;default:3;comment:写入人员组织"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} + +// 编辑图文信息内容 +func (cont *GraphicForm) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取图文信息内容 +func (cont *GraphicForm) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *GraphicForm) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/graphicform_20220821080348.go b/.history/models/modelbookimg/graphicform_20220821080348.go new file mode 100644 index 0000000..acdfe8a --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821080348.go @@ -0,0 +1,72 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"writebfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:物理地址"` + WriteGroup int64 `json:"writegroup" gorm:"column:g_write_group;type:bigint unsigned;default:3;comment:写入人员组织"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:物理地址"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} + +// 编辑图文信息内容 +func (cont *GraphicForm) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取图文信息内容 +func (cont *GraphicForm) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *GraphicForm) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/graphicform_20220821080354.go b/.history/models/modelbookimg/graphicform_20220821080354.go new file mode 100644 index 0000000..433be30 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821080354.go @@ -0,0 +1,72 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"writebfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:物理地址"` + WriteGroup int64 `json:"writegroup" gorm:"column:g_write_group;type:bigint unsigned;default:3;comment:写入人员组织"` + OuterLink string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:物理地址"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} + +// 编辑图文信息内容 +func (cont *GraphicForm) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取图文信息内容 +func (cont *GraphicForm) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *GraphicForm) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/graphicform_20220821080359.go b/.history/models/modelbookimg/graphicform_20220821080359.go new file mode 100644 index 0000000..d38d7aa --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821080359.go @@ -0,0 +1,72 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"writebfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:物理地址"` + WriteGroup int64 `json:"writegroup" gorm:"column:g_write_group;type:bigint unsigned;default:3;comment:写入人员组织"` + OuterLink string `json:"physicspath" gorm:"column:g_outer_link;type:varchar(255);default:'';comment:物理地址"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} + +// 编辑图文信息内容 +func (cont *GraphicForm) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取图文信息内容 +func (cont *GraphicForm) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *GraphicForm) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/graphicform_20220821080403.go b/.history/models/modelbookimg/graphicform_20220821080403.go new file mode 100644 index 0000000..42c8327 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821080403.go @@ -0,0 +1,72 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"writebfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:物理地址"` + WriteGroup int64 `json:"writegroup" gorm:"column:g_write_group;type:bigint unsigned;default:3;comment:写入人员组织"` + OuterLink string `json:"outerlink" gorm:"column:g_outer_link;type:varchar(255);default:'';comment:物理地址"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} + +// 编辑图文信息内容 +func (cont *GraphicForm) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取图文信息内容 +func (cont *GraphicForm) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *GraphicForm) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/graphicform_20220821080413.go b/.history/models/modelbookimg/graphicform_20220821080413.go new file mode 100644 index 0000000..b2e4cdb --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821080413.go @@ -0,0 +1,72 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"writebfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:物理地址"` + WriteGroup int64 `json:"writegroup" gorm:"column:g_write_group;type:bigint unsigned;default:3;comment:写入人员组织"` + OuterLink string `json:"outerlink" gorm:"column:g_outer_link;type:varchar(255);default:'';comment:外部链接"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} + +// 编辑图文信息内容 +func (cont *GraphicForm) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取图文信息内容 +func (cont *GraphicForm) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *GraphicForm) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/graphicform_20220821080415.go b/.history/models/modelbookimg/graphicform_20220821080415.go new file mode 100644 index 0000000..c0906a6 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821080415.go @@ -0,0 +1,72 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"writebfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:物理地址"` + WriteGroup int64 `json:"writegroup" gorm:"column:g_write_group;type:bigint unsigned;default:3;comment:写入人员组织"` + OuterLink string `json:"outerlink" gorm:"column:g_outer_link;type:varchar(255);default:'';comment:外部链接"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} + +// 编辑图文信息内容 +func (cont *GraphicForm) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取图文信息内容 +func (cont *GraphicForm) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *GraphicForm) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/graphicform_20220821080633.go b/.history/models/modelbookimg/graphicform_20220821080633.go new file mode 100644 index 0000000..1183cda --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821080633.go @@ -0,0 +1,72 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;not null;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"writebfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:物理地址"` + WriteGroup int64 `json:"writegroup" gorm:"column:g_write_group;type:bigint unsigned;default:3;comment:写入人员组织"` + OuterLink string `json:"outerlink" gorm:"column:g_outer_link;type:varchar(255);default:'';comment:外部链接"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} + +// 编辑图文信息内容 +func (cont *GraphicForm) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取图文信息内容 +func (cont *GraphicForm) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *GraphicForm) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/graphicform_20220821080644.go b/.history/models/modelbookimg/graphicform_20220821080644.go new file mode 100644 index 0000000..57761e5 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821080644.go @@ -0,0 +1,72 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;not null;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;not null;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"writebfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:物理地址"` + WriteGroup int64 `json:"writegroup" gorm:"column:g_write_group;type:bigint unsigned;default:3;comment:写入人员组织"` + OuterLink string `json:"outerlink" gorm:"column:g_outer_link;type:varchar(255);default:'';comment:外部链接"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} + +// 编辑图文信息内容 +func (cont *GraphicForm) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取图文信息内容 +func (cont *GraphicForm) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *GraphicForm) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/graphicform_20220821080650.go b/.history/models/modelbookimg/graphicform_20220821080650.go new file mode 100644 index 0000000..9ca367e --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821080650.go @@ -0,0 +1,72 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;not null;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;not null;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;not null;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"writebfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:物理地址"` + WriteGroup int64 `json:"writegroup" gorm:"column:g_write_group;type:bigint unsigned;default:3;comment:写入人员组织"` + OuterLink string `json:"outerlink" gorm:"column:g_outer_link;type:varchar(255);default:'';comment:外部链接"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} + +// 编辑图文信息内容 +func (cont *GraphicForm) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取图文信息内容 +func (cont *GraphicForm) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *GraphicForm) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/graphicform_20220821080656.go b/.history/models/modelbookimg/graphicform_20220821080656.go new file mode 100644 index 0000000..b2a02a3 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821080656.go @@ -0,0 +1,72 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;not null;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;not null;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;not null;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;not null;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"writebfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:物理地址"` + WriteGroup int64 `json:"writegroup" gorm:"column:g_write_group;type:bigint unsigned;default:3;comment:写入人员组织"` + OuterLink string `json:"outerlink" gorm:"column:g_outer_link;type:varchar(255);default:'';comment:外部链接"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} + +// 编辑图文信息内容 +func (cont *GraphicForm) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取图文信息内容 +func (cont *GraphicForm) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *GraphicForm) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/graphicform_20220821080702.go b/.history/models/modelbookimg/graphicform_20220821080702.go new file mode 100644 index 0000000..c16a30e --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821080702.go @@ -0,0 +1,72 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;not null;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;not null;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;not null;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;not null;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;not null;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"writebfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:物理地址"` + WriteGroup int64 `json:"writegroup" gorm:"column:g_write_group;type:bigint unsigned;default:3;comment:写入人员组织"` + OuterLink string `json:"outerlink" gorm:"column:g_outer_link;type:varchar(255);default:'';comment:外部链接"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} + +// 编辑图文信息内容 +func (cont *GraphicForm) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取图文信息内容 +func (cont *GraphicForm) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *GraphicForm) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/graphicform_20220821080704.go b/.history/models/modelbookimg/graphicform_20220821080704.go new file mode 100644 index 0000000..f95b990 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821080704.go @@ -0,0 +1,72 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;not null;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;not null;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;not null;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;not null;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;not null;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;not null;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"writebfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:物理地址"` + WriteGroup int64 `json:"writegroup" gorm:"column:g_write_group;type:bigint unsigned;default:3;comment:写入人员组织"` + OuterLink string `json:"outerlink" gorm:"column:g_outer_link;type:varchar(255);default:'';comment:外部链接"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} + +// 编辑图文信息内容 +func (cont *GraphicForm) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取图文信息内容 +func (cont *GraphicForm) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *GraphicForm) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/graphicform_20220821080713.go b/.history/models/modelbookimg/graphicform_20220821080713.go new file mode 100644 index 0000000..4d597a4 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821080713.go @@ -0,0 +1,72 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;not null;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;not null;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;not null;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;not null;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;not null;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;not null;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;not null;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"writebfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:物理地址"` + WriteGroup int64 `json:"writegroup" gorm:"column:g_write_group;type:bigint unsigned;default:3;comment:写入人员组织"` + OuterLink string `json:"outerlink" gorm:"column:g_outer_link;type:varchar(255);default:'';comment:外部链接"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} + +// 编辑图文信息内容 +func (cont *GraphicForm) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取图文信息内容 +func (cont *GraphicForm) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *GraphicForm) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/graphicform_20220821080715.go b/.history/models/modelbookimg/graphicform_20220821080715.go new file mode 100644 index 0000000..a343d1e --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821080715.go @@ -0,0 +1,72 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;not null;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;not null;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;not null;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;not null;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;not null;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;not null;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;not null;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;not null;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"writebfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:物理地址"` + WriteGroup int64 `json:"writegroup" gorm:"column:g_write_group;type:bigint unsigned;default:3;comment:写入人员组织"` + OuterLink string `json:"outerlink" gorm:"column:g_outer_link;type:varchar(255);default:'';comment:外部链接"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} + +// 编辑图文信息内容 +func (cont *GraphicForm) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取图文信息内容 +func (cont *GraphicForm) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *GraphicForm) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/graphicform_20220821080722.go b/.history/models/modelbookimg/graphicform_20220821080722.go new file mode 100644 index 0000000..7e42e85 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821080722.go @@ -0,0 +1,72 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;not null;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;not null;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;not null;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;not null;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;not null;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;not null;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;not null;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;not null;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;not null;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"writebfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:物理地址"` + WriteGroup int64 `json:"writegroup" gorm:"column:g_write_group;type:bigint unsigned;default:3;comment:写入人员组织"` + OuterLink string `json:"outerlink" gorm:"column:g_outer_link;type:varchar(255);default:'';comment:外部链接"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} + +// 编辑图文信息内容 +func (cont *GraphicForm) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取图文信息内容 +func (cont *GraphicForm) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *GraphicForm) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/graphicform_20220821080738.go b/.history/models/modelbookimg/graphicform_20220821080738.go new file mode 100644 index 0000000..a862161 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821080738.go @@ -0,0 +1,72 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;not null;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;not null;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;not null;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;not null;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;not null;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;not null;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;not null;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;not null;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;not null;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;not null;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"writebfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:物理地址"` + WriteGroup int64 `json:"writegroup" gorm:"column:g_write_group;type:bigint unsigned;default:3;comment:写入人员组织"` + OuterLink string `json:"outerlink" gorm:"column:g_outer_link;type:varchar(255);default:'';comment:外部链接"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} + +// 编辑图文信息内容 +func (cont *GraphicForm) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取图文信息内容 +func (cont *GraphicForm) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *GraphicForm) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/graphicform_20220821080739.go b/.history/models/modelbookimg/graphicform_20220821080739.go new file mode 100644 index 0000000..3b30765 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821080739.go @@ -0,0 +1,72 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;not null;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;not null;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;not null;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;not null;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;not null;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;not null;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;not null;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;not null;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;not null;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;not null;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0not null;;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"writebfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:物理地址"` + WriteGroup int64 `json:"writegroup" gorm:"column:g_write_group;type:bigint unsigned;default:3;comment:写入人员组织"` + OuterLink string `json:"outerlink" gorm:"column:g_outer_link;type:varchar(255);default:'';comment:外部链接"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} + +// 编辑图文信息内容 +func (cont *GraphicForm) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取图文信息内容 +func (cont *GraphicForm) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *GraphicForm) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/graphicform_20220821080741.go b/.history/models/modelbookimg/graphicform_20220821080741.go new file mode 100644 index 0000000..a862161 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821080741.go @@ -0,0 +1,72 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;not null;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;not null;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;not null;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;not null;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;not null;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;not null;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;not null;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;not null;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;not null;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;not null;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"writebfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:物理地址"` + WriteGroup int64 `json:"writegroup" gorm:"column:g_write_group;type:bigint unsigned;default:3;comment:写入人员组织"` + OuterLink string `json:"outerlink" gorm:"column:g_outer_link;type:varchar(255);default:'';comment:外部链接"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} + +// 编辑图文信息内容 +func (cont *GraphicForm) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取图文信息内容 +func (cont *GraphicForm) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *GraphicForm) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/graphicform_20220821080742.go b/.history/models/modelbookimg/graphicform_20220821080742.go new file mode 100644 index 0000000..4824873 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821080742.go @@ -0,0 +1,72 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;not null;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;not null;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;not null;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;not null;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;not null;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;not null;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;not null;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;not null;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;not null;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;not null;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;not null;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"writebfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:物理地址"` + WriteGroup int64 `json:"writegroup" gorm:"column:g_write_group;type:bigint unsigned;default:3;comment:写入人员组织"` + OuterLink string `json:"outerlink" gorm:"column:g_outer_link;type:varchar(255);default:'';comment:外部链接"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} + +// 编辑图文信息内容 +func (cont *GraphicForm) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取图文信息内容 +func (cont *GraphicForm) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *GraphicForm) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/graphicform_20220821080747.go b/.history/models/modelbookimg/graphicform_20220821080747.go new file mode 100644 index 0000000..7bf7363 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821080747.go @@ -0,0 +1,72 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;not null;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;not null;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;not null;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;not null;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;not null;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;not null;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;not null;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;not null;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;not null;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;not null;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;not null;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;not null;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"writebfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:物理地址"` + WriteGroup int64 `json:"writegroup" gorm:"column:g_write_group;type:bigint unsigned;default:3;comment:写入人员组织"` + OuterLink string `json:"outerlink" gorm:"column:g_outer_link;type:varchar(255);default:'';comment:外部链接"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} + +// 编辑图文信息内容 +func (cont *GraphicForm) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取图文信息内容 +func (cont *GraphicForm) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *GraphicForm) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/graphicform_20220821080750.go b/.history/models/modelbookimg/graphicform_20220821080750.go new file mode 100644 index 0000000..10e7686 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821080750.go @@ -0,0 +1,72 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;not null;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;not null;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;not null;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;not null;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;not null;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;not null;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;not null;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;not null;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;not null;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;not null;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;not null;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;not null;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;not null;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"writebfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:物理地址"` + WriteGroup int64 `json:"writegroup" gorm:"column:g_write_group;type:bigint unsigned;default:3;comment:写入人员组织"` + OuterLink string `json:"outerlink" gorm:"column:g_outer_link;type:varchar(255);default:'';comment:外部链接"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} + +// 编辑图文信息内容 +func (cont *GraphicForm) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取图文信息内容 +func (cont *GraphicForm) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *GraphicForm) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/graphicform_20220821080757.go b/.history/models/modelbookimg/graphicform_20220821080757.go new file mode 100644 index 0000000..0ada3e5 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821080757.go @@ -0,0 +1,72 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;not null;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;not null;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;not null;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;not null;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;not null;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;not null;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;not null;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;not null;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;not null;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;not null;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;not null;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;not null;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;not null;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;not null;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"writebfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:物理地址"` + WriteGroup int64 `json:"writegroup" gorm:"column:g_write_group;type:bigint unsigned;default:3;comment:写入人员组织"` + OuterLink string `json:"outerlink" gorm:"column:g_outer_link;type:varchar(255);default:'';comment:外部链接"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} + +// 编辑图文信息内容 +func (cont *GraphicForm) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取图文信息内容 +func (cont *GraphicForm) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *GraphicForm) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/graphicform_20220821080758.go b/.history/models/modelbookimg/graphicform_20220821080758.go new file mode 100644 index 0000000..90fc802 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821080758.go @@ -0,0 +1,72 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;not null;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;not null;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;not null;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;not null;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;not null;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;not null;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;not null;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;not null;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;not null;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;not null;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;not null;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;not null;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;not null;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;not null;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;not null;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"writebfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:物理地址"` + WriteGroup int64 `json:"writegroup" gorm:"column:g_write_group;type:bigint unsigned;default:3;comment:写入人员组织"` + OuterLink string `json:"outerlink" gorm:"column:g_outer_link;type:varchar(255);default:'';comment:外部链接"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} + +// 编辑图文信息内容 +func (cont *GraphicForm) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取图文信息内容 +func (cont *GraphicForm) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *GraphicForm) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/graphicform_20220821080809.go b/.history/models/modelbookimg/graphicform_20220821080809.go new file mode 100644 index 0000000..2bceca6 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821080809.go @@ -0,0 +1,72 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;not null;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;not null;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;not null;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;not null;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;not null;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;not null;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;not null;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;not null;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;not null;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;not null;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;not null;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;not null;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;not null;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;not null;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;not null;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;not null;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"writebfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:物理地址"` + WriteGroup int64 `json:"writegroup" gorm:"column:g_write_group;type:bigint unsigned;default:3;comment:写入人员组织"` + OuterLink string `json:"outerlink" gorm:"column:g_outer_link;type:varchar(255);default:'';comment:外部链接"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} + +// 编辑图文信息内容 +func (cont *GraphicForm) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取图文信息内容 +func (cont *GraphicForm) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *GraphicForm) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/graphicform_20220821080810.go b/.history/models/modelbookimg/graphicform_20220821080810.go new file mode 100644 index 0000000..76a4446 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821080810.go @@ -0,0 +1,72 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;not null;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;not null;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;not null;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;not null;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;not null;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;not null;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;not null;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;not null;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;not null;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;not null;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;not null;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;not null;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;not null;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;not null;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;not null;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;not null;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;not null;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"writebfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:物理地址"` + WriteGroup int64 `json:"writegroup" gorm:"column:g_write_group;type:bigint unsigned;default:3;comment:写入人员组织"` + OuterLink string `json:"outerlink" gorm:"column:g_outer_link;type:varchar(255);default:'';comment:外部链接"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} + +// 编辑图文信息内容 +func (cont *GraphicForm) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取图文信息内容 +func (cont *GraphicForm) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *GraphicForm) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/graphicform_20220821080819.go b/.history/models/modelbookimg/graphicform_20220821080819.go new file mode 100644 index 0000000..5b088c3 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821080819.go @@ -0,0 +1,72 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;not null;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;not null;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;not null;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;not null;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;not null;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;not null;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;not null;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;not null;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;not null;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;not null;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;not null;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;not null;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;not null;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;not null;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;not null;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;not null;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;not null;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;not null;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"writebfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:物理地址"` + WriteGroup int64 `json:"writegroup" gorm:"column:g_write_group;type:bigint unsigned;default:3;comment:写入人员组织"` + OuterLink string `json:"outerlink" gorm:"column:g_outer_link;type:varchar(255);default:'';comment:外部链接"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} + +// 编辑图文信息内容 +func (cont *GraphicForm) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取图文信息内容 +func (cont *GraphicForm) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *GraphicForm) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/graphicform_20220821080825.go b/.history/models/modelbookimg/graphicform_20220821080825.go new file mode 100644 index 0000000..9640979 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821080825.go @@ -0,0 +1,72 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;not null;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;not null;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;not null;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;not null;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;not null;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;not null;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;not null;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;not null;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;not null;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;not null;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;not null;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;not null;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;not null;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;not null;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;not null;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;not null;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;not null;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;not null;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;not null;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"writebfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:物理地址"` + WriteGroup int64 `json:"writegroup" gorm:"column:g_write_group;type:bigint unsigned;default:3;comment:写入人员组织"` + OuterLink string `json:"outerlink" gorm:"column:g_outer_link;type:varchar(255);default:'';comment:外部链接"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} + +// 编辑图文信息内容 +func (cont *GraphicForm) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取图文信息内容 +func (cont *GraphicForm) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *GraphicForm) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/graphicform_20220821080834.go b/.history/models/modelbookimg/graphicform_20220821080834.go new file mode 100644 index 0000000..dd66009 --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821080834.go @@ -0,0 +1,72 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;not null;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;not null;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;not null;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;not null;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;not null;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;not null;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;not null;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;not null;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;not null;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;not null;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;not null;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;not null;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;not null;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;not null;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;not null;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;not null;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;not null;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;not null;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;not null;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"writebfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;not null;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:物理地址"` + WriteGroup int64 `json:"writegroup" gorm:"column:g_write_group;type:bigint unsigned;default:3;comment:写入人员组织"` + OuterLink string `json:"outerlink" gorm:"column:g_outer_link;type:varchar(255);default:'';comment:外部链接"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} + +// 编辑图文信息内容 +func (cont *GraphicForm) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取图文信息内容 +func (cont *GraphicForm) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *GraphicForm) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/graphicform_20220821080838.go b/.history/models/modelbookimg/graphicform_20220821080838.go new file mode 100644 index 0000000..deb063d --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821080838.go @@ -0,0 +1,72 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;not null;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;not null;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;not null;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;not null;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;not null;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;not null;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;not null;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;not null;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;not null;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;not null;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;not null;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;not null;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;not null;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;not null;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;not null;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;not null;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;not null;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;not null;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;not null;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"writebfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;not null;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:物理地址"` + WriteGroup int64 `json:"writegroup" gorm:"column:g_write_group;type:bigint unsigned;default:3;not null;comment:写入人员组织"` + OuterLink string `json:"outerlink" gorm:"column:g_outer_link;type:varchar(255);default:'';comment:外部链接"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} + +// 编辑图文信息内容 +func (cont *GraphicForm) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取图文信息内容 +func (cont *GraphicForm) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *GraphicForm) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/graphicform_20220821093100.go b/.history/models/modelbookimg/graphicform_20220821093100.go new file mode 100644 index 0000000..e315baf --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821093100.go @@ -0,0 +1,72 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;not null;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;not null;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;not null;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;not null;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;not null;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;not null;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;not null;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;not null;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;not null;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;not null;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;not null;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;not null;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;not null;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;not null;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;not null;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;not null;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;not null;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;not null;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;not null;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"writebfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;not null;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:物理地址"` + WriteGroup int64 `json:"writegroup" gorm:"column:g_write_group;type:bigint unsigned;default:3;not null;comment:写入人员组织"` + OuterLink string `json:"outerlink" gorm:"column:g_outer_link;type:varchar(255);default:'';comment:外部链接"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} + +// 编辑图文信息内容 +func (cont *GraphicForm) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_IMAGES_TEST.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取图文信息内容 +func (cont *GraphicForm) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *GraphicForm) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/graphicform_20220821093101.go b/.history/models/modelbookimg/graphicform_20220821093101.go new file mode 100644 index 0000000..d322b7f --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821093101.go @@ -0,0 +1,72 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;not null;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;not null;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;not null;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;not null;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;not null;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;not null;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;not null;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;not null;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;not null;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;not null;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;not null;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;not null;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;not null;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;not null;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;not null;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;not null;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;not null;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;not null;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;not null;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"writebfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;not null;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:物理地址"` + WriteGroup int64 `json:"writegroup" gorm:"column:g_write_group;type:bigint unsigned;default:3;not null;comment:写入人员组织"` + OuterLink string `json:"outerlink" gorm:"column:g_outer_link;type:varchar(255);default:'';comment:外部链接"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} + +// 编辑图文信息内容 +func (cont *GraphicForm) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_IMAGES_TEST.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取图文信息内容 +func (cont *GraphicForm) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MACONSTANT_DB_IMAGES_TESTNAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *GraphicForm) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/graphicform_20220821093103.go b/.history/models/modelbookimg/graphicform_20220821093103.go new file mode 100644 index 0000000..82102ec --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821093103.go @@ -0,0 +1,72 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;not null;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;not null;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;not null;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;not null;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;not null;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;not null;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;not null;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;not null;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;not null;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;not null;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;not null;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;not null;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;not null;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;not null;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;not null;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;not null;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;not null;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;not null;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;not null;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"writebfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;not null;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:物理地址"` + WriteGroup int64 `json:"writegroup" gorm:"column:g_write_group;type:bigint unsigned;default:3;not null;comment:写入人员组织"` + OuterLink string `json:"outerlink" gorm:"column:g_outer_link;type:varchar(255);default:'';comment:外部链接"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} + +// 编辑图文信息内容 +func (cont *GraphicForm) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_IMAGES_TEST.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取图文信息内容 +func (cont *GraphicForm) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_IMAGES_TEST.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *GraphicForm) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/graphicform_20220821093105.go b/.history/models/modelbookimg/graphicform_20220821093105.go new file mode 100644 index 0000000..4323bba --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821093105.go @@ -0,0 +1,72 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;not null;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;not null;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;not null;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;not null;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;not null;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;not null;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;not null;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;not null;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;not null;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;not null;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;not null;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;not null;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;not null;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;not null;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;not null;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;not null;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;not null;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;not null;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;not null;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"writebfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;not null;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:物理地址"` + WriteGroup int64 `json:"writegroup" gorm:"column:g_write_group;type:bigint unsigned;default:3;not null;comment:写入人员组织"` + OuterLink string `json:"outerlink" gorm:"column:g_outer_link;type:varchar(255);default:'';comment:外部链接"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} + +// 编辑图文信息内容 +func (cont *GraphicForm) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_IMAGES_TEST.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取图文信息内容 +func (cont *GraphicForm) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_IMAGES_TEST.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *GraphicForm) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_IMAGES_TEST.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/graphicform_20220821093118.go b/.history/models/modelbookimg/graphicform_20220821093118.go new file mode 100644 index 0000000..4323bba --- /dev/null +++ b/.history/models/modelbookimg/graphicform_20220821093118.go @@ -0,0 +1,72 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;not null;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;not null;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;not null;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;not null;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;not null;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;not null;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;not null;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;not null;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;not null;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;not null;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;not null;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;not null;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;not null;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;not null;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;not null;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;not null;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;not null;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;not null;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;not null;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"writebfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;not null;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:物理地址"` + WriteGroup int64 `json:"writegroup" gorm:"column:g_write_group;type:bigint unsigned;default:3;not null;comment:写入人员组织"` + OuterLink string `json:"outerlink" gorm:"column:g_outer_link;type:varchar(255);default:'';comment:外部链接"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} + +// 编辑图文信息内容 +func (cont *GraphicForm) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_IMAGES_TEST.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取图文信息内容 +func (cont *GraphicForm) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_IMAGES_TEST.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *GraphicForm) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_IMAGES_TEST.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/reporting_20220821090516.go b/.history/models/modelbookimg/reporting_20220821090516.go new file mode 100644 index 0000000..e69de29 diff --git a/.history/models/modelbookimg/reporting_20220821090521.go b/.history/models/modelbookimg/reporting_20220821090521.go new file mode 100644 index 0000000..59c77e4 --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821090521.go @@ -0,0 +1 @@ +package \ No newline at end of file diff --git a/.history/models/modelbookimg/reporting_20220821090523.go b/.history/models/modelbookimg/reporting_20220821090523.go new file mode 100644 index 0000000..0c3b4f2 --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821090523.go @@ -0,0 +1 @@ +package model \ No newline at end of file diff --git a/.history/models/modelbookimg/reporting_20220821090526.go b/.history/models/modelbookimg/reporting_20220821090526.go new file mode 100644 index 0000000..600480e --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821090526.go @@ -0,0 +1 @@ +package modelbookimg diff --git a/.history/models/modelbookimg/reporting_20220821090530.go b/.history/models/modelbookimg/reporting_20220821090530.go new file mode 100644 index 0000000..bb0a336 --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821090530.go @@ -0,0 +1,2 @@ +package modelbookimg + diff --git a/.history/models/modelbookimg/reporting_20220821090538.go b/.history/models/modelbookimg/reporting_20220821090538.go new file mode 100644 index 0000000..32dcbb4 --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821090538.go @@ -0,0 +1,5 @@ +package modelbookimg + +type reporting struct{ + +} \ No newline at end of file diff --git a/.history/models/modelbookimg/reporting_20220821090543.go b/.history/models/modelbookimg/reporting_20220821090543.go new file mode 100644 index 0000000..a21a62e --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821090543.go @@ -0,0 +1,6 @@ +package modelbookimg + +// 举报 +type reporting struct{ + +} \ No newline at end of file diff --git a/.history/models/modelbookimg/reporting_20220821090545.go b/.history/models/modelbookimg/reporting_20220821090545.go new file mode 100644 index 0000000..89f3023 --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821090545.go @@ -0,0 +1,6 @@ +package modelbookimg + +// 举报 +type Reporting struct{ + +} \ No newline at end of file diff --git a/.history/models/modelbookimg/reporting_20220821090551.go b/.history/models/modelbookimg/reporting_20220821090551.go new file mode 100644 index 0000000..89f3023 --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821090551.go @@ -0,0 +1,6 @@ +package modelbookimg + +// 举报 +type Reporting struct{ + +} \ No newline at end of file diff --git a/.history/models/modelbookimg/reporting_20220821090552.go b/.history/models/modelbookimg/reporting_20220821090552.go new file mode 100644 index 0000000..a6f66f9 --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821090552.go @@ -0,0 +1,5 @@ +package modelbookimg + +// 举报 +type Reporting struct { +} diff --git a/.history/models/modelbookimg/reporting_20220821090556.go b/.history/models/modelbookimg/reporting_20220821090556.go new file mode 100644 index 0000000..576c95f --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821090556.go @@ -0,0 +1,6 @@ +package modelbookimg + +// 举报 +type Reporting struct { + +} diff --git a/.history/models/modelbookimg/reporting_20220821090605.go b/.history/models/modelbookimg/reporting_20220821090605.go new file mode 100644 index 0000000..87ab258 --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821090605.go @@ -0,0 +1,6 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` +} diff --git a/.history/models/modelbookimg/reporting_20220821090611.go b/.history/models/modelbookimg/reporting_20220821090611.go new file mode 100644 index 0000000..81fc939 --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821090611.go @@ -0,0 +1,6 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` +} diff --git a/.history/models/modelbookimg/reporting_20220821090629.go b/.history/models/modelbookimg/reporting_20220821090629.go new file mode 100644 index 0000000..5471892 --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821090629.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + +} diff --git a/.history/models/modelbookimg/reporting_20220821090636.go b/.history/models/modelbookimg/reporting_20220821090636.go new file mode 100644 index 0000000..d4dbfac --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821090636.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + Ue +} diff --git a/.history/models/modelbookimg/reporting_20220821090642.go b/.history/models/modelbookimg/reporting_20220821090642.go new file mode 100644 index 0000000..3ad540d --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821090642.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey +} diff --git a/.history/models/modelbookimg/reporting_20220821090644.go b/.history/models/modelbookimg/reporting_20220821090644.go new file mode 100644 index 0000000..917247f --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821090644.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int +} diff --git a/.history/models/modelbookimg/reporting_20220821090646.go b/.history/models/modelbookimg/reporting_20220821090646.go new file mode 100644 index 0000000..2029840 --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821090646.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 +} diff --git a/.history/models/modelbookimg/reporting_20220821090651.go b/.history/models/modelbookimg/reporting_20220821090651.go new file mode 100644 index 0000000..f2323e3 --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821090651.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` +} diff --git a/.history/models/modelbookimg/reporting_20220821090654.go b/.history/models/modelbookimg/reporting_20220821090654.go new file mode 100644 index 0000000..9323d37 --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821090654.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` +} diff --git a/.history/models/modelbookimg/reporting_20220821090701.go b/.history/models/modelbookimg/reporting_20220821090701.go new file mode 100644 index 0000000..e807300 --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821090701.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` +} diff --git a/.history/models/modelbookimg/reporting_20220821090703.go b/.history/models/modelbookimg/reporting_20220821090703.go new file mode 100644 index 0000000..98c6e37 --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821090703.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;auto_increment;comment:ID"` +} diff --git a/.history/models/modelbookimg/reporting_20220821090711.go b/.history/models/modelbookimg/reporting_20220821090711.go new file mode 100644 index 0000000..f6bca0d --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821090711.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:ID"` +} diff --git a/.history/models/modelbookimg/reporting_20220821090736.go b/.history/models/modelbookimg/reporting_20220821090736.go new file mode 100644 index 0000000..b1600b6 --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821090736.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` +} diff --git a/.history/models/modelbookimg/reporting_20220821090737.go b/.history/models/modelbookimg/reporting_20220821090737.go new file mode 100644 index 0000000..6cf34d5 --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821090737.go @@ -0,0 +1,8 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + +} diff --git a/.history/models/modelbookimg/reporting_20220821090743.go b/.history/models/modelbookimg/reporting_20220821090743.go new file mode 100644 index 0000000..063bca0 --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821090743.go @@ -0,0 +1,8 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + User +} diff --git a/.history/models/modelbookimg/reporting_20220821090744.go b/.history/models/modelbookimg/reporting_20220821090744.go new file mode 100644 index 0000000..fe8dbbc --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821090744.go @@ -0,0 +1,8 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + UserJson +} diff --git a/.history/models/modelbookimg/reporting_20220821090748.go b/.history/models/modelbookimg/reporting_20220821090748.go new file mode 100644 index 0000000..6a3569b --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821090748.go @@ -0,0 +1,8 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + UserJson string +} diff --git a/.history/models/modelbookimg/reporting_20220821090754.go b/.history/models/modelbookimg/reporting_20220821090754.go new file mode 100644 index 0000000..29afa85 --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821090754.go @@ -0,0 +1,8 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + UserJson string `json:"userjson" gorm:"column:dis_user_json;type:mediumtext;comment:评论人基本信息"` +} diff --git a/.history/models/modelbookimg/reporting_20220821090800.go b/.history/models/modelbookimg/reporting_20220821090800.go new file mode 100644 index 0000000..746cc78 --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821090800.go @@ -0,0 +1,8 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + UserJson string `json:"userjson" gorm:"column:r_user_json;type:mediumtext;comment:评论人基本信息"` +} diff --git a/.history/models/modelbookimg/reporting_20220821090806.go b/.history/models/modelbookimg/reporting_20220821090806.go new file mode 100644 index 0000000..8e9d8a2 --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821090806.go @@ -0,0 +1,8 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + UserJson string `json:"userjson" gorm:"column:r_user_json;type:mediumtext;comment:举报人基本信息"` +} diff --git a/.history/models/modelbookimg/reporting_20220821090808.go b/.history/models/modelbookimg/reporting_20220821090808.go new file mode 100644 index 0000000..7983764 --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821090808.go @@ -0,0 +1,9 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + UserJson string `json:"userjson" gorm:"column:r_user_json;type:mediumtext;comment:举报人基本信息"` + +} diff --git a/.history/models/modelbookimg/reporting_20220821090820.go b/.history/models/modelbookimg/reporting_20220821090820.go new file mode 100644 index 0000000..9b3e624 --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821090820.go @@ -0,0 +1,9 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + UserJson string `json:"userjson" gorm:"column:r_user_json;type:mediumtext;comment:举报人基本信息"` + Content string +} diff --git a/.history/models/modelbookimg/reporting_20220821090824.go b/.history/models/modelbookimg/reporting_20220821090824.go new file mode 100644 index 0000000..c3dbf31 --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821090824.go @@ -0,0 +1,9 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + UserJson string `json:"userjson" gorm:"column:r_user_json;type:mediumtext;comment:举报人基本信息"` + Content string `json:"userjson" gorm:"column:r_user_json;type:mediumtext;comment:举报人基本信息"` +} diff --git a/.history/models/modelbookimg/reporting_20220821090828.go b/.history/models/modelbookimg/reporting_20220821090828.go new file mode 100644 index 0000000..e390920 --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821090828.go @@ -0,0 +1,9 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + UserJson string `json:"userjson" gorm:"column:r_user_json;type:mediumtext;comment:举报人基本信息"` + Content string `json:"userjson" gorm:"column:r_content;type:mediumtext;comment:举报人基本信息"` +} diff --git a/.history/models/modelbookimg/reporting_20220821090832.go b/.history/models/modelbookimg/reporting_20220821090832.go new file mode 100644 index 0000000..b6db33a --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821090832.go @@ -0,0 +1,9 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + UserJson string `json:"userjson" gorm:"column:r_user_json;type:mediumtext;comment:举报人基本信息"` + Content string `json:"content" gorm:"column:r_content;type:mediumtext;comment:举报人基本信息"` +} diff --git a/.history/models/modelbookimg/reporting_20220821090841.go b/.history/models/modelbookimg/reporting_20220821090841.go new file mode 100644 index 0000000..e78111f --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821090841.go @@ -0,0 +1,9 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + UserJson string `json:"userjson" gorm:"column:r_user_json;type:mediumtext;comment:举报人基本信息"` + Content string `json:"content" gorm:"column:r_content;type:mediumtext;comment:举报内容"` +} diff --git a/.history/models/modelbookimg/reporting_20220821090843.go b/.history/models/modelbookimg/reporting_20220821090843.go new file mode 100644 index 0000000..12da22c --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821090843.go @@ -0,0 +1,10 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + UserJson string `json:"userjson" gorm:"column:r_user_json;type:mediumtext;comment:举报人基本信息"` + Content string `json:"content" gorm:"column:r_content;type:mediumtext;comment:举报内容"` + +} diff --git a/.history/models/modelbookimg/reporting_20220821090854.go b/.history/models/modelbookimg/reporting_20220821090854.go new file mode 100644 index 0000000..abc4463 --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821090854.go @@ -0,0 +1,10 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + UserJson string `json:"userjson" gorm:"column:r_user_json;type:mediumtext;comment:举报人基本信息"` + Content string `json:"content" gorm:"column:r_content;type:mediumtext;comment:举报内容"` + AnsId +} diff --git a/.history/models/modelbookimg/reporting_20220821090856.go b/.history/models/modelbookimg/reporting_20220821090856.go new file mode 100644 index 0000000..60deb73 --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821090856.go @@ -0,0 +1,10 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + UserJson string `json:"userjson" gorm:"column:r_user_json;type:mediumtext;comment:举报人基本信息"` + Content string `json:"content" gorm:"column:r_content;type:mediumtext;comment:举报内容"` + AnsId int +} diff --git a/.history/models/modelbookimg/reporting_20220821090858.go b/.history/models/modelbookimg/reporting_20220821090858.go new file mode 100644 index 0000000..3357a8e --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821090858.go @@ -0,0 +1,10 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + UserJson string `json:"userjson" gorm:"column:r_user_json;type:mediumtext;comment:举报人基本信息"` + Content string `json:"content" gorm:"column:r_content;type:mediumtext;comment:举报内容"` + AnsId int64 +} diff --git a/.history/models/modelbookimg/reporting_20220821090902.go b/.history/models/modelbookimg/reporting_20220821090902.go new file mode 100644 index 0000000..11520e8 --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821090902.go @@ -0,0 +1,10 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + UserJson string `json:"userjson" gorm:"column:r_user_json;type:mediumtext;comment:举报人基本信息"` + Content string `json:"content" gorm:"column:r_content;type:mediumtext;comment:举报内容"` + AnsId int64 `json:"userjson" gorm:"column:r_user_json;type:mediumtext;comment:举报人基本信息"` +} diff --git a/.history/models/modelbookimg/reporting_20220821090905.go b/.history/models/modelbookimg/reporting_20220821090905.go new file mode 100644 index 0000000..7e22119 --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821090905.go @@ -0,0 +1,10 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + UserJson string `json:"userjson" gorm:"column:r_user_json;type:mediumtext;comment:举报人基本信息"` + Content string `json:"content" gorm:"column:r_content;type:mediumtext;comment:举报内容"` + AnsId int64 `json:"ansid" gorm:"column:r_user_json;type:mediumtext;comment:举报人基本信息"` +} diff --git a/.history/models/modelbookimg/reporting_20220821090910.go b/.history/models/modelbookimg/reporting_20220821090910.go new file mode 100644 index 0000000..00be7be --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821090910.go @@ -0,0 +1,10 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + UserJson string `json:"userjson" gorm:"column:r_user_json;type:mediumtext;comment:举报人基本信息"` + Content string `json:"content" gorm:"column:r_content;type:mediumtext;comment:举报内容"` + AnsId int64 `json:"ansid" gorm:"column:r_ans_id;type:mediumtext;comment:举报人基本信息"` +} diff --git a/.history/models/modelbookimg/reporting_20220821090918.go b/.history/models/modelbookimg/reporting_20220821090918.go new file mode 100644 index 0000000..af3f4dd --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821090918.go @@ -0,0 +1,10 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + UserJson string `json:"userjson" gorm:"column:r_user_json;type:mediumtext;comment:举报人基本信息"` + Content string `json:"content" gorm:"column:r_content;type:mediumtext;comment:举报内容"` + AnsId int64 `json:"ansid" gorm:"column:r_ans_id;type:bigint unsigned;comment:举报人基本信息"` +} diff --git a/.history/models/modelbookimg/reporting_20220821090924.go b/.history/models/modelbookimg/reporting_20220821090924.go new file mode 100644 index 0000000..2397df3 --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821090924.go @@ -0,0 +1,10 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + UserJson string `json:"userjson" gorm:"column:r_user_json;type:mediumtext;comment:举报人基本信息"` + Content string `json:"content" gorm:"column:r_content;type:mediumtext;comment:举报内容"` + AnsId int64 `json:"ansid" gorm:"column:r_ans_id;type:bigint unsigned;default:;comment:举报人基本信息"` +} diff --git a/.history/models/modelbookimg/reporting_20220821090926.go b/.history/models/modelbookimg/reporting_20220821090926.go new file mode 100644 index 0000000..74d4181 --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821090926.go @@ -0,0 +1,10 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + UserJson string `json:"userjson" gorm:"column:r_user_json;type:mediumtext;comment:举报人基本信息"` + Content string `json:"content" gorm:"column:r_content;type:mediumtext;comment:举报内容"` + AnsId int64 `json:"ansid" gorm:"column:r_ans_id;type:bigint unsigned;default:0;comment:举报人基本信息"` +} diff --git a/.history/models/modelbookimg/reporting_20220821090933.go b/.history/models/modelbookimg/reporting_20220821090933.go new file mode 100644 index 0000000..af68735 --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821090933.go @@ -0,0 +1,10 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + UserJson string `json:"userjson" gorm:"column:r_user_json;type:mediumtext;comment:举报人基本信息"` + Content string `json:"content" gorm:"column:r_content;type:mediumtext;comment:举报内容"` + AnsId int64 `json:"ansid" gorm:"column:r_ans_id;type:bigint unsigned;not null;comment:举报人基本信息"` +} diff --git a/.history/models/modelbookimg/reporting_20220821090938.go b/.history/models/modelbookimg/reporting_20220821090938.go new file mode 100644 index 0000000..1f53376 --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821090938.go @@ -0,0 +1,10 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + UserJson string `json:"userjson" gorm:"column:r_user_json;type:mediumtext;comment:举报人基本信息"` + Content string `json:"content" gorm:"column:r_content;type:mediumtext;comment:举报内容"` + AnsId int64 `json:"ansid" gorm:"column:r_ans_id;type:bigint unsigned;not null;comment:被举报答案ID"` +} diff --git a/.history/models/modelbookimg/reporting_20220821090940.go b/.history/models/modelbookimg/reporting_20220821090940.go new file mode 100644 index 0000000..78d4dfb --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821090940.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + UserJson string `json:"userjson" gorm:"column:r_user_json;type:mediumtext;comment:举报人基本信息"` + Content string `json:"content" gorm:"column:r_content;type:mediumtext;comment:举报内容"` + AnsId int64 `json:"ansid" gorm:"column:r_ans_id;type:bigint unsigned;not null;comment:被举报答案ID"` + +} diff --git a/.history/models/modelbookimg/reporting_20220821090946.go b/.history/models/modelbookimg/reporting_20220821090946.go new file mode 100644 index 0000000..45550c7 --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821090946.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + UserJson string `json:"userjson" gorm:"column:r_user_json;type:mediumtext;comment:举报人基本信息"` + Content string `json:"content" gorm:"column:r_content;type:mediumtext;comment:举报内容"` + AnsId int64 `json:"ansid" gorm:"column:r_ans_id;type:bigint unsigned;not null;comment:被举报答案ID"` + AnsCont +} diff --git a/.history/models/modelbookimg/reporting_20220821090952.go b/.history/models/modelbookimg/reporting_20220821090952.go new file mode 100644 index 0000000..e98f966 --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821090952.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + UserJson string `json:"userjson" gorm:"column:r_user_json;type:mediumtext;comment:举报人基本信息"` + Content string `json:"content" gorm:"column:r_content;type:mediumtext;comment:举报内容"` + AnsId int64 `json:"ansid" gorm:"column:r_ans_id;type:bigint unsigned;not null;comment:被举报答案ID"` + AnsCont string `json:"content" gorm:"column:r_content;type:mediumtext;comment:举报内容"` +} diff --git a/.history/models/modelbookimg/reporting_20220821090956.go b/.history/models/modelbookimg/reporting_20220821090956.go new file mode 100644 index 0000000..2fc627f --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821090956.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + UserJson string `json:"userjson" gorm:"column:r_user_json;type:mediumtext;comment:举报人基本信息"` + Content string `json:"content" gorm:"column:r_content;type:mediumtext;comment:举报内容"` + AnsId int64 `json:"ansid" gorm:"column:r_ans_id;type:bigint unsigned;not null;comment:被举报答案ID"` + AnsCont string `json:"content" gorm:"column:r_ans_cont;type:mediumtext;comment:举报内容"` +} diff --git a/.history/models/modelbookimg/reporting_20220821091002.go b/.history/models/modelbookimg/reporting_20220821091002.go new file mode 100644 index 0000000..19cdef2 --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821091002.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + UserJson string `json:"userjson" gorm:"column:r_user_json;type:mediumtext;comment:举报人基本信息"` + Content string `json:"content" gorm:"column:r_content;type:mediumtext;comment:举报内容"` + AnsId int64 `json:"ansid" gorm:"column:r_ans_id;type:bigint unsigned;not null;comment:被举报答案ID"` + AnsCont string `json:"ans" gorm:"column:r_ans_cont;type:mediumtext;comment:举报内容"` +} diff --git a/.history/models/modelbookimg/reporting_20220821091004.go b/.history/models/modelbookimg/reporting_20220821091004.go new file mode 100644 index 0000000..deccf0a --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821091004.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + UserJson string `json:"userjson" gorm:"column:r_user_json;type:mediumtext;comment:举报人基本信息"` + Content string `json:"content" gorm:"column:r_content;type:mediumtext;comment:举报内容"` + AnsId int64 `json:"ansid" gorm:"column:r_ans_id;type:bigint unsigned;not null;comment:被举报答案ID"` + AnsCont string `json:"anscont" gorm:"column:r_ans_cont;type:mediumtext;comment:举报内容"` +} diff --git a/.history/models/modelbookimg/reporting_20220821091016.go b/.history/models/modelbookimg/reporting_20220821091016.go new file mode 100644 index 0000000..10d1320 --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821091016.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + UserJson string `json:"userjson" gorm:"column:r_user_json;type:mediumtext;comment:举报人基本信息"` + Content string `json:"content" gorm:"column:r_content;type:mediumtext;comment:举报内容"` + AnsId int64 `json:"ansid" gorm:"column:r_ans_id;type:bigint unsigned;not null;comment:被举报答案ID"` + AnsCont string `json:"anscont" gorm:"column:r_ans_cont;type:mediumtext;comment:被举报内容"` +} diff --git a/.history/models/modelbookimg/reporting_20220821091020.go b/.history/models/modelbookimg/reporting_20220821091020.go new file mode 100644 index 0000000..c6878ba --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821091020.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + UserJson string `json:"userjson" gorm:"column:r_user_json;type:mediumtext;comment:举报人基本信息"` + Content string `json:"content" gorm:"column:r_content;type:mediumtext;comment:举报内容"` + AnsId int64 `json:"ansid" gorm:"column:r_ans_id;type:bigint unsigned;not null;comment:被举报答案ID"` + AnsCont string `json:"anscont" gorm:"column:r_ans_cont;type:mediumtext;comment:被举报内容"` + +} diff --git a/.history/models/modelbookimg/reporting_20220821091030.go b/.history/models/modelbookimg/reporting_20220821091030.go new file mode 100644 index 0000000..d5a5298 --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821091030.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + UserJson string `json:"userjson" gorm:"column:r_user_json;type:mediumtext;comment:举报人基本信息"` + Content string `json:"content" gorm:"column:r_content;type:mediumtext;comment:举报内容"` + AnsId int64 `json:"ansid" gorm:"column:r_ans_id;type:bigint unsigned;not null;comment:被举报答案ID"` + AnsCont string `json:"anscont" gorm:"column:r_ans_cont;type:mediumtext;comment:被举报内容"` + Time int +} diff --git a/.history/models/modelbookimg/reporting_20220821091031.go b/.history/models/modelbookimg/reporting_20220821091031.go new file mode 100644 index 0000000..07dfa42 --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821091031.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + UserJson string `json:"userjson" gorm:"column:r_user_json;type:mediumtext;comment:举报人基本信息"` + Content string `json:"content" gorm:"column:r_content;type:mediumtext;comment:举报内容"` + AnsId int64 `json:"ansid" gorm:"column:r_ans_id;type:bigint unsigned;not null;comment:被举报答案ID"` + AnsCont string `json:"anscont" gorm:"column:r_ans_cont;type:mediumtext;comment:被举报内容"` + Time int64 +} diff --git a/.history/models/modelbookimg/reporting_20220821091037.go b/.history/models/modelbookimg/reporting_20220821091037.go new file mode 100644 index 0000000..ddf55ea --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821091037.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + UserJson string `json:"userjson" gorm:"column:r_user_json;type:mediumtext;comment:举报人基本信息"` + Content string `json:"content" gorm:"column:r_content;type:mediumtext;comment:举报内容"` + AnsId int64 `json:"ansid" gorm:"column:r_ans_id;type:bigint unsigned;not null;comment:被举报答案ID"` + AnsCont string `json:"anscont" gorm:"column:r_ans_cont;type:mediumtext;comment:被举报内容"` + Time int64 `json:"ansid" gorm:"column:r_ans_id;type:bigint unsigned;not null;comment:被举报答案ID"` +} diff --git a/.history/models/modelbookimg/reporting_20220821091040.go b/.history/models/modelbookimg/reporting_20220821091040.go new file mode 100644 index 0000000..10e53a4 --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821091040.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + UserJson string `json:"userjson" gorm:"column:r_user_json;type:mediumtext;comment:举报人基本信息"` + Content string `json:"content" gorm:"column:r_content;type:mediumtext;comment:举报内容"` + AnsId int64 `json:"ansid" gorm:"column:r_ans_id;type:bigint unsigned;not null;comment:被举报答案ID"` + AnsCont string `json:"anscont" gorm:"column:r_ans_cont;type:mediumtext;comment:被举报内容"` + Time int64 `json:"time" gorm:"column:r_ans_id;type:bigint unsigned;not null;comment:被举报答案ID"` +} diff --git a/.history/models/modelbookimg/reporting_20220821091044.go b/.history/models/modelbookimg/reporting_20220821091044.go new file mode 100644 index 0000000..af65cb4 --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821091044.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + UserJson string `json:"userjson" gorm:"column:r_user_json;type:mediumtext;comment:举报人基本信息"` + Content string `json:"content" gorm:"column:r_content;type:mediumtext;comment:举报内容"` + AnsId int64 `json:"ansid" gorm:"column:r_ans_id;type:bigint unsigned;not null;comment:被举报答案ID"` + AnsCont string `json:"anscont" gorm:"column:r_ans_cont;type:mediumtext;comment:被举报内容"` + Time int64 `json:"time" gorm:"column:r_time;type:bigint unsigned;not null;comment:被举报答案ID"` +} diff --git a/.history/models/modelbookimg/reporting_20220821091051.go b/.history/models/modelbookimg/reporting_20220821091051.go new file mode 100644 index 0000000..468fedf --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821091051.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + UserJson string `json:"userjson" gorm:"column:r_user_json;type:mediumtext;comment:举报人基本信息"` + Content string `json:"content" gorm:"column:r_content;type:mediumtext;comment:举报内容"` + AnsId int64 `json:"ansid" gorm:"column:r_ans_id;type:bigint unsigned;not null;comment:被举报答案ID"` + AnsCont string `json:"anscont" gorm:"column:r_ans_cont;type:mediumtext;comment:被举报内容"` + Time int64 `json:"time" gorm:"column:r_time;type:bigint unsigned;default;not null;comment:被举报答案ID"` +} diff --git a/.history/models/modelbookimg/reporting_20220821091053.go b/.history/models/modelbookimg/reporting_20220821091053.go new file mode 100644 index 0000000..12aa09e --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821091053.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + UserJson string `json:"userjson" gorm:"column:r_user_json;type:mediumtext;comment:举报人基本信息"` + Content string `json:"content" gorm:"column:r_content;type:mediumtext;comment:举报内容"` + AnsId int64 `json:"ansid" gorm:"column:r_ans_id;type:bigint unsigned;not null;comment:被举报答案ID"` + AnsCont string `json:"anscont" gorm:"column:r_ans_cont;type:mediumtext;comment:被举报内容"` + Time int64 `json:"time" gorm:"column:r_time;type:bigint unsigned;default:0;not null;comment:被举报答案ID"` +} diff --git a/.history/models/modelbookimg/reporting_20220821091056.go b/.history/models/modelbookimg/reporting_20220821091056.go new file mode 100644 index 0000000..913bff0 --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821091056.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + UserJson string `json:"userjson" gorm:"column:r_user_json;type:mediumtext;comment:举报人基本信息"` + Content string `json:"content" gorm:"column:r_content;type:mediumtext;comment:举报内容"` + AnsId int64 `json:"ansid" gorm:"column:r_ans_id;type:bigint unsigned;not null;comment:被举报答案ID"` + AnsCont string `json:"anscont" gorm:"column:r_ans_cont;type:mediumtext;comment:被举报内容"` + Time int64 `json:"time" gorm:"column:r_time;type:bigint unsigned;default:0;not null;comment:举报时间"` +} diff --git a/.history/models/modelbookimg/reporting_20220821091058.go b/.history/models/modelbookimg/reporting_20220821091058.go new file mode 100644 index 0000000..1d5352d --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821091058.go @@ -0,0 +1,13 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + UserJson string `json:"userjson" gorm:"column:r_user_json;type:mediumtext;comment:举报人基本信息"` + Content string `json:"content" gorm:"column:r_content;type:mediumtext;comment:举报内容"` + AnsId int64 `json:"ansid" gorm:"column:r_ans_id;type:bigint unsigned;not null;comment:被举报答案ID"` + AnsCont string `json:"anscont" gorm:"column:r_ans_cont;type:mediumtext;comment:被举报内容"` + Time int64 `json:"time" gorm:"column:r_time;type:bigint unsigned;default:0;not null;comment:举报时间"` + +} diff --git a/.history/models/modelbookimg/reporting_20220821091104.go b/.history/models/modelbookimg/reporting_20220821091104.go new file mode 100644 index 0000000..4597aae --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821091104.go @@ -0,0 +1,13 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + UserJson string `json:"userjson" gorm:"column:r_user_json;type:mediumtext;comment:举报人基本信息"` + Content string `json:"content" gorm:"column:r_content;type:mediumtext;comment:举报内容"` + AnsId int64 `json:"ansid" gorm:"column:r_ans_id;type:bigint unsigned;not null;comment:被举报答案ID"` + AnsCont string `json:"anscont" gorm:"column:r_ans_cont;type:mediumtext;comment:被举报内容"` + Time int64 `json:"time" gorm:"column:r_time;type:bigint unsigned;default:0;not null;comment:举报时间"` + State int +} diff --git a/.history/models/modelbookimg/reporting_20220821091107.go b/.history/models/modelbookimg/reporting_20220821091107.go new file mode 100644 index 0000000..f60ee39 --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821091107.go @@ -0,0 +1,13 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + UserJson string `json:"userjson" gorm:"column:r_user_json;type:mediumtext;comment:举报人基本信息"` + Content string `json:"content" gorm:"column:r_content;type:mediumtext;comment:举报内容"` + AnsId int64 `json:"ansid" gorm:"column:r_ans_id;type:bigint unsigned;not null;comment:被举报答案ID"` + AnsCont string `json:"anscont" gorm:"column:r_ans_cont;type:mediumtext;comment:被举报内容"` + Time int64 `json:"time" gorm:"column:r_time;type:bigint unsigned;default:0;not null;comment:举报时间"` + State int `json:"time" gorm:"column:r_time;type:bigint unsigned;default:0;not null;comment:举报时间"` +} diff --git a/.history/models/modelbookimg/reporting_20220821091112.go b/.history/models/modelbookimg/reporting_20220821091112.go new file mode 100644 index 0000000..524236d --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821091112.go @@ -0,0 +1,13 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + UserJson string `json:"userjson" gorm:"column:r_user_json;type:mediumtext;comment:举报人基本信息"` + Content string `json:"content" gorm:"column:r_content;type:mediumtext;comment:举报内容"` + AnsId int64 `json:"ansid" gorm:"column:r_ans_id;type:bigint unsigned;not null;comment:被举报答案ID"` + AnsCont string `json:"anscont" gorm:"column:r_ans_cont;type:mediumtext;comment:被举报内容"` + Time int64 `json:"time" gorm:"column:r_time;type:bigint unsigned;default:0;not null;comment:举报时间"` + State int `json:"time" gorm:"column:r_state;type:bigint unsigned;default:0;not null;comment:举报时间"` +} diff --git a/.history/models/modelbookimg/reporting_20220821091116.go b/.history/models/modelbookimg/reporting_20220821091116.go new file mode 100644 index 0000000..e4366ec --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821091116.go @@ -0,0 +1,13 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + UserJson string `json:"userjson" gorm:"column:r_user_json;type:mediumtext;comment:举报人基本信息"` + Content string `json:"content" gorm:"column:r_content;type:mediumtext;comment:举报内容"` + AnsId int64 `json:"ansid" gorm:"column:r_ans_id;type:bigint unsigned;not null;comment:被举报答案ID"` + AnsCont string `json:"anscont" gorm:"column:r_ans_cont;type:mediumtext;comment:被举报内容"` + Time int64 `json:"time" gorm:"column:r_time;type:bigint unsigned;default:0;not null;comment:举报时间"` + State int `json:"state" gorm:"column:r_state;type:bigint unsigned;default:0;not null;comment:举报时间"` +} diff --git a/.history/models/modelbookimg/reporting_20220821091125.go b/.history/models/modelbookimg/reporting_20220821091125.go new file mode 100644 index 0000000..47de2c0 --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821091125.go @@ -0,0 +1,13 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + UserJson string `json:"userjson" gorm:"column:r_user_json;type:mediumtext;comment:举报人基本信息"` + Content string `json:"content" gorm:"column:r_content;type:mediumtext;comment:举报内容"` + AnsId int64 `json:"ansid" gorm:"column:r_ans_id;type:bigint unsigned;not null;comment:被举报答案ID"` + AnsCont string `json:"anscont" gorm:"column:r_ans_cont;type:mediumtext;comment:被举报内容"` + Time int64 `json:"time" gorm:"column:r_time;type:bigint unsigned;default:0;not null;comment:举报时间"` + State int `json:"state" gorm:"column:r_state;type:tinyint unsigned;default:0;not null;comment:举报时间"` +} diff --git a/.history/models/modelbookimg/reporting_20220821091132.go b/.history/models/modelbookimg/reporting_20220821091132.go new file mode 100644 index 0000000..20b4e8f --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821091132.go @@ -0,0 +1,13 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + UserJson string `json:"userjson" gorm:"column:r_user_json;type:mediumtext;comment:举报人基本信息"` + Content string `json:"content" gorm:"column:r_content;type:mediumtext;comment:举报内容"` + AnsId int64 `json:"ansid" gorm:"column:r_ans_id;type:bigint unsigned;not null;comment:被举报答案ID"` + AnsCont string `json:"anscont" gorm:"column:r_ans_cont;type:mediumtext;comment:被举报内容"` + Time int64 `json:"time" gorm:"column:r_time;type:bigint unsigned;default:0;not null;comment:举报时间"` + State int `json:"state" gorm:"column:r_state;type:tinyint unsigned;default:1;not null;comment:举报时间"` +} diff --git a/.history/models/modelbookimg/reporting_20220821091135.go b/.history/models/modelbookimg/reporting_20220821091135.go new file mode 100644 index 0000000..23d8f03 --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821091135.go @@ -0,0 +1,13 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + UserJson string `json:"userjson" gorm:"column:r_user_json;type:mediumtext;comment:举报人基本信息"` + Content string `json:"content" gorm:"column:r_content;type:mediumtext;comment:举报内容"` + AnsId int64 `json:"ansid" gorm:"column:r_ans_id;type:bigint unsigned;not null;comment:被举报答案ID"` + AnsCont string `json:"anscont" gorm:"column:r_ans_cont;type:mediumtext;comment:被举报内容"` + Time int64 `json:"time" gorm:"column:r_time;type:bigint unsigned;default:0;not null;comment:举报时间"` + State int `json:"state" gorm:"column:r_state;type:tinyint unsigned;default:1;not null;comment:状态(1:审核,2:有效;3:无效;4:删除)"` +} diff --git a/.history/models/modelbookimg/reporting_20220821091149.go b/.history/models/modelbookimg/reporting_20220821091149.go new file mode 100644 index 0000000..23d8f03 --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821091149.go @@ -0,0 +1,13 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + UserJson string `json:"userjson" gorm:"column:r_user_json;type:mediumtext;comment:举报人基本信息"` + Content string `json:"content" gorm:"column:r_content;type:mediumtext;comment:举报内容"` + AnsId int64 `json:"ansid" gorm:"column:r_ans_id;type:bigint unsigned;not null;comment:被举报答案ID"` + AnsCont string `json:"anscont" gorm:"column:r_ans_cont;type:mediumtext;comment:被举报内容"` + Time int64 `json:"time" gorm:"column:r_time;type:bigint unsigned;default:0;not null;comment:举报时间"` + State int `json:"state" gorm:"column:r_state;type:tinyint unsigned;default:1;not null;comment:状态(1:审核,2:有效;3:无效;4:删除)"` +} diff --git a/.history/models/modelbookimg/reporting_20220821091151.go b/.history/models/modelbookimg/reporting_20220821091151.go new file mode 100644 index 0000000..323f27f --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821091151.go @@ -0,0 +1,14 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + UserJson string `json:"userjson" gorm:"column:r_user_json;type:mediumtext;comment:举报人基本信息"` + Content string `json:"content" gorm:"column:r_content;type:mediumtext;comment:举报内容"` + AnsId int64 `json:"ansid" gorm:"column:r_ans_id;type:bigint unsigned;not null;comment:被举报答案ID"` + AnsCont string `json:"anscont" gorm:"column:r_ans_cont;type:mediumtext;comment:被举报内容"` + Time int64 `json:"time" gorm:"column:r_time;type:bigint unsigned;default:0;not null;comment:举报时间"` + State int `json:"state" gorm:"column:r_state;type:tinyint unsigned;default:1;not null;comment:状态(1:审核,2:有效;3:无效;4:删除)"` +} + diff --git a/.history/models/modelbookimg/reporting_20220821091157.go b/.history/models/modelbookimg/reporting_20220821091157.go new file mode 100644 index 0000000..d1c86ef --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821091157.go @@ -0,0 +1,42 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + UserJson string `json:"userjson" gorm:"column:r_user_json;type:mediumtext;comment:举报人基本信息"` + Content string `json:"content" gorm:"column:r_content;type:mediumtext;comment:举报内容"` + AnsId int64 `json:"ansid" gorm:"column:r_ans_id;type:bigint unsigned;not null;comment:被举报答案ID"` + AnsCont string `json:"anscont" gorm:"column:r_ans_cont;type:mediumtext;comment:被举报内容"` + Time int64 `json:"time" gorm:"column:r_time;type:bigint unsigned;default:0;not null;comment:举报时间"` + State int `json:"state" gorm:"column:r_state;type:tinyint unsigned;default:1;not null;comment:状态(1:审核,2:有效;3:无效;4:删除)"` +} + +func (at *DiscussMsg) TableName() string { + return "discussmsg" +} + +// 编辑评论列表内容 +func (cont *DiscussMsg) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取评论列表内容 +func (cont *DiscussMsg) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *DiscussMsg) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} + diff --git a/.history/models/modelbookimg/reporting_20220821091200.go b/.history/models/modelbookimg/reporting_20220821091200.go new file mode 100644 index 0000000..4b0c17a --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821091200.go @@ -0,0 +1,42 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + UserJson string `json:"userjson" gorm:"column:r_user_json;type:mediumtext;comment:举报人基本信息"` + Content string `json:"content" gorm:"column:r_content;type:mediumtext;comment:举报内容"` + AnsId int64 `json:"ansid" gorm:"column:r_ans_id;type:bigint unsigned;not null;comment:被举报答案ID"` + AnsCont string `json:"anscont" gorm:"column:r_ans_cont;type:mediumtext;comment:被举报内容"` + Time int64 `json:"time" gorm:"column:r_time;type:bigint unsigned;default:0;not null;comment:举报时间"` + State int `json:"state" gorm:"column:r_state;type:tinyint unsigned;default:1;not null;comment:状态(1:审核,2:有效;3:无效;4:删除)"` +} + +func (at *Reporting) TableName() string { + return "discussmsg" +} + +// 编辑评论列表内容 +func (cont *DiscussMsg) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取评论列表内容 +func (cont *DiscussMsg) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *DiscussMsg) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} + diff --git a/.history/models/modelbookimg/reporting_20220821091202.go b/.history/models/modelbookimg/reporting_20220821091202.go new file mode 100644 index 0000000..2584b04 --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821091202.go @@ -0,0 +1,42 @@ +package modelbookimg + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + UserJson string `json:"userjson" gorm:"column:r_user_json;type:mediumtext;comment:举报人基本信息"` + Content string `json:"content" gorm:"column:r_content;type:mediumtext;comment:举报内容"` + AnsId int64 `json:"ansid" gorm:"column:r_ans_id;type:bigint unsigned;not null;comment:被举报答案ID"` + AnsCont string `json:"anscont" gorm:"column:r_ans_cont;type:mediumtext;comment:被举报内容"` + Time int64 `json:"time" gorm:"column:r_time;type:bigint unsigned;default:0;not null;comment:举报时间"` + State int `json:"state" gorm:"column:r_state;type:tinyint unsigned;default:1;not null;comment:状态(1:审核,2:有效;3:无效;4:删除)"` +} + +func (at *Reporting) TableName() string { + return "discussmsg" +} + +// 编辑评论列表内容 +func (cont *Reporting) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取评论列表内容 +func (cont *Reporting) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *DiscussMsg) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} + diff --git a/.history/models/modelbookimg/reporting_20220821091204.go b/.history/models/modelbookimg/reporting_20220821091204.go new file mode 100644 index 0000000..3bca829 --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821091204.go @@ -0,0 +1,46 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + UserJson string `json:"userjson" gorm:"column:r_user_json;type:mediumtext;comment:举报人基本信息"` + Content string `json:"content" gorm:"column:r_content;type:mediumtext;comment:举报内容"` + AnsId int64 `json:"ansid" gorm:"column:r_ans_id;type:bigint unsigned;not null;comment:被举报答案ID"` + AnsCont string `json:"anscont" gorm:"column:r_ans_cont;type:mediumtext;comment:被举报内容"` + Time int64 `json:"time" gorm:"column:r_time;type:bigint unsigned;default:0;not null;comment:举报时间"` + State int `json:"state" gorm:"column:r_state;type:tinyint unsigned;default:1;not null;comment:状态(1:审核,2:有效;3:无效;4:删除)"` +} + +func (at *Reporting) TableName() string { + return "discussmsg" +} + +// 编辑评论列表内容 +func (cont *Reporting) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取评论列表内容 +func (cont *Reporting) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *Reporting) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/reporting_20220821091208.go b/.history/models/modelbookimg/reporting_20220821091208.go new file mode 100644 index 0000000..f157b28 --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821091208.go @@ -0,0 +1,46 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + UserJson string `json:"userjson" gorm:"column:r_user_json;type:mediumtext;comment:举报人基本信息"` + Content string `json:"content" gorm:"column:r_content;type:mediumtext;comment:举报内容"` + AnsId int64 `json:"ansid" gorm:"column:r_ans_id;type:bigint unsigned;not null;comment:被举报答案ID"` + AnsCont string `json:"anscont" gorm:"column:r_ans_cont;type:mediumtext;comment:被举报内容"` + Time int64 `json:"time" gorm:"column:r_time;type:bigint unsigned;default:0;not null;comment:举报时间"` + State int `json:"state" gorm:"column:r_state;type:tinyint unsigned;default:1;not null;comment:状态(1:审核,2:有效;3:无效;4:删除)"` +} + +func (r *Reporting) TableName() string { + return "discussmsg" +} + +// 编辑评论列表内容 +func (cont *Reporting) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取评论列表内容 +func (cont *Reporting) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *Reporting) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/reporting_20220821091209.go b/.history/models/modelbookimg/reporting_20220821091209.go new file mode 100644 index 0000000..f157b28 --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821091209.go @@ -0,0 +1,46 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + UserJson string `json:"userjson" gorm:"column:r_user_json;type:mediumtext;comment:举报人基本信息"` + Content string `json:"content" gorm:"column:r_content;type:mediumtext;comment:举报内容"` + AnsId int64 `json:"ansid" gorm:"column:r_ans_id;type:bigint unsigned;not null;comment:被举报答案ID"` + AnsCont string `json:"anscont" gorm:"column:r_ans_cont;type:mediumtext;comment:被举报内容"` + Time int64 `json:"time" gorm:"column:r_time;type:bigint unsigned;default:0;not null;comment:举报时间"` + State int `json:"state" gorm:"column:r_state;type:tinyint unsigned;default:1;not null;comment:状态(1:审核,2:有效;3:无效;4:删除)"` +} + +func (r *Reporting) TableName() string { + return "discussmsg" +} + +// 编辑评论列表内容 +func (cont *Reporting) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取评论列表内容 +func (cont *Reporting) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *Reporting) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/reporting_20220821091244.go b/.history/models/modelbookimg/reporting_20220821091244.go new file mode 100644 index 0000000..ae80292 --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821091244.go @@ -0,0 +1,46 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + UserJson string `json:"userjson" gorm:"column:r_user_json;type:mediumtext;comment:举报人基本信息"` + Content string `json:"content" gorm:"column:r_content;type:mediumtext;comment:举报内容"` + AnsId int64 `json:"ansid" gorm:"column:r_ans_id;type:bigint unsigned;not null;comment:被举报答案ID"` + AnsCont string `json:"anscont" gorm:"column:r_ans_cont;type:mediumtext;comment:被举报内容"` + Time int64 `json:"time" gorm:"column:r_time;type:bigint unsigned;default:0;not null;comment:举报时间"` + State int `json:"state" gorm:"column:r_state;type:tinyint unsigned;default:1;not null;comment:状态(1:审核,2:有效;3:无效;4:删除)"` +} + +func (r *Reporting) TableName() string { + return "reporting" +} + +// 编辑评论列表内容 +func (cont *Reporting) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取评论列表内容 +func (cont *Reporting) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *Reporting) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/reporting_20220821091258.go b/.history/models/modelbookimg/reporting_20220821091258.go new file mode 100644 index 0000000..61734fb --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821091258.go @@ -0,0 +1,46 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + UserJson string `json:"userjson" gorm:"column:r_user_json;type:mediumtext;comment:举报人基本信息"` + Content string `json:"content" gorm:"column:r_content;type:mediumtext;comment:举报内容"` + AnsId int64 `json:"ansid" gorm:"column:r_ans_id;type:bigint unsigned;not null;comment:被举报答案ID"` + AnsCont string `json:"anscont" gorm:"column:r_ans_cont;type:mediumtext;comment:被举报内容"` + Time int64 `json:"time" gorm:"column:r_time;type:bigint unsigned;default:0;not null;comment:举报时间"` + State int `json:"state" gorm:"column:r_state;type:tinyint unsigned;default:1;not null;comment:状态(1:审核,2:有效;3:无效;4:删除)"` +} + +func (r *Reporting) TableName() string { + return "reporting" +} + +// 编辑举报内容 +func (cont *Reporting) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取评论列表内容 +func (cont *Reporting) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *Reporting) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/reporting_20220821091300.go b/.history/models/modelbookimg/reporting_20220821091300.go new file mode 100644 index 0000000..39b5e14 --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821091300.go @@ -0,0 +1,46 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + UserJson string `json:"userjson" gorm:"column:r_user_json;type:mediumtext;comment:举报人基本信息"` + Content string `json:"content" gorm:"column:r_content;type:mediumtext;comment:举报内容"` + AnsId int64 `json:"ansid" gorm:"column:r_ans_id;type:bigint unsigned;not null;comment:被举报答案ID"` + AnsCont string `json:"anscont" gorm:"column:r_ans_cont;type:mediumtext;comment:被举报内容"` + Time int64 `json:"time" gorm:"column:r_time;type:bigint unsigned;default:0;not null;comment:举报时间"` + State int `json:"state" gorm:"column:r_state;type:tinyint unsigned;default:1;not null;comment:状态(1:审核,2:有效;3:无效;4:删除)"` +} + +func (r *Reporting) TableName() string { + return "reporting" +} + +// 编辑举报内容 +func (cont *Reporting) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取举报内容 +func (cont *Reporting) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *Reporting) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/reporting_20220821092814.go b/.history/models/modelbookimg/reporting_20220821092814.go new file mode 100644 index 0000000..3923de6 --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821092814.go @@ -0,0 +1,46 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + UserJson string `json:"userjson" gorm:"column:r_user_json;type:mediumtext;comment:举报人基本信息"` + Content string `json:"content" gorm:"column:r_content;type:mediumtext;comment:举报内容"` + AnsId int64 `json:"ansid" gorm:"column:r_ans_id;type:bigint unsigned;not null;comment:被举报答案ID"` + AnsCont string `json:"anscont" gorm:"column:r_ans_cont;type:mediumtext;comment:被举报内容"` + Time int64 `json:"time" gorm:"column:r_time;type:bigint unsigned;default:0;not null;comment:举报时间"` + State int `json:"state" gorm:"column:r_state;type:tinyint unsigned;default:1;not null;comment:状态(1:审核,2:有效;3:无效;4:删除)"` +} + +func (r *Reporting) TableName() string { + return "reporting" +} + +// 编辑举报内容 +func (cont *Reporting) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_FILE_BOOK.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取举报内容 +func (cont *Reporting) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_FILE_BOOK.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *Reporting) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/reporting_20220821092815.go b/.history/models/modelbookimg/reporting_20220821092815.go new file mode 100644 index 0000000..f31a7da --- /dev/null +++ b/.history/models/modelbookimg/reporting_20220821092815.go @@ -0,0 +1,46 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + UserJson string `json:"userjson" gorm:"column:r_user_json;type:mediumtext;comment:举报人基本信息"` + Content string `json:"content" gorm:"column:r_content;type:mediumtext;comment:举报内容"` + AnsId int64 `json:"ansid" gorm:"column:r_ans_id;type:bigint unsigned;not null;comment:被举报答案ID"` + AnsCont string `json:"anscont" gorm:"column:r_ans_cont;type:mediumtext;comment:被举报内容"` + Time int64 `json:"time" gorm:"column:r_time;type:bigint unsigned;default:0;not null;comment:举报时间"` + State int `json:"state" gorm:"column:r_state;type:tinyint unsigned;default:1;not null;comment:状态(1:审核,2:有效;3:无效;4:删除)"` +} + +func (r *Reporting) TableName() string { + return "reporting" +} + +// 编辑举报内容 +func (cont *Reporting) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_FILE_BOOK.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取举报内容 +func (cont *Reporting) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_FILE_BOOK.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *Reporting) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_FILE_BOOK.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/searchlog_20220821091312.go b/.history/models/modelbookimg/searchlog_20220821091312.go new file mode 100644 index 0000000..e69de29 diff --git a/.history/models/modelbookimg/searchlog_20220821091321.go b/.history/models/modelbookimg/searchlog_20220821091321.go new file mode 100644 index 0000000..36b0a87 --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091321.go @@ -0,0 +1 @@ +package modelbookimg \ No newline at end of file diff --git a/.history/models/modelbookimg/searchlog_20220821091325.go b/.history/models/modelbookimg/searchlog_20220821091325.go new file mode 100644 index 0000000..bb0a336 --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091325.go @@ -0,0 +1,2 @@ +package modelbookimg + diff --git a/.history/models/modelbookimg/searchlog_20220821091329.go b/.history/models/modelbookimg/searchlog_20220821091329.go new file mode 100644 index 0000000..600480e --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091329.go @@ -0,0 +1 @@ +package modelbookimg diff --git a/.history/models/modelbookimg/searchlog_20220821091336.go b/.history/models/modelbookimg/searchlog_20220821091336.go new file mode 100644 index 0000000..87dd386 --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091336.go @@ -0,0 +1,3 @@ +package modelbookimg + +type \ No newline at end of file diff --git a/.history/models/modelbookimg/searchlog_20220821091339.go b/.history/models/modelbookimg/searchlog_20220821091339.go new file mode 100644 index 0000000..bd39f21 --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091339.go @@ -0,0 +1,3 @@ +package modelbookimg + +type searchlog \ No newline at end of file diff --git a/.history/models/modelbookimg/searchlog_20220821091342.go b/.history/models/modelbookimg/searchlog_20220821091342.go new file mode 100644 index 0000000..9368032 --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091342.go @@ -0,0 +1,5 @@ +package modelbookimg + +type searchlog struct{ + +} \ No newline at end of file diff --git a/.history/models/modelbookimg/searchlog_20220821091344.go b/.history/models/modelbookimg/searchlog_20220821091344.go new file mode 100644 index 0000000..ee6e501 --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091344.go @@ -0,0 +1,5 @@ +package modelbookimg + +type Searchlog struct{ + +} \ No newline at end of file diff --git a/.history/models/modelbookimg/searchlog_20220821091349.go b/.history/models/modelbookimg/searchlog_20220821091349.go new file mode 100644 index 0000000..c202e11 --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091349.go @@ -0,0 +1,6 @@ +package modelbookimg + +// +type SearchLog struct{ + +} \ No newline at end of file diff --git a/.history/models/modelbookimg/searchlog_20220821091353.go b/.history/models/modelbookimg/searchlog_20220821091353.go new file mode 100644 index 0000000..0968c1b --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091353.go @@ -0,0 +1,6 @@ +package modelbookimg + +// 关键词记录 +type SearchLog struct{ + +} \ No newline at end of file diff --git a/.history/models/modelbookimg/searchlog_20220821091359.go b/.history/models/modelbookimg/searchlog_20220821091359.go new file mode 100644 index 0000000..40957da --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091359.go @@ -0,0 +1,6 @@ +package modelbookimg + +// 关键词记录 +type SearchLog struct{ + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` +} \ No newline at end of file diff --git a/.history/models/modelbookimg/searchlog_20220821091415.go b/.history/models/modelbookimg/searchlog_20220821091415.go new file mode 100644 index 0000000..69fe243 --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091415.go @@ -0,0 +1,6 @@ +package modelbookimg + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` +} diff --git a/.history/models/modelbookimg/searchlog_20220821091418.go b/.history/models/modelbookimg/searchlog_20220821091418.go new file mode 100644 index 0000000..dee8b32 --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091418.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + +} diff --git a/.history/models/modelbookimg/searchlog_20220821091435.go b/.history/models/modelbookimg/searchlog_20220821091435.go new file mode 100644 index 0000000..97ecaec --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091435.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + Cont +} diff --git a/.history/models/modelbookimg/searchlog_20220821091439.go b/.history/models/modelbookimg/searchlog_20220821091439.go new file mode 100644 index 0000000..83e35f9 --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091439.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + Cont string +} diff --git a/.history/models/modelbookimg/searchlog_20220821091442.go b/.history/models/modelbookimg/searchlog_20220821091442.go new file mode 100644 index 0000000..2c12630 --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091442.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + Cont string `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` +} diff --git a/.history/models/modelbookimg/searchlog_20220821091447.go b/.history/models/modelbookimg/searchlog_20220821091447.go new file mode 100644 index 0000000..b4a4d89 --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091447.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + Cont string `json:"cont" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` +} diff --git a/.history/models/modelbookimg/searchlog_20220821091448.go b/.history/models/modelbookimg/searchlog_20220821091448.go new file mode 100644 index 0000000..f77fa87 --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091448.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + Cont string `json:"cont" gorm:"primaryKey;column:sea_cont;type:bigint unsigned;not null;auto_increment;comment:ID"` +} diff --git a/.history/models/modelbookimg/searchlog_20220821091450.go b/.history/models/modelbookimg/searchlog_20220821091450.go new file mode 100644 index 0000000..412e57b --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091450.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + Cont string `json:"cont" gorm:"column:sea_cont;type:bigint unsigned;not null;auto_increment;comment:ID"` +} diff --git a/.history/models/modelbookimg/searchlog_20220821091458.go b/.history/models/modelbookimg/searchlog_20220821091458.go new file mode 100644 index 0000000..8eddfb2 --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091458.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + Cont string `json:"cont" gorm:"column:sea_cont;type:varchar(255);not null;auto_increment;comment:ID"` +} diff --git a/.history/models/modelbookimg/searchlog_20220821091502.go b/.history/models/modelbookimg/searchlog_20220821091502.go new file mode 100644 index 0000000..d7a803d --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091502.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + Cont string `json:"cont" gorm:"column:sea_cont;type:varchar(255);auto_increment;comment:ID"` +} diff --git a/.history/models/modelbookimg/searchlog_20220821091505.go b/.history/models/modelbookimg/searchlog_20220821091505.go new file mode 100644 index 0000000..654f6b1 --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091505.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + Cont string `json:"cont" gorm:"column:sea_cont;type:varchar(255);comment:ID"` +} diff --git a/.history/models/modelbookimg/searchlog_20220821091508.go b/.history/models/modelbookimg/searchlog_20220821091508.go new file mode 100644 index 0000000..850ad65 --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091508.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + Cont string `json:"cont" gorm:"column:sea_cont;type:varchar(255);comment:关键词"` +} diff --git a/.history/models/modelbookimg/searchlog_20220821091510.go b/.history/models/modelbookimg/searchlog_20220821091510.go new file mode 100644 index 0000000..f4eccd1 --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091510.go @@ -0,0 +1,8 @@ +package modelbookimg + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + Cont string `json:"cont" gorm:"column:sea_cont;type:varchar(255);comment:关键词"` + +} diff --git a/.history/models/modelbookimg/searchlog_20220821091518.go b/.history/models/modelbookimg/searchlog_20220821091518.go new file mode 100644 index 0000000..4fa3bcd --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091518.go @@ -0,0 +1,8 @@ +package modelbookimg + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + Cont string `json:"cont" gorm:"column:sea_cont;type:varchar(255);comment:关键词"` + UserKey +} diff --git a/.history/models/modelbookimg/searchlog_20220821091520.go b/.history/models/modelbookimg/searchlog_20220821091520.go new file mode 100644 index 0000000..5778613 --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091520.go @@ -0,0 +1,8 @@ +package modelbookimg + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + Cont string `json:"cont" gorm:"column:sea_cont;type:varchar(255);comment:关键词"` + UserKey int +} diff --git a/.history/models/modelbookimg/searchlog_20220821091522.go b/.history/models/modelbookimg/searchlog_20220821091522.go new file mode 100644 index 0000000..e92e2e8 --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091522.go @@ -0,0 +1,8 @@ +package modelbookimg + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + Cont string `json:"cont" gorm:"column:sea_cont;type:varchar(255);comment:关键词"` + UserKey int64 +} diff --git a/.history/models/modelbookimg/searchlog_20220821091525.go b/.history/models/modelbookimg/searchlog_20220821091525.go new file mode 100644 index 0000000..2fe9266 --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091525.go @@ -0,0 +1,8 @@ +package modelbookimg + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + Cont string `json:"cont" gorm:"column:sea_cont;type:varchar(255);comment:关键词"` + UserKey int64 `json:"cont" gorm:"column:sea_cont;type:varchar(255);comment:关键词"` +} diff --git a/.history/models/modelbookimg/searchlog_20220821091527.go b/.history/models/modelbookimg/searchlog_20220821091527.go new file mode 100644 index 0000000..dee2669 --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091527.go @@ -0,0 +1,8 @@ +package modelbookimg + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + Cont string `json:"cont" gorm:"column:sea_cont;type:varchar(255);comment:关键词"` + UserKey int64 `json:"userkey" gorm:"column:sea_cont;type:varchar(255);comment:关键词"` +} diff --git a/.history/models/modelbookimg/searchlog_20220821091531.go b/.history/models/modelbookimg/searchlog_20220821091531.go new file mode 100644 index 0000000..01639fd --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091531.go @@ -0,0 +1,8 @@ +package modelbookimg + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + Cont string `json:"cont" gorm:"column:sea_cont;type:varchar(255);comment:关键词"` + UserKey int64 `json:"userkey" gorm:"column:sea_user_key;type:varchar(255);comment:关键词"` +} diff --git a/.history/models/modelbookimg/searchlog_20220821091539.go b/.history/models/modelbookimg/searchlog_20220821091539.go new file mode 100644 index 0000000..1d604ba --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091539.go @@ -0,0 +1,8 @@ +package modelbookimg + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + Cont string `json:"cont" gorm:"column:sea_cont;type:varchar(255);comment:关键词"` + UserKey int64 `json:"userkey" gorm:"column:sea_user_key;type:bigint unsigned;comment:关键词"` +} diff --git a/.history/models/modelbookimg/searchlog_20220821091549.go b/.history/models/modelbookimg/searchlog_20220821091549.go new file mode 100644 index 0000000..653494f --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091549.go @@ -0,0 +1,8 @@ +package modelbookimg + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + Cont string `json:"cont" gorm:"column:sea_cont;type:varchar(255);comment:关键词"` + UserKey int64 `json:"userkey" gorm:"column:sea_user_key;type:bigint unsigned;not null;default:0comment:关键词"` +} diff --git a/.history/models/modelbookimg/searchlog_20220821091550.go b/.history/models/modelbookimg/searchlog_20220821091550.go new file mode 100644 index 0000000..9a9f3c1 --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091550.go @@ -0,0 +1,8 @@ +package modelbookimg + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + Cont string `json:"cont" gorm:"column:sea_cont;type:varchar(255);comment:关键词"` + UserKey int64 `json:"userkey" gorm:"column:sea_user_key;type:bigint unsigned;not null;default:0;comment:关键词"` +} diff --git a/.history/models/modelbookimg/searchlog_20220821091554.go b/.history/models/modelbookimg/searchlog_20220821091554.go new file mode 100644 index 0000000..31655d5 --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091554.go @@ -0,0 +1,8 @@ +package modelbookimg + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + Cont string `json:"cont" gorm:"column:sea_cont;type:varchar(255);comment:关键词"` + UserKey int64 `json:"userkey" gorm:"column:sea_user_key;type:bigint unsigned;not null;default:0;comment:搜索人"` +} diff --git a/.history/models/modelbookimg/searchlog_20220821091556.go b/.history/models/modelbookimg/searchlog_20220821091556.go new file mode 100644 index 0000000..08bceb8 --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091556.go @@ -0,0 +1,9 @@ +package modelbookimg + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + Cont string `json:"cont" gorm:"column:sea_cont;type:varchar(255);comment:关键词"` + UserKey int64 `json:"userkey" gorm:"column:sea_user_key;type:bigint unsigned;not null;default:0;comment:搜索人"` + +} diff --git a/.history/models/modelbookimg/searchlog_20220821091602.go b/.history/models/modelbookimg/searchlog_20220821091602.go new file mode 100644 index 0000000..2609cc6 --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091602.go @@ -0,0 +1,9 @@ +package modelbookimg + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + Cont string `json:"cont" gorm:"column:sea_cont;type:varchar(255);comment:关键词"` + UserKey int64 `json:"userkey" gorm:"column:sea_user_key;type:bigint unsigned;not null;default:0;comment:搜索人"` + Num +} diff --git a/.history/models/modelbookimg/searchlog_20220821091605.go b/.history/models/modelbookimg/searchlog_20220821091605.go new file mode 100644 index 0000000..9be70b2 --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091605.go @@ -0,0 +1,9 @@ +package modelbookimg + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + Cont string `json:"cont" gorm:"column:sea_cont;type:varchar(255);comment:关键词"` + UserKey int64 `json:"userkey" gorm:"column:sea_user_key;type:bigint unsigned;not null;default:0;comment:搜索人"` + Num int +} diff --git a/.history/models/modelbookimg/searchlog_20220821091611.go b/.history/models/modelbookimg/searchlog_20220821091611.go new file mode 100644 index 0000000..8adfb20 --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091611.go @@ -0,0 +1,9 @@ +package modelbookimg + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + Cont string `json:"cont" gorm:"column:sea_cont;type:varchar(255);comment:关键词"` + UserKey int64 `json:"userkey" gorm:"column:sea_user_key;type:bigint unsigned;not null;default:0;comment:搜索人"` + Num int `json:"userkey" gorm:"column:sea_user_key;type:bigint unsigned;not null;default:0;comment:搜索人"` +} diff --git a/.history/models/modelbookimg/searchlog_20220821091614.go b/.history/models/modelbookimg/searchlog_20220821091614.go new file mode 100644 index 0000000..98d8ad2 --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091614.go @@ -0,0 +1,9 @@ +package modelbookimg + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + Cont string `json:"cont" gorm:"column:sea_cont;type:varchar(255);comment:关键词"` + UserKey int64 `json:"userkey" gorm:"column:sea_user_key;type:bigint unsigned;not null;default:0;comment:搜索人"` + Num int `json:"num" gorm:"column:sea_user_key;type:bigint unsigned;not null;default:0;comment:搜索人"` +} diff --git a/.history/models/modelbookimg/searchlog_20220821091619.go b/.history/models/modelbookimg/searchlog_20220821091619.go new file mode 100644 index 0000000..ac59017 --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091619.go @@ -0,0 +1,9 @@ +package modelbookimg + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + Cont string `json:"cont" gorm:"column:sea_cont;type:varchar(255);comment:关键词"` + UserKey int64 `json:"userkey" gorm:"column:sea_user_key;type:bigint unsigned;not null;default:0;comment:搜索人"` + Num int `json:"num" gorm:"column:sea_num;type:bigint unsigned;not null;default:0;comment:搜索人"` +} diff --git a/.history/models/modelbookimg/searchlog_20220821091621.go b/.history/models/modelbookimg/searchlog_20220821091621.go new file mode 100644 index 0000000..69896ba --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091621.go @@ -0,0 +1,9 @@ +package modelbookimg + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + Cont string `json:"cont" gorm:"column:sea_cont;type:varchar(255);comment:关键词"` + UserKey int64 `json:"userkey" gorm:"column:sea_user_key;type:bigint unsigned;not null;default:0;comment:搜索人"` + Num int `json:"num" gorm:"column:sea_num;type:int unsigned;not null;default:0;comment:搜索人"` +} diff --git a/.history/models/modelbookimg/searchlog_20220821091627.go b/.history/models/modelbookimg/searchlog_20220821091627.go new file mode 100644 index 0000000..3e63851 --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091627.go @@ -0,0 +1,9 @@ +package modelbookimg + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + Cont string `json:"cont" gorm:"column:sea_cont;type:varchar(255);comment:关键词"` + UserKey int64 `json:"userkey" gorm:"column:sea_user_key;type:bigint unsigned;not null;default:0;comment:搜索人"` + Num int `json:"num" gorm:"column:sea_num;type:int unsigned;not null;default:0;comment:搜索次数"` +} diff --git a/.history/models/modelbookimg/searchlog_20220821091628.go b/.history/models/modelbookimg/searchlog_20220821091628.go new file mode 100644 index 0000000..3e63851 --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091628.go @@ -0,0 +1,9 @@ +package modelbookimg + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + Cont string `json:"cont" gorm:"column:sea_cont;type:varchar(255);comment:关键词"` + UserKey int64 `json:"userkey" gorm:"column:sea_user_key;type:bigint unsigned;not null;default:0;comment:搜索人"` + Num int `json:"num" gorm:"column:sea_num;type:int unsigned;not null;default:0;comment:搜索次数"` +} diff --git a/.history/models/modelbookimg/searchlog_20220821091636.go b/.history/models/modelbookimg/searchlog_20220821091636.go new file mode 100644 index 0000000..564c9bb --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091636.go @@ -0,0 +1,10 @@ +package modelbookimg + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + Cont string `json:"cont" gorm:"column:sea_cont;type:varchar(255);comment:关键词"` + UserKey int64 `json:"userkey" gorm:"column:sea_user_key;type:bigint unsigned;not null;default:0;comment:搜索人"` + Num int `json:"num" gorm:"column:sea_num;type:int unsigned;not null;default:0;comment:搜索次数"` + Time int +} diff --git a/.history/models/modelbookimg/searchlog_20220821091638.go b/.history/models/modelbookimg/searchlog_20220821091638.go new file mode 100644 index 0000000..bc58f0b --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091638.go @@ -0,0 +1,10 @@ +package modelbookimg + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + Cont string `json:"cont" gorm:"column:sea_cont;type:varchar(255);comment:关键词"` + UserKey int64 `json:"userkey" gorm:"column:sea_user_key;type:bigint unsigned;not null;default:0;comment:搜索人"` + Num int `json:"num" gorm:"column:sea_num;type:int unsigned;not null;default:0;comment:搜索次数"` + Time int64 +} diff --git a/.history/models/modelbookimg/searchlog_20220821091641.go b/.history/models/modelbookimg/searchlog_20220821091641.go new file mode 100644 index 0000000..d65ab78 --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091641.go @@ -0,0 +1,10 @@ +package modelbookimg + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + Cont string `json:"cont" gorm:"column:sea_cont;type:varchar(255);comment:关键词"` + UserKey int64 `json:"userkey" gorm:"column:sea_user_key;type:bigint unsigned;not null;default:0;comment:搜索人"` + Num int `json:"num" gorm:"column:sea_num;type:int unsigned;not null;default:0;comment:搜索次数"` + Time int64 `json:"num" gorm:"column:sea_num;type:int unsigned;not null;default:0;comment:搜索次数"` +} diff --git a/.history/models/modelbookimg/searchlog_20220821091645.go b/.history/models/modelbookimg/searchlog_20220821091645.go new file mode 100644 index 0000000..c504417 --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091645.go @@ -0,0 +1,10 @@ +package modelbookimg + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + Cont string `json:"cont" gorm:"column:sea_cont;type:varchar(255);comment:关键词"` + UserKey int64 `json:"userkey" gorm:"column:sea_user_key;type:bigint unsigned;not null;default:0;comment:搜索人"` + Num int `json:"num" gorm:"column:sea_num;type:int unsigned;not null;default:0;comment:搜索次数"` + Time int64 `json:"time" gorm:"column:sea_num;type:int unsigned;not null;default:0;comment:搜索次数"` +} diff --git a/.history/models/modelbookimg/searchlog_20220821091648.go b/.history/models/modelbookimg/searchlog_20220821091648.go new file mode 100644 index 0000000..e3dfc86 --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091648.go @@ -0,0 +1,10 @@ +package modelbookimg + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + Cont string `json:"cont" gorm:"column:sea_cont;type:varchar(255);comment:关键词"` + UserKey int64 `json:"userkey" gorm:"column:sea_user_key;type:bigint unsigned;not null;default:0;comment:搜索人"` + Num int `json:"num" gorm:"column:sea_num;type:int unsigned;not null;default:0;comment:搜索次数"` + Time int64 `json:"time" gorm:"column:sea_time;type:int unsigned;not null;default:0;comment:搜索次数"` +} diff --git a/.history/models/modelbookimg/searchlog_20220821091652.go b/.history/models/modelbookimg/searchlog_20220821091652.go new file mode 100644 index 0000000..2eb234c --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091652.go @@ -0,0 +1,10 @@ +package modelbookimg + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + Cont string `json:"cont" gorm:"column:sea_cont;type:varchar(255);comment:关键词"` + UserKey int64 `json:"userkey" gorm:"column:sea_user_key;type:bigint unsigned;not null;default:0;comment:搜索人"` + Num int `json:"num" gorm:"column:sea_num;type:int unsigned;not null;default:0;comment:搜索次数"` + Time int64 `json:"time" gorm:"column:sea_time;type:bigint unsigned;not null;default:0;comment:搜索次数"` +} diff --git a/.history/models/modelbookimg/searchlog_20220821091700.go b/.history/models/modelbookimg/searchlog_20220821091700.go new file mode 100644 index 0000000..6c5f5dd --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091700.go @@ -0,0 +1,10 @@ +package modelbookimg + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + Cont string `json:"cont" gorm:"column:sea_cont;type:varchar(255);comment:关键词"` + UserKey int64 `json:"userkey" gorm:"column:sea_user_key;type:bigint unsigned;not null;default:0;comment:搜索人"` + Num int `json:"num" gorm:"column:sea_num;type:int unsigned;not null;default:0;comment:搜索次数"` + Time int64 `json:"time" gorm:"column:sea_time;type:bigint unsigned;not null;default:0;comment:时间"` +} diff --git a/.history/models/modelbookimg/searchlog_20220821091702.go b/.history/models/modelbookimg/searchlog_20220821091702.go new file mode 100644 index 0000000..878cb73 --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091702.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + Cont string `json:"cont" gorm:"column:sea_cont;type:varchar(255);comment:关键词"` + UserKey int64 `json:"userkey" gorm:"column:sea_user_key;type:bigint unsigned;not null;default:0;comment:搜索人"` + Num int `json:"num" gorm:"column:sea_num;type:int unsigned;not null;default:0;comment:搜索次数"` + Time int64 `json:"time" gorm:"column:sea_time;type:bigint unsigned;not null;default:0;comment:时间"` + +} diff --git a/.history/models/modelbookimg/searchlog_20220821091707.go b/.history/models/modelbookimg/searchlog_20220821091707.go new file mode 100644 index 0000000..285b338 --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091707.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + Cont string `json:"cont" gorm:"column:sea_cont;type:varchar(255);comment:关键词"` + UserKey int64 `json:"userkey" gorm:"column:sea_user_key;type:bigint unsigned;not null;default:0;comment:搜索人"` + Num int `json:"num" gorm:"column:sea_num;type:int unsigned;not null;default:0;comment:搜索次数"` + Time int64 `json:"time" gorm:"column:sea_time;type:bigint unsigned;not null;default:0;comment:时间"` + State +} diff --git a/.history/models/modelbookimg/searchlog_20220821091709.go b/.history/models/modelbookimg/searchlog_20220821091709.go new file mode 100644 index 0000000..197bf92 --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091709.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + Cont string `json:"cont" gorm:"column:sea_cont;type:varchar(255);comment:关键词"` + UserKey int64 `json:"userkey" gorm:"column:sea_user_key;type:bigint unsigned;not null;default:0;comment:搜索人"` + Num int `json:"num" gorm:"column:sea_num;type:int unsigned;not null;default:0;comment:搜索次数"` + Time int64 `json:"time" gorm:"column:sea_time;type:bigint unsigned;not null;default:0;comment:时间"` + State int +} diff --git a/.history/models/modelbookimg/searchlog_20220821091712.go b/.history/models/modelbookimg/searchlog_20220821091712.go new file mode 100644 index 0000000..16528ed --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091712.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + Cont string `json:"cont" gorm:"column:sea_cont;type:varchar(255);comment:关键词"` + UserKey int64 `json:"userkey" gorm:"column:sea_user_key;type:bigint unsigned;not null;default:0;comment:搜索人"` + Num int `json:"num" gorm:"column:sea_num;type:int unsigned;not null;default:0;comment:搜索次数"` + Time int64 `json:"time" gorm:"column:sea_time;type:bigint unsigned;not null;default:0;comment:时间"` + State int `json:"userkey" gorm:"column:sea_user_key;type:bigint unsigned;not null;default:0;comment:搜索人"` +} diff --git a/.history/models/modelbookimg/searchlog_20220821091715.go b/.history/models/modelbookimg/searchlog_20220821091715.go new file mode 100644 index 0000000..b32bbd8 --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091715.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + Cont string `json:"cont" gorm:"column:sea_cont;type:varchar(255);comment:关键词"` + UserKey int64 `json:"userkey" gorm:"column:sea_user_key;type:bigint unsigned;not null;default:0;comment:搜索人"` + Num int `json:"num" gorm:"column:sea_num;type:int unsigned;not null;default:0;comment:搜索次数"` + Time int64 `json:"time" gorm:"column:sea_time;type:bigint unsigned;not null;default:0;comment:时间"` + State int `json:"sa" gorm:"column:sea_user_key;type:bigint unsigned;not null;default:0;comment:搜索人"` +} diff --git a/.history/models/modelbookimg/searchlog_20220821091717.go b/.history/models/modelbookimg/searchlog_20220821091717.go new file mode 100644 index 0000000..f427f8b --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091717.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + Cont string `json:"cont" gorm:"column:sea_cont;type:varchar(255);comment:关键词"` + UserKey int64 `json:"userkey" gorm:"column:sea_user_key;type:bigint unsigned;not null;default:0;comment:搜索人"` + Num int `json:"num" gorm:"column:sea_num;type:int unsigned;not null;default:0;comment:搜索次数"` + Time int64 `json:"time" gorm:"column:sea_time;type:bigint unsigned;not null;default:0;comment:时间"` + State int `json:"state" gorm:"column:sea_user_key;type:bigint unsigned;not null;default:0;comment:搜索人"` +} diff --git a/.history/models/modelbookimg/searchlog_20220821091721.go b/.history/models/modelbookimg/searchlog_20220821091721.go new file mode 100644 index 0000000..f4fc398 --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091721.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + Cont string `json:"cont" gorm:"column:sea_cont;type:varchar(255);comment:关键词"` + UserKey int64 `json:"userkey" gorm:"column:sea_user_key;type:bigint unsigned;not null;default:0;comment:搜索人"` + Num int `json:"num" gorm:"column:sea_num;type:int unsigned;not null;default:0;comment:搜索次数"` + Time int64 `json:"time" gorm:"column:sea_time;type:bigint unsigned;not null;default:0;comment:时间"` + State int `json:"state" gorm:"column:sea_state;type:bigint unsigned;not null;default:0;comment:搜索人"` +} diff --git a/.history/models/modelbookimg/searchlog_20220821091725.go b/.history/models/modelbookimg/searchlog_20220821091725.go new file mode 100644 index 0000000..b5737ea --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091725.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + Cont string `json:"cont" gorm:"column:sea_cont;type:varchar(255);comment:关键词"` + UserKey int64 `json:"userkey" gorm:"column:sea_user_key;type:bigint unsigned;not null;default:0;comment:搜索人"` + Num int `json:"num" gorm:"column:sea_num;type:int unsigned;not null;default:0;comment:搜索次数"` + Time int64 `json:"time" gorm:"column:sea_time;type:bigint unsigned;not null;default:0;comment:时间"` + State int `json:"state" gorm:"column:sea_state;type:tinyint unsigned;not null;default:0;comment:搜索人"` +} diff --git a/.history/models/modelbookimg/searchlog_20220821091730.go b/.history/models/modelbookimg/searchlog_20220821091730.go new file mode 100644 index 0000000..05b4260 --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091730.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + Cont string `json:"cont" gorm:"column:sea_cont;type:varchar(255);comment:关键词"` + UserKey int64 `json:"userkey" gorm:"column:sea_user_key;type:bigint unsigned;not null;default:0;comment:搜索人"` + Num int `json:"num" gorm:"column:sea_num;type:int unsigned;not null;default:0;comment:搜索次数"` + Time int64 `json:"time" gorm:"column:sea_time;type:bigint unsigned;not null;default:0;comment:时间"` + State int `json:"state" gorm:"column:sea_state;type:tinyint unsigned;not null;default:1;comment:搜索人"` +} diff --git a/.history/models/modelbookimg/searchlog_20220821091732.go b/.history/models/modelbookimg/searchlog_20220821091732.go new file mode 100644 index 0000000..e2d6da5 --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091732.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + Cont string `json:"cont" gorm:"column:sea_cont;type:varchar(255);comment:关键词"` + UserKey int64 `json:"userkey" gorm:"column:sea_user_key;type:bigint unsigned;not null;default:0;comment:搜索人"` + Num int `json:"num" gorm:"column:sea_num;type:int unsigned;not null;default:0;comment:搜索次数"` + Time int64 `json:"time" gorm:"column:sea_time;type:bigint unsigned;not null;default:0;comment:时间"` + State int `json:"state" gorm:"column:sea_state;type:tinyint unsigned;not null;default:1;comment:1:启用,2:删除"` +} diff --git a/.history/models/modelbookimg/searchlog_20220821091735.go b/.history/models/modelbookimg/searchlog_20220821091735.go new file mode 100644 index 0000000..2d0ac09 --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091735.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + Cont string `json:"cont" gorm:"column:sea_cont;type:varchar(255);comment:关键词"` + UserKey int64 `json:"userkey" gorm:"column:sea_user_key;type:bigint unsigned;not null;default:0;comment:搜索人"` + Num int `json:"num" gorm:"column:sea_num;type:int unsigned;not null;default:0;comment:搜索次数"` + Time int64 `json:"time" gorm:"column:sea_time;type:bigint unsigned;not null;default:0;comment:时间"` + State int `json:"state" gorm:"column:sea_state;type:tinyint unsigned;not null;default:1;comment:1:启用,2:删除"` + +} diff --git a/.history/models/modelbookimg/searchlog_20220821091744.go b/.history/models/modelbookimg/searchlog_20220821091744.go new file mode 100644 index 0000000..355c4c2 --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091744.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + Cont string `json:"cont" gorm:"column:sea_cont;type:varchar(255);comment:关键词"` + UserKey int64 `json:"userkey" gorm:"column:sea_user_key;type:bigint unsigned;not null;default:0;comment:搜索人"` + Num int `json:"num" gorm:"column:sea_num;type:int unsigned;not null;default:0;comment:搜索次数"` + Time int64 `json:"time" gorm:"column:sea_time;type:bigint unsigned;not null;default:0;comment:时间"` + State int `json:"state" gorm:"column:sea_state;type:tinyint unsigned;not null;default:1;comment:1:启用,2:删除"` +} + diff --git a/.history/models/modelbookimg/searchlog_20220821091752.go b/.history/models/modelbookimg/searchlog_20220821091752.go new file mode 100644 index 0000000..48a9405 --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091752.go @@ -0,0 +1,40 @@ +package modelbookimg + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + Cont string `json:"cont" gorm:"column:sea_cont;type:varchar(255);comment:关键词"` + UserKey int64 `json:"userkey" gorm:"column:sea_user_key;type:bigint unsigned;not null;default:0;comment:搜索人"` + Num int `json:"num" gorm:"column:sea_num;type:int unsigned;not null;default:0;comment:搜索次数"` + Time int64 `json:"time" gorm:"column:sea_time;type:bigint unsigned;not null;default:0;comment:时间"` + State int `json:"state" gorm:"column:sea_state;type:tinyint unsigned;not null;default:1;comment:1:启用,2:删除"` +} + +func (r *Reporting) TableName() string { + return "reporting" +} + +// 编辑举报内容 +func (cont *Reporting) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取举报内容 +func (cont *Reporting) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *Reporting) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} + diff --git a/.history/models/modelbookimg/searchlog_20220821091755.go b/.history/models/modelbookimg/searchlog_20220821091755.go new file mode 100644 index 0000000..eb3424d --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091755.go @@ -0,0 +1,40 @@ +package modelbookimg + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + Cont string `json:"cont" gorm:"column:sea_cont;type:varchar(255);comment:关键词"` + UserKey int64 `json:"userkey" gorm:"column:sea_user_key;type:bigint unsigned;not null;default:0;comment:搜索人"` + Num int `json:"num" gorm:"column:sea_num;type:int unsigned;not null;default:0;comment:搜索次数"` + Time int64 `json:"time" gorm:"column:sea_time;type:bigint unsigned;not null;default:0;comment:时间"` + State int `json:"state" gorm:"column:sea_state;type:tinyint unsigned;not null;default:1;comment:1:启用,2:删除"` +} + +func (r *SearchLog) TableName() string { + return "reporting" +} + +// 编辑举报内容 +func (cont *Reporting) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取举报内容 +func (cont *Reporting) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *Reporting) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} + diff --git a/.history/models/modelbookimg/searchlog_20220821091758.go b/.history/models/modelbookimg/searchlog_20220821091758.go new file mode 100644 index 0000000..9dd7169 --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091758.go @@ -0,0 +1,40 @@ +package modelbookimg + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + Cont string `json:"cont" gorm:"column:sea_cont;type:varchar(255);comment:关键词"` + UserKey int64 `json:"userkey" gorm:"column:sea_user_key;type:bigint unsigned;not null;default:0;comment:搜索人"` + Num int `json:"num" gorm:"column:sea_num;type:int unsigned;not null;default:0;comment:搜索次数"` + Time int64 `json:"time" gorm:"column:sea_time;type:bigint unsigned;not null;default:0;comment:时间"` + State int `json:"state" gorm:"column:sea_state;type:tinyint unsigned;not null;default:1;comment:1:启用,2:删除"` +} + +func (r *SearchLog) TableName() string { + return "reporting" +} + +// 编辑举报内容 +func (cont *SearchLog) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取举报内容 +func (cont *SearchLog) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *Reporting) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} + diff --git a/.history/models/modelbookimg/searchlog_20220821091759.go b/.history/models/modelbookimg/searchlog_20220821091759.go new file mode 100644 index 0000000..c3cfbd9 --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091759.go @@ -0,0 +1,40 @@ +package modelbookimg + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + Cont string `json:"cont" gorm:"column:sea_cont;type:varchar(255);comment:关键词"` + UserKey int64 `json:"userkey" gorm:"column:sea_user_key;type:bigint unsigned;not null;default:0;comment:搜索人"` + Num int `json:"num" gorm:"column:sea_num;type:int unsigned;not null;default:0;comment:搜索次数"` + Time int64 `json:"time" gorm:"column:sea_time;type:bigint unsigned;not null;default:0;comment:时间"` + State int `json:"state" gorm:"column:sea_state;type:tinyint unsigned;not null;default:1;comment:1:启用,2:删除"` +} + +func (r *SearchLog) TableName() string { + return "reporting" +} + +// 编辑举报内容 +func (cont *SearchLog) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取举报内容 +func (cont *SearchLog) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *SearchLog) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} + diff --git a/.history/models/modelbookimg/searchlog_20220821091803.go b/.history/models/modelbookimg/searchlog_20220821091803.go new file mode 100644 index 0000000..0a503d1 --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091803.go @@ -0,0 +1,44 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + Cont string `json:"cont" gorm:"column:sea_cont;type:varchar(255);comment:关键词"` + UserKey int64 `json:"userkey" gorm:"column:sea_user_key;type:bigint unsigned;not null;default:0;comment:搜索人"` + Num int `json:"num" gorm:"column:sea_num;type:int unsigned;not null;default:0;comment:搜索次数"` + Time int64 `json:"time" gorm:"column:sea_time;type:bigint unsigned;not null;default:0;comment:时间"` + State int `json:"state" gorm:"column:sea_state;type:tinyint unsigned;not null;default:1;comment:1:启用,2:删除"` +} + +func (sl *SearchLog) TableName() string { + return "reporting" +} + +// 编辑举报内容 +func (cont *SearchLog) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取举报内容 +func (cont *SearchLog) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *SearchLog) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/searchlog_20220821091815.go b/.history/models/modelbookimg/searchlog_20220821091815.go new file mode 100644 index 0000000..1c88c7a --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091815.go @@ -0,0 +1,44 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + Cont string `json:"cont" gorm:"column:sea_cont;type:varchar(255);comment:关键词"` + UserKey int64 `json:"userkey" gorm:"column:sea_user_key;type:bigint unsigned;not null;default:0;comment:搜索人"` + Num int `json:"num" gorm:"column:sea_num;type:int unsigned;not null;default:0;comment:搜索次数"` + Time int64 `json:"time" gorm:"column:sea_time;type:bigint unsigned;not null;default:0;comment:时间"` + State int `json:"state" gorm:"column:sea_state;type:tinyint unsigned;not null;default:1;comment:1:启用,2:删除"` +} + +func (sl *SearchLog) TableName() string { + return "reporting" +} + +// 编辑关键词记录内容 +func (cont *SearchLog) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取举报内容 +func (cont *SearchLog) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *SearchLog) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/searchlog_20220821091816.go b/.history/models/modelbookimg/searchlog_20220821091816.go new file mode 100644 index 0000000..0ce2f71 --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821091816.go @@ -0,0 +1,44 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + Cont string `json:"cont" gorm:"column:sea_cont;type:varchar(255);comment:关键词"` + UserKey int64 `json:"userkey" gorm:"column:sea_user_key;type:bigint unsigned;not null;default:0;comment:搜索人"` + Num int `json:"num" gorm:"column:sea_num;type:int unsigned;not null;default:0;comment:搜索次数"` + Time int64 `json:"time" gorm:"column:sea_time;type:bigint unsigned;not null;default:0;comment:时间"` + State int `json:"state" gorm:"column:sea_state;type:tinyint unsigned;not null;default:1;comment:1:启用,2:删除"` +} + +func (sl *SearchLog) TableName() string { + return "reporting" +} + +// 编辑关键词记录内容 +func (cont *SearchLog) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取关键词记录内容 +func (cont *SearchLog) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *SearchLog) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/searchlog_20220821092803.go b/.history/models/modelbookimg/searchlog_20220821092803.go new file mode 100644 index 0000000..0f1d88b --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821092803.go @@ -0,0 +1,44 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + Cont string `json:"cont" gorm:"column:sea_cont;type:varchar(255);comment:关键词"` + UserKey int64 `json:"userkey" gorm:"column:sea_user_key;type:bigint unsigned;not null;default:0;comment:搜索人"` + Num int `json:"num" gorm:"column:sea_num;type:int unsigned;not null;default:0;comment:搜索次数"` + Time int64 `json:"time" gorm:"column:sea_time;type:bigint unsigned;not null;default:0;comment:时间"` + State int `json:"state" gorm:"column:sea_state;type:tinyint unsigned;not null;default:1;comment:1:启用,2:删除"` +} + +func (sl *SearchLog) TableName() string { + return "reporting" +} + +// 编辑关键词记录内容 +func (cont *SearchLog) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_FILE_BOOK.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取关键词记录内容 +func (cont *SearchLog) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *SearchLog) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/searchlog_20220821092804.go b/.history/models/modelbookimg/searchlog_20220821092804.go new file mode 100644 index 0000000..9c8a9eb --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821092804.go @@ -0,0 +1,44 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + Cont string `json:"cont" gorm:"column:sea_cont;type:varchar(255);comment:关键词"` + UserKey int64 `json:"userkey" gorm:"column:sea_user_key;type:bigint unsigned;not null;default:0;comment:搜索人"` + Num int `json:"num" gorm:"column:sea_num;type:int unsigned;not null;default:0;comment:搜索次数"` + Time int64 `json:"time" gorm:"column:sea_time;type:bigint unsigned;not null;default:0;comment:时间"` + State int `json:"state" gorm:"column:sea_state;type:tinyint unsigned;not null;default:1;comment:1:启用,2:删除"` +} + +func (sl *SearchLog) TableName() string { + return "reporting" +} + +// 编辑关键词记录内容 +func (cont *SearchLog) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_FILE_BOOK.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取关键词记录内容 +func (cont *SearchLog) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_FILE_BOOK.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *SearchLog) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/searchlog_20220821092805.go b/.history/models/modelbookimg/searchlog_20220821092805.go new file mode 100644 index 0000000..33713db --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821092805.go @@ -0,0 +1,44 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + Cont string `json:"cont" gorm:"column:sea_cont;type:varchar(255);comment:关键词"` + UserKey int64 `json:"userkey" gorm:"column:sea_user_key;type:bigint unsigned;not null;default:0;comment:搜索人"` + Num int `json:"num" gorm:"column:sea_num;type:int unsigned;not null;default:0;comment:搜索次数"` + Time int64 `json:"time" gorm:"column:sea_time;type:bigint unsigned;not null;default:0;comment:时间"` + State int `json:"state" gorm:"column:sea_state;type:tinyint unsigned;not null;default:1;comment:1:启用,2:删除"` +} + +func (sl *SearchLog) TableName() string { + return "reporting" +} + +// 编辑关键词记录内容 +func (cont *SearchLog) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_FILE_BOOK.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取关键词记录内容 +func (cont *SearchLog) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_FILE_BOOK.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *SearchLog) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_FILE_BOOK.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/searchlog_20220821092807.go b/.history/models/modelbookimg/searchlog_20220821092807.go new file mode 100644 index 0000000..33713db --- /dev/null +++ b/.history/models/modelbookimg/searchlog_20220821092807.go @@ -0,0 +1,44 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + Cont string `json:"cont" gorm:"column:sea_cont;type:varchar(255);comment:关键词"` + UserKey int64 `json:"userkey" gorm:"column:sea_user_key;type:bigint unsigned;not null;default:0;comment:搜索人"` + Num int `json:"num" gorm:"column:sea_num;type:int unsigned;not null;default:0;comment:搜索次数"` + Time int64 `json:"time" gorm:"column:sea_time;type:bigint unsigned;not null;default:0;comment:时间"` + State int `json:"state" gorm:"column:sea_state;type:tinyint unsigned;not null;default:1;comment:1:启用,2:删除"` +} + +func (sl *SearchLog) TableName() string { + return "reporting" +} + +// 编辑关键词记录内容 +func (cont *SearchLog) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_FILE_BOOK.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取关键词记录内容 +func (cont *SearchLog) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_FILE_BOOK.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *SearchLog) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_FILE_BOOK.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/traceing_20220821091834.go b/.history/models/modelbookimg/traceing_20220821091834.go new file mode 100644 index 0000000..e69de29 diff --git a/.history/models/modelbookimg/traceing_20220821091838.go b/.history/models/modelbookimg/traceing_20220821091838.go new file mode 100644 index 0000000..59c77e4 --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821091838.go @@ -0,0 +1 @@ +package \ No newline at end of file diff --git a/.history/models/modelbookimg/traceing_20220821091854.go b/.history/models/modelbookimg/traceing_20220821091854.go new file mode 100644 index 0000000..0b86609 --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821091854.go @@ -0,0 +1,5 @@ +package modelbookimg + +type traceing struct{ + +} \ No newline at end of file diff --git a/.history/models/modelbookimg/traceing_20220821091856.go b/.history/models/modelbookimg/traceing_20220821091856.go new file mode 100644 index 0000000..8127b60 --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821091856.go @@ -0,0 +1,4 @@ +package modelbookimg + +type Traceing struct { +} diff --git a/.history/models/modelbookimg/traceing_20220821091902.go b/.history/models/modelbookimg/traceing_20220821091902.go new file mode 100644 index 0000000..3f2f5b0 --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821091902.go @@ -0,0 +1,4 @@ +package modelbookimg +追问 +type Traceing struct { +} diff --git a/.history/models/modelbookimg/traceing_20220821091905.go b/.history/models/modelbookimg/traceing_20220821091905.go new file mode 100644 index 0000000..27928a2 --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821091905.go @@ -0,0 +1,5 @@ +package modelbookimg + +// 追问 +type Traceing struct { +} diff --git a/.history/models/modelbookimg/traceing_20220821091908.go b/.history/models/modelbookimg/traceing_20220821091908.go new file mode 100644 index 0000000..e0c14c3 --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821091908.go @@ -0,0 +1,6 @@ +package modelbookimg + +// 追问 +type Traceing struct { + +} diff --git a/.history/models/modelbookimg/traceing_20220821091915.go b/.history/models/modelbookimg/traceing_20220821091915.go new file mode 100644 index 0000000..9d6d4f7 --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821091915.go @@ -0,0 +1,6 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` +} diff --git a/.history/models/modelbookimg/traceing_20220821091958.go b/.history/models/modelbookimg/traceing_20220821091958.go new file mode 100644 index 0000000..f543346 --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821091958.go @@ -0,0 +1,6 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` +} diff --git a/.history/models/modelbookimg/traceing_20220821092001.go b/.history/models/modelbookimg/traceing_20220821092001.go new file mode 100644 index 0000000..b8daa83 --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092001.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + +} diff --git a/.history/models/modelbookimg/traceing_20220821092009.go b/.history/models/modelbookimg/traceing_20220821092009.go new file mode 100644 index 0000000..6fbef41 --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092009.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int +} diff --git a/.history/models/modelbookimg/traceing_20220821092011.go b/.history/models/modelbookimg/traceing_20220821092011.go new file mode 100644 index 0000000..b37223a --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092011.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 +} diff --git a/.history/models/modelbookimg/traceing_20220821092015.go b/.history/models/modelbookimg/traceing_20220821092015.go new file mode 100644 index 0000000..dc26f62 --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092015.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` +} diff --git a/.history/models/modelbookimg/traceing_20220821092018.go b/.history/models/modelbookimg/traceing_20220821092018.go new file mode 100644 index 0000000..2ac3546 --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092018.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` +} diff --git a/.history/models/modelbookimg/traceing_20220821092022.go b/.history/models/modelbookimg/traceing_20220821092022.go new file mode 100644 index 0000000..3f57f7f --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092022.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"primaryKey;column:tr_ans_id;type:bigint unsigned;not null;auto_increment;comment:ID"` +} diff --git a/.history/models/modelbookimg/traceing_20220821092026.go b/.history/models/modelbookimg/traceing_20220821092026.go new file mode 100644 index 0000000..05a315b --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092026.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;auto_increment;comment:ID"` +} diff --git a/.history/models/modelbookimg/traceing_20220821092034.go b/.history/models/modelbookimg/traceing_20220821092034.go new file mode 100644 index 0000000..3478265 --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092034.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:ID"` +} diff --git a/.history/models/modelbookimg/traceing_20220821092039.go b/.history/models/modelbookimg/traceing_20220821092039.go new file mode 100644 index 0000000..809e37c --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092039.go @@ -0,0 +1,7 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` +} diff --git a/.history/models/modelbookimg/traceing_20220821092041.go b/.history/models/modelbookimg/traceing_20220821092041.go new file mode 100644 index 0000000..afd7178 --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092041.go @@ -0,0 +1,8 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + +} diff --git a/.history/models/modelbookimg/traceing_20220821092047.go b/.history/models/modelbookimg/traceing_20220821092047.go new file mode 100644 index 0000000..07c74fe --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092047.go @@ -0,0 +1,8 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey +} diff --git a/.history/models/modelbookimg/traceing_20220821092051.go b/.history/models/modelbookimg/traceing_20220821092051.go new file mode 100644 index 0000000..275649a --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092051.go @@ -0,0 +1,8 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:sea_user_key;type:bigint unsigned;not null;default:0;comment:搜索人"` +} diff --git a/.history/models/modelbookimg/traceing_20220821092059.go b/.history/models/modelbookimg/traceing_20220821092059.go new file mode 100644 index 0000000..49bf00e --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092059.go @@ -0,0 +1,8 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:搜索人"` +} diff --git a/.history/models/modelbookimg/traceing_20220821092110.go b/.history/models/modelbookimg/traceing_20220821092110.go new file mode 100644 index 0000000..ba66859 --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092110.go @@ -0,0 +1,8 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` +} diff --git a/.history/models/modelbookimg/traceing_20220821092111.go b/.history/models/modelbookimg/traceing_20220821092111.go new file mode 100644 index 0000000..7ef8c7e --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092111.go @@ -0,0 +1,9 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + +} diff --git a/.history/models/modelbookimg/traceing_20220821092130.go b/.history/models/modelbookimg/traceing_20220821092130.go new file mode 100644 index 0000000..71f9208 --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092130.go @@ -0,0 +1,9 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:r_user_json;type:mediumtext;comment:举报人基本信息"` +} diff --git a/.history/models/modelbookimg/traceing_20220821092139.go b/.history/models/modelbookimg/traceing_20220821092139.go new file mode 100644 index 0000000..50bc5f4 --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092139.go @@ -0,0 +1,9 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:举报人基本信息"` +} diff --git a/.history/models/modelbookimg/traceing_20220821092148.go b/.history/models/modelbookimg/traceing_20220821092148.go new file mode 100644 index 0000000..0810649 --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092148.go @@ -0,0 +1,9 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` +} diff --git a/.history/models/modelbookimg/traceing_20220821092154.go b/.history/models/modelbookimg/traceing_20220821092154.go new file mode 100644 index 0000000..4f3a72c --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092154.go @@ -0,0 +1,10 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + +} diff --git a/.history/models/modelbookimg/traceing_20220821092158.go b/.history/models/modelbookimg/traceing_20220821092158.go new file mode 100644 index 0000000..2bb161b --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092158.go @@ -0,0 +1,10 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Cont +} diff --git a/.history/models/modelbookimg/traceing_20220821092207.go b/.history/models/modelbookimg/traceing_20220821092207.go new file mode 100644 index 0000000..2db98bc --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092207.go @@ -0,0 +1,10 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Content string `json:"content" gorm:"column:r_content;type:mediumtext;comment:举报内容"` +} diff --git a/.history/models/modelbookimg/traceing_20220821092209.go b/.history/models/modelbookimg/traceing_20220821092209.go new file mode 100644 index 0000000..1f63815 --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092209.go @@ -0,0 +1,10 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Cont string `json:"content" gorm:"column:r_content;type:mediumtext;comment:举报内容"` +} diff --git a/.history/models/modelbookimg/traceing_20220821092212.go b/.history/models/modelbookimg/traceing_20220821092212.go new file mode 100644 index 0000000..46a52e1 --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092212.go @@ -0,0 +1,10 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Cont string `json:"cont" gorm:"column:r_content;type:mediumtext;comment:举报内容"` +} diff --git a/.history/models/modelbookimg/traceing_20220821092217.go b/.history/models/modelbookimg/traceing_20220821092217.go new file mode 100644 index 0000000..13af029 --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092217.go @@ -0,0 +1,10 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Cont string `json:"cont" gorm:"column:tr_cont;type:mediumtext;comment:举报内容"` +} diff --git a/.history/models/modelbookimg/traceing_20220821092222.go b/.history/models/modelbookimg/traceing_20220821092222.go new file mode 100644 index 0000000..dd0e1bf --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092222.go @@ -0,0 +1,10 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Cont string `json:"cont" gorm:"column:tr_cont;type:mediumtext;comment:内容"` +} diff --git a/.history/models/modelbookimg/traceing_20220821092223.go b/.history/models/modelbookimg/traceing_20220821092223.go new file mode 100644 index 0000000..47883de --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092223.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Cont string `json:"cont" gorm:"column:tr_cont;type:mediumtext;comment:内容"` + +} diff --git a/.history/models/modelbookimg/traceing_20220821092228.go b/.history/models/modelbookimg/traceing_20220821092228.go new file mode 100644 index 0000000..e87a72f --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092228.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Cont string `json:"cont" gorm:"column:tr_cont;type:mediumtext;comment:内容"` + Type +} diff --git a/.history/models/modelbookimg/traceing_20220821092231.go b/.history/models/modelbookimg/traceing_20220821092231.go new file mode 100644 index 0000000..cb999df --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092231.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Cont string `json:"cont" gorm:"column:tr_cont;type:mediumtext;comment:内容"` + Type int +} diff --git a/.history/models/modelbookimg/traceing_20220821092236.go b/.history/models/modelbookimg/traceing_20220821092236.go new file mode 100644 index 0000000..fbe67e0 --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092236.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Cont string `json:"cont" gorm:"column:tr_cont;type:mediumtext;comment:内容"` + Type int `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` +} diff --git a/.history/models/modelbookimg/traceing_20220821092239.go b/.history/models/modelbookimg/traceing_20220821092239.go new file mode 100644 index 0000000..eb5689c --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092239.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Cont string `json:"cont" gorm:"column:tr_cont;type:mediumtext;comment:内容"` + Type int `json:"ansid" gorm:"column:tr_type;type:bigint unsigned;not null;default:0;comment:答案ID"` +} diff --git a/.history/models/modelbookimg/traceing_20220821092242.go b/.history/models/modelbookimg/traceing_20220821092242.go new file mode 100644 index 0000000..92725a1 --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092242.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Cont string `json:"cont" gorm:"column:tr_cont;type:mediumtext;comment:内容"` + Type int `json:"type" gorm:"column:tr_type;type:bigint unsigned;not null;default:0;comment:答案ID"` +} diff --git a/.history/models/modelbookimg/traceing_20220821092249.go b/.history/models/modelbookimg/traceing_20220821092249.go new file mode 100644 index 0000000..eaf83d2 --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092249.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Cont string `json:"cont" gorm:"column:tr_cont;type:mediumtext;comment:内容"` + Type int `json:"type" gorm:"column:tr_type;type:tinyint unsigned;not null;default:0;comment:答案ID"` +} diff --git a/.history/models/modelbookimg/traceing_20220821092252.go b/.history/models/modelbookimg/traceing_20220821092252.go new file mode 100644 index 0000000..86f4cd6 --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092252.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Cont string `json:"cont" gorm:"column:tr_cont;type:mediumtext;comment:内容"` + Type int `json:"type" gorm:"column:tr_type;type:tinyint unsigned;not null;default:1;comment:答案ID"` +} diff --git a/.history/models/modelbookimg/traceing_20220821092255.go b/.history/models/modelbookimg/traceing_20220821092255.go new file mode 100644 index 0000000..98f8c5d --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092255.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Cont string `json:"cont" gorm:"column:tr_cont;type:mediumtext;comment:内容"` + Type int `json:"type" gorm:"column:tr_type;type:tinyint unsigned;not null;default:1;comment:类型(1:追问;2:追答)"` +} diff --git a/.history/models/modelbookimg/traceing_20220821092256.go b/.history/models/modelbookimg/traceing_20220821092256.go new file mode 100644 index 0000000..021d152 --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092256.go @@ -0,0 +1,11 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Cont string `json:"cont" gorm:"column:tr_cont;type:mediumtext;comment:内容"` + Type int `json:"type" gorm:"column:tr_type;type:tinyint unsigned;not null;default:1;comment:类型(1:追问;2:追答)"` +} diff --git a/.history/models/modelbookimg/traceing_20220821092301.go b/.history/models/modelbookimg/traceing_20220821092301.go new file mode 100644 index 0000000..8e493c9 --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092301.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Cont string `json:"cont" gorm:"column:tr_cont;type:mediumtext;comment:内容"` + Type int `json:"type" gorm:"column:tr_type;type:tinyint unsigned;not null;default:1;comment:类型(1:追问;2:追答)"` + +} diff --git a/.history/models/modelbookimg/traceing_20220821092304.go b/.history/models/modelbookimg/traceing_20220821092304.go new file mode 100644 index 0000000..55173db --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092304.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Cont string `json:"cont" gorm:"column:tr_cont;type:mediumtext;comment:内容"` + Type int `json:"type" gorm:"column:tr_type;type:tinyint unsigned;not null;default:1;comment:类型(1:追问;2:追答)"` + State int +} diff --git a/.history/models/modelbookimg/traceing_20220821092310.go b/.history/models/modelbookimg/traceing_20220821092310.go new file mode 100644 index 0000000..e07157d --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092310.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Cont string `json:"cont" gorm:"column:tr_cont;type:mediumtext;comment:内容"` + Type int `json:"type" gorm:"column:tr_type;type:tinyint unsigned;not null;default:1;comment:类型(1:追问;2:追答)"` + State int `json:"type" gorm:"column:tr_type;type:tinyint unsigned;not null;default:1;comment:类型(1:追问;2:追答)"` +} diff --git a/.history/models/modelbookimg/traceing_20220821092313.go b/.history/models/modelbookimg/traceing_20220821092313.go new file mode 100644 index 0000000..d9936d3 --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092313.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Cont string `json:"cont" gorm:"column:tr_cont;type:mediumtext;comment:内容"` + Type int `json:"type" gorm:"column:tr_type;type:tinyint unsigned;not null;default:1;comment:类型(1:追问;2:追答)"` + State int `json:"state" gorm:"column:tr_type;type:tinyint unsigned;not null;default:1;comment:类型(1:追问;2:追答)"` +} diff --git a/.history/models/modelbookimg/traceing_20220821092317.go b/.history/models/modelbookimg/traceing_20220821092317.go new file mode 100644 index 0000000..c08c6e6 --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092317.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Cont string `json:"cont" gorm:"column:tr_cont;type:mediumtext;comment:内容"` + Type int `json:"type" gorm:"column:tr_type;type:tinyint unsigned;not null;default:1;comment:类型(1:追问;2:追答)"` + State int `json:"state" gorm:"column:tr_state;type:tinyint unsigned;not null;default:1;comment:类型(1:追问;2:追答)"` +} diff --git a/.history/models/modelbookimg/traceing_20220821092326.go b/.history/models/modelbookimg/traceing_20220821092326.go new file mode 100644 index 0000000..9d06af7 --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092326.go @@ -0,0 +1,12 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Cont string `json:"cont" gorm:"column:tr_cont;type:mediumtext;comment:内容"` + Type int `json:"type" gorm:"column:tr_type;type:tinyint unsigned;not null;default:1;comment:类型(1:追问;2:追答)"` + State int `json:"state" gorm:"column:tr_state;type:tinyint unsigned;not null;default:1;comment:状态(1:启用;2:禁用)"` +} diff --git a/.history/models/modelbookimg/traceing_20220821092328.go b/.history/models/modelbookimg/traceing_20220821092328.go new file mode 100644 index 0000000..f00ec18 --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092328.go @@ -0,0 +1,13 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Cont string `json:"cont" gorm:"column:tr_cont;type:mediumtext;comment:内容"` + Type int `json:"type" gorm:"column:tr_type;type:tinyint unsigned;not null;default:1;comment:类型(1:追问;2:追答)"` + State int `json:"state" gorm:"column:tr_state;type:tinyint unsigned;not null;default:1;comment:状态(1:启用;2:禁用)"` + +} diff --git a/.history/models/modelbookimg/traceing_20220821092333.go b/.history/models/modelbookimg/traceing_20220821092333.go new file mode 100644 index 0000000..f7458d3 --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092333.go @@ -0,0 +1,13 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Cont string `json:"cont" gorm:"column:tr_cont;type:mediumtext;comment:内容"` + Type int `json:"type" gorm:"column:tr_type;type:tinyint unsigned;not null;default:1;comment:类型(1:追问;2:追答)"` + State int `json:"state" gorm:"column:tr_state;type:tinyint unsigned;not null;default:1;comment:状态(1:启用;2:禁用)"` + Time int +} diff --git a/.history/models/modelbookimg/traceing_20220821092334.go b/.history/models/modelbookimg/traceing_20220821092334.go new file mode 100644 index 0000000..933c0e4 --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092334.go @@ -0,0 +1,13 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Cont string `json:"cont" gorm:"column:tr_cont;type:mediumtext;comment:内容"` + Type int `json:"type" gorm:"column:tr_type;type:tinyint unsigned;not null;default:1;comment:类型(1:追问;2:追答)"` + State int `json:"state" gorm:"column:tr_state;type:tinyint unsigned;not null;default:1;comment:状态(1:启用;2:禁用)"` + Time int64 +} diff --git a/.history/models/modelbookimg/traceing_20220821092341.go b/.history/models/modelbookimg/traceing_20220821092341.go new file mode 100644 index 0000000..8a435e1 --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092341.go @@ -0,0 +1,13 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Cont string `json:"cont" gorm:"column:tr_cont;type:mediumtext;comment:内容"` + Type int `json:"type" gorm:"column:tr_type;type:tinyint unsigned;not null;default:1;comment:类型(1:追问;2:追答)"` + State int `json:"state" gorm:"column:tr_state;type:tinyint unsigned;not null;default:1;comment:状态(1:启用;2:禁用)"` + Time int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` +} diff --git a/.history/models/modelbookimg/traceing_20220821092343.go b/.history/models/modelbookimg/traceing_20220821092343.go new file mode 100644 index 0000000..33a3cbb --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092343.go @@ -0,0 +1,13 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Cont string `json:"cont" gorm:"column:tr_cont;type:mediumtext;comment:内容"` + Type int `json:"type" gorm:"column:tr_type;type:tinyint unsigned;not null;default:1;comment:类型(1:追问;2:追答)"` + State int `json:"state" gorm:"column:tr_state;type:tinyint unsigned;not null;default:1;comment:状态(1:启用;2:禁用)"` + Time int64 `json:"time" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` +} diff --git a/.history/models/modelbookimg/traceing_20220821092352.go b/.history/models/modelbookimg/traceing_20220821092352.go new file mode 100644 index 0000000..56b2ec1 --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092352.go @@ -0,0 +1,13 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Cont string `json:"cont" gorm:"column:tr_cont;type:mediumtext;comment:内容"` + Type int `json:"type" gorm:"column:tr_type;type:tinyint unsigned;not null;default:1;comment:类型(1:追问;2:追答)"` + State int `json:"state" gorm:"column:tr_state;type:tinyint unsigned;not null;default:1;comment:状态(1:启用;2:禁用)"` + Time int64 `json:"time" gorm:"column:tr_time;type:bigint unsigned;not null;default:0;comment:答案ID"` +} diff --git a/.history/models/modelbookimg/traceing_20220821092401.go b/.history/models/modelbookimg/traceing_20220821092401.go new file mode 100644 index 0000000..7386dfa --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092401.go @@ -0,0 +1,14 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Cont string `json:"cont" gorm:"column:tr_cont;type:mediumtext;comment:内容"` + Type int `json:"type" gorm:"column:tr_type;type:tinyint unsigned;not null;default:1;comment:类型(1:追问;2:追答)"` + State int `json:"state" gorm:"column:tr_state;type:tinyint unsigned;not null;default:1;comment:状态(1:启用;2:禁用)"` + Time int64 `json:"time" gorm:"column:tr_time;type:bigint unsigned;not null;default:0;comment:时间"` + +} diff --git a/.history/models/modelbookimg/traceing_20220821092407.go b/.history/models/modelbookimg/traceing_20220821092407.go new file mode 100644 index 0000000..f1f9bd2 --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092407.go @@ -0,0 +1,15 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Cont string `json:"cont" gorm:"column:tr_cont;type:mediumtext;comment:内容"` + Type int `json:"type" gorm:"column:tr_type;type:tinyint unsigned;not null;default:1;comment:类型(1:追问;2:追答)"` + State int `json:"state" gorm:"column:tr_state;type:tinyint unsigned;not null;default:1;comment:状态(1:启用;2:禁用)"` + Time int64 `json:"time" gorm:"column:tr_time;type:bigint unsigned;not null;default:0;comment:时间"` + Time int64 `json:"time" gorm:"column:tr_time;type:bigint unsigned;not null;default:0;comment:时间"` + +} diff --git a/.history/models/modelbookimg/traceing_20220821092411.go b/.history/models/modelbookimg/traceing_20220821092411.go new file mode 100644 index 0000000..a3ca54e --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092411.go @@ -0,0 +1,15 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Cont string `json:"cont" gorm:"column:tr_cont;type:mediumtext;comment:内容"` + Type int `json:"type" gorm:"column:tr_type;type:tinyint unsigned;not null;default:1;comment:类型(1:追问;2:追答)"` + State int `json:"state" gorm:"column:tr_state;type:tinyint unsigned;not null;default:1;comment:状态(1:启用;2:禁用)"` + Time int64 `json:"time" gorm:"column:tr_time;type:bigint unsigned;not null;default:0;comment:时间"` + Time int64 `json:"time" gorm:"column:tr_eite_time;type:bigint unsigned;not null;default:0;comment:时间"` + +} diff --git a/.history/models/modelbookimg/traceing_20220821092416.go b/.history/models/modelbookimg/traceing_20220821092416.go new file mode 100644 index 0000000..d44ecc5 --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092416.go @@ -0,0 +1,15 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Cont string `json:"cont" gorm:"column:tr_cont;type:mediumtext;comment:内容"` + Type int `json:"type" gorm:"column:tr_type;type:tinyint unsigned;not null;default:1;comment:类型(1:追问;2:追答)"` + State int `json:"state" gorm:"column:tr_state;type:tinyint unsigned;not null;default:1;comment:状态(1:启用;2:禁用)"` + Time int64 `json:"time" gorm:"column:tr_time;type:bigint unsigned;not null;default:0;comment:时间"` + EiteT int64 `json:"time" gorm:"column:tr_eite_time;type:bigint unsigned;not null;default:0;comment:时间"` + +} diff --git a/.history/models/modelbookimg/traceing_20220821092417.go b/.history/models/modelbookimg/traceing_20220821092417.go new file mode 100644 index 0000000..b7e1cfa --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092417.go @@ -0,0 +1,15 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Cont string `json:"cont" gorm:"column:tr_cont;type:mediumtext;comment:内容"` + Type int `json:"type" gorm:"column:tr_type;type:tinyint unsigned;not null;default:1;comment:类型(1:追问;2:追答)"` + State int `json:"state" gorm:"column:tr_state;type:tinyint unsigned;not null;default:1;comment:状态(1:启用;2:禁用)"` + Time int64 `json:"time" gorm:"column:tr_time;type:bigint unsigned;not null;default:0;comment:时间"` + EiteTime int64 `json:"time" gorm:"column:tr_eite_time;type:bigint unsigned;not null;default:0;comment:时间"` + +} diff --git a/.history/models/modelbookimg/traceing_20220821092423.go b/.history/models/modelbookimg/traceing_20220821092423.go new file mode 100644 index 0000000..9e8a853 --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092423.go @@ -0,0 +1,15 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Cont string `json:"cont" gorm:"column:tr_cont;type:mediumtext;comment:内容"` + Type int `json:"type" gorm:"column:tr_type;type:tinyint unsigned;not null;default:1;comment:类型(1:追问;2:追答)"` + State int `json:"state" gorm:"column:tr_state;type:tinyint unsigned;not null;default:1;comment:状态(1:启用;2:禁用)"` + Time int64 `json:"time" gorm:"column:tr_time;type:bigint unsigned;not null;default:0;comment:时间"` + EiteTime int64 `json:"eitetime" gorm:"column:tr_eite_time;type:bigint unsigned;not null;default:0;comment:时间"` + +} diff --git a/.history/models/modelbookimg/traceing_20220821092437.go b/.history/models/modelbookimg/traceing_20220821092437.go new file mode 100644 index 0000000..af06e4e --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092437.go @@ -0,0 +1,15 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Cont string `json:"cont" gorm:"column:tr_cont;type:mediumtext;comment:内容"` + Type int `json:"type" gorm:"column:tr_type;type:tinyint unsigned;not null;default:1;comment:类型(1:追问;2:追答)"` + State int `json:"state" gorm:"column:tr_state;type:tinyint unsigned;not null;default:1;comment:状态(1:启用;2:禁用)"` + Time int64 `json:"time" gorm:"column:tr_time;type:bigint unsigned;not null;default:0;comment:时间"` + EiteTime int64 `json:"eitetime" gorm:"column:tr_eite_time;type:bigint unsigned;not null;default:0;comment:编辑时间"` + +} diff --git a/.history/models/modelbookimg/traceing_20220821092439.go b/.history/models/modelbookimg/traceing_20220821092439.go new file mode 100644 index 0000000..f2f7d45 --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092439.go @@ -0,0 +1,16 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Cont string `json:"cont" gorm:"column:tr_cont;type:mediumtext;comment:内容"` + Type int `json:"type" gorm:"column:tr_type;type:tinyint unsigned;not null;default:1;comment:类型(1:追问;2:追答)"` + State int `json:"state" gorm:"column:tr_state;type:tinyint unsigned;not null;default:1;comment:状态(1:启用;2:禁用)"` + Time int64 `json:"time" gorm:"column:tr_time;type:bigint unsigned;not null;default:0;comment:时间"` + EiteTime int64 `json:"eitetime" gorm:"column:tr_eite_time;type:bigint unsigned;not null;default:0;comment:编辑时间"` + + +} diff --git a/.history/models/modelbookimg/traceing_20220821092448.go b/.history/models/modelbookimg/traceing_20220821092448.go new file mode 100644 index 0000000..8e7124c --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092448.go @@ -0,0 +1,16 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Cont string `json:"cont" gorm:"column:tr_cont;type:mediumtext;comment:内容"` + Type int `json:"type" gorm:"column:tr_type;type:tinyint unsigned;not null;default:1;comment:类型(1:追问;2:追答)"` + State int `json:"state" gorm:"column:tr_state;type:tinyint unsigned;not null;default:1;comment:状态(1:启用;2:禁用)"` + Time int64 `json:"time" gorm:"column:tr_time;type:bigint unsigned;not null;default:0;comment:时间"` + EiteTime int64 `json:"eitetime" gorm:"column:tr_eite_time;type:bigint unsigned;not null;default:0;comment:编辑时间"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + +} diff --git a/.history/models/modelbookimg/traceing_20220821092451.go b/.history/models/modelbookimg/traceing_20220821092451.go new file mode 100644 index 0000000..5d73755 --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092451.go @@ -0,0 +1,16 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Cont string `json:"cont" gorm:"column:tr_cont;type:mediumtext;comment:内容"` + Type int `json:"type" gorm:"column:tr_type;type:tinyint unsigned;not null;default:1;comment:类型(1:追问;2:追答)"` + State int `json:"state" gorm:"column:tr_state;type:tinyint unsigned;not null;default:1;comment:状态(1:启用;2:禁用)"` + Time int64 `json:"time" gorm:"column:tr_time;type:bigint unsigned;not null;default:0;comment:时间"` + EiteTime int64 `json:"eitetime" gorm:"column:tr_eite_time;type:bigint unsigned;not null;default:0;comment:编辑时间"` + AnsUserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + +} diff --git a/.history/models/modelbookimg/traceing_20220821092456.go b/.history/models/modelbookimg/traceing_20220821092456.go new file mode 100644 index 0000000..8a1b9f7 --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092456.go @@ -0,0 +1,16 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Cont string `json:"cont" gorm:"column:tr_cont;type:mediumtext;comment:内容"` + Type int `json:"type" gorm:"column:tr_type;type:tinyint unsigned;not null;default:1;comment:类型(1:追问;2:追答)"` + State int `json:"state" gorm:"column:tr_state;type:tinyint unsigned;not null;default:1;comment:状态(1:启用;2:禁用)"` + Time int64 `json:"time" gorm:"column:tr_time;type:bigint unsigned;not null;default:0;comment:时间"` + EiteTime int64 `json:"eitetime" gorm:"column:tr_eite_time;type:bigint unsigned;not null;default:0;comment:编辑时间"` + AnsUserKey int64 `json:"ansuserkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + +} diff --git a/.history/models/modelbookimg/traceing_20220821092500.go b/.history/models/modelbookimg/traceing_20220821092500.go new file mode 100644 index 0000000..59bdcdc --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092500.go @@ -0,0 +1,15 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Cont string `json:"cont" gorm:"column:tr_cont;type:mediumtext;comment:内容"` + Type int `json:"type" gorm:"column:tr_type;type:tinyint unsigned;not null;default:1;comment:类型(1:追问;2:追答)"` + State int `json:"state" gorm:"column:tr_state;type:tinyint unsigned;not null;default:1;comment:状态(1:启用;2:禁用)"` + Time int64 `json:"time" gorm:"column:tr_time;type:bigint unsigned;not null;default:0;comment:时间"` + EiteTime int64 `json:"eitetime" gorm:"column:tr_eite_time;type:bigint unsigned;not null;default:0;comment:编辑时间"` + AnsUserKey int64 `json:"ansuserkey" gorm:"column:tr_ans_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` +} diff --git a/.history/models/modelbookimg/traceing_20220821092506.go b/.history/models/modelbookimg/traceing_20220821092506.go new file mode 100644 index 0000000..930e7ec --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092506.go @@ -0,0 +1,15 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Cont string `json:"cont" gorm:"column:tr_cont;type:mediumtext;comment:内容"` + Type int `json:"type" gorm:"column:tr_type;type:tinyint unsigned;not null;default:1;comment:类型(1:追问;2:追答)"` + State int `json:"state" gorm:"column:tr_state;type:tinyint unsigned;not null;default:1;comment:状态(1:启用;2:禁用)"` + Time int64 `json:"time" gorm:"column:tr_time;type:bigint unsigned;not null;default:0;comment:时间"` + EiteTime int64 `json:"eitetime" gorm:"column:tr_eite_time;type:bigint unsigned;not null;default:0;comment:编辑时间"` + AnsUserKey int64 `json:"ansuserkey" gorm:"column:tr_ans_user_key;type:bigint unsigned;not null;default:0;comment:问题回答人"` +} diff --git a/.history/models/modelbookimg/traceing_20220821092508.go b/.history/models/modelbookimg/traceing_20220821092508.go new file mode 100644 index 0000000..5fb260b --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092508.go @@ -0,0 +1,16 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Cont string `json:"cont" gorm:"column:tr_cont;type:mediumtext;comment:内容"` + Type int `json:"type" gorm:"column:tr_type;type:tinyint unsigned;not null;default:1;comment:类型(1:追问;2:追答)"` + State int `json:"state" gorm:"column:tr_state;type:tinyint unsigned;not null;default:1;comment:状态(1:启用;2:禁用)"` + Time int64 `json:"time" gorm:"column:tr_time;type:bigint unsigned;not null;default:0;comment:时间"` + EiteTime int64 `json:"eitetime" gorm:"column:tr_eite_time;type:bigint unsigned;not null;default:0;comment:编辑时间"` + AnsUserKey int64 `json:"ansuserkey" gorm:"column:tr_ans_user_key;type:bigint unsigned;not null;default:0;comment:问题回答人"` + +} diff --git a/.history/models/modelbookimg/traceing_20220821092514.go b/.history/models/modelbookimg/traceing_20220821092514.go new file mode 100644 index 0000000..b65c402 --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092514.go @@ -0,0 +1,16 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Cont string `json:"cont" gorm:"column:tr_cont;type:mediumtext;comment:内容"` + Type int `json:"type" gorm:"column:tr_type;type:tinyint unsigned;not null;default:1;comment:类型(1:追问;2:追答)"` + State int `json:"state" gorm:"column:tr_state;type:tinyint unsigned;not null;default:1;comment:状态(1:启用;2:禁用)"` + Time int64 `json:"time" gorm:"column:tr_time;type:bigint unsigned;not null;default:0;comment:时间"` + EiteTime int64 `json:"eitetime" gorm:"column:tr_eite_time;type:bigint unsigned;not null;default:0;comment:编辑时间"` + AnsUserKey int64 `json:"ansuserkey" gorm:"column:tr_ans_user_key;type:bigint unsigned;not null;default:0;comment:问题回答人"` + IsRes +} diff --git a/.history/models/modelbookimg/traceing_20220821092516.go b/.history/models/modelbookimg/traceing_20220821092516.go new file mode 100644 index 0000000..26435f7 --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092516.go @@ -0,0 +1,16 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Cont string `json:"cont" gorm:"column:tr_cont;type:mediumtext;comment:内容"` + Type int `json:"type" gorm:"column:tr_type;type:tinyint unsigned;not null;default:1;comment:类型(1:追问;2:追答)"` + State int `json:"state" gorm:"column:tr_state;type:tinyint unsigned;not null;default:1;comment:状态(1:启用;2:禁用)"` + Time int64 `json:"time" gorm:"column:tr_time;type:bigint unsigned;not null;default:0;comment:时间"` + EiteTime int64 `json:"eitetime" gorm:"column:tr_eite_time;type:bigint unsigned;not null;default:0;comment:编辑时间"` + AnsUserKey int64 `json:"ansuserkey" gorm:"column:tr_ans_user_key;type:bigint unsigned;not null;default:0;comment:问题回答人"` + IsRes int +} diff --git a/.history/models/modelbookimg/traceing_20220821092522.go b/.history/models/modelbookimg/traceing_20220821092522.go new file mode 100644 index 0000000..6ba183a --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092522.go @@ -0,0 +1,16 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Cont string `json:"cont" gorm:"column:tr_cont;type:mediumtext;comment:内容"` + Type int `json:"type" gorm:"column:tr_type;type:tinyint unsigned;not null;default:1;comment:类型(1:追问;2:追答)"` + State int `json:"state" gorm:"column:tr_state;type:tinyint unsigned;not null;default:1;comment:状态(1:启用;2:禁用)"` + Time int64 `json:"time" gorm:"column:tr_time;type:bigint unsigned;not null;default:0;comment:时间"` + EiteTime int64 `json:"eitetime" gorm:"column:tr_eite_time;type:bigint unsigned;not null;default:0;comment:编辑时间"` + AnsUserKey int64 `json:"ansuserkey" gorm:"column:tr_ans_user_key;type:bigint unsigned;not null;default:0;comment:问题回答人"` + IsRes int `json:"type" gorm:"column:tr_type;type:tinyint unsigned;not null;default:1;comment:类型(1:追问;2:追答)"` +} diff --git a/.history/models/modelbookimg/traceing_20220821092526.go b/.history/models/modelbookimg/traceing_20220821092526.go new file mode 100644 index 0000000..c2ae749 --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092526.go @@ -0,0 +1,16 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Cont string `json:"cont" gorm:"column:tr_cont;type:mediumtext;comment:内容"` + Type int `json:"type" gorm:"column:tr_type;type:tinyint unsigned;not null;default:1;comment:类型(1:追问;2:追答)"` + State int `json:"state" gorm:"column:tr_state;type:tinyint unsigned;not null;default:1;comment:状态(1:启用;2:禁用)"` + Time int64 `json:"time" gorm:"column:tr_time;type:bigint unsigned;not null;default:0;comment:时间"` + EiteTime int64 `json:"eitetime" gorm:"column:tr_eite_time;type:bigint unsigned;not null;default:0;comment:编辑时间"` + AnsUserKey int64 `json:"ansuserkey" gorm:"column:tr_ans_user_key;type:bigint unsigned;not null;default:0;comment:问题回答人"` + IsRes int `json:"isres" gorm:"column:tr_type;type:tinyint unsigned;not null;default:1;comment:类型(1:追问;2:追答)"` +} diff --git a/.history/models/modelbookimg/traceing_20220821092531.go b/.history/models/modelbookimg/traceing_20220821092531.go new file mode 100644 index 0000000..c8a9d96 --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092531.go @@ -0,0 +1,16 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Cont string `json:"cont" gorm:"column:tr_cont;type:mediumtext;comment:内容"` + Type int `json:"type" gorm:"column:tr_type;type:tinyint unsigned;not null;default:1;comment:类型(1:追问;2:追答)"` + State int `json:"state" gorm:"column:tr_state;type:tinyint unsigned;not null;default:1;comment:状态(1:启用;2:禁用)"` + Time int64 `json:"time" gorm:"column:tr_time;type:bigint unsigned;not null;default:0;comment:时间"` + EiteTime int64 `json:"eitetime" gorm:"column:tr_eite_time;type:bigint unsigned;not null;default:0;comment:编辑时间"` + AnsUserKey int64 `json:"ansuserkey" gorm:"column:tr_ans_user_key;type:bigint unsigned;not null;default:0;comment:问题回答人"` + IsRes int `json:"isres" gorm:"column:tr_is_res;type:tinyint unsigned;not null;default:1;comment:类型(1:追问;2:追答)"` +} diff --git a/.history/models/modelbookimg/traceing_20220821092539.go b/.history/models/modelbookimg/traceing_20220821092539.go new file mode 100644 index 0000000..72cdc7c --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092539.go @@ -0,0 +1,16 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Cont string `json:"cont" gorm:"column:tr_cont;type:mediumtext;comment:内容"` + Type int `json:"type" gorm:"column:tr_type;type:tinyint unsigned;not null;default:1;comment:类型(1:追问;2:追答)"` + State int `json:"state" gorm:"column:tr_state;type:tinyint unsigned;not null;default:1;comment:状态(1:启用;2:禁用)"` + Time int64 `json:"time" gorm:"column:tr_time;type:bigint unsigned;not null;default:0;comment:时间"` + EiteTime int64 `json:"eitetime" gorm:"column:tr_eite_time;type:bigint unsigned;not null;default:0;comment:编辑时间"` + AnsUserKey int64 `json:"ansuserkey" gorm:"column:tr_ans_user_key;type:bigint unsigned;not null;default:0;comment:问题回答人"` + IsRes int `json:"isres" gorm:"column:tr_is_res;type:tinyint unsigned;not null;default:1;comment:是否已经解决(1:未解决;2:已解决)"` +} diff --git a/.history/models/modelbookimg/traceing_20220821092542.go b/.history/models/modelbookimg/traceing_20220821092542.go new file mode 100644 index 0000000..9f1e727 --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092542.go @@ -0,0 +1,17 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Cont string `json:"cont" gorm:"column:tr_cont;type:mediumtext;comment:内容"` + Type int `json:"type" gorm:"column:tr_type;type:tinyint unsigned;not null;default:1;comment:类型(1:追问;2:追答)"` + State int `json:"state" gorm:"column:tr_state;type:tinyint unsigned;not null;default:1;comment:状态(1:启用;2:禁用)"` + Time int64 `json:"time" gorm:"column:tr_time;type:bigint unsigned;not null;default:0;comment:时间"` + EiteTime int64 `json:"eitetime" gorm:"column:tr_eite_time;type:bigint unsigned;not null;default:0;comment:编辑时间"` + AnsUserKey int64 `json:"ansuserkey" gorm:"column:tr_ans_user_key;type:bigint unsigned;not null;default:0;comment:问题回答人"` + IsRes int `json:"isres" gorm:"column:tr_is_res;type:tinyint unsigned;not null;default:1;comment:是否已经解决(1:未解决;2:已解决)"` +} + diff --git a/.history/models/modelbookimg/traceing_20220821092547.go b/.history/models/modelbookimg/traceing_20220821092547.go new file mode 100644 index 0000000..47a70bd --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092547.go @@ -0,0 +1,45 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Cont string `json:"cont" gorm:"column:tr_cont;type:mediumtext;comment:内容"` + Type int `json:"type" gorm:"column:tr_type;type:tinyint unsigned;not null;default:1;comment:类型(1:追问;2:追答)"` + State int `json:"state" gorm:"column:tr_state;type:tinyint unsigned;not null;default:1;comment:状态(1:启用;2:禁用)"` + Time int64 `json:"time" gorm:"column:tr_time;type:bigint unsigned;not null;default:0;comment:时间"` + EiteTime int64 `json:"eitetime" gorm:"column:tr_eite_time;type:bigint unsigned;not null;default:0;comment:编辑时间"` + AnsUserKey int64 `json:"ansuserkey" gorm:"column:tr_ans_user_key;type:bigint unsigned;not null;default:0;comment:问题回答人"` + IsRes int `json:"isres" gorm:"column:tr_is_res;type:tinyint unsigned;not null;default:1;comment:是否已经解决(1:未解决;2:已解决)"` +} + +func (r *Reporting) TableName() string { + return "reporting" +} + +// 编辑举报内容 +func (cont *Reporting) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取举报内容 +func (cont *Reporting) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *Reporting) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} + diff --git a/.history/models/modelbookimg/traceing_20220821092552.go b/.history/models/modelbookimg/traceing_20220821092552.go new file mode 100644 index 0000000..7d4b1de --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092552.go @@ -0,0 +1,45 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Cont string `json:"cont" gorm:"column:tr_cont;type:mediumtext;comment:内容"` + Type int `json:"type" gorm:"column:tr_type;type:tinyint unsigned;not null;default:1;comment:类型(1:追问;2:追答)"` + State int `json:"state" gorm:"column:tr_state;type:tinyint unsigned;not null;default:1;comment:状态(1:启用;2:禁用)"` + Time int64 `json:"time" gorm:"column:tr_time;type:bigint unsigned;not null;default:0;comment:时间"` + EiteTime int64 `json:"eitetime" gorm:"column:tr_eite_time;type:bigint unsigned;not null;default:0;comment:编辑时间"` + AnsUserKey int64 `json:"ansuserkey" gorm:"column:tr_ans_user_key;type:bigint unsigned;not null;default:0;comment:问题回答人"` + IsRes int `json:"isres" gorm:"column:tr_is_res;type:tinyint unsigned;not null;default:1;comment:是否已经解决(1:未解决;2:已解决)"` +} + +func (r *Traceing) TableName() string { + return "reporting" +} + +// 编辑举报内容 +func (cont *Traceing) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取举报内容 +func (cont *Reporting) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *Reporting) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} + diff --git a/.history/models/modelbookimg/traceing_20220821092553.go b/.history/models/modelbookimg/traceing_20220821092553.go new file mode 100644 index 0000000..ac39d69 --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092553.go @@ -0,0 +1,45 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Cont string `json:"cont" gorm:"column:tr_cont;type:mediumtext;comment:内容"` + Type int `json:"type" gorm:"column:tr_type;type:tinyint unsigned;not null;default:1;comment:类型(1:追问;2:追答)"` + State int `json:"state" gorm:"column:tr_state;type:tinyint unsigned;not null;default:1;comment:状态(1:启用;2:禁用)"` + Time int64 `json:"time" gorm:"column:tr_time;type:bigint unsigned;not null;default:0;comment:时间"` + EiteTime int64 `json:"eitetime" gorm:"column:tr_eite_time;type:bigint unsigned;not null;default:0;comment:编辑时间"` + AnsUserKey int64 `json:"ansuserkey" gorm:"column:tr_ans_user_key;type:bigint unsigned;not null;default:0;comment:问题回答人"` + IsRes int `json:"isres" gorm:"column:tr_is_res;type:tinyint unsigned;not null;default:1;comment:是否已经解决(1:未解决;2:已解决)"` +} + +func (r *Traceing) TableName() string { + return "reporting" +} + +// 编辑举报内容 +func (cont *Traceing) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取举报内容 +func (cont *Traceing) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *Reporting) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} + diff --git a/.history/models/modelbookimg/traceing_20220821092555.go b/.history/models/modelbookimg/traceing_20220821092555.go new file mode 100644 index 0000000..17c7a2b --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092555.go @@ -0,0 +1,45 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Cont string `json:"cont" gorm:"column:tr_cont;type:mediumtext;comment:内容"` + Type int `json:"type" gorm:"column:tr_type;type:tinyint unsigned;not null;default:1;comment:类型(1:追问;2:追答)"` + State int `json:"state" gorm:"column:tr_state;type:tinyint unsigned;not null;default:1;comment:状态(1:启用;2:禁用)"` + Time int64 `json:"time" gorm:"column:tr_time;type:bigint unsigned;not null;default:0;comment:时间"` + EiteTime int64 `json:"eitetime" gorm:"column:tr_eite_time;type:bigint unsigned;not null;default:0;comment:编辑时间"` + AnsUserKey int64 `json:"ansuserkey" gorm:"column:tr_ans_user_key;type:bigint unsigned;not null;default:0;comment:问题回答人"` + IsRes int `json:"isres" gorm:"column:tr_is_res;type:tinyint unsigned;not null;default:1;comment:是否已经解决(1:未解决;2:已解决)"` +} + +func (r *Traceing) TableName() string { + return "reporting" +} + +// 编辑举报内容 +func (cont *Traceing) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取举报内容 +func (cont *Traceing) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *Traceing) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} + diff --git a/.history/models/modelbookimg/traceing_20220821092604.go b/.history/models/modelbookimg/traceing_20220821092604.go new file mode 100644 index 0000000..d1ace40 --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092604.go @@ -0,0 +1,45 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Cont string `json:"cont" gorm:"column:tr_cont;type:mediumtext;comment:内容"` + Type int `json:"type" gorm:"column:tr_type;type:tinyint unsigned;not null;default:1;comment:类型(1:追问;2:追答)"` + State int `json:"state" gorm:"column:tr_state;type:tinyint unsigned;not null;default:1;comment:状态(1:启用;2:禁用)"` + Time int64 `json:"time" gorm:"column:tr_time;type:bigint unsigned;not null;default:0;comment:时间"` + EiteTime int64 `json:"eitetime" gorm:"column:tr_eite_time;type:bigint unsigned;not null;default:0;comment:编辑时间"` + AnsUserKey int64 `json:"ansuserkey" gorm:"column:tr_ans_user_key;type:bigint unsigned;not null;default:0;comment:问题回答人"` + IsRes int `json:"isres" gorm:"column:tr_is_res;type:tinyint unsigned;not null;default:1;comment:是否已经解决(1:未解决;2:已解决)"` +} + +func (r *Traceing) TableName() string { + return "traceing" +} + +// 编辑举报内容 +func (cont *Traceing) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取举报内容 +func (cont *Traceing) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *Traceing) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} + diff --git a/.history/models/modelbookimg/traceing_20220821092606.go b/.history/models/modelbookimg/traceing_20220821092606.go new file mode 100644 index 0000000..7d2ef4f --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092606.go @@ -0,0 +1,45 @@ +package modelbookimg + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Cont string `json:"cont" gorm:"column:tr_cont;type:mediumtext;comment:内容"` + Type int `json:"type" gorm:"column:tr_type;type:tinyint unsigned;not null;default:1;comment:类型(1:追问;2:追答)"` + State int `json:"state" gorm:"column:tr_state;type:tinyint unsigned;not null;default:1;comment:状态(1:启用;2:禁用)"` + Time int64 `json:"time" gorm:"column:tr_time;type:bigint unsigned;not null;default:0;comment:时间"` + EiteTime int64 `json:"eitetime" gorm:"column:tr_eite_time;type:bigint unsigned;not null;default:0;comment:编辑时间"` + AnsUserKey int64 `json:"ansuserkey" gorm:"column:tr_ans_user_key;type:bigint unsigned;not null;default:0;comment:问题回答人"` + IsRes int `json:"isres" gorm:"column:tr_is_res;type:tinyint unsigned;not null;default:1;comment:是否已经解决(1:未解决;2:已解决)"` +} + +func (ri *Traceing) TableName() string { + return "traceing" +} + +// 编辑举报内容 +func (cont *Traceing) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取举报内容 +func (cont *Traceing) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *Traceing) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} + diff --git a/.history/models/modelbookimg/traceing_20220821092607.go b/.history/models/modelbookimg/traceing_20220821092607.go new file mode 100644 index 0000000..1ab4568 --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092607.go @@ -0,0 +1,49 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Cont string `json:"cont" gorm:"column:tr_cont;type:mediumtext;comment:内容"` + Type int `json:"type" gorm:"column:tr_type;type:tinyint unsigned;not null;default:1;comment:类型(1:追问;2:追答)"` + State int `json:"state" gorm:"column:tr_state;type:tinyint unsigned;not null;default:1;comment:状态(1:启用;2:禁用)"` + Time int64 `json:"time" gorm:"column:tr_time;type:bigint unsigned;not null;default:0;comment:时间"` + EiteTime int64 `json:"eitetime" gorm:"column:tr_eite_time;type:bigint unsigned;not null;default:0;comment:编辑时间"` + AnsUserKey int64 `json:"ansuserkey" gorm:"column:tr_ans_user_key;type:bigint unsigned;not null;default:0;comment:问题回答人"` + IsRes int `json:"isres" gorm:"column:tr_is_res;type:tinyint unsigned;not null;default:1;comment:是否已经解决(1:未解决;2:已解决)"` +} + +func (ri *Traceing) TableName() string { + return "traceing" +} + +// 编辑举报内容 +func (cont *Traceing) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取举报内容 +func (cont *Traceing) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *Traceing) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/traceing_20220821092615.go b/.history/models/modelbookimg/traceing_20220821092615.go new file mode 100644 index 0000000..ffa161c --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092615.go @@ -0,0 +1,49 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Cont string `json:"cont" gorm:"column:tr_cont;type:mediumtext;comment:内容"` + Type int `json:"type" gorm:"column:tr_type;type:tinyint unsigned;not null;default:1;comment:类型(1:追问;2:追答)"` + State int `json:"state" gorm:"column:tr_state;type:tinyint unsigned;not null;default:1;comment:状态(1:启用;2:禁用)"` + Time int64 `json:"time" gorm:"column:tr_time;type:bigint unsigned;not null;default:0;comment:时间"` + EiteTime int64 `json:"eitetime" gorm:"column:tr_eite_time;type:bigint unsigned;not null;default:0;comment:编辑时间"` + AnsUserKey int64 `json:"ansuserkey" gorm:"column:tr_ans_user_key;type:bigint unsigned;not null;default:0;comment:问题回答人"` + IsRes int `json:"isres" gorm:"column:tr_is_res;type:tinyint unsigned;not null;default:1;comment:是否已经解决(1:未解决;2:已解决)"` +} + +func (ri *Traceing) TableName() string { + return "traceing" +} + +// 编辑追问内容 +func (cont *Traceing) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取举报内容 +func (cont *Traceing) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *Traceing) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/traceing_20220821092617.go b/.history/models/modelbookimg/traceing_20220821092617.go new file mode 100644 index 0000000..4bb0c87 --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092617.go @@ -0,0 +1,49 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Cont string `json:"cont" gorm:"column:tr_cont;type:mediumtext;comment:内容"` + Type int `json:"type" gorm:"column:tr_type;type:tinyint unsigned;not null;default:1;comment:类型(1:追问;2:追答)"` + State int `json:"state" gorm:"column:tr_state;type:tinyint unsigned;not null;default:1;comment:状态(1:启用;2:禁用)"` + Time int64 `json:"time" gorm:"column:tr_time;type:bigint unsigned;not null;default:0;comment:时间"` + EiteTime int64 `json:"eitetime" gorm:"column:tr_eite_time;type:bigint unsigned;not null;default:0;comment:编辑时间"` + AnsUserKey int64 `json:"ansuserkey" gorm:"column:tr_ans_user_key;type:bigint unsigned;not null;default:0;comment:问题回答人"` + IsRes int `json:"isres" gorm:"column:tr_is_res;type:tinyint unsigned;not null;default:1;comment:是否已经解决(1:未解决;2:已解决)"` +} + +func (ri *Traceing) TableName() string { + return "traceing" +} + +// 编辑追问内容 +func (cont *Traceing) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取追问内容 +func (cont *Traceing) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *Traceing) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/traceing_20220821092725.go b/.history/models/modelbookimg/traceing_20220821092725.go new file mode 100644 index 0000000..76fd42d --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092725.go @@ -0,0 +1,49 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Cont string `json:"cont" gorm:"column:tr_cont;type:mediumtext;comment:内容"` + Type int `json:"type" gorm:"column:tr_type;type:tinyint unsigned;not null;default:1;comment:类型(1:追问;2:追答)"` + State int `json:"state" gorm:"column:tr_state;type:tinyint unsigned;not null;default:1;comment:状态(1:启用;2:禁用)"` + Time int64 `json:"time" gorm:"column:tr_time;type:bigint unsigned;not null;default:0;comment:时间"` + EiteTime int64 `json:"eitetime" gorm:"column:tr_eite_time;type:bigint unsigned;not null;default:0;comment:编辑时间"` + AnsUserKey int64 `json:"ansuserkey" gorm:"column:tr_ans_user_key;type:bigint unsigned;not null;default:0;comment:问题回答人"` + IsRes int `json:"isres" gorm:"column:tr_is_res;type:tinyint unsigned;not null;default:1;comment:是否已经解决(1:未解决;2:已解决)"` +} + +func (ri *Traceing) TableName() string { + return "traceing" +} + +// 编辑追问内容 +func (cont *Traceing) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.FileBookDate.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取追问内容 +func (cont *Traceing) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *Traceing) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/traceing_20220821092728.go b/.history/models/modelbookimg/traceing_20220821092728.go new file mode 100644 index 0000000..4bb0c87 --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092728.go @@ -0,0 +1,49 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Cont string `json:"cont" gorm:"column:tr_cont;type:mediumtext;comment:内容"` + Type int `json:"type" gorm:"column:tr_type;type:tinyint unsigned;not null;default:1;comment:类型(1:追问;2:追答)"` + State int `json:"state" gorm:"column:tr_state;type:tinyint unsigned;not null;default:1;comment:状态(1:启用;2:禁用)"` + Time int64 `json:"time" gorm:"column:tr_time;type:bigint unsigned;not null;default:0;comment:时间"` + EiteTime int64 `json:"eitetime" gorm:"column:tr_eite_time;type:bigint unsigned;not null;default:0;comment:编辑时间"` + AnsUserKey int64 `json:"ansuserkey" gorm:"column:tr_ans_user_key;type:bigint unsigned;not null;default:0;comment:问题回答人"` + IsRes int `json:"isres" gorm:"column:tr_is_res;type:tinyint unsigned;not null;default:1;comment:是否已经解决(1:未解决;2:已解决)"` +} + +func (ri *Traceing) TableName() string { + return "traceing" +} + +// 编辑追问内容 +func (cont *Traceing) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取追问内容 +func (cont *Traceing) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *Traceing) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/traceing_20220821092744.go b/.history/models/modelbookimg/traceing_20220821092744.go new file mode 100644 index 0000000..25674ab --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092744.go @@ -0,0 +1,49 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Cont string `json:"cont" gorm:"column:tr_cont;type:mediumtext;comment:内容"` + Type int `json:"type" gorm:"column:tr_type;type:tinyint unsigned;not null;default:1;comment:类型(1:追问;2:追答)"` + State int `json:"state" gorm:"column:tr_state;type:tinyint unsigned;not null;default:1;comment:状态(1:启用;2:禁用)"` + Time int64 `json:"time" gorm:"column:tr_time;type:bigint unsigned;not null;default:0;comment:时间"` + EiteTime int64 `json:"eitetime" gorm:"column:tr_eite_time;type:bigint unsigned;not null;default:0;comment:编辑时间"` + AnsUserKey int64 `json:"ansuserkey" gorm:"column:tr_ans_user_key;type:bigint unsigned;not null;default:0;comment:问题回答人"` + IsRes int `json:"isres" gorm:"column:tr_is_res;type:tinyint unsigned;not null;default:1;comment:是否已经解决(1:未解决;2:已解决)"` +} + +func (ri *Traceing) TableName() string { + return "traceing" +} + +// 编辑追问内容 +func (cont *Traceing) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_FILE_BOOK.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取追问内容 +func (cont *Traceing) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_MANAGE_ARCHIVES.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *Traceing) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_MANAGE_ARCHIVES.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelbookimg/traceing_20220821092747.go b/.history/models/modelbookimg/traceing_20220821092747.go new file mode 100644 index 0000000..c3edc8b --- /dev/null +++ b/.history/models/modelbookimg/traceing_20220821092747.go @@ -0,0 +1,49 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Cont string `json:"cont" gorm:"column:tr_cont;type:mediumtext;comment:内容"` + Type int `json:"type" gorm:"column:tr_type;type:tinyint unsigned;not null;default:1;comment:类型(1:追问;2:追答)"` + State int `json:"state" gorm:"column:tr_state;type:tinyint unsigned;not null;default:1;comment:状态(1:启用;2:禁用)"` + Time int64 `json:"time" gorm:"column:tr_time;type:bigint unsigned;not null;default:0;comment:时间"` + EiteTime int64 `json:"eitetime" gorm:"column:tr_eite_time;type:bigint unsigned;not null;default:0;comment:编辑时间"` + AnsUserKey int64 `json:"ansuserkey" gorm:"column:tr_ans_user_key;type:bigint unsigned;not null;default:0;comment:问题回答人"` + IsRes int `json:"isres" gorm:"column:tr_is_res;type:tinyint unsigned;not null;default:1;comment:是否已经解决(1:未解决;2:已解决)"` +} + +func (ri *Traceing) TableName() string { + return "traceing" +} + +// 编辑追问内容 +func (cont *Traceing) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_FILE_BOOK.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取追问内容 +func (cont *Traceing) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_FILE_BOOK.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *Traceing) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_FILE_BOOK.Where(whereMap).Delete(&cont).Error + return +} diff --git a/.history/models/modelskpi/qualitative_target_20220818143450.go b/.history/models/modelskpi/qualitative_target_20220818143450.go new file mode 100644 index 0000000..b7f8284 --- /dev/null +++ b/.history/models/modelskpi/qualitative_target_20220818143450.go @@ -0,0 +1,75 @@ +package modelskpi + +import ( + "key_performance_indicators/overall" + "strings" + "time" +) + +// 定性测评指标子栏目 +type QualitativeTarget struct { + Id int64 `json:"id" gorm:"primaryKey;column:q_id;type:bigint(20) unsigned;not null;comment:Id;index"` + Title string `json:"title" gorm:"column:q_title;type:varchar(255);comment:指标子栏目名称"` + ParentId int64 `json:"parentid" gorm:"column:q_parent_id;type:bigint(20) unsigned;default:0;not null;comment:归属指标"` + State int `json:"state" gorm:"column:q_state;type:int(1) unsigned;default:1;not null;comment:状态(1:启用;2:禁用;3:删除)"` + AddTime int64 `json:"addTime" gorm:"column:q_time;type:bigint(20) unsigned;default:0;not null;comment:制定时间"` + Depart string `json:"depart" gorm:"column:q_depart;type:mediumtext;comment:关联部门"` +} + +func (QualitativeTarget *QualitativeTarget) TableName() string { + return "qualitative_target" +} + +// 编辑内容 +func (cont *QualitativeTarget) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_KPI.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取内容 +func (cont *QualitativeTarget) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_KPI.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 根据条件获取总数 +func (cont *QualitativeTarget) CountCont(whereMap interface{}) (countId int64) { + overall.CONSTANT_DB_KPI.Model(&cont).Where(whereMap).Count(&countId) + return +} + +// 读取全部信息 +func (cont *QualitativeTarget) ContMap(whereMap interface{}, field ...string) (countAry []QualitativeTarget, err error) { + gormDb := overall.CONSTANT_DB_KPI.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + err = gormDb.Where(whereMap).Order("sort ASC").Find(&countAry).Error + return +} + +// 删除内容 +func (cont *QualitativeTarget) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_KPI.Where(whereMap).Delete(&cont).Error + return +} + +// 判断子目标是否存在 +func (cont *QualitativeTarget) JudgeIsTrue(whereMap interface{}, addCont QualitativeTarget) (err error) { + err = cont.GetCont(whereMap) + if err != nil { + err = overall.CONSTANT_DB_KPI.Create(&addCont).Error + } else { + if cont.State != 1 { + err = cont.EiteCont(map[string]interface{}{"`q_id`": cont.Id}, map[string]interface{}{"`q_state`": 1, "`q_time`": time.Now().Unix()}) + } + } + return nil +} diff --git a/.history/models/modelskpi/qualitative_target_20220819110259.go b/.history/models/modelskpi/qualitative_target_20220819110259.go new file mode 100644 index 0000000..b2d23f2 --- /dev/null +++ b/.history/models/modelskpi/qualitative_target_20220819110259.go @@ -0,0 +1,75 @@ +package modelskpi + +import ( + "key_performance_indicators/overall" + "strings" + "time" +) + +// 定性测评指标子栏目 +type QualitativeTarget struct { + Id int64 `json:"id" gorm:"primaryKey;column:q_id;type:bigint(20) unsigned;not null;comment:Id;index"` + Title string `json:"title" gorm:"column:q_title;type:varchar(255);comment:指标子栏目名称"` + ParentId int64 `json:"parentid" gorm:"column:q_parent_id;type:bigint(20) unsigned;default:0;not null;comment:归属指标"` + State int `json:"state" gorm:"column:q_state;type:int(1) unsigned;default:1;not null;comment:状态(1:启用;2:禁用;3:删除)"` + AddTime int64 `json:"addTime" gorm:"column:q_time;type:bigint(20) unsigned;default:0;not null;comment:制定时间"` + Depart string `json:"depart" gorm:"column:q_depart;type:mediumtext;comment:关联部门"` +} + +func (QualitativeTarget *QualitativeTarget) TableName() string { + return "qualitative_target" +} + +// 编辑内容 +func (cont *QualitativeTarget) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_KPI.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取内容 +func (cont *QualitativeTarget) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_KPI.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 根据条件获取总数 +func (cont *QualitativeTarget) CountCont(whereMap interface{}) (countId int64) { + overall.CONSTANT_DB_KPI.Model(&cont).Where(whereMap).Count(&countId) + return +} + +// 读取全部信息 +func (cont *QualitativeTarget) ContMap(whereMap interface{}, field ...string) (countAry []QualitativeTarget, err error) { + gormDb := overall.CONSTANT_DB_KPI.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + err = gormDb.Where(whereMap).Order("sort ASC").Find(&countAry).Error + return +} + +// 删除内容 +func (cont *QualitativeTarget) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_KPI.Where(whereMap).Delete(&cont).Error + return +} + +// 判断子目标是否存在 +func (cont *QualitativeTarget) JudgeIsTrue(whereMap interface{}, addCont QualitativeTarget) (err error) { + err = cont.GetCont(whereMap) + if err != nil { + err = overall.CONSTANT_DB_KPI.Create(&addCont).Error + } else { + if1 { + err = cont.EiteCont(map[string]interface{}{"`q_ cont.State != id`": cont.Id}, map[string]interface{}{"`q_state`": 1, "`q_time`": time.Now().Unix()}) + } + } + return nil +} diff --git a/.history/models/modelskpi/qualitative_target_20220819110301.go b/.history/models/modelskpi/qualitative_target_20220819110301.go new file mode 100644 index 0000000..b7f8284 --- /dev/null +++ b/.history/models/modelskpi/qualitative_target_20220819110301.go @@ -0,0 +1,75 @@ +package modelskpi + +import ( + "key_performance_indicators/overall" + "strings" + "time" +) + +// 定性测评指标子栏目 +type QualitativeTarget struct { + Id int64 `json:"id" gorm:"primaryKey;column:q_id;type:bigint(20) unsigned;not null;comment:Id;index"` + Title string `json:"title" gorm:"column:q_title;type:varchar(255);comment:指标子栏目名称"` + ParentId int64 `json:"parentid" gorm:"column:q_parent_id;type:bigint(20) unsigned;default:0;not null;comment:归属指标"` + State int `json:"state" gorm:"column:q_state;type:int(1) unsigned;default:1;not null;comment:状态(1:启用;2:禁用;3:删除)"` + AddTime int64 `json:"addTime" gorm:"column:q_time;type:bigint(20) unsigned;default:0;not null;comment:制定时间"` + Depart string `json:"depart" gorm:"column:q_depart;type:mediumtext;comment:关联部门"` +} + +func (QualitativeTarget *QualitativeTarget) TableName() string { + return "qualitative_target" +} + +// 编辑内容 +func (cont *QualitativeTarget) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_KPI.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取内容 +func (cont *QualitativeTarget) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_KPI.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 根据条件获取总数 +func (cont *QualitativeTarget) CountCont(whereMap interface{}) (countId int64) { + overall.CONSTANT_DB_KPI.Model(&cont).Where(whereMap).Count(&countId) + return +} + +// 读取全部信息 +func (cont *QualitativeTarget) ContMap(whereMap interface{}, field ...string) (countAry []QualitativeTarget, err error) { + gormDb := overall.CONSTANT_DB_KPI.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + err = gormDb.Where(whereMap).Order("sort ASC").Find(&countAry).Error + return +} + +// 删除内容 +func (cont *QualitativeTarget) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_KPI.Where(whereMap).Delete(&cont).Error + return +} + +// 判断子目标是否存在 +func (cont *QualitativeTarget) JudgeIsTrue(whereMap interface{}, addCont QualitativeTarget) (err error) { + err = cont.GetCont(whereMap) + if err != nil { + err = overall.CONSTANT_DB_KPI.Create(&addCont).Error + } else { + if cont.State != 1 { + err = cont.EiteCont(map[string]interface{}{"`q_id`": cont.Id}, map[string]interface{}{"`q_state`": 1, "`q_time`": time.Now().Unix()}) + } + } + return nil +} diff --git a/DevLog.md b/DevLog.md new file mode 100644 index 0000000..560f29b --- /dev/null +++ b/DevLog.md @@ -0,0 +1,18 @@ +# 开发日志 + +## 2022/8/21 + +### 创建图文信息数据库对应数据结构 +``` +1.创建图文信息对应文件夹modelbookimg +2.创建所需数据表 + 结构体名称 -> 对应表名称 -> 所在数据库 + ArchivesType -> 档案管理分类 -> CONSTANT_DB_Master 主数据库 + BookAttribute -> 文档属性 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 + DiscussMsg -> 评论列表 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 + GraphicForm -> 图文信息表 -> CONSTANT_DB_IMAGES_TEST 图文信息数据库 + Reporting -> 举报 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 + SearchLog -> 关键词记录 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 + Traceing -> 追问 -> CONSTANT_DB_FILE_BOOK 文档属性数据库 +``` + diff --git a/api/version1/bookimg/bookimg.go b/api/version1/bookimg/bookimg.go new file mode 100644 index 0000000..bbdcda0 --- /dev/null +++ b/api/version1/bookimg/bookimg.go @@ -0,0 +1,10 @@ +package bookimg + +import "github.com/gin-gonic/gin" + +// 图文信息列表 +func (a *ApiMethod) OutputListQuery(c *gin.Context) { + var receivedValue outPutListQuery + c.ShouldBindJSON(&receivedValue) + +} diff --git a/api/version1/bookimg/type.go b/api/version1/bookimg/type.go new file mode 100644 index 0000000..e678641 --- /dev/null +++ b/api/version1/bookimg/type.go @@ -0,0 +1,31 @@ +package bookimg + +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 outPutListQuery struct { + publicmethod.PagesTurn + Title string `json:"title"` // 文章标题 + Attribution string `json:"attribution"` //所属栏目 + Range string `json:"range"` //可见范围 + ReadNum int `json:"readnum"` // 阅读量 + ComNum int `json:"comnum"` // 评论数 + CollectionNum int `json:"collectionnum"` // 收藏数 + LikesNum int `json:"likesnum"` // 点赞数 + StepOnNum int `json:"steponnum"` // 踩数量 + Grade int `json:"grade"` // 综合评分 + State int `json:"state"` //状态 +} diff --git a/api/version1/departmentseting/departmentpc/qualitativekpi.go b/api/version1/departmentseting/departmentpc/qualitativekpi.go index ae8e0c5..276dac0 100644 --- a/api/version1/departmentseting/departmentpc/qualitativekpi.go +++ b/api/version1/departmentseting/departmentpc/qualitativekpi.go @@ -362,7 +362,7 @@ func (a *ApiMethod) AddSunTargetDetailed(c *gin.Context) { } } if isWrite == false { - publicmethod.Result(1, receivedValue, c, "指标细则有为填写的内容!请检查!") + publicmethod.Result(1, receivedValue, c, "指标细则有未填写的内容!请检查!") return } } diff --git a/api/version1/entry.go b/api/version1/entry.go index cef8218..68ee77b 100644 --- a/api/version1/entry.go +++ b/api/version1/entry.go @@ -1,6 +1,7 @@ package version1 import ( + "key_performance_indicators/api/version1/bookimg" "key_performance_indicators/api/version1/departmentseting/departmentpc" "key_performance_indicators/api/version1/departmentseting/departmentweb" "key_performance_indicators/api/version1/honoraryArchives" @@ -14,6 +15,7 @@ type ApiEntry struct { PostWebApi postweb.ApiMethod DeparmentPcApi departmentpc.ApiMethod DeparmentWebApi departmentweb.ApiMethod + BookImg bookimg.ApiMethod } var AppApiEntry = new(ApiEntry) diff --git a/apirouter/entry.go b/apirouter/entry.go index ffa065b..558bb18 100644 --- a/apirouter/entry.go +++ b/apirouter/entry.go @@ -3,6 +3,7 @@ package apirouter import ( "key_performance_indicators/apirouter/apishiyan" "key_performance_indicators/apirouter/empower" + "key_performance_indicators/apirouter/v1/bookimg" "key_performance_indicators/apirouter/v1/departmentseting" honorsRoute "key_performance_indicators/apirouter/v1/honorsRoute" "key_performance_indicators/apirouter/v1/postseting" @@ -18,6 +19,7 @@ type RouterGroup struct { HonorsSouteRouter honorsRoute.ApiRouter PostRouter postseting.ApiRouter DepartmentRouter departmentseting.ApiRouter + BookImg bookimg.ApiRouter } var RouterGroupEntry = new(RouterGroup) diff --git a/apirouter/v1/bookimg/bookimg_route.go b/apirouter/v1/bookimg/bookimg_route.go new file mode 100644 index 0000000..11fca03 --- /dev/null +++ b/apirouter/v1/bookimg/bookimg_route.go @@ -0,0 +1,18 @@ +package bookimg + +import ( + "key_performance_indicators/api/version1" + + "github.com/gin-gonic/gin" +) + +// 图文信息 +func (a *ApiRouter) RouterGroup(router *gin.RouterGroup) { + apiRouter := router.Group("bookimg") + + var methodBinding = version1.AppApiEntry.BookImg + { + apiRouter.GET("", methodBinding.Index) //入口 + apiRouter.POST("", methodBinding.Index) //入口 + } +} diff --git a/apirouter/v1/bookimg/type.go b/apirouter/v1/bookimg/type.go new file mode 100644 index 0000000..01d7ede --- /dev/null +++ b/apirouter/v1/bookimg/type.go @@ -0,0 +1,4 @@ +package bookimg + +// 图文信息 +type ApiRouter struct{} diff --git a/models/modelbookimg/archives_type.go b/models/modelbookimg/archives_type.go new file mode 100644 index 0000000..51ae40b --- /dev/null +++ b/models/modelbookimg/archives_type.go @@ -0,0 +1,45 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 档案管理分类 +type ArchivesType struct { + Id int64 `json:"id" gorm:"primaryKey;column:at_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:at_title;type:varchar(255);comment:档案分类名称"` + Stater int `json:"stater" gorm:"column:at_stater;type:tinyint unsigned;not null;default:1;comment:档案分类状态"` + ParentId int64 `json:"parentid" gorm:"column:at_parent_id;type:bigint unsigned;not null;default:0;comment:档案分类父级"` + Time int64 `json:"time" gorm:"column:at_time;type:bigint unsigned;not null;default:0;comment:写入时间"` + Uid int64 `json:"uid" gorm:"column:at_uid;type:bigint unsigned;not null;default:0;comment:添加人员"` + Sort int `json:"sort" gorm:"column:at_sort;type:smallint unsigned;not null;default:50;comment:排序"` +} + +func (at *ArchivesType) TableName() string { + return "archives_type" +} + +// 编辑档案管理分类内容 +func (cont *ArchivesType) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_Master.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取档案管理分类内容 +func (cont *ArchivesType) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_Master.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *ArchivesType) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_Master.Where(whereMap).Delete(&cont).Error + return +} diff --git a/models/modelbookimg/bookattribute.go b/models/modelbookimg/bookattribute.go new file mode 100644 index 0000000..de816d2 --- /dev/null +++ b/models/modelbookimg/bookattribute.go @@ -0,0 +1,46 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 文档属性 +type BookAttribute struct { + Id int64 `json:"id" gorm:"primaryKey;column:b_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:b_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:b_userid;type:bigint unsigned;not null;default:0;comment:阅读人ID"` + Time int64 `json:"time" gorm:"column:b_time;type:bigint unsigned;not null;default:0;comment:阅读时间"` + Type int `json:"type" gorm:"column:b_type;type:tinyint unsigned;not null;default:1;comment:类型 (1:阅读量;2:收藏数;3:赞;4:踩)"` + Stater int `json:"stater" gorm:"column:b_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:有效;2:无效)"` + EiteTime int64 `json:"eitetime" gorm:"column:b_eite_time;type:bigint unsigned;not null;default:0;comment:编辑时间"` + Source int `json:"source" gorm:"column:b_source;type:tinyint unsigned;not null;default:1;comment:来源(1:文档类;2:文档类评论;3:问题;4:问题答案;5:问题答案评论)"` +} + +func (ba *BookAttribute) TableName() string { + return "bookattribute" +} + +// 编辑文档属性内容 +func (cont *BookAttribute) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_FILE_BOOK.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取文档属性内容 +func (cont *BookAttribute) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_FILE_BOOK.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *BookAttribute) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_FILE_BOOK.Where(whereMap).Delete(&cont).Error + return +} diff --git a/models/modelbookimg/discussmsg.go b/models/modelbookimg/discussmsg.go new file mode 100644 index 0000000..eed31fc --- /dev/null +++ b/models/modelbookimg/discussmsg.go @@ -0,0 +1,48 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 评论列表 +type DiscussMsg struct { + Id int64 `json:"id" gorm:"primaryKey;column:dis_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + FileId int64 `json:"fileid" gorm:"column:dis_file_id;type:bigint unsigned;not null;default:0;comment:文档ID"` + UserId int64 `json:"userid" gorm:"column:dis_user_id;type:bigint unsigned;not null;default:0;comment:评论人ID"` + Prent int64 `json:"prent" gorm:"column:dis_prent;type:bigint unsigned;not null;default:0;comment:归属(0:评论源)"` + Cont string `json:"cont" gorm:"column:dis_cont;type:text;comment:评论内容"` + Time int64 `json:"time" gorm:"column:dis_time;type:bigint unsigned;default:0;comment:评论时间"` + Stater int `json:"stater" gorm:"column:dis_stater;type:tinyint unsigned;not null;default:1;comment:状态(1:审核;2:发布;3:下架;4:删除)"` + Source int `json:"source" gorm:"column:dis_source;type:tinyint unsigned;not null;default:1;comment:来源(1:文档类;2:文档类评论;3:问题;4:问题答案;5:问题答案评论)"` + UserJson string `json:"userjson" gorm:"column:dis_user_json;type:mediumtext;comment:评论人基本信息"` + EiteTime int64 `json:"eitetime" gorm:"column:dis_eite_time;type:bigint unsigned;not null;default:0;comment:修改时间"` +} + +func (dm *DiscussMsg) TableName() string { + return "discussmsg" +} + +// 编辑评论列表内容 +func (cont *DiscussMsg) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_FILE_BOOK.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取评论列表内容 +func (cont *DiscussMsg) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_FILE_BOOK.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *DiscussMsg) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_FILE_BOOK.Where(whereMap).Delete(&cont).Error + return +} diff --git a/models/modelbookimg/graphicform.go b/models/modelbookimg/graphicform.go new file mode 100644 index 0000000..4323bba --- /dev/null +++ b/models/modelbookimg/graphicform.go @@ -0,0 +1,72 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 图文信息表 +type GraphicForm struct { + Id int64 `json:"id" gorm:"primaryKey;column:g_id;type:bigint unsigned;not null;comment:ID"` + Title string `json:"title" gorm:"column:g_title;type:varchar(255);comment:标题"` + Key string `json:"key" gorm:"column:g_key;type:varchar(255);comment:关键字"` + Describe string `json:"describe" gorm:"column:g_describe;type:mediumtext;comment:描述"` + Parent int64 `json:"parent" gorm:"column:g_parent;type:bigint unsigned;not null;default:0;comment:父级"` + ParentSun int64 `json:"parentsun" gorm:"column:g_parent_sun;type:bigint unsigned;not null;default:0;comment:父类"` + Source int `json:"source" gorm:"column:g_source;type:tinyint unsigned;default:1;not null;comment:文档来源(1:原创;2:转载)"` + SourceUrl string `json:"sourceurl" gorm:"column:g_source_url;type:varchar(255);comment:转载地址"` + Thumbnail string `json:"thumbnail" gorm:"column:g_thumbnail;type:varchar(255);comment:缩略图"` + Sort int64 `json:"sort" gorm:"column:g_sort;type:bigint unsigned;default:50;not null;comment:排序"` + Comment int `json:"comment" gorm:"column:g_comment;type:tinyint unsigned;default:1;not null;comment:评论设置(1:允许评论;2:禁止评论)"` + VisitStrat int `json:"visitstrat" gorm:"column:g_visit_strat;type:tinyint unsigned;default:1;not null;comment:访问权限(1:公开;2:分厂;3:工段;4:自定义)"` + State int `json:"state" gorm:"column:g_state;type:tinyint unsigned;default:1;not null;comment:状态(1:草稿;2:发表;3:下架;4:删除)"` + AddTime int64 `json:"addtime" gorm:"column:g_add_time;type:bigint unsigned;default:0;not null;comment:写入时间"` + EiteTime int64 `json:"eite" gorm:"column:g_eite_time;type:bigint;not null;comment:修改时间"` + UserKey int64 `json:"userkey" gorm:"column:g_user_key;type:bigint;comment:编辑人员"` + BfId int64 `json:"bfid" gorm:"column:g_bf_id;type:bigint unsigned;default:0;not null;comment:分厂"` + WsId int64 `json:"wsid" gorm:"column:g_ws_id;type:bigint unsigned;default:0;not null;comment:工段"` + Team int64 `json:"team" gorm:"column:g_team;type:bigint unsigned;default:0;not null;comment:班组"` + DownLoadState int `json:"downloadstate" gorm:"column:g_download_state;type:tinyint unsigned;default:1;not null;comment:是否允许下载(1:允许;2:禁止)"` + Read int `json:"read" gorm:"column:g_read;type:int unsigned;default:0;not null;comment:阅读量"` + ComSum int `json:"comsum" gorm:"column:g_com_sum;type:int unsigned;default:0;not null;comment:评论数"` + CollectionSum int `json:"collectionsum" gorm:"column:g_collection_sum;type:int unsigned;default:0;not null;comment:收藏数"` + Likes int `json:"likes" gorm:"column:g_likes;type:int unsigned;default:0;not null;comment:点赞数"` + Recommend int `json:"recommend" gorm:"column:g_recommend;type:tinyint unsigned;default:2;not null;comment:推荐(1:推荐,2:不推荐)"` + Content string `json:"content" gorm:"column:g_content;type:longtext;comment:图文详情"` + StepOn int `json:"stepon" gorm:"column:g_step_on;type:int unsigned;default:0;not null;comment:踩数量"` + Range string `json:"range" gorm:"column:g_range;type:mediumtext;comment:自定义可见范围"` + WriteBfid string `json:"writebfid" gorm:"column:g_write_bfid;type:bigint unsigned;default:0;not null;comment:写入分厂"` + TextName string `json:"textname" gorm:"column:g_text_name;type:varchar(255);default:'';comment:正文文档名称"` + TestUrl string `json:"testurl" gorm:"column:g_test_url;type:varchar(255);default:'';comment:正文文档URL"` + PhysicsPath string `json:"physicspath" gorm:"column:g_physics_path;type:varchar(255);default:'';comment:物理地址"` + WriteGroup int64 `json:"writegroup" gorm:"column:g_write_group;type:bigint unsigned;default:3;not null;comment:写入人员组织"` + OuterLink string `json:"outerlink" gorm:"column:g_outer_link;type:varchar(255);default:'';comment:外部链接"` +} + +func (gf *GraphicForm) TableName() string { + return "graphicform" +} + +// 编辑图文信息内容 +func (cont *GraphicForm) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_IMAGES_TEST.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取图文信息内容 +func (cont *GraphicForm) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_IMAGES_TEST.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *GraphicForm) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_IMAGES_TEST.Where(whereMap).Delete(&cont).Error + return +} diff --git a/models/modelbookimg/reporting.go b/models/modelbookimg/reporting.go new file mode 100644 index 0000000..f31a7da --- /dev/null +++ b/models/modelbookimg/reporting.go @@ -0,0 +1,46 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 举报 +type Reporting struct { + Id int64 `json:"id" gorm:"primaryKey;column:r_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + UserKey int64 `json:"userkey" gorm:"column:r_user_key;type:bigint unsigned;not null;default:0;comment:编辑人员"` + UserJson string `json:"userjson" gorm:"column:r_user_json;type:mediumtext;comment:举报人基本信息"` + Content string `json:"content" gorm:"column:r_content;type:mediumtext;comment:举报内容"` + AnsId int64 `json:"ansid" gorm:"column:r_ans_id;type:bigint unsigned;not null;comment:被举报答案ID"` + AnsCont string `json:"anscont" gorm:"column:r_ans_cont;type:mediumtext;comment:被举报内容"` + Time int64 `json:"time" gorm:"column:r_time;type:bigint unsigned;default:0;not null;comment:举报时间"` + State int `json:"state" gorm:"column:r_state;type:tinyint unsigned;default:1;not null;comment:状态(1:审核,2:有效;3:无效;4:删除)"` +} + +func (r *Reporting) TableName() string { + return "reporting" +} + +// 编辑举报内容 +func (cont *Reporting) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_FILE_BOOK.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取举报内容 +func (cont *Reporting) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_FILE_BOOK.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *Reporting) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_FILE_BOOK.Where(whereMap).Delete(&cont).Error + return +} diff --git a/models/modelbookimg/searchlog.go b/models/modelbookimg/searchlog.go new file mode 100644 index 0000000..33713db --- /dev/null +++ b/models/modelbookimg/searchlog.go @@ -0,0 +1,44 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 关键词记录 +type SearchLog struct { + Id int64 `json:"id" gorm:"primaryKey;column:sea_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + Cont string `json:"cont" gorm:"column:sea_cont;type:varchar(255);comment:关键词"` + UserKey int64 `json:"userkey" gorm:"column:sea_user_key;type:bigint unsigned;not null;default:0;comment:搜索人"` + Num int `json:"num" gorm:"column:sea_num;type:int unsigned;not null;default:0;comment:搜索次数"` + Time int64 `json:"time" gorm:"column:sea_time;type:bigint unsigned;not null;default:0;comment:时间"` + State int `json:"state" gorm:"column:sea_state;type:tinyint unsigned;not null;default:1;comment:1:启用,2:删除"` +} + +func (sl *SearchLog) TableName() string { + return "reporting" +} + +// 编辑关键词记录内容 +func (cont *SearchLog) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_FILE_BOOK.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取关键词记录内容 +func (cont *SearchLog) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_FILE_BOOK.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *SearchLog) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_FILE_BOOK.Where(whereMap).Delete(&cont).Error + return +} diff --git a/models/modelbookimg/traceing.go b/models/modelbookimg/traceing.go new file mode 100644 index 0000000..c3edc8b --- /dev/null +++ b/models/modelbookimg/traceing.go @@ -0,0 +1,49 @@ +package modelbookimg + +import ( + "key_performance_indicators/overall" + "strings" +) + +// 追问 +type Traceing struct { + Id int64 `json:"id" gorm:"primaryKey;column:tr_id;type:bigint unsigned;not null;auto_increment;comment:ID"` + AnsId int64 `json:"ansid" gorm:"column:tr_ans_id;type:bigint unsigned;not null;default:0;comment:答案ID"` + UserKey int64 `json:"userkey" gorm:"column:tr_user_key;type:bigint unsigned;not null;default:0;comment:追问人Key"` + UserJson string `json:"userjson" gorm:"column:tr_user_json;type:mediumtext;comment:追问人基本信息"` + Cont string `json:"cont" gorm:"column:tr_cont;type:mediumtext;comment:内容"` + Type int `json:"type" gorm:"column:tr_type;type:tinyint unsigned;not null;default:1;comment:类型(1:追问;2:追答)"` + State int `json:"state" gorm:"column:tr_state;type:tinyint unsigned;not null;default:1;comment:状态(1:启用;2:禁用)"` + Time int64 `json:"time" gorm:"column:tr_time;type:bigint unsigned;not null;default:0;comment:时间"` + EiteTime int64 `json:"eitetime" gorm:"column:tr_eite_time;type:bigint unsigned;not null;default:0;comment:编辑时间"` + AnsUserKey int64 `json:"ansuserkey" gorm:"column:tr_ans_user_key;type:bigint unsigned;not null;default:0;comment:问题回答人"` + IsRes int `json:"isres" gorm:"column:tr_is_res;type:tinyint unsigned;not null;default:1;comment:是否已经解决(1:未解决;2:已解决)"` +} + +func (ri *Traceing) TableName() string { + return "traceing" +} + +// 编辑追问内容 +func (cont *Traceing) EiteCont(whereMap interface{}, saveData interface{}) (err error) { + err = overall.CONSTANT_DB_FILE_BOOK.Model(&cont).Where(whereMap).Updates(saveData).Error + return +} + +// 获取追问内容 +func (cont *Traceing) GetCont(whereMap interface{}, field ...string) (err error) { + gormDb := overall.CONSTANT_DB_FILE_BOOK.Model(&cont) + if len(field) > 0 { + fieldStr := strings.Join(field, ",") + gormDb = gormDb.Select(fieldStr) + } + gormDb = gormDb.Where(whereMap) + err = gormDb.First(&cont).Error + return +} + +// 删除内容 +func (cont *Traceing) DelCont(whereMap interface{}) (err error) { + err = overall.CONSTANT_DB_FILE_BOOK.Where(whereMap).Delete(&cont).Error + return +}