From 18f151245c0913558e97a5c500a25f3dbea6f374 Mon Sep 17 00:00:00 2001 From: yxh Date: Mon, 26 Oct 2020 15:40:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=87=E7=BA=A7swag=E4=B8=BAv1.6.9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/model/admin/cms_news/cms_news.go | 22 +- go.mod | 14 +- go.sum | 50 + swagger/docs.go | 1696 +++++++++++++++++++++++++- swagger/swagger.json | 1696 +++++++++++++++++++++++++- swagger/swagger.yaml | 1081 +++++++++++++++- 6 files changed, 4529 insertions(+), 30 deletions(-) diff --git a/app/model/admin/cms_news/cms_news.go b/app/model/admin/cms_news/cms_news.go index 724d4ca..461ac29 100644 --- a/app/model/admin/cms_news/cms_news.go +++ b/app/model/admin/cms_news/cms_news.go @@ -20,17 +20,17 @@ import ( //添加文章参数 type ReqAddParams struct { - NewsStatus uint `p:"status" v:"in:0,1#状态只能为0或1"` // 状态;1:已发布;0:未发布; - Attr []int `p:attr` //文章标记 置顶 推荐 - PublishedTime string `p:"published_time"` // 发布时间 - NewsTitle string `p:"title" v:"required#标题不能为空"` // post标题 - NewsKeywords string `p:"keywords"` // seo keywords - NewsExcerpt string `p:"excerpt"` // post摘要 - NewsSource string `p:"source" ` // 转载文章的来源 - Thumbnail string `p:"thumbnail" ` // 缩略图 - IsJump uint `p:"IsJump" v:"in:0,1#跳转类型只能为0或1"` // 是否跳转地址 - JumpUrl string `p:"JumpUrl" v:"required-if:IsJump,1|url#跳转地址不能为空|跳转地址格式不正确"` // 跳转地址 - ModelForm g.Map `p:"modelForm"` + NewsStatus uint `p:"status" v:"in:0,1#状态只能为0或1"` // 状态;1:已发布;0:未发布; + Attr []int `p:attr` //文章标记 置顶 推荐 + PublishedTime string `p:"published_time"` // 发布时间 + NewsTitle string `p:"title" v:"required#标题不能为空"` // post标题 + NewsKeywords string `p:"keywords"` // seo keywords + NewsExcerpt string `p:"excerpt"` // post摘要 + NewsSource string `p:"source" ` // 转载文章的来源 + Thumbnail string `p:"thumbnail" ` // 缩略图 + IsJump uint `p:"IsJump" v:"in:0,1#跳转类型只能为0或1"` // 是否跳转地址 + JumpUrl string `p:"JumpUrl" v:"required-if:IsJump,1|url#跳转地址不能为空|跳转地址格式不正确"` // 跳转地址 + ModelForm map[string]interface{} `p:"modelForm"` } //文章搜索参数 diff --git a/go.mod b/go.mod index a978fac..63999f7 100644 --- a/go.mod +++ b/go.mod @@ -4,20 +4,20 @@ require ( github.com/StackExchange/wmi v0.0.0-20190523213315-cbe66965904d // indirect github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751 github.com/casbin/casbin/v2 v2.1.2 + github.com/cpuguy83/go-md2man/v2 v2.0.0 // indirect github.com/go-ole/go-ole v1.2.4 // indirect - github.com/go-openapi/spec v0.19.8 // indirect - github.com/go-openapi/swag v0.19.9 // indirect + github.com/go-openapi/spec v0.19.11 // indirect + github.com/go-openapi/swag v0.19.11 // indirect github.com/goflyfox/gtoken v1.3.20 github.com/gogf/gf v1.14.0 - github.com/mailru/easyjson v0.7.1 // indirect + github.com/mailru/easyjson v0.7.6 // indirect github.com/mojocn/base64Captcha v1.3.1 github.com/mssola/user_agent v0.5.1 github.com/shirou/gopsutil v2.20.2+incompatible - github.com/stretchr/testify v1.5.1 // indirect - github.com/swaggo/swag v1.6.7 - golang.org/x/net v0.0.0-20200707034311-ab3426394381 // indirect + github.com/swaggo/swag v1.6.9 + golang.org/x/net v0.0.0-20201024042810-be3efd7ff127 // indirect golang.org/x/text v0.3.3 // indirect - golang.org/x/tools v0.0.0-20200716225003-58eba7e7502e // indirect + golang.org/x/tools v0.0.0-20201023174141-c8cfbd0f21e6 // indirect gopkg.in/yaml.v2 v2.3.0 // indirect ) diff --git a/go.sum b/go.sum index 5fe9e9b..0a7884e 100644 --- a/go.sum +++ b/go.sum @@ -17,13 +17,17 @@ github.com/casbin/casbin/v2 v2.1.2 h1:bTwon/ECRx9dwBy2ewRVr5OiqjeXSGiTUY74sDPQi/ github.com/casbin/casbin/v2 v2.1.2/go.mod h1:YcPU1XXisHhLzuxH9coDNf2FbKpjGlbCg3n9yuLkIJQ= github.com/clbanning/mxj v1.8.5-0.20200714211355-ff02cfb8ea28 h1:LdXxtjzvZYhhUaonAaAKArG3pyC67kGL3YY+6hGG8G4= github.com/clbanning/mxj v1.8.5-0.20200714211355-ff02cfb8ea28/go.mod h1:BVjHeAH+rl9rs6f+QIpeRl0tfu10SXn1pUSa5PVGJng= +github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d h1:U+s90UTSYgptZMwQh2aRr3LuazLJIa+Pg3Kc1ylSYVY= github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= +github.com/cpuguy83/go-md2man/v2 v2.0.0 h1:EoUDS0afbrsXAZ9YQ9jdu/mZ2sXgT1/2yyNng4PGlyM= +github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/fsnotify/fsnotify v1.4.9 h1:hsms1Qyu0jgnwNXIxa+/V/PDsU6CfLf6CNO8H7IWoS4= github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= +github.com/ghodss/yaml v1.0.0 h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk= github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= github.com/gin-contrib/gzip v0.0.1/go.mod h1:fGBJBCdt6qCZuCAOwWuFhBB4OOq9EFqlo5dEaFhhu5w= github.com/gin-contrib/sse v0.0.0-20170109093832-22d885f9ecc7/go.mod h1:VJ0WA2NBN22VlZ2dKZQPAPnyWw5XTlK1KymzLKsr59s= @@ -31,6 +35,7 @@ github.com/gin-contrib/sse v0.0.0-20190301062529-5545eab6dad3/go.mod h1:VJ0WA2NB github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI= github.com/gin-gonic/gin v1.3.0/go.mod h1:7cKuhb5qV2ggCFctp2fJQ+ErvciLZrIeoOSOm6mUr7Y= github.com/gin-gonic/gin v1.4.0/go.mod h1:OW2EZn3DO8Ln9oIKOvM++LBO+5UPHJJDH72/q/3rZdM= +github.com/gin-gonic/gin v1.6.3/go.mod h1:75u5sXoLsGZoRN5Sgbi1eraJ4GU3++wFwWzhwvtwp4M= github.com/go-ole/go-ole v1.2.4 h1:nNBDSCOigTSiarFpYE9J/KtEA1IOW4CNeqT9TQDqCxI= github.com/go-ole/go-ole v1.2.4/go.mod h1:XCwSNxSkXRo4vlyPy93sltvi/qJq0jqQhjqQNIwKuxM= github.com/go-openapi/jsonpointer v0.17.0/go.mod h1:cOnomiV+CVVwFLk0A/MExoFMjwdsUdVpsRhURCKh+3M= @@ -42,27 +47,41 @@ github.com/go-openapi/jsonreference v0.19.0/go.mod h1:g4xxGn04lDIRh0GJb5QlpE3Hfo github.com/go-openapi/jsonreference v0.19.2/go.mod h1:jMjeRr2HHw6nAVajTXJ4eiUwohSTlpa0o73RUL1owJc= github.com/go-openapi/jsonreference v0.19.3 h1:5cxNfTy0UVC3X8JL5ymxzyoUZmo8iZb+jeTWn7tUa8o= github.com/go-openapi/jsonreference v0.19.3/go.mod h1:rjx6GuL8TTa9VaixXglHmQmIL98+wF9xc8zWvFonSJ8= +github.com/go-openapi/jsonreference v0.19.4 h1:3Vw+rh13uq2JFNxgnMTGE1rnoieU9FmyE1gvnyylsYg= +github.com/go-openapi/jsonreference v0.19.4/go.mod h1:RdybgQwPxbL4UEjuAruzK1x3nE69AqPYEJeo/TWfEeg= github.com/go-openapi/spec v0.19.0/go.mod h1:XkF/MOi14NmjsfZ8VtAKf8pIlbZzyoTvZsdfssdxcBI= github.com/go-openapi/spec v0.19.4 h1:ixzUSnHTd6hCemgtAJgluaTSGYpLNpJY4mA2DIkdOAo= github.com/go-openapi/spec v0.19.4/go.mod h1:FpwSN1ksY1eteniUU7X0N/BgJ7a4WvBFVA8Lj9mJglo= github.com/go-openapi/spec v0.19.8 h1:qAdZLh1r6QF/hI/gTq+TJTvsQUodZsM7KLqkAJdiJNg= github.com/go-openapi/spec v0.19.8/go.mod h1:Hm2Jr4jv8G1ciIAo+frC/Ft+rR2kQDh8JHKHb3gWUSk= +github.com/go-openapi/spec v0.19.9 h1:9z9cbFuZJ7AcvOHKIY+f6Aevb4vObNDkTEyoMfO7rAc= +github.com/go-openapi/spec v0.19.9/go.mod h1:vqK/dIdLGCosfvYsQV3WfC7N3TiZSnGY2RZKoFK7X28= +github.com/go-openapi/spec v0.19.11 h1:ogU5q8dtp3MMPn59a9VRrPKVxvJHEs5P7yNMR5sNnis= +github.com/go-openapi/spec v0.19.11/go.mod h1:vqK/dIdLGCosfvYsQV3WfC7N3TiZSnGY2RZKoFK7X28= github.com/go-openapi/swag v0.17.0/go.mod h1:AByQ+nYG6gQg71GINrmuDXCPWdL640yX49/kXLo40Tg= github.com/go-openapi/swag v0.19.2/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= github.com/go-openapi/swag v0.19.5 h1:lTz6Ys4CmqqCQmZPBlbQENR1/GucA2bzYTE12Pw4tFY= github.com/go-openapi/swag v0.19.5/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= github.com/go-openapi/swag v0.19.9 h1:1IxuqvBUU3S2Bi4YC7tlP9SJF1gVpCvqN0T2Qof4azE= github.com/go-openapi/swag v0.19.9/go.mod h1:ao+8BpOPyKdpQz3AOJfbeEVpLmWAvlT1IfTe5McPyhY= +github.com/go-openapi/swag v0.19.11 h1:RFTu/dlFySpyVvJDfp/7674JY4SDglYWKztbiIGFpmc= +github.com/go-openapi/swag v0.19.11/go.mod h1:Uc0gKkdR+ojzsEpjh39QChyu92vPgIr72POcgHMAgSY= +github.com/go-playground/assert/v2 v2.0.1/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4= +github.com/go-playground/locales v0.13.0/go.mod h1:taPMhCMXrRLJO55olJkUXHZBHCxTMfnGwq/HNwmWNS8= +github.com/go-playground/universal-translator v0.17.0/go.mod h1:UkSxE5sNxxRwHyU+Scu5vgOQjsIJAF8j9muTVoKLVtA= +github.com/go-playground/validator/v10 v10.2.0/go.mod h1:uOYAAleCW8F/7oMFd6aG0GOhaH6EGOAJShg8Id5JGkI= github.com/go-sql-driver/mysql v1.5.0 h1:ozyZYNQW3x3HtqT1jira07DN2PArx2v7/mN66gGcHOs= github.com/go-sql-driver/mysql v1.5.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg= github.com/goflyfox/gtoken v1.3.20 h1:7J8A/DandT9D9m2ceNbmYKE8ZBbhy/ZH+L5jW64q76k= github.com/goflyfox/gtoken v1.3.20/go.mod h1:o+RTTc1R/ifKH5NSsVPtk4lirnocvbQmmk1I39+Y29Q= +github.com/gofrs/uuid v3.3.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM= github.com/gogf/gf v1.14.0 h1:cO7yqWQB8PVCQ8ynTARd/LDQvJdzA6ZkUSr7GPslmFI= github.com/gogf/gf v1.14.0/go.mod h1:7b21qQKDyIwJO4PkBCxVci5C62tm89MANGV2wJgAf50= github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 h1:DACJavvAHhabrF08vX0COfcOBJRhZ8lUbR+ZWIs0Y5g= github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0/go.mod h1:E/TSTwGwJL78qG/PmXZO1EjYhfJinVAhrmmHX6Z8B9k= github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= github.com/gomodule/redigo v2.0.0+incompatible h1:K/R+8tc58AaqLkqG2Ol3Qk+DR/TlNuhuh457pBFPtt0= github.com/gomodule/redigo v2.0.0+incompatible/go.mod h1:B4C85qUVwatsJoIUNIfCRsp7qO0iAmpGFZ4EELWSbC4= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= @@ -72,8 +91,11 @@ github.com/gqcn/structs v1.1.1 h1:cyzGRwfmn3d1d54fwW3KUNyG9QxR0ldIeqwFGeBt638= github.com/gqcn/structs v1.1.1/go.mod h1:/aBhTBSsKQ2Ec9pbnYdGphtdWXHFn4KrCL0fXM/Adok= github.com/grokify/html-strip-tags-go v0.0.0-20190921062105-daaa06bf1aaf h1:wIOAyJMMen0ELGiFzlmqxdcV1yGbkyHBAB6PolcNbLA= github.com/grokify/html-strip-tags-go v0.0.0-20190921062105-daaa06bf1aaf/go.mod h1:2Su6romC5/1VXOQMaWL2yb618ARB8iVo6/DR99A6d78= +github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY= +github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y= github.com/json-iterator/go v1.1.5/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= +github.com/json-iterator/go v1.1.9/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.10 h1:Kz6Cvnvv2wGdaG/V8yMvfkmNiXq9Ya2KUv4rouJJr68= github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI= @@ -82,15 +104,19 @@ github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/pty v1.1.5/go.mod h1:9r2w37qlBe7rQ6e1fg1S/9xpWHSnaqNdHD3WcMdbPDA= github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= +github.com/leodido/go-urn v1.2.0/go.mod h1:+8+nEpDfqqsY+g338gtMEUOtuK+4dEMhiQEgxpxOKII= github.com/mailru/easyjson v0.0.0-20180823135443-60711f1a8329/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= github.com/mailru/easyjson v0.0.0-20190614124828-94de47d64c63/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e h1:hB2xlXdHp/pmPZq0y3QnmWAArdw9PqbmotexnWx/FU8= github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= github.com/mailru/easyjson v0.7.1 h1:mdxE1MF9o53iCb2Ghj1VfWvh7ZOwHpnVG/xwXrV90U8= github.com/mailru/easyjson v0.7.1/go.mod h1:KAzv3t3aY1NaHWoQz1+4F1ccyAH66Jk7yos7ldAVICs= +github.com/mailru/easyjson v0.7.6 h1:8yTIVnZgCoiM1TgqoeTl+LfU5Jg6/xL3QhGQnimLYnA= +github.com/mailru/easyjson v0.7.6/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= github.com/mattn/go-isatty v0.0.7/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= +github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= github.com/mattn/go-runewidth v0.0.9 h1:Lm995f3rfxdpd6TSmuVCHVb/QhupuXlYr8sCI/QdE+0= github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= @@ -108,10 +134,12 @@ github.com/olekukonko/tablewriter v0.0.1/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXW github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/russross/blackfriday/v2 v2.0.1 h1:lPqVAte+HuHNfhJ/0LC98ESWRz8afy9tM/0RK8m9o+Q= github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0= github.com/shirou/gopsutil v2.20.2+incompatible h1:ucK79BhBpgqQxPASyS2cu9HX8cfDVljBN1WWFvbNvgY= github.com/shirou/gopsutil v2.20.2+incompatible/go.mod h1:5b4v6he4MtMOwMlS0TUMTu2PcXUg8+E1lC7eC3UO/RA= +github.com/shurcooL/sanitized_anchor_name v1.0.0 h1:PdmoCO6wvbs+7yrJyMORt4/BmY5IYyJwS/kOiWx8mHo= github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.2.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE= @@ -120,18 +148,27 @@ github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UV github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= github.com/stretchr/testify v1.5.1 h1:nOGnQDM7FYENwehXlg/kFVnos3rEvtKTjRvOWSzb6H4= github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= +github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/swaggo/files v0.0.0-20190704085106-630677cd5c14/go.mod h1:gxQT6pBGRuIGunNf/+tSOB5OHvguWi8Tbt82WOkf35E= github.com/swaggo/gin-swagger v1.2.0/go.mod h1:qlH2+W7zXGZkczuL+r2nEBR2JTT+/lX05Nn6vPhc7OI= github.com/swaggo/swag v1.5.1/go.mod h1:1Bl9F/ZBpVWh22nY0zmYyASPO1lI/zIwRDrpZU+tv8Y= github.com/swaggo/swag v1.6.7 h1:e8GC2xDllJZr3omJkm9YfmK0Y56+rMO3cg0JBKNz09s= github.com/swaggo/swag v1.6.7/go.mod h1:xDhTyuFIujYiN3DKWC/H/83xcfHp+UE/IzWWampG7Zc= +github.com/swaggo/swag v1.6.9 h1:BukKRwZjnEcUxQt7Xgfrt9fpav0hiWw9YimdNO9wssw= +github.com/swaggo/swag v1.6.9/go.mod h1:a0IpNeMfGidNOcm2TsqODUh9JHdHu3kxDA0UlGbBKjI= github.com/ugorji/go v1.1.4/go.mod h1:uQMGLiO92mf5W77hV/PUCpI3pbzQx3CRekS0kk+RGrc= github.com/ugorji/go v1.1.5-pre/go.mod h1:FwP/aQVg39TXzItUBMwnWp9T9gPQnXw4Poh4/oBQZ/0= +github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw= github.com/ugorji/go/codec v0.0.0-20181022190402-e5e69e061d4f/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0= github.com/ugorji/go/codec v1.1.5-pre/go.mod h1:tULtS6Gy1AE1yCENaw4Vb//HLH5njI2tfCQDUqRd8fI= +github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLYF3GoBXY= +github.com/urfave/cli v1.20.0 h1:fDqGv3UG/4jbVl/QkFwEdddtEDjh/5Ov6X+0B/3bPaw= github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= github.com/urfave/cli/v2 v2.1.1/go.mod h1:SE9GqnLQmjVa0iPEY0f1w3ygNIYcIJ0OKPMoW2caLfQ= +github.com/urfave/cli/v2 v2.2.0 h1:JTTnM6wKzdA0Jqodd966MVj4vWbbquZykeX1sKbe2C4= +github.com/urfave/cli/v2 v2.2.0/go.mod h1:SE9GqnLQmjVa0iPEY0f1w3ygNIYcIJ0OKPMoW2caLfQ= github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20190611184440-5c40567a22f8/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= @@ -154,9 +191,13 @@ golang.org/x/net v0.0.0-20200602114024-627f9648deb9/go.mod h1:qpuaurCH72eLCgpAm/ golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20200707034311-ab3426394381 h1:VXak5I6aEWmAXeQjA+QSZzlgNrpq9mjcfDemuexIKsU= golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20201024042810-be3efd7ff127 h1:pZPp9+iYUqwYKLjht0SDBbRCRK/9gAXDy7pz5fRDpjo= +golang.org/x/net v0.0.0-20201024042810-be3efd7ff127/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20181228144115-9a3f9b0469bb/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -164,8 +205,11 @@ golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20190610200419-93c9922d18ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190616124812-15dcb6c0061f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd h1:xhmwyvizuTgC2qz7ZlMluP20uW+C3Rm0FD/WLDX8884= golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f h1:+Nyd8tzPX9R7BWHguqsrbFdRx3WQ/1ib8I44HXV5yTA= +golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= @@ -179,10 +223,15 @@ golang.org/x/tools v0.0.0-20190614205625-5aca471b1d59/go.mod h1:/rFqwRUd4F7ZHNgw golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20200716225003-58eba7e7502e h1:WaR4d3kbnTlsdn8Ms1b6r8HwNloW6f8WKxiDu+C5J48= golang.org/x/tools v0.0.0-20200716225003-58eba7e7502e/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200820010801-b793a1359eac h1:DugppSxw0LSF8lcjaODPJZoDzq0ElTGskTst3ZaBkHI= +golang.org/x/tools v0.0.0-20200820010801-b793a1359eac/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20201023174141-c8cfbd0f21e6 h1:rbvTkL9AkFts1cgI78+gG6Yu1pwaqX6hjSJAatB78E4= +golang.org/x/tools v0.0.0-20201023174141-c8cfbd0f21e6/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY= @@ -193,6 +242,7 @@ gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.3.0 h1:clyUAQHOM3G0M3f5vQj7LuJrETvjVot3Z5el9nffUtU= gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= diff --git a/swagger/docs.go b/swagger/docs.go index fd43c7c..e94c884 100644 --- a/swagger/docs.go +++ b/swagger/docs.go @@ -19,7 +19,6 @@ var doc = `{ "description": "{{.Description}}", "title": "{{.Title}}", "contact": {}, - "license": {}, "version": "{{.Version}}" }, "host": "{{.Host}}", @@ -590,6 +589,367 @@ var doc = `{ } } }, + "/system/cms/menu/add": { + "post": { + "security": [ + { + "": [] + } + ], + "description": "添加栏目", + "tags": [ + "栏目管理" + ], + "summary": "添加栏目", + "parameters": [ + { + "description": "data", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/cms_category.ReqAdd" + } + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/system/cms/menu/delete": { + "delete": { + "security": [ + { + "": [] + } + ], + "description": "删除栏目", + "tags": [ + "栏目管理" + ], + "summary": "删除栏目", + "parameters": [ + { + "description": "ids", + "name": "ids", + "in": "body", + "required": true, + "schema": { + "type": "integer" + } + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/system/cms/menu/edit": { + "post": { + "security": [ + { + "": [] + } + ], + "description": "修改栏目", + "tags": [ + "栏目管理" + ], + "summary": "修改栏目", + "parameters": [ + { + "description": "data", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/cms_category.ReqEdit" + } + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/system/cms/menu/list": { + "get": { + "security": [ + { + "": [] + } + ], + "description": "分页列表", + "tags": [ + "栏目管理" + ], + "summary": "栏目列表", + "parameters": [ + { + "description": "data", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/cms_category.ReqSearchList" + } + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/system/cms/menu/modelOptions": { + "get": { + "security": [ + { + "": [] + } + ], + "description": "栏目模型选项", + "tags": [ + "栏目管理" + ], + "summary": "栏目模型选项", + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/system/cms/menu/sort": { + "post": { + "security": [ + { + "": [] + } + ], + "description": "栏目排序", + "tags": [ + "栏目管理" + ], + "summary": "栏目排序", + "parameters": [ + { + "description": "data", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/system/cms/news/add": { + "post": { + "security": [ + { + "": [] + } + ], + "description": "添加信息", + "tags": [ + "文章管理" + ], + "summary": "添加信息", + "parameters": [ + { + "description": "data", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/cms_news.ReqAddParams" + } + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/system/cms/news/delete": { + "delete": { + "security": [ + { + "": [] + } + ], + "description": "删除信息", + "tags": [ + "文章管理" + ], + "summary": "删除信息", + "parameters": [ + { + "description": "ids[1,2,3..]", + "name": "ids", + "in": "body", + "required": true, + "schema": { + "type": "integer" + } + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/system/cms/news/edit": { + "post": { + "security": [ + { + "": [] + } + ], + "description": "修改信息", + "tags": [ + "文章管理" + ], + "summary": "修改信息", + "parameters": [ + { + "description": "data", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/cms_news.ReqEditParams" + } + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/system/cms/news/getModelFields": { + "get": { + "security": [ + { + "": [] + } + ], + "description": "获取模型字段", + "tags": [ + "栏目管理" + ], + "summary": "获取模型字段", + "parameters": [ + { + "description": "cateIds[1,2,3...]", + "name": "cateIds", + "in": "body", + "required": true, + "schema": { + "type": "integer" + } + }, + { + "description": "newsId", + "name": "newsId", + "in": "body", + "required": true, + "schema": { + "type": "integer" + } + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/system/cms/news/list": { + "get": { + "security": [ + { + "": [] + } + ], + "description": "信息列表", + "tags": [ + "文章管理" + ], + "summary": "信息列表", + "parameters": [ + { + "description": "data", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/cms_news.ReqListSearchParams" + } + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, "/system/config/dict/add": { "post": { "security": [ @@ -861,11 +1221,20 @@ var doc = `{ "": [] } ], - "description": "字典状态", + "description": "获取字典对应选项", "tags": [ "字典管理" ], - "summary": "字典状态", + "summary": "获取字典对应选项", + "parameters": [ + { + "type": "string", + "description": "dictType", + "name": "dictType", + "in": "query", + "required": true + } + ], "responses": { "0": { "description": "{\"code\": 200, \"data\": [...]}", @@ -1183,6 +1552,420 @@ var doc = `{ } } }, + "/system/model/category/add": { + "post": { + "security": [ + { + "": [] + } + ], + "description": "添加模型分类", + "tags": [ + "模型分类" + ], + "summary": "添加模型分类", + "parameters": [ + { + "description": "data", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/model_category.AddReq" + } + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/system/model/category/all": { + "post": { + "security": [ + { + "": [] + } + ], + "description": "模型分类", + "tags": [ + "模型分类" + ], + "summary": "模型分类", + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/system/model/category/delete": { + "delete": { + "security": [ + { + "": [] + } + ], + "description": "删除分类", + "tags": [ + "模型分类" + ], + "summary": "删除分类", + "parameters": [ + { + "description": "ids", + "name": "ids", + "in": "body", + "required": true, + "schema": { + "type": "integer" + } + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/system/model/category/edit": { + "post": { + "security": [ + { + "": [] + } + ], + "description": "修改模型分类", + "tags": [ + "模型分类" + ], + "summary": "修改模型分类", + "parameters": [ + { + "description": "data", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/model_category.EditReq" + } + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/system/model/category/list": { + "get": { + "security": [ + { + "": [] + } + ], + "description": "模型列表", + "tags": [ + "模型分类" + ], + "summary": "模型列表", + "parameters": [ + { + "description": "data", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/model_category.SearchReq" + } + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/system/model/category/sort": { + "post": { + "security": [ + { + "": [] + } + ], + "description": "分类排序", + "tags": [ + "模型分类" + ], + "summary": "分类排序", + "parameters": [ + { + "description": "sorts", + "name": "sorts", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/system/model/info/add": { + "post": { + "security": [ + { + "": [] + } + ], + "description": "新增", + "tags": [ + "模型列表" + ], + "summary": "新增", + "parameters": [ + { + "description": "data", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/model_info.AddReq" + } + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/system/model/info/copyModel": { + "post": { + "security": [ + { + "": [] + } + ], + "description": "复制模型", + "tags": [ + "模型列表" + ], + "summary": "复制模型", + "parameters": [ + { + "type": "integer", + "description": "int valid", + "name": "modelId", + "in": "path", + "required": true + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/system/model/info/createModel": { + "post": { + "security": [ + { + "": [] + } + ], + "description": "模型生成", + "tags": [ + "模型列表" + ], + "summary": "模型生成", + "parameters": [ + { + "type": "integer", + "description": "int valid", + "name": "modelId", + "in": "path", + "required": true + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/system/model/info/delete": { + "post": { + "security": [ + { + "": [] + } + ], + "description": "删除", + "tags": [ + "模型列表" + ], + "summary": "删除", + "parameters": [ + { + "description": "data", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/model_info.RemoveReq" + } + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/system/model/info/edit": { + "post": { + "security": [ + { + "": [] + } + ], + "description": "修改", + "tags": [ + "模型列表" + ], + "summary": "修改", + "parameters": [ + { + "description": "data", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/model_info.EditReq" + } + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/system/model/info/list": { + "post": { + "security": [ + { + "": [] + } + ], + "description": "列表页", + "tags": [ + "模型列表" + ], + "summary": "列表页", + "parameters": [ + { + "description": "data", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/model_info.SelectPageReq" + } + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/system/model/info/setStatus": { + "post": { + "security": [ + { + "": [] + } + ], + "description": "设置模型状态", + "tags": [ + "模型列表" + ], + "summary": "设置模型状态", + "parameters": [ + { + "description": "data", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/model_info.StatusSetReq" + } + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, "/system/monitor/job/add": { "post": { "security": [ @@ -1722,6 +2505,336 @@ var doc = `{ } } }, + "/system/plug/ad/info/add": { + "post": { + "security": [ + { + "": [] + } + ], + "description": "添加广告", + "tags": [ + "广告列表" + ], + "summary": "添加广告", + "parameters": [ + { + "description": "data", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/plug_ad.AddReq" + } + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/system/plug/ad/info/delete": { + "delete": { + "security": [ + { + "": [] + } + ], + "description": "删除广告", + "tags": [ + "广告列表" + ], + "summary": "删除广告", + "parameters": [ + { + "description": "ids", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "integer" + } + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/system/plug/ad/info/edit": { + "post": { + "security": [ + { + "": [] + } + ], + "description": "修改广告", + "tags": [ + "广告列表" + ], + "summary": "修改广告", + "parameters": [ + { + "description": "data", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/plug_ad.EditReq" + } + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/system/plug/ad/info/list": { + "get": { + "security": [ + { + "": [] + } + ], + "description": "广告列表", + "tags": [ + "广告列表" + ], + "summary": "广告列表", + "parameters": [ + { + "description": "data", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/plug_ad.SelectPageReq" + } + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/system/plug/ad/info/sort": { + "post": { + "security": [ + { + "": [] + } + ], + "description": "栏目排序", + "tags": [ + "广告列表" + ], + "summary": "栏目排序", + "parameters": [ + { + "description": "sorts[]", + "name": "sorts", + "in": "body", + "required": true, + "schema": { + "type": "integer" + } + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/system/plug/ad/type/add": { + "post": { + "security": [ + { + "": [] + } + ], + "description": "添加广告位", + "tags": [ + "广告位管理" + ], + "summary": "添加广告位", + "parameters": [ + { + "description": "data", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/plug_adtype.AddReq" + } + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/system/plug/ad/type/delete": { + "delete": { + "security": [ + { + "": [] + } + ], + "description": "删除广告位", + "tags": [ + "广告位管理" + ], + "summary": "删除广告位", + "parameters": [ + { + "description": "adtypeID[1,2,3...]", + "name": "adtypeID", + "in": "body", + "required": true, + "schema": { + "type": "integer" + } + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/system/plug/ad/type/edit": { + "post": { + "security": [ + { + "": [] + } + ], + "description": "修改广告位信息", + "tags": [ + "广告位管理" + ], + "summary": "修改广告位信息", + "parameters": [ + { + "description": "data", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/plug_adtype.EditReq" + } + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/system/plug/ad/type/list": { + "get": { + "security": [ + { + "": [] + } + ], + "description": "广告位列表", + "tags": [ + "广告位管理" + ], + "summary": "广告位列表", + "parameters": [ + { + "description": "data", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/plug_adtype.SelectPageReq" + } + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/system/plug/ad/type/sort": { + "post": { + "security": [ + { + "": [] + } + ], + "description": "栏目排序", + "tags": [ + "广告位管理" + ], + "summary": "栏目排序", + "parameters": [ + { + "description": "sorts", + "name": "sorts", + "in": "body", + "required": true, + "schema": { + "type": "integer" + } + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, "/system/post/add": { "post": { "security": [ @@ -1845,7 +2958,7 @@ var doc = `{ ], "responses": { "0": { - "description": "{\"code\": 200, \"data\": [...]}", + "description": "{\"code\": 0, \"data\": [...]}", "schema": { "$ref": "#/definitions/response.Response" } @@ -2378,6 +3491,9 @@ var doc = `{ "alwaysShow": { "type": "integer" }, + "component": { + "type": "string" + }, "condition": { "type": "string" }, @@ -2424,6 +3540,255 @@ var doc = `{ } } }, + "cms_category.ReqAdd": { + "type": "object", + "properties": { + "alias": { + "type": "string" + }, + "cateAddress": { + "type": "string" + }, + "cateContent": { + "type": "string" + }, + "cateType": { + "type": "integer" + }, + "contentTemplate": { + "type": "string" + }, + "description": { + "type": "string" + }, + "inputSeoDescription": { + "type": "string" + }, + "inputSeoKeywords": { + "type": "string" + }, + "inputSeoTitle": { + "type": "string" + }, + "listTemplate": { + "type": "string" + }, + "modelId": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "parentId": { + "type": "integer" + }, + "status": { + "type": "integer" + }, + "thumbnail": { + "type": "string" + } + } + }, + "cms_category.ReqEdit": { + "type": "object", + "properties": { + "alias": { + "type": "string" + }, + "cateAddress": { + "type": "string" + }, + "cateContent": { + "type": "string" + }, + "cateType": { + "type": "integer" + }, + "contentTemplate": { + "type": "string" + }, + "description": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "inputSeoDescription": { + "type": "string" + }, + "inputSeoKeywords": { + "type": "string" + }, + "inputSeoTitle": { + "type": "string" + }, + "listTemplate": { + "type": "string" + }, + "modelId": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "parentId": { + "type": "integer" + }, + "status": { + "type": "integer" + }, + "thumbnail": { + "type": "string" + } + } + }, + "cms_category.ReqSearchList": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "status": { + "type": "string" + } + } + }, + "cms_news.ReqAddParams": { + "type": "object", + "properties": { + "attr": { + "description": "文章标记 置顶 推荐", + "type": "array", + "items": { + "type": "integer" + } + }, + "isJump": { + "description": "是否跳转地址", + "type": "integer" + }, + "jumpUrl": { + "description": "跳转地址", + "type": "string" + }, + "modelForm": { + "type": "object", + "additionalProperties": true + }, + "newsExcerpt": { + "description": "post摘要", + "type": "string" + }, + "newsKeywords": { + "description": "seo keywords", + "type": "string" + }, + "newsSource": { + "description": "转载文章的来源", + "type": "string" + }, + "newsStatus": { + "description": "状态;1:已发布;0:未发布;", + "type": "integer" + }, + "newsTitle": { + "description": "post标题", + "type": "string" + }, + "publishedTime": { + "description": "发布时间", + "type": "string" + }, + "thumbnail": { + "description": "缩略图", + "type": "string" + } + } + }, + "cms_news.ReqEditParams": { + "type": "object", + "properties": { + "attr": { + "description": "文章标记 置顶 推荐", + "type": "array", + "items": { + "type": "integer" + } + }, + "id": { + "type": "integer" + }, + "isJump": { + "description": "是否跳转地址", + "type": "integer" + }, + "jumpUrl": { + "description": "跳转地址", + "type": "string" + }, + "modelForm": { + "type": "object", + "additionalProperties": true + }, + "newsExcerpt": { + "description": "post摘要", + "type": "string" + }, + "newsKeywords": { + "description": "seo keywords", + "type": "string" + }, + "newsSource": { + "description": "转载文章的来源", + "type": "string" + }, + "newsStatus": { + "description": "状态;1:已发布;0:未发布;", + "type": "integer" + }, + "newsTitle": { + "description": "post标题", + "type": "string" + }, + "publishedTime": { + "description": "发布时间", + "type": "string" + }, + "thumbnail": { + "description": "缩略图", + "type": "string" + } + } + }, + "cms_news.ReqListSearchParams": { + "type": "object", + "properties": { + "cateId": { + "type": "array", + "items": { + "type": "integer" + } + }, + "keyWords": { + "type": "string" + }, + "pageNum": { + "description": "当前页码", + "type": "integer" + }, + "pageSize": { + "description": "每页数", + "type": "integer" + }, + "publishedTimeEnd": { + "type": "string" + }, + "publishedTimeStart": { + "type": "string" + } + } + }, "gen_table.EditReq": { "type": "object", "properties": { @@ -2509,6 +3874,320 @@ var doc = `{ } } }, + "model_category.AddReq": { + "type": "object", + "properties": { + "cname": { + "type": "string" + }, + "createBy": { + "type": "integer" + }, + "csort": { + "type": "integer" + }, + "cstatus": { + "type": "integer" + } + } + }, + "model_category.EditReq": { + "type": "object", + "properties": { + "cid": { + "type": "integer" + }, + "cname": { + "type": "string" + }, + "csort": { + "type": "integer" + }, + "cstatus": { + "type": "integer" + }, + "updateBy": { + "type": "integer" + } + } + }, + "model_category.SearchReq": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "pageNum": { + "description": "当前页码", + "type": "integer" + }, + "pageSize": { + "description": "每页数", + "type": "integer" + }, + "status": { + "type": "string" + } + } + }, + "model_info.AddReq": { + "type": "object", + "properties": { + "createBy": { + "description": "添加人", + "type": "integer" + }, + "modelCategoryId": { + "type": "integer" + }, + "modelEngine": { + "type": "string" + }, + "modelName": { + "type": "string" + }, + "modelStatus": { + "type": "integer" + }, + "modelTitle": { + "type": "string" + } + } + }, + "model_info.EditReq": { + "type": "object", + "properties": { + "modelCategoryId": { + "type": "integer" + }, + "modelEngine": { + "type": "string" + }, + "modelId": { + "type": "integer" + }, + "modelName": { + "type": "string" + }, + "modelStatus": { + "type": "integer" + }, + "modelTitle": { + "type": "string" + }, + "updateBy": { + "type": "integer" + } + } + }, + "model_info.RemoveReq": { + "type": "object", + "properties": { + "ids": { + "description": "删除id", + "type": "array", + "items": { + "type": "integer" + } + } + } + }, + "model_info.SelectPageReq": { + "type": "object", + "properties": { + "beginTime": { + "description": "开始时间", + "type": "string" + }, + "endTime": { + "description": "结束时间", + "type": "string" + }, + "modelCategoryId": { + "description": "模型分类", + "type": "string" + }, + "modelName": { + "description": "模型标识", + "type": "string" + }, + "modelStatus": { + "description": "模型状态", + "type": "string" + }, + "modelTitle": { + "description": "模型名称", + "type": "string" + }, + "pageNum": { + "description": "当前页码", + "type": "integer" + }, + "pageSize": { + "description": "每页数", + "type": "integer" + } + } + }, + "model_info.StatusSetReq": { + "type": "object", + "properties": { + "modelId": { + "type": "integer" + }, + "modelStatus": { + "type": "integer" + } + } + }, + "plug_ad.AddReq": { + "type": "object", + "properties": { + "adAdtypeid": { + "description": "所属位置", + "type": "integer" + }, + "adCheckid": { + "description": "1=图片 2=JS", + "type": "integer" + }, + "adContent": { + "description": "广告文字内容", + "type": "string" + }, + "adJs": { + "description": "JS代码", + "type": "string" + }, + "adName": { + "description": "广告名称", + "type": "string" + }, + "adOpen": { + "description": "1=审核 0=未审核", + "type": "integer" + }, + "adPic": { + "description": "广告图片URL", + "type": "string" + }, + "adSort": { + "description": "排序", + "type": "integer" + }, + "adUrl": { + "description": "广告链接", + "type": "string" + } + } + }, + "plug_ad.EditReq": { + "type": "object", + "properties": { + "adAdtypeid": { + "description": "所属位置", + "type": "integer" + }, + "adCheckid": { + "description": "1=图片 2=JS", + "type": "integer" + }, + "adContent": { + "description": "广告文字内容", + "type": "string" + }, + "adJs": { + "description": "JS代码", + "type": "string" + }, + "adName": { + "description": "广告名称", + "type": "string" + }, + "adOpen": { + "description": "1=审核 0=未审核", + "type": "integer" + }, + "adPic": { + "description": "广告图片URL", + "type": "string" + }, + "adSort": { + "description": "排序", + "type": "integer" + }, + "adUrl": { + "description": "广告链接", + "type": "string" + }, + "plugAdID": { + "type": "integer" + } + } + }, + "plug_ad.SelectPageReq": { + "type": "object", + "properties": { + "adName": { + "description": "广告名称", + "type": "string" + }, + "pageNo": { + "description": "当前页", + "type": "integer" + }, + "pageSize": { + "description": "每页显示记录数", + "type": "integer" + } + } + }, + "plug_adtype.AddReq": { + "type": "object", + "properties": { + "adtypeName": { + "description": "广告位名称", + "type": "string" + }, + "adtypeSort": { + "description": "广告位排序", + "type": "integer" + } + } + }, + "plug_adtype.EditReq": { + "type": "object", + "properties": { + "adtypeID": { + "type": "integer" + }, + "adtypeName": { + "description": "广告位名称", + "type": "string" + }, + "adtypeSort": { + "description": "广告位排序", + "type": "integer" + } + } + }, + "plug_adtype.SelectPageReq": { + "type": "object", + "properties": { + "adtypeName": { + "description": "广告位名称", + "type": "string" + }, + "pageNo": { + "description": "当前页", + "type": "integer" + }, + "pageSize": { + "description": "每页显示记录数", + "type": "integer" + } + } + }, "response.Response": { "type": "object", "properties": { @@ -3103,6 +4782,9 @@ var doc = `{ "sys_post.AddParams": { "type": "object", "properties": { + "addUser": { + "type": "integer" + }, "postCode": { "type": "string" }, @@ -3123,6 +4805,9 @@ var doc = `{ "sys_post.EditParams": { "type": "object", "properties": { + "addUser": { + "type": "integer" + }, "postCode": { "type": "string" }, @@ -3140,6 +4825,9 @@ var doc = `{ }, "status": { "type": "string" + }, + "upUser": { + "type": "integer" } } }, diff --git a/swagger/swagger.json b/swagger/swagger.json index d37f5b8..4924224 100644 --- a/swagger/swagger.json +++ b/swagger/swagger.json @@ -4,7 +4,6 @@ "description": "gfast 在线API文档", "title": "gfast API文档", "contact": {}, - "license": {}, "version": "1.0" }, "host": "localhost", @@ -575,6 +574,367 @@ } } }, + "/system/cms/menu/add": { + "post": { + "security": [ + { + "": [] + } + ], + "description": "添加栏目", + "tags": [ + "栏目管理" + ], + "summary": "添加栏目", + "parameters": [ + { + "description": "data", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/cms_category.ReqAdd" + } + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/system/cms/menu/delete": { + "delete": { + "security": [ + { + "": [] + } + ], + "description": "删除栏目", + "tags": [ + "栏目管理" + ], + "summary": "删除栏目", + "parameters": [ + { + "description": "ids", + "name": "ids", + "in": "body", + "required": true, + "schema": { + "type": "integer" + } + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/system/cms/menu/edit": { + "post": { + "security": [ + { + "": [] + } + ], + "description": "修改栏目", + "tags": [ + "栏目管理" + ], + "summary": "修改栏目", + "parameters": [ + { + "description": "data", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/cms_category.ReqEdit" + } + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/system/cms/menu/list": { + "get": { + "security": [ + { + "": [] + } + ], + "description": "分页列表", + "tags": [ + "栏目管理" + ], + "summary": "栏目列表", + "parameters": [ + { + "description": "data", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/cms_category.ReqSearchList" + } + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/system/cms/menu/modelOptions": { + "get": { + "security": [ + { + "": [] + } + ], + "description": "栏目模型选项", + "tags": [ + "栏目管理" + ], + "summary": "栏目模型选项", + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/system/cms/menu/sort": { + "post": { + "security": [ + { + "": [] + } + ], + "description": "栏目排序", + "tags": [ + "栏目管理" + ], + "summary": "栏目排序", + "parameters": [ + { + "description": "data", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/system/cms/news/add": { + "post": { + "security": [ + { + "": [] + } + ], + "description": "添加信息", + "tags": [ + "文章管理" + ], + "summary": "添加信息", + "parameters": [ + { + "description": "data", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/cms_news.ReqAddParams" + } + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/system/cms/news/delete": { + "delete": { + "security": [ + { + "": [] + } + ], + "description": "删除信息", + "tags": [ + "文章管理" + ], + "summary": "删除信息", + "parameters": [ + { + "description": "ids[1,2,3..]", + "name": "ids", + "in": "body", + "required": true, + "schema": { + "type": "integer" + } + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/system/cms/news/edit": { + "post": { + "security": [ + { + "": [] + } + ], + "description": "修改信息", + "tags": [ + "文章管理" + ], + "summary": "修改信息", + "parameters": [ + { + "description": "data", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/cms_news.ReqEditParams" + } + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/system/cms/news/getModelFields": { + "get": { + "security": [ + { + "": [] + } + ], + "description": "获取模型字段", + "tags": [ + "栏目管理" + ], + "summary": "获取模型字段", + "parameters": [ + { + "description": "cateIds[1,2,3...]", + "name": "cateIds", + "in": "body", + "required": true, + "schema": { + "type": "integer" + } + }, + { + "description": "newsId", + "name": "newsId", + "in": "body", + "required": true, + "schema": { + "type": "integer" + } + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/system/cms/news/list": { + "get": { + "security": [ + { + "": [] + } + ], + "description": "信息列表", + "tags": [ + "文章管理" + ], + "summary": "信息列表", + "parameters": [ + { + "description": "data", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/cms_news.ReqListSearchParams" + } + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, "/system/config/dict/add": { "post": { "security": [ @@ -846,11 +1206,20 @@ "": [] } ], - "description": "字典状态", + "description": "获取字典对应选项", "tags": [ "字典管理" ], - "summary": "字典状态", + "summary": "获取字典对应选项", + "parameters": [ + { + "type": "string", + "description": "dictType", + "name": "dictType", + "in": "query", + "required": true + } + ], "responses": { "0": { "description": "{\"code\": 200, \"data\": [...]}", @@ -1168,6 +1537,420 @@ } } }, + "/system/model/category/add": { + "post": { + "security": [ + { + "": [] + } + ], + "description": "添加模型分类", + "tags": [ + "模型分类" + ], + "summary": "添加模型分类", + "parameters": [ + { + "description": "data", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/model_category.AddReq" + } + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/system/model/category/all": { + "post": { + "security": [ + { + "": [] + } + ], + "description": "模型分类", + "tags": [ + "模型分类" + ], + "summary": "模型分类", + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/system/model/category/delete": { + "delete": { + "security": [ + { + "": [] + } + ], + "description": "删除分类", + "tags": [ + "模型分类" + ], + "summary": "删除分类", + "parameters": [ + { + "description": "ids", + "name": "ids", + "in": "body", + "required": true, + "schema": { + "type": "integer" + } + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/system/model/category/edit": { + "post": { + "security": [ + { + "": [] + } + ], + "description": "修改模型分类", + "tags": [ + "模型分类" + ], + "summary": "修改模型分类", + "parameters": [ + { + "description": "data", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/model_category.EditReq" + } + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/system/model/category/list": { + "get": { + "security": [ + { + "": [] + } + ], + "description": "模型列表", + "tags": [ + "模型分类" + ], + "summary": "模型列表", + "parameters": [ + { + "description": "data", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/model_category.SearchReq" + } + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/system/model/category/sort": { + "post": { + "security": [ + { + "": [] + } + ], + "description": "分类排序", + "tags": [ + "模型分类" + ], + "summary": "分类排序", + "parameters": [ + { + "description": "sorts", + "name": "sorts", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/system/model/info/add": { + "post": { + "security": [ + { + "": [] + } + ], + "description": "新增", + "tags": [ + "模型列表" + ], + "summary": "新增", + "parameters": [ + { + "description": "data", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/model_info.AddReq" + } + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/system/model/info/copyModel": { + "post": { + "security": [ + { + "": [] + } + ], + "description": "复制模型", + "tags": [ + "模型列表" + ], + "summary": "复制模型", + "parameters": [ + { + "type": "integer", + "description": "int valid", + "name": "modelId", + "in": "path", + "required": true + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/system/model/info/createModel": { + "post": { + "security": [ + { + "": [] + } + ], + "description": "模型生成", + "tags": [ + "模型列表" + ], + "summary": "模型生成", + "parameters": [ + { + "type": "integer", + "description": "int valid", + "name": "modelId", + "in": "path", + "required": true + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/system/model/info/delete": { + "post": { + "security": [ + { + "": [] + } + ], + "description": "删除", + "tags": [ + "模型列表" + ], + "summary": "删除", + "parameters": [ + { + "description": "data", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/model_info.RemoveReq" + } + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/system/model/info/edit": { + "post": { + "security": [ + { + "": [] + } + ], + "description": "修改", + "tags": [ + "模型列表" + ], + "summary": "修改", + "parameters": [ + { + "description": "data", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/model_info.EditReq" + } + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/system/model/info/list": { + "post": { + "security": [ + { + "": [] + } + ], + "description": "列表页", + "tags": [ + "模型列表" + ], + "summary": "列表页", + "parameters": [ + { + "description": "data", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/model_info.SelectPageReq" + } + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/system/model/info/setStatus": { + "post": { + "security": [ + { + "": [] + } + ], + "description": "设置模型状态", + "tags": [ + "模型列表" + ], + "summary": "设置模型状态", + "parameters": [ + { + "description": "data", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/model_info.StatusSetReq" + } + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, "/system/monitor/job/add": { "post": { "security": [ @@ -1707,6 +2490,336 @@ } } }, + "/system/plug/ad/info/add": { + "post": { + "security": [ + { + "": [] + } + ], + "description": "添加广告", + "tags": [ + "广告列表" + ], + "summary": "添加广告", + "parameters": [ + { + "description": "data", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/plug_ad.AddReq" + } + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/system/plug/ad/info/delete": { + "delete": { + "security": [ + { + "": [] + } + ], + "description": "删除广告", + "tags": [ + "广告列表" + ], + "summary": "删除广告", + "parameters": [ + { + "description": "ids", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "integer" + } + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/system/plug/ad/info/edit": { + "post": { + "security": [ + { + "": [] + } + ], + "description": "修改广告", + "tags": [ + "广告列表" + ], + "summary": "修改广告", + "parameters": [ + { + "description": "data", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/plug_ad.EditReq" + } + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/system/plug/ad/info/list": { + "get": { + "security": [ + { + "": [] + } + ], + "description": "广告列表", + "tags": [ + "广告列表" + ], + "summary": "广告列表", + "parameters": [ + { + "description": "data", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/plug_ad.SelectPageReq" + } + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/system/plug/ad/info/sort": { + "post": { + "security": [ + { + "": [] + } + ], + "description": "栏目排序", + "tags": [ + "广告列表" + ], + "summary": "栏目排序", + "parameters": [ + { + "description": "sorts[]", + "name": "sorts", + "in": "body", + "required": true, + "schema": { + "type": "integer" + } + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/system/plug/ad/type/add": { + "post": { + "security": [ + { + "": [] + } + ], + "description": "添加广告位", + "tags": [ + "广告位管理" + ], + "summary": "添加广告位", + "parameters": [ + { + "description": "data", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/plug_adtype.AddReq" + } + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/system/plug/ad/type/delete": { + "delete": { + "security": [ + { + "": [] + } + ], + "description": "删除广告位", + "tags": [ + "广告位管理" + ], + "summary": "删除广告位", + "parameters": [ + { + "description": "adtypeID[1,2,3...]", + "name": "adtypeID", + "in": "body", + "required": true, + "schema": { + "type": "integer" + } + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/system/plug/ad/type/edit": { + "post": { + "security": [ + { + "": [] + } + ], + "description": "修改广告位信息", + "tags": [ + "广告位管理" + ], + "summary": "修改广告位信息", + "parameters": [ + { + "description": "data", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/plug_adtype.EditReq" + } + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/system/plug/ad/type/list": { + "get": { + "security": [ + { + "": [] + } + ], + "description": "广告位列表", + "tags": [ + "广告位管理" + ], + "summary": "广告位列表", + "parameters": [ + { + "description": "data", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/plug_adtype.SelectPageReq" + } + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/system/plug/ad/type/sort": { + "post": { + "security": [ + { + "": [] + } + ], + "description": "栏目排序", + "tags": [ + "广告位管理" + ], + "summary": "栏目排序", + "parameters": [ + { + "description": "sorts", + "name": "sorts", + "in": "body", + "required": true, + "schema": { + "type": "integer" + } + } + ], + "responses": { + "0": { + "description": "{\"code\": 200, \"data\": [...]}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, "/system/post/add": { "post": { "security": [ @@ -1830,7 +2943,7 @@ ], "responses": { "0": { - "description": "{\"code\": 200, \"data\": [...]}", + "description": "{\"code\": 0, \"data\": [...]}", "schema": { "$ref": "#/definitions/response.Response" } @@ -2363,6 +3476,9 @@ "alwaysShow": { "type": "integer" }, + "component": { + "type": "string" + }, "condition": { "type": "string" }, @@ -2409,6 +3525,255 @@ } } }, + "cms_category.ReqAdd": { + "type": "object", + "properties": { + "alias": { + "type": "string" + }, + "cateAddress": { + "type": "string" + }, + "cateContent": { + "type": "string" + }, + "cateType": { + "type": "integer" + }, + "contentTemplate": { + "type": "string" + }, + "description": { + "type": "string" + }, + "inputSeoDescription": { + "type": "string" + }, + "inputSeoKeywords": { + "type": "string" + }, + "inputSeoTitle": { + "type": "string" + }, + "listTemplate": { + "type": "string" + }, + "modelId": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "parentId": { + "type": "integer" + }, + "status": { + "type": "integer" + }, + "thumbnail": { + "type": "string" + } + } + }, + "cms_category.ReqEdit": { + "type": "object", + "properties": { + "alias": { + "type": "string" + }, + "cateAddress": { + "type": "string" + }, + "cateContent": { + "type": "string" + }, + "cateType": { + "type": "integer" + }, + "contentTemplate": { + "type": "string" + }, + "description": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "inputSeoDescription": { + "type": "string" + }, + "inputSeoKeywords": { + "type": "string" + }, + "inputSeoTitle": { + "type": "string" + }, + "listTemplate": { + "type": "string" + }, + "modelId": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "parentId": { + "type": "integer" + }, + "status": { + "type": "integer" + }, + "thumbnail": { + "type": "string" + } + } + }, + "cms_category.ReqSearchList": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "status": { + "type": "string" + } + } + }, + "cms_news.ReqAddParams": { + "type": "object", + "properties": { + "attr": { + "description": "文章标记 置顶 推荐", + "type": "array", + "items": { + "type": "integer" + } + }, + "isJump": { + "description": "是否跳转地址", + "type": "integer" + }, + "jumpUrl": { + "description": "跳转地址", + "type": "string" + }, + "modelForm": { + "type": "object", + "additionalProperties": true + }, + "newsExcerpt": { + "description": "post摘要", + "type": "string" + }, + "newsKeywords": { + "description": "seo keywords", + "type": "string" + }, + "newsSource": { + "description": "转载文章的来源", + "type": "string" + }, + "newsStatus": { + "description": "状态;1:已发布;0:未发布;", + "type": "integer" + }, + "newsTitle": { + "description": "post标题", + "type": "string" + }, + "publishedTime": { + "description": "发布时间", + "type": "string" + }, + "thumbnail": { + "description": "缩略图", + "type": "string" + } + } + }, + "cms_news.ReqEditParams": { + "type": "object", + "properties": { + "attr": { + "description": "文章标记 置顶 推荐", + "type": "array", + "items": { + "type": "integer" + } + }, + "id": { + "type": "integer" + }, + "isJump": { + "description": "是否跳转地址", + "type": "integer" + }, + "jumpUrl": { + "description": "跳转地址", + "type": "string" + }, + "modelForm": { + "type": "object", + "additionalProperties": true + }, + "newsExcerpt": { + "description": "post摘要", + "type": "string" + }, + "newsKeywords": { + "description": "seo keywords", + "type": "string" + }, + "newsSource": { + "description": "转载文章的来源", + "type": "string" + }, + "newsStatus": { + "description": "状态;1:已发布;0:未发布;", + "type": "integer" + }, + "newsTitle": { + "description": "post标题", + "type": "string" + }, + "publishedTime": { + "description": "发布时间", + "type": "string" + }, + "thumbnail": { + "description": "缩略图", + "type": "string" + } + } + }, + "cms_news.ReqListSearchParams": { + "type": "object", + "properties": { + "cateId": { + "type": "array", + "items": { + "type": "integer" + } + }, + "keyWords": { + "type": "string" + }, + "pageNum": { + "description": "当前页码", + "type": "integer" + }, + "pageSize": { + "description": "每页数", + "type": "integer" + }, + "publishedTimeEnd": { + "type": "string" + }, + "publishedTimeStart": { + "type": "string" + } + } + }, "gen_table.EditReq": { "type": "object", "properties": { @@ -2494,6 +3859,320 @@ } } }, + "model_category.AddReq": { + "type": "object", + "properties": { + "cname": { + "type": "string" + }, + "createBy": { + "type": "integer" + }, + "csort": { + "type": "integer" + }, + "cstatus": { + "type": "integer" + } + } + }, + "model_category.EditReq": { + "type": "object", + "properties": { + "cid": { + "type": "integer" + }, + "cname": { + "type": "string" + }, + "csort": { + "type": "integer" + }, + "cstatus": { + "type": "integer" + }, + "updateBy": { + "type": "integer" + } + } + }, + "model_category.SearchReq": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "pageNum": { + "description": "当前页码", + "type": "integer" + }, + "pageSize": { + "description": "每页数", + "type": "integer" + }, + "status": { + "type": "string" + } + } + }, + "model_info.AddReq": { + "type": "object", + "properties": { + "createBy": { + "description": "添加人", + "type": "integer" + }, + "modelCategoryId": { + "type": "integer" + }, + "modelEngine": { + "type": "string" + }, + "modelName": { + "type": "string" + }, + "modelStatus": { + "type": "integer" + }, + "modelTitle": { + "type": "string" + } + } + }, + "model_info.EditReq": { + "type": "object", + "properties": { + "modelCategoryId": { + "type": "integer" + }, + "modelEngine": { + "type": "string" + }, + "modelId": { + "type": "integer" + }, + "modelName": { + "type": "string" + }, + "modelStatus": { + "type": "integer" + }, + "modelTitle": { + "type": "string" + }, + "updateBy": { + "type": "integer" + } + } + }, + "model_info.RemoveReq": { + "type": "object", + "properties": { + "ids": { + "description": "删除id", + "type": "array", + "items": { + "type": "integer" + } + } + } + }, + "model_info.SelectPageReq": { + "type": "object", + "properties": { + "beginTime": { + "description": "开始时间", + "type": "string" + }, + "endTime": { + "description": "结束时间", + "type": "string" + }, + "modelCategoryId": { + "description": "模型分类", + "type": "string" + }, + "modelName": { + "description": "模型标识", + "type": "string" + }, + "modelStatus": { + "description": "模型状态", + "type": "string" + }, + "modelTitle": { + "description": "模型名称", + "type": "string" + }, + "pageNum": { + "description": "当前页码", + "type": "integer" + }, + "pageSize": { + "description": "每页数", + "type": "integer" + } + } + }, + "model_info.StatusSetReq": { + "type": "object", + "properties": { + "modelId": { + "type": "integer" + }, + "modelStatus": { + "type": "integer" + } + } + }, + "plug_ad.AddReq": { + "type": "object", + "properties": { + "adAdtypeid": { + "description": "所属位置", + "type": "integer" + }, + "adCheckid": { + "description": "1=图片 2=JS", + "type": "integer" + }, + "adContent": { + "description": "广告文字内容", + "type": "string" + }, + "adJs": { + "description": "JS代码", + "type": "string" + }, + "adName": { + "description": "广告名称", + "type": "string" + }, + "adOpen": { + "description": "1=审核 0=未审核", + "type": "integer" + }, + "adPic": { + "description": "广告图片URL", + "type": "string" + }, + "adSort": { + "description": "排序", + "type": "integer" + }, + "adUrl": { + "description": "广告链接", + "type": "string" + } + } + }, + "plug_ad.EditReq": { + "type": "object", + "properties": { + "adAdtypeid": { + "description": "所属位置", + "type": "integer" + }, + "adCheckid": { + "description": "1=图片 2=JS", + "type": "integer" + }, + "adContent": { + "description": "广告文字内容", + "type": "string" + }, + "adJs": { + "description": "JS代码", + "type": "string" + }, + "adName": { + "description": "广告名称", + "type": "string" + }, + "adOpen": { + "description": "1=审核 0=未审核", + "type": "integer" + }, + "adPic": { + "description": "广告图片URL", + "type": "string" + }, + "adSort": { + "description": "排序", + "type": "integer" + }, + "adUrl": { + "description": "广告链接", + "type": "string" + }, + "plugAdID": { + "type": "integer" + } + } + }, + "plug_ad.SelectPageReq": { + "type": "object", + "properties": { + "adName": { + "description": "广告名称", + "type": "string" + }, + "pageNo": { + "description": "当前页", + "type": "integer" + }, + "pageSize": { + "description": "每页显示记录数", + "type": "integer" + } + } + }, + "plug_adtype.AddReq": { + "type": "object", + "properties": { + "adtypeName": { + "description": "广告位名称", + "type": "string" + }, + "adtypeSort": { + "description": "广告位排序", + "type": "integer" + } + } + }, + "plug_adtype.EditReq": { + "type": "object", + "properties": { + "adtypeID": { + "type": "integer" + }, + "adtypeName": { + "description": "广告位名称", + "type": "string" + }, + "adtypeSort": { + "description": "广告位排序", + "type": "integer" + } + } + }, + "plug_adtype.SelectPageReq": { + "type": "object", + "properties": { + "adtypeName": { + "description": "广告位名称", + "type": "string" + }, + "pageNo": { + "description": "当前页", + "type": "integer" + }, + "pageSize": { + "description": "每页显示记录数", + "type": "integer" + } + } + }, "response.Response": { "type": "object", "properties": { @@ -3088,6 +4767,9 @@ "sys_post.AddParams": { "type": "object", "properties": { + "addUser": { + "type": "integer" + }, "postCode": { "type": "string" }, @@ -3108,6 +4790,9 @@ "sys_post.EditParams": { "type": "object", "properties": { + "addUser": { + "type": "integer" + }, "postCode": { "type": "string" }, @@ -3125,6 +4810,9 @@ }, "status": { "type": "string" + }, + "upUser": { + "type": "integer" } } }, diff --git a/swagger/swagger.yaml b/swagger/swagger.yaml index 82fd1ef..96d6ef6 100644 --- a/swagger/swagger.yaml +++ b/swagger/swagger.yaml @@ -4,6 +4,8 @@ definitions: properties: alwaysShow: type: integer + component: + type: string condition: type: string icon: @@ -34,6 +36,178 @@ definitions: title: type: string type: object + cms_category.ReqAdd: + properties: + alias: + type: string + cateAddress: + type: string + cateContent: + type: string + cateType: + type: integer + contentTemplate: + type: string + description: + type: string + inputSeoDescription: + type: string + inputSeoKeywords: + type: string + inputSeoTitle: + type: string + listTemplate: + type: string + modelId: + type: integer + name: + type: string + parentId: + type: integer + status: + type: integer + thumbnail: + type: string + type: object + cms_category.ReqEdit: + properties: + alias: + type: string + cateAddress: + type: string + cateContent: + type: string + cateType: + type: integer + contentTemplate: + type: string + description: + type: string + id: + type: integer + inputSeoDescription: + type: string + inputSeoKeywords: + type: string + inputSeoTitle: + type: string + listTemplate: + type: string + modelId: + type: integer + name: + type: string + parentId: + type: integer + status: + type: integer + thumbnail: + type: string + type: object + cms_category.ReqSearchList: + properties: + name: + type: string + status: + type: string + type: object + cms_news.ReqAddParams: + properties: + attr: + description: 文章标记 置顶 推荐 + items: + type: integer + type: array + isJump: + description: 是否跳转地址 + type: integer + jumpUrl: + description: 跳转地址 + type: string + modelForm: + additionalProperties: true + type: object + newsExcerpt: + description: post摘要 + type: string + newsKeywords: + description: seo keywords + type: string + newsSource: + description: 转载文章的来源 + type: string + newsStatus: + description: 状态;1:已发布;0:未发布; + type: integer + newsTitle: + description: post标题 + type: string + publishedTime: + description: 发布时间 + type: string + thumbnail: + description: 缩略图 + type: string + type: object + cms_news.ReqEditParams: + properties: + attr: + description: 文章标记 置顶 推荐 + items: + type: integer + type: array + id: + type: integer + isJump: + description: 是否跳转地址 + type: integer + jumpUrl: + description: 跳转地址 + type: string + modelForm: + additionalProperties: true + type: object + newsExcerpt: + description: post摘要 + type: string + newsKeywords: + description: seo keywords + type: string + newsSource: + description: 转载文章的来源 + type: string + newsStatus: + description: 状态;1:已发布;0:未发布; + type: integer + newsTitle: + description: post标题 + type: string + publishedTime: + description: 发布时间 + type: string + thumbnail: + description: 缩略图 + type: string + type: object + cms_news.ReqListSearchParams: + properties: + cateId: + items: + type: integer + type: array + keyWords: + type: string + pageNum: + description: 当前页码 + type: integer + pageSize: + description: 每页数 + type: integer + publishedTimeEnd: + type: string + publishedTimeStart: + type: string + type: object gen_table.EditReq: properties: businessName: @@ -92,6 +266,224 @@ definitions: description: 表名称 type: string type: object + model_category.AddReq: + properties: + cname: + type: string + createBy: + type: integer + csort: + type: integer + cstatus: + type: integer + type: object + model_category.EditReq: + properties: + cid: + type: integer + cname: + type: string + csort: + type: integer + cstatus: + type: integer + updateBy: + type: integer + type: object + model_category.SearchReq: + properties: + name: + type: string + pageNum: + description: 当前页码 + type: integer + pageSize: + description: 每页数 + type: integer + status: + type: string + type: object + model_info.AddReq: + properties: + createBy: + description: 添加人 + type: integer + modelCategoryId: + type: integer + modelEngine: + type: string + modelName: + type: string + modelStatus: + type: integer + modelTitle: + type: string + type: object + model_info.EditReq: + properties: + modelCategoryId: + type: integer + modelEngine: + type: string + modelId: + type: integer + modelName: + type: string + modelStatus: + type: integer + modelTitle: + type: string + updateBy: + type: integer + type: object + model_info.RemoveReq: + properties: + ids: + description: 删除id + items: + type: integer + type: array + type: object + model_info.SelectPageReq: + properties: + beginTime: + description: 开始时间 + type: string + endTime: + description: 结束时间 + type: string + modelCategoryId: + description: 模型分类 + type: string + modelName: + description: 模型标识 + type: string + modelStatus: + description: 模型状态 + type: string + modelTitle: + description: 模型名称 + type: string + pageNum: + description: 当前页码 + type: integer + pageSize: + description: 每页数 + type: integer + type: object + model_info.StatusSetReq: + properties: + modelId: + type: integer + modelStatus: + type: integer + type: object + plug_ad.AddReq: + properties: + adAdtypeid: + description: 所属位置 + type: integer + adCheckid: + description: 1=图片 2=JS + type: integer + adContent: + description: 广告文字内容 + type: string + adJs: + description: JS代码 + type: string + adName: + description: 广告名称 + type: string + adOpen: + description: 1=审核 0=未审核 + type: integer + adPic: + description: 广告图片URL + type: string + adSort: + description: 排序 + type: integer + adUrl: + description: 广告链接 + type: string + type: object + plug_ad.EditReq: + properties: + adAdtypeid: + description: 所属位置 + type: integer + adCheckid: + description: 1=图片 2=JS + type: integer + adContent: + description: 广告文字内容 + type: string + adJs: + description: JS代码 + type: string + adName: + description: 广告名称 + type: string + adOpen: + description: 1=审核 0=未审核 + type: integer + adPic: + description: 广告图片URL + type: string + adSort: + description: 排序 + type: integer + adUrl: + description: 广告链接 + type: string + plugAdID: + type: integer + type: object + plug_ad.SelectPageReq: + properties: + adName: + description: 广告名称 + type: string + pageNo: + description: 当前页 + type: integer + pageSize: + description: 每页显示记录数 + type: integer + type: object + plug_adtype.AddReq: + properties: + adtypeName: + description: 广告位名称 + type: string + adtypeSort: + description: 广告位排序 + type: integer + type: object + plug_adtype.EditReq: + properties: + adtypeID: + type: integer + adtypeName: + description: 广告位名称 + type: string + adtypeSort: + description: 广告位排序 + type: integer + type: object + plug_adtype.SelectPageReq: + properties: + adtypeName: + description: 广告位名称 + type: string + pageNo: + description: 当前页 + type: integer + pageSize: + description: 每页显示记录数 + type: integer + type: object response.Response: properties: code: @@ -499,6 +891,8 @@ definitions: type: object sys_post.AddParams: properties: + addUser: + type: integer postCode: type: string postName: @@ -512,6 +906,8 @@ definitions: type: object sys_post.EditParams: properties: + addUser: + type: integer postCode: type: string postId: @@ -524,6 +920,8 @@ definitions: type: string status: type: string + upUser: + type: integer type: object sys_post.SearchParams: properties: @@ -667,7 +1065,6 @@ host: localhost info: contact: {} description: gfast 在线API文档 - license: {} title: gfast API文档 version: "1.0" paths: @@ -1016,6 +1413,225 @@ paths: summary: 设置角色状态 tags: - 用户管理 + /system/cms/menu/add: + post: + description: 添加栏目 + parameters: + - description: data + in: body + name: data + required: true + schema: + $ref: '#/definitions/cms_category.ReqAdd' + responses: + "0": + description: '{"code": 200, "data": [...]}' + schema: + $ref: '#/definitions/response.Response' + security: + - "": [] + summary: 添加栏目 + tags: + - 栏目管理 + /system/cms/menu/delete: + delete: + description: 删除栏目 + parameters: + - description: ids + in: body + name: ids + required: true + schema: + type: integer + responses: + "0": + description: '{"code": 200, "data": [...]}' + schema: + $ref: '#/definitions/response.Response' + security: + - "": [] + summary: 删除栏目 + tags: + - 栏目管理 + /system/cms/menu/edit: + post: + description: 修改栏目 + parameters: + - description: data + in: body + name: data + required: true + schema: + $ref: '#/definitions/cms_category.ReqEdit' + responses: + "0": + description: '{"code": 200, "data": [...]}' + schema: + $ref: '#/definitions/response.Response' + security: + - "": [] + summary: 修改栏目 + tags: + - 栏目管理 + /system/cms/menu/list: + get: + description: 分页列表 + parameters: + - description: data + in: body + name: data + required: true + schema: + $ref: '#/definitions/cms_category.ReqSearchList' + responses: + "0": + description: '{"code": 200, "data": [...]}' + schema: + $ref: '#/definitions/response.Response' + security: + - "": [] + summary: 栏目列表 + tags: + - 栏目管理 + /system/cms/menu/modelOptions: + get: + description: 栏目模型选项 + responses: + "0": + description: '{"code": 200, "data": [...]}' + schema: + $ref: '#/definitions/response.Response' + security: + - "": [] + summary: 栏目模型选项 + tags: + - 栏目管理 + /system/cms/menu/sort: + post: + description: 栏目排序 + parameters: + - description: data + in: body + name: data + required: true + schema: + type: string + responses: + "0": + description: '{"code": 200, "data": [...]}' + schema: + $ref: '#/definitions/response.Response' + security: + - "": [] + summary: 栏目排序 + tags: + - 栏目管理 + /system/cms/news/add: + post: + description: 添加信息 + parameters: + - description: data + in: body + name: data + required: true + schema: + $ref: '#/definitions/cms_news.ReqAddParams' + responses: + "0": + description: '{"code": 200, "data": [...]}' + schema: + $ref: '#/definitions/response.Response' + security: + - "": [] + summary: 添加信息 + tags: + - 文章管理 + /system/cms/news/delete: + delete: + description: 删除信息 + parameters: + - description: ids[1,2,3..] + in: body + name: ids + required: true + schema: + type: integer + responses: + "0": + description: '{"code": 200, "data": [...]}' + schema: + $ref: '#/definitions/response.Response' + security: + - "": [] + summary: 删除信息 + tags: + - 文章管理 + /system/cms/news/edit: + post: + description: 修改信息 + parameters: + - description: data + in: body + name: data + required: true + schema: + $ref: '#/definitions/cms_news.ReqEditParams' + responses: + "0": + description: '{"code": 200, "data": [...]}' + schema: + $ref: '#/definitions/response.Response' + security: + - "": [] + summary: 修改信息 + tags: + - 文章管理 + /system/cms/news/getModelFields: + get: + description: 获取模型字段 + parameters: + - description: cateIds[1,2,3...] + in: body + name: cateIds + required: true + schema: + type: integer + - description: newsId + in: body + name: newsId + required: true + schema: + type: integer + responses: + "0": + description: '{"code": 200, "data": [...]}' + schema: + $ref: '#/definitions/response.Response' + security: + - "": [] + summary: 获取模型字段 + tags: + - 栏目管理 + /system/cms/news/list: + get: + description: 信息列表 + parameters: + - description: data + in: body + name: data + required: true + schema: + $ref: '#/definitions/cms_news.ReqListSearchParams' + responses: + "0": + description: '{"code": 200, "data": [...]}' + schema: + $ref: '#/definitions/response.Response' + security: + - "": [] + summary: 信息列表 + tags: + - 文章管理 /system/config/dict/add: post: description: 添加字典 @@ -1178,7 +1794,13 @@ paths: - 字典管理 /system/config/dict/sysNormalDisable: post: - description: 字典状态 + description: 获取字典对应选项 + parameters: + - description: dictType + in: query + name: dictType + required: true + type: string responses: "0": description: '{"code": 200, "data": [...]}' @@ -1186,7 +1808,7 @@ paths: $ref: '#/definitions/response.Response' security: - "": [] - summary: 字典状态 + summary: 获取字典对应选项 tags: - 字典管理 /system/config/params/add: @@ -1376,6 +1998,257 @@ paths: summary: 获取后台菜单 tags: - 公共 + /system/model/category/add: + post: + description: 添加模型分类 + parameters: + - description: data + in: body + name: data + required: true + schema: + $ref: '#/definitions/model_category.AddReq' + responses: + "0": + description: '{"code": 200, "data": [...]}' + schema: + $ref: '#/definitions/response.Response' + security: + - "": [] + summary: 添加模型分类 + tags: + - 模型分类 + /system/model/category/all: + post: + description: 模型分类 + responses: + "0": + description: '{"code": 200, "data": [...]}' + schema: + $ref: '#/definitions/response.Response' + security: + - "": [] + summary: 模型分类 + tags: + - 模型分类 + /system/model/category/delete: + delete: + description: 删除分类 + parameters: + - description: ids + in: body + name: ids + required: true + schema: + type: integer + responses: + "0": + description: '{"code": 200, "data": [...]}' + schema: + $ref: '#/definitions/response.Response' + security: + - "": [] + summary: 删除分类 + tags: + - 模型分类 + /system/model/category/edit: + post: + description: 修改模型分类 + parameters: + - description: data + in: body + name: data + required: true + schema: + $ref: '#/definitions/model_category.EditReq' + responses: + "0": + description: '{"code": 200, "data": [...]}' + schema: + $ref: '#/definitions/response.Response' + security: + - "": [] + summary: 修改模型分类 + tags: + - 模型分类 + /system/model/category/list: + get: + description: 模型列表 + parameters: + - description: data + in: body + name: data + required: true + schema: + $ref: '#/definitions/model_category.SearchReq' + responses: + "0": + description: '{"code": 200, "data": [...]}' + schema: + $ref: '#/definitions/response.Response' + security: + - "": [] + summary: 模型列表 + tags: + - 模型分类 + /system/model/category/sort: + post: + description: 分类排序 + parameters: + - description: sorts + in: body + name: sorts + required: true + schema: + type: string + responses: + "0": + description: '{"code": 200, "data": [...]}' + schema: + $ref: '#/definitions/response.Response' + security: + - "": [] + summary: 分类排序 + tags: + - 模型分类 + /system/model/info/add: + post: + description: 新增 + parameters: + - description: data + in: body + name: data + required: true + schema: + $ref: '#/definitions/model_info.AddReq' + responses: + "0": + description: '{"code": 200, "data": [...]}' + schema: + $ref: '#/definitions/response.Response' + security: + - "": [] + summary: 新增 + tags: + - 模型列表 + /system/model/info/copyModel: + post: + description: 复制模型 + parameters: + - description: int valid + in: path + name: modelId + required: true + type: integer + responses: + "0": + description: '{"code": 200, "data": [...]}' + schema: + $ref: '#/definitions/response.Response' + security: + - "": [] + summary: 复制模型 + tags: + - 模型列表 + /system/model/info/createModel: + post: + description: 模型生成 + parameters: + - description: int valid + in: path + name: modelId + required: true + type: integer + responses: + "0": + description: '{"code": 200, "data": [...]}' + schema: + $ref: '#/definitions/response.Response' + security: + - "": [] + summary: 模型生成 + tags: + - 模型列表 + /system/model/info/delete: + post: + description: 删除 + parameters: + - description: data + in: body + name: data + required: true + schema: + $ref: '#/definitions/model_info.RemoveReq' + responses: + "0": + description: '{"code": 200, "data": [...]}' + schema: + $ref: '#/definitions/response.Response' + security: + - "": [] + summary: 删除 + tags: + - 模型列表 + /system/model/info/edit: + post: + description: 修改 + parameters: + - description: data + in: body + name: data + required: true + schema: + $ref: '#/definitions/model_info.EditReq' + responses: + "0": + description: '{"code": 200, "data": [...]}' + schema: + $ref: '#/definitions/response.Response' + security: + - "": [] + summary: 修改 + tags: + - 模型列表 + /system/model/info/list: + post: + description: 列表页 + parameters: + - description: data + in: body + name: data + required: true + schema: + $ref: '#/definitions/model_info.SelectPageReq' + responses: + "0": + description: '{"code": 200, "data": [...]}' + schema: + $ref: '#/definitions/response.Response' + security: + - "": [] + summary: 列表页 + tags: + - 模型列表 + /system/model/info/setStatus: + post: + description: 设置模型状态 + parameters: + - description: data + in: body + name: data + required: true + schema: + $ref: '#/definitions/model_info.StatusSetReq' + responses: + "0": + description: '{"code": 200, "data": [...]}' + schema: + $ref: '#/definitions/response.Response' + security: + - "": [] + summary: 设置模型状态 + tags: + - 模型列表 /system/monitor/job/add: post: description: 添加任务 @@ -1702,6 +2575,206 @@ paths: summary: 服务监控 tags: - 服务监控 + /system/plug/ad/info/add: + post: + description: 添加广告 + parameters: + - description: data + in: body + name: data + required: true + schema: + $ref: '#/definitions/plug_ad.AddReq' + responses: + "0": + description: '{"code": 200, "data": [...]}' + schema: + $ref: '#/definitions/response.Response' + security: + - "": [] + summary: 添加广告 + tags: + - 广告列表 + /system/plug/ad/info/delete: + delete: + description: 删除广告 + parameters: + - description: ids + in: body + name: data + required: true + schema: + type: integer + responses: + "0": + description: '{"code": 200, "data": [...]}' + schema: + $ref: '#/definitions/response.Response' + security: + - "": [] + summary: 删除广告 + tags: + - 广告列表 + /system/plug/ad/info/edit: + post: + description: 修改广告 + parameters: + - description: data + in: body + name: data + required: true + schema: + $ref: '#/definitions/plug_ad.EditReq' + responses: + "0": + description: '{"code": 200, "data": [...]}' + schema: + $ref: '#/definitions/response.Response' + security: + - "": [] + summary: 修改广告 + tags: + - 广告列表 + /system/plug/ad/info/list: + get: + description: 广告列表 + parameters: + - description: data + in: body + name: data + required: true + schema: + $ref: '#/definitions/plug_ad.SelectPageReq' + responses: + "0": + description: '{"code": 200, "data": [...]}' + schema: + $ref: '#/definitions/response.Response' + security: + - "": [] + summary: 广告列表 + tags: + - 广告列表 + /system/plug/ad/info/sort: + post: + description: 栏目排序 + parameters: + - description: sorts[] + in: body + name: sorts + required: true + schema: + type: integer + responses: + "0": + description: '{"code": 200, "data": [...]}' + schema: + $ref: '#/definitions/response.Response' + security: + - "": [] + summary: 栏目排序 + tags: + - 广告列表 + /system/plug/ad/type/add: + post: + description: 添加广告位 + parameters: + - description: data + in: body + name: data + required: true + schema: + $ref: '#/definitions/plug_adtype.AddReq' + responses: + "0": + description: '{"code": 200, "data": [...]}' + schema: + $ref: '#/definitions/response.Response' + security: + - "": [] + summary: 添加广告位 + tags: + - 广告位管理 + /system/plug/ad/type/delete: + delete: + description: 删除广告位 + parameters: + - description: adtypeID[1,2,3...] + in: body + name: adtypeID + required: true + schema: + type: integer + responses: + "0": + description: '{"code": 200, "data": [...]}' + schema: + $ref: '#/definitions/response.Response' + security: + - "": [] + summary: 删除广告位 + tags: + - 广告位管理 + /system/plug/ad/type/edit: + post: + description: 修改广告位信息 + parameters: + - description: data + in: body + name: data + required: true + schema: + $ref: '#/definitions/plug_adtype.EditReq' + responses: + "0": + description: '{"code": 200, "data": [...]}' + schema: + $ref: '#/definitions/response.Response' + security: + - "": [] + summary: 修改广告位信息 + tags: + - 广告位管理 + /system/plug/ad/type/list: + get: + description: 广告位列表 + parameters: + - description: data + in: body + name: data + required: true + schema: + $ref: '#/definitions/plug_adtype.SelectPageReq' + responses: + "0": + description: '{"code": 200, "data": [...]}' + schema: + $ref: '#/definitions/response.Response' + security: + - "": [] + summary: 广告位列表 + tags: + - 广告位管理 + /system/plug/ad/type/sort: + post: + description: 栏目排序 + parameters: + - description: sorts + in: body + name: sorts + required: true + schema: + type: integer + responses: + "0": + description: '{"code": 200, "data": [...]}' + schema: + $ref: '#/definitions/response.Response' + security: + - "": [] + summary: 栏目排序 + tags: + - 广告位管理 /system/post/add: post: consumes: @@ -1775,7 +2848,7 @@ paths: $ref: '#/definitions/sys_post.SearchParams' responses: "0": - description: '{"code": 200, "data": [...]}' + description: '{"code": 0, "data": [...]}' schema: $ref: '#/definitions/response.Response' security: