Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nbya
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
haoyanbin
nbya
Commits
6eb1de23
Commit
6eb1de23
authored
3 years ago
by
haoyanbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swag
parent
edcfa60d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
104 additions
and
40 deletions
+104
-40
org_ad.go
app/operate/service/dto/org_ad.go
+4
-4
org_news.go
app/operate/service/dto/org_news.go
+4
-4
docs.go
docs/docs.go
+35
-12
swagger.json
docs/swagger.json
+35
-12
swagger.yaml
docs/swagger.yaml
+26
-8
No files found.
app/operate/service/dto/org_ad.go
View file @
6eb1de23
...
@@ -9,10 +9,10 @@ import (
...
@@ -9,10 +9,10 @@ import (
type
OrgAdGetPageReq
struct
{
type
OrgAdGetPageReq
struct
{
dto
.
Pagination
`search:"-"`
dto
.
Pagination
`search:"-"`
adName
string
`form:"adName" search:"type:contains;column:ad_name;table:org_ad"`
AdName
string
`form:"adName" search:"type:contains;column:ad_name;table:org_ad"`
//广告名称
StartTime
string
`form:"startTime" search:"type:gte;column:created_at;table:org_ad" comment:"开始时间"`
StartTime
string
`form:"startTime" search:"type:gte;column:created_at;table:org_ad" comment:"开始时间"`
//开始时间
EndTime
string
`form:"endTime" search:"type:lte;column:created_at;table:org_ad" comment:"结束时间"`
EndTime
string
`form:"endTime" search:"type:lte;column:created_at;table:org_ad" comment:"结束时间"`
//结束时间
Status
string
`form:"status" search:"type:exact;column:status;table:org_ad"`
Status
string
`form:"status" search:"type:exact;column:status;table:org_ad"`
//广告类型
}
}
type
OrgAdOrder
struct
{
type
OrgAdOrder
struct
{
...
...
This diff is collapsed.
Click to expand it.
app/operate/service/dto/org_news.go
View file @
6eb1de23
...
@@ -9,10 +9,10 @@ import (
...
@@ -9,10 +9,10 @@ import (
type
OrgNewsGetPageReq
struct
{
type
OrgNewsGetPageReq
struct
{
dto
.
Pagination
`search:"-"`
dto
.
Pagination
`search:"-"`
NewsName
string
`form:"newsName" search:"type:contains;column:news_name;table:org_news"`
NewsName
string
`form:"newsName" search:"type:contains;column:news_name;table:org_news"`
//新闻名称
StartTime
string
`form:"startTime" search:"type:gte;column:created_at;table:org_news" comment:"开始时间"`
StartTime
string
`form:"startTime" search:"type:gte;column:created_at;table:org_news" comment:"开始时间"`
//开始时间
EndTime
string
`form:"endTime" search:"type:lte;column:created_at;table:org_news" comment:"结束时间"`
EndTime
string
`form:"endTime" search:"type:lte;column:created_at;table:org_news" comment:"结束时间"`
//结束时间
Status
string
`form:"status" search:"type:exact;column:status;table:org_news"`
Status
string
`form:"status" search:"type:exact;column:status;table:org_news"`
//新闻状态
}
}
type
OrgNewsOrder
struct
{
type
OrgNewsOrder
struct
{
...
...
This diff is collapsed.
Click to expand it.
docs/docs.go
View file @
6eb1de23
...
@@ -6445,7 +6445,12 @@ var doc = `{
...
@@ -6445,7 +6445,12 @@ var doc = `{
"dto.OrgAdGetPageReq": {
"dto.OrgAdGetPageReq": {
"type": "object",
"type": "object",
"properties": {
"properties": {
"adName": {
"description": "广告名称",
"type": "string"
},
"endTime": {
"endTime": {
"description": "结束时间",
"type": "string"
"type": "string"
},
},
"pageIndex": {
"pageIndex": {
...
@@ -6455,9 +6460,11 @@ var doc = `{
...
@@ -6455,9 +6460,11 @@ var doc = `{
"type": "integer"
"type": "integer"
},
},
"startTime": {
"startTime": {
"description": "开始时间",
"type": "string"
"type": "string"
},
},
"status": {
"status": {
"description": "广告类型",
"type": "string"
"type": "string"
}
}
}
}
...
@@ -7256,9 +7263,11 @@ var doc = `{
...
@@ -7256,9 +7263,11 @@ var doc = `{
"type": "object",
"type": "object",
"properties": {
"properties": {
"endTime": {
"endTime": {
"description": "结束时间",
"type": "string"
"type": "string"
},
},
"newsName": {
"newsName": {
"description": "新闻名称",
"type": "string"
"type": "string"
},
},
"pageIndex": {
"pageIndex": {
...
@@ -7268,9 +7277,11 @@ var doc = `{
...
@@ -7268,9 +7277,11 @@ var doc = `{
"type": "integer"
"type": "integer"
},
},
"startTime": {
"startTime": {
"description": "开始时间",
"type": "string"
"type": "string"
},
},
"status": {
"status": {
"description": "新闻状态",
"type": "string"
"type": "string"
}
}
}
}
...
@@ -8914,21 +8925,12 @@ var doc = `{
...
@@ -8914,21 +8925,12 @@ var doc = `{
"models.SysDept": {
"models.SysDept": {
"type": "object",
"type": "object",
"properties": {
"properties": {
"children": {
"type": "array",
"items": {
"$ref": "#/definitions/models.SysDept"
}
},
"createBy": {
"createBy": {
"type": "integer"
"type": "integer"
},
},
"createdAt": {
"createdAt": {
"type": "string"
"type": "string"
},
},
"dataScope": {
"type": "string"
},
"deptId": {
"deptId": {
"description": "部门编码",
"description": "部门编码",
"type": "integer"
"type": "integer"
...
@@ -8948,9 +8950,6 @@ var doc = `{
...
@@ -8948,9 +8950,6 @@ var doc = `{
"description": "负责人",
"description": "负责人",
"type": "string"
"type": "string"
},
},
"params": {
"type": "string"
},
"parentId": {
"parentId": {
"description": "上级部门",
"description": "上级部门",
"type": "integer"
"type": "integer"
...
@@ -8981,9 +8980,21 @@ var doc = `{
...
@@ -8981,9 +8980,21 @@ var doc = `{
"action": {
"action": {
"type": "string"
"type": "string"
},
},
"apis": {
"type": "array",
"items": {
"type": "integer"
}
},
"breadcrumb": {
"breadcrumb": {
"type": "string"
"type": "string"
},
},
"children": {
"type": "array",
"items": {
"$ref": "#/definitions/models.SysMenu"
}
},
"component": {
"component": {
"type": "string"
"type": "string"
},
},
...
@@ -8993,12 +9004,18 @@ var doc = `{
...
@@ -8993,12 +9004,18 @@ var doc = `{
"createdAt": {
"createdAt": {
"type": "string"
"type": "string"
},
},
"dataScope": {
"type": "string"
},
"icon": {
"icon": {
"type": "string"
"type": "string"
},
},
"isFrame": {
"isFrame": {
"type": "string"
"type": "string"
},
},
"is_select": {
"type": "boolean"
},
"menuId": {
"menuId": {
"type": "integer"
"type": "integer"
},
},
...
@@ -9011,6 +9028,9 @@ var doc = `{
...
@@ -9011,6 +9028,9 @@ var doc = `{
"noCache": {
"noCache": {
"type": "boolean"
"type": "boolean"
},
},
"params": {
"type": "string"
},
"parentId": {
"parentId": {
"type": "integer"
"type": "integer"
},
},
...
@@ -9023,6 +9043,9 @@ var doc = `{
...
@@ -9023,6 +9043,9 @@ var doc = `{
"permission": {
"permission": {
"type": "string"
"type": "string"
},
},
"roleId": {
"type": "integer"
},
"sort": {
"sort": {
"type": "integer"
"type": "integer"
},
},
...
...
This diff is collapsed.
Click to expand it.
docs/swagger.json
View file @
6eb1de23
...
@@ -6428,7 +6428,12 @@
...
@@ -6428,7 +6428,12 @@
"dto.OrgAdGetPageReq"
:
{
"dto.OrgAdGetPageReq"
:
{
"type"
:
"object"
,
"type"
:
"object"
,
"properties"
:
{
"properties"
:
{
"adName"
:
{
"description"
:
"广告名称"
,
"type"
:
"string"
},
"endTime"
:
{
"endTime"
:
{
"description"
:
"结束时间"
,
"type"
:
"string"
"type"
:
"string"
},
},
"pageIndex"
:
{
"pageIndex"
:
{
...
@@ -6438,9 +6443,11 @@
...
@@ -6438,9 +6443,11 @@
"type"
:
"integer"
"type"
:
"integer"
},
},
"startTime"
:
{
"startTime"
:
{
"description"
:
"开始时间"
,
"type"
:
"string"
"type"
:
"string"
},
},
"status"
:
{
"status"
:
{
"description"
:
"广告类型"
,
"type"
:
"string"
"type"
:
"string"
}
}
}
}
...
@@ -7239,9 +7246,11 @@
...
@@ -7239,9 +7246,11 @@
"type"
:
"object"
,
"type"
:
"object"
,
"properties"
:
{
"properties"
:
{
"endTime"
:
{
"endTime"
:
{
"description"
:
"结束时间"
,
"type"
:
"string"
"type"
:
"string"
},
},
"newsName"
:
{
"newsName"
:
{
"description"
:
"新闻名称"
,
"type"
:
"string"
"type"
:
"string"
},
},
"pageIndex"
:
{
"pageIndex"
:
{
...
@@ -7251,9 +7260,11 @@
...
@@ -7251,9 +7260,11 @@
"type"
:
"integer"
"type"
:
"integer"
},
},
"startTime"
:
{
"startTime"
:
{
"description"
:
"开始时间"
,
"type"
:
"string"
"type"
:
"string"
},
},
"status"
:
{
"status"
:
{
"description"
:
"新闻状态"
,
"type"
:
"string"
"type"
:
"string"
}
}
}
}
...
@@ -8897,21 +8908,12 @@
...
@@ -8897,21 +8908,12 @@
"models.SysDept"
:
{
"models.SysDept"
:
{
"type"
:
"object"
,
"type"
:
"object"
,
"properties"
:
{
"properties"
:
{
"children"
:
{
"type"
:
"array"
,
"items"
:
{
"$ref"
:
"#/definitions/models.SysDept"
}
},
"createBy"
:
{
"createBy"
:
{
"type"
:
"integer"
"type"
:
"integer"
},
},
"createdAt"
:
{
"createdAt"
:
{
"type"
:
"string"
"type"
:
"string"
},
},
"dataScope"
:
{
"type"
:
"string"
},
"deptId"
:
{
"deptId"
:
{
"description"
:
"部门编码"
,
"description"
:
"部门编码"
,
"type"
:
"integer"
"type"
:
"integer"
...
@@ -8931,9 +8933,6 @@
...
@@ -8931,9 +8933,6 @@
"description"
:
"负责人"
,
"description"
:
"负责人"
,
"type"
:
"string"
"type"
:
"string"
},
},
"params"
:
{
"type"
:
"string"
},
"parentId"
:
{
"parentId"
:
{
"description"
:
"上级部门"
,
"description"
:
"上级部门"
,
"type"
:
"integer"
"type"
:
"integer"
...
@@ -8964,9 +8963,21 @@
...
@@ -8964,9 +8963,21 @@
"action"
:
{
"action"
:
{
"type"
:
"string"
"type"
:
"string"
},
},
"apis"
:
{
"type"
:
"array"
,
"items"
:
{
"type"
:
"integer"
}
},
"breadcrumb"
:
{
"breadcrumb"
:
{
"type"
:
"string"
"type"
:
"string"
},
},
"children"
:
{
"type"
:
"array"
,
"items"
:
{
"$ref"
:
"#/definitions/models.SysMenu"
}
},
"component"
:
{
"component"
:
{
"type"
:
"string"
"type"
:
"string"
},
},
...
@@ -8976,12 +8987,18 @@
...
@@ -8976,12 +8987,18 @@
"createdAt"
:
{
"createdAt"
:
{
"type"
:
"string"
"type"
:
"string"
},
},
"dataScope"
:
{
"type"
:
"string"
},
"icon"
:
{
"icon"
:
{
"type"
:
"string"
"type"
:
"string"
},
},
"isFrame"
:
{
"isFrame"
:
{
"type"
:
"string"
"type"
:
"string"
},
},
"is_select"
:
{
"type"
:
"boolean"
},
"menuId"
:
{
"menuId"
:
{
"type"
:
"integer"
"type"
:
"integer"
},
},
...
@@ -8994,6 +9011,9 @@
...
@@ -8994,6 +9011,9 @@
"noCache"
:
{
"noCache"
:
{
"type"
:
"boolean"
"type"
:
"boolean"
},
},
"params"
:
{
"type"
:
"string"
},
"parentId"
:
{
"parentId"
:
{
"type"
:
"integer"
"type"
:
"integer"
},
},
...
@@ -9006,6 +9026,9 @@
...
@@ -9006,6 +9026,9 @@
"permission"
:
{
"permission"
:
{
"type"
:
"string"
"type"
:
"string"
},
},
"roleId"
:
{
"type"
:
"integer"
},
"sort"
:
{
"sort"
:
{
"type"
:
"integer"
"type"
:
"integer"
},
},
...
...
This diff is collapsed.
Click to expand it.
docs/swagger.yaml
View file @
6eb1de23
...
@@ -8,15 +8,21 @@ definitions:
...
@@ -8,15 +8,21 @@ definitions:
type
:
object
type
:
object
dto.OrgAdGetPageReq
:
dto.OrgAdGetPageReq
:
properties
:
properties
:
adName
:
description
:
广告名称
type
:
string
endTime
:
endTime
:
description
:
结束时间
type
:
string
type
:
string
pageIndex
:
pageIndex
:
type
:
integer
type
:
integer
pageSize
:
pageSize
:
type
:
integer
type
:
integer
startTime
:
startTime
:
description
:
开始时间
type
:
string
type
:
string
status
:
status
:
description
:
广告类型
type
:
string
type
:
string
type
:
object
type
:
object
dto.OrgAdInsertReq
:
dto.OrgAdInsertReq
:
...
@@ -547,16 +553,20 @@ definitions:
...
@@ -547,16 +553,20 @@ definitions:
dto.OrgNewsGetPageReq
:
dto.OrgNewsGetPageReq
:
properties
:
properties
:
endTime
:
endTime
:
description
:
结束时间
type
:
string
type
:
string
newsName
:
newsName
:
description
:
新闻名称
type
:
string
type
:
string
pageIndex
:
pageIndex
:
type
:
integer
type
:
integer
pageSize
:
pageSize
:
type
:
integer
type
:
integer
startTime
:
startTime
:
description
:
开始时间
type
:
string
type
:
string
status
:
status
:
description
:
新闻状态
type
:
string
type
:
string
type
:
object
type
:
object
dto.OrgNewsInsertReq
:
dto.OrgNewsInsertReq
:
...
@@ -1664,16 +1674,10 @@ definitions:
...
@@ -1664,16 +1674,10 @@ definitions:
type
:
object
type
:
object
models.SysDept
:
models.SysDept
:
properties
:
properties
:
children
:
items
:
$ref
:
'
#/definitions/models.SysDept'
type
:
array
createBy
:
createBy
:
type
:
integer
type
:
integer
createdAt
:
createdAt
:
type
:
string
type
:
string
dataScope
:
type
:
string
deptId
:
deptId
:
description
:
部门编码
description
:
部门编码
type
:
integer
type
:
integer
...
@@ -1688,8 +1692,6 @@ definitions:
...
@@ -1688,8 +1692,6 @@ definitions:
leader
:
leader
:
description
:
负责人
description
:
负责人
type
:
string
type
:
string
params
:
type
:
string
parentId
:
parentId
:
description
:
上级部门
description
:
上级部门
type
:
integer
type
:
integer
...
@@ -1711,16 +1713,28 @@ definitions:
...
@@ -1711,16 +1713,28 @@ definitions:
properties
:
properties
:
action
:
action
:
type
:
string
type
:
string
apis
:
items
:
type
:
integer
type
:
array
breadcrumb
:
breadcrumb
:
type
:
string
type
:
string
children
:
items
:
$ref
:
'
#/definitions/models.SysMenu'
type
:
array
component
:
component
:
type
:
string
type
:
string
createBy
:
createBy
:
type
:
integer
type
:
integer
createdAt
:
createdAt
:
type
:
string
type
:
string
dataScope
:
type
:
string
icon
:
icon
:
type
:
string
type
:
string
is_select
:
type
:
boolean
isFrame
:
isFrame
:
type
:
string
type
:
string
menuId
:
menuId
:
...
@@ -1731,6 +1745,8 @@ definitions:
...
@@ -1731,6 +1745,8 @@ definitions:
type
:
string
type
:
string
noCache
:
noCache
:
type
:
boolean
type
:
boolean
params
:
type
:
string
parentId
:
parentId
:
type
:
integer
type
:
integer
path
:
path
:
...
@@ -1739,6 +1755,8 @@ definitions:
...
@@ -1739,6 +1755,8 @@ definitions:
type
:
string
type
:
string
permission
:
permission
:
type
:
string
type
:
string
roleId
:
type
:
integer
sort
:
sort
:
type
:
integer
type
:
integer
sysApi
:
sysApi
:
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment