代码拉取完成,页面将自动刷新
// Package docs Code generated by swaggo/swag. DO NOT EDIT
package docs
import "github.com/swaggo/swag"
const docTemplaterssservice = `{
"schemes": {{ marshal .Schemes }},
"swagger": "2.0",
"info": {
"description": "{{escape .Description}}",
"title": "{{.Title}}",
"contact": {},
"version": "{{.Version}}"
},
"host": "{{.Host}}",
"basePath": "{{.BasePath}}",
"paths": {
"/-admin-config": {
"post": {
"description": "CONFIG-配置内容",
"produces": [
"application/json"
],
"tags": [
"admin"
],
"summary": "CONFIG-配置",
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/configstc.AdminAppConfig"
}
}
}
}
}
},
"/mag/rss/source/items": {
"post": {
"security": [
{
"AdminKeyAuth": []
}
],
"description": "rss源内容列表",
"produces": [
"application/json"
],
"tags": [
"rss-manager"
],
"summary": "RSS源文章列表",
"parameters": [
{
"description": "验证信息",
"name": "param",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/dto.SearchRssContentReq"
}
}
],
"responses": {
"200": {
"description": "授权成功",
"schema": {
"allOf": [
{
"$ref": "#/definitions/respdata.ResponseData"
},
{
"type": "object",
"properties": {
"data": {
"$ref": "#/definitions/vo.RssItems"
}
}
}
]
}
},
"500": {
"description": "授权失败",
"schema": {
"$ref": "#/definitions/respdata.ResponseData"
}
}
}
}
},
"/mag/rss/sources": {
"post": {
"security": [
{
"AdminKeyAuth": []
}
],
"description": "rss源列表",
"produces": [
"application/json"
],
"tags": [
"rss-manager"
],
"summary": "RSS源列表",
"responses": {
"200": {
"description": "授权成功",
"schema": {
"allOf": [
{
"$ref": "#/definitions/respdata.ResponseData"
},
{
"type": "object",
"properties": {
"data": {
"$ref": "#/definitions/configstc.RssMetaConfig"
}
}
}
]
}
},
"500": {
"description": "授权失败",
"schema": {
"$ref": "#/definitions/respdata.ResponseData"
}
}
}
}
},
"/rss/items": {
"post": {
"description": "rss内容列表(缓存)",
"produces": [
"application/json"
],
"tags": [
"rss"
],
"summary": "RSS文章列表(缓存)",
"responses": {
"200": {
"description": "授权成功",
"schema": {
"allOf": [
{
"$ref": "#/definitions/respdata.ResponseData"
},
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/definitions/vo.RssItems"
}
}
}
}
]
}
},
"500": {
"description": "授权失败",
"schema": {
"$ref": "#/definitions/respdata.ResponseData"
}
}
}
}
}
},
"definitions": {
"configstc.AdminAppConfig": {
"type": "object",
"properties": {
"ApiServer": {
"$ref": "#/definitions/configstc.ServerConfig"
},
"AuthConfig": {
"$ref": "#/definitions/configstc.AuthConfig"
},
"AutoCreateAdmin": {
"description": "是否自动创建admin账户",
"type": "boolean"
},
"DBConfig": {
"$ref": "#/definitions/configstc.DBConfig"
},
"Debug": {
"description": "debug开关",
"type": "boolean"
},
"DocsEnable": {
"description": "是否启用文档",
"type": "boolean"
},
"I18nFiles": {
"description": "多语言配置:key=language,value=path",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"LimitingApi": {
"description": "api限流",
"allOf": [
{
"$ref": "#/definitions/configstc.LimitingConfig"
}
]
},
"LogLevel": {
"type": "string"
},
"LogPath": {
"description": "日志路径",
"type": "string"
},
"ModuleMode": {
"description": "模块模式,作为module使用",
"type": "boolean"
},
"Name": {
"type": "string"
},
"PProfEnable": {
"description": "是否启用pprof",
"type": "boolean"
},
"PasswordSalt": {
"description": "密码salt",
"type": "string"
},
"PermissionFile": {
"description": "权限文件json",
"type": "string"
},
"RoutePrefix": {
"description": "路由前缀",
"type": "string"
},
"UserPasswordSalt": {
"description": "用户-密码salt",
"type": "string"
}
}
},
"configstc.AuthConfig": {
"type": "object",
"properties": {
"AuthExpired": {
"description": "授权失效时间,单位:秒",
"type": "integer"
},
"Enable": {
"description": "是否启用",
"type": "boolean"
},
"SecretKey": {
"description": "加密秘钥,如JWT",
"type": "string"
}
}
},
"configstc.DBConfig": {
"type": "object",
"properties": {
"ConnMaxIdleTime": {
"description": "每个链接最大空闲时间",
"type": "integer",
"default": 0
},
"ConnMaxLifeTime": {
"description": "每个链接最大生存时间",
"type": "integer",
"default": 0
},
"DbConn": {
"description": "数据库类型,如mysql",
"type": "string"
},
"DbDsn": {
"description": "数据库dsn",
"type": "string"
},
"DbHost": {
"description": "数据库地址",
"type": "string"
},
"DbName": {
"description": "数据库",
"type": "string"
},
"DbPassword": {
"description": "密码",
"type": "string"
},
"DbPort": {
"description": "端口",
"type": "string"
},
"DbUser": {
"description": "用户名",
"type": "string"
},
"MaxConcatLen": {
"type": "string"
},
"MaxIdleConn": {
"description": "预留并发链接数",
"type": "integer",
"default": 0
},
"MaxOpenConn": {
"description": "最大支持链接",
"type": "integer",
"default": 0
},
"TablePrefix": {
"description": "表前缀",
"type": "string"
},
"TimeZone": {
"description": "时区设置",
"type": "string"
}
}
},
"configstc.LimitingConfig": {
"type": "object",
"properties": {
"MaxRate": {
"description": "允许的最大速率",
"type": "integer"
},
"PerRate": {
"description": "每次(秒)速率",
"type": "integer"
}
}
},
"configstc.RssMetaConfig": {
"type": "object",
"properties": {
"Enable": {
"type": "boolean"
},
"Name": {
"type": "string"
},
"Rss": {
"type": "string"
}
}
},
"configstc.ServerConfig": {
"type": "object",
"properties": {
"AllowOrigins": {
"description": "指定跨域允许访问源,空则为不限制访问",
"type": "array",
"items": {
"type": "string"
}
},
"Enable": {
"description": "是否启用",
"type": "boolean"
},
"EndpointAddr": {
"description": "对外访问地址",
"type": "string"
},
"EndpointPort": {
"description": "对外访问端口",
"type": "integer"
},
"Host": {
"description": "Host is the hostname or IP address of the service.",
"type": "string"
},
"Port": {
"description": "端口",
"type": "integer"
},
"ServerBindAddr": {
"description": "ListenAndServe to bind to, such as 0.0.0.0",
"type": "string"
},
"Timeout": {
"description": "Timeout specifies a timeout (in milliseconds)",
"type": "integer"
}
}
},
"dto.SearchRssContentReq": {
"type": "object",
"properties": {
"rss": {
"description": "指定rss地址",
"type": "string",
"x-nullable": true,
"example": ""
}
}
},
"respdata.ResponseData": {
"type": "object",
"properties": {
"code": {
"description": "返回码,0:成功,\u003e0为对应错误码",
"type": "integer"
},
"data": {},
"msg": {
"type": "string"
}
}
},
"vo.RssItems": {
"type": "object",
"properties": {
"author": {
"description": "作者",
"type": "string"
},
"description": {
"description": "描述信息",
"type": "string"
},
"link": {
"description": "连接",
"type": "string"
},
"pubDate": {
"description": "发布日期/时间",
"type": "string"
},
"title": {
"description": "新闻标题",
"type": "string"
}
}
}
}
}`
// SwaggerInforssservice holds exported Swagger Info so clients can modify it
var SwaggerInforssservice = &swag.Spec{
Version: "",
Host: "",
BasePath: "",
Schemes: []string{},
Title: "",
Description: "",
InfoInstanceName: "rssservice",
SwaggerTemplate: docTemplaterssservice,
LeftDelim: "{{",
RightDelim: "}}",
}
func init() {
swag.Register(SwaggerInforssservice.InstanceName(), SwaggerInforssservice)
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。