You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
160 lines
3.0 KiB
160 lines
3.0 KiB
|
1 year ago
|
package backend
|
||
|
|
|
||
|
|
import (
|
||
|
|
"server/modules/backend/app"
|
||
|
|
"server/modules/backend/values"
|
||
|
|
)
|
||
|
|
|
||
|
|
// swagger:route POST /sys/whiteList/list sys idOfWhiteList
|
||
|
|
// 获取白名单
|
||
|
|
// Responses:
|
||
|
|
// 200:WhiteListResp
|
||
|
|
|
||
|
|
// swagger:response WhiteListResp
|
||
|
|
type WhiteListResp struct {
|
||
|
|
// in:body
|
||
|
|
Body values.WhiteListResp
|
||
|
|
}
|
||
|
|
|
||
|
|
// swagger:parameters idOfWhiteList
|
||
|
|
type WhiteListReq struct {
|
||
|
|
// in:body
|
||
|
|
Body values.WhiteListReq
|
||
|
|
}
|
||
|
|
|
||
|
|
// swagger:route POST /sys/whiteList/add sys idOfWhiteListAdd
|
||
|
|
// 新增白名单
|
||
|
|
// Responses:
|
||
|
|
// 200:WhiteListAddResp
|
||
|
|
|
||
|
|
// swagger:response WhiteListAddResp
|
||
|
|
type WhiteListAddResp struct {
|
||
|
|
// in:body
|
||
|
|
Body app.R
|
||
|
|
}
|
||
|
|
|
||
|
|
// swagger:parameters idOfWhiteListAdd
|
||
|
|
type WhiteListAddReq struct {
|
||
|
|
// in:body
|
||
|
|
Body values.AddWhiteListReq
|
||
|
|
}
|
||
|
|
|
||
|
|
// swagger:route POST /sys/whiteList/edit sys idOfWhiteListEdit
|
||
|
|
// 修改白名单
|
||
|
|
// Responses:
|
||
|
|
// 200:WhiteListEditResp
|
||
|
|
|
||
|
|
// swagger:response WhiteListEditResp
|
||
|
|
type WhiteListEditResp struct {
|
||
|
|
// in:body
|
||
|
|
Body app.R
|
||
|
|
}
|
||
|
|
|
||
|
|
// swagger:parameters idOfWhiteListEdit
|
||
|
|
type WhiteListEditReq struct {
|
||
|
|
// in:body
|
||
|
|
Body values.EditWhiteListReq
|
||
|
|
}
|
||
|
|
|
||
|
|
// swagger:route POST /sys/whiteList/delete sys idOfWhiteListDelete
|
||
|
|
// 删除白名单
|
||
|
|
// Responses:
|
||
|
|
// 200:WhiteListDeleteResp
|
||
|
|
|
||
|
|
// swagger:response WhiteListDeleteResp
|
||
|
|
type WhiteListDeleteResp struct {
|
||
|
|
// in:body
|
||
|
|
Body app.R
|
||
|
|
}
|
||
|
|
|
||
|
|
// swagger:parameters idOfWhiteListDelete
|
||
|
|
type WhiteListDeleteReq struct {
|
||
|
|
// in:body
|
||
|
|
Body values.DeleteWhiteListReq
|
||
|
|
}
|
||
|
|
|
||
|
|
// swagger:route POST /sys/whiteList/switch sys idOfWhiteListSwitch
|
||
|
|
// 开启/关闭白名单
|
||
|
|
// Responses:
|
||
|
|
// 200:WhiteListSwitchResp
|
||
|
|
|
||
|
|
// swagger:response WhiteListSwitchResp
|
||
|
|
type WhiteListSwitchResp struct {
|
||
|
|
// in:body
|
||
|
|
Body app.R
|
||
|
|
}
|
||
|
|
|
||
|
|
// swagger:parameters idOfWhiteListSwitch
|
||
|
|
type WhiteListSwitchReq struct {
|
||
|
|
// in:body
|
||
|
|
Body values.WhiteListSwitchReq
|
||
|
|
}
|
||
|
|
|
||
|
|
// swagger:route POST /sys/channel/add sys idOfAddChannel
|
||
|
|
// 新增渠道
|
||
|
|
// Responses:
|
||
|
|
// 200:AddChannelResp
|
||
|
|
|
||
|
|
// swagger:response AddChannelResp
|
||
|
|
type AddChannelResp struct {
|
||
|
|
// in:body
|
||
|
|
Body app.R
|
||
|
|
}
|
||
|
|
|
||
|
|
// swagger:parameters idOfAddChannel
|
||
|
|
type AddChannelReq struct {
|
||
|
|
// in:body
|
||
|
|
Body values.AddChannelReq
|
||
|
|
}
|
||
|
|
|
||
|
|
// swagger:route POST /sys/channel/edit sys idOfEditChannel
|
||
|
|
// 修改渠道
|
||
|
|
// Responses:
|
||
|
|
// 200:EditChannelResp
|
||
|
|
|
||
|
|
// swagger:response EditChannelResp
|
||
|
|
type EditChannelResp struct {
|
||
|
|
// in:body
|
||
|
|
Body app.R
|
||
|
|
}
|
||
|
|
|
||
|
|
// swagger:parameters idOfEditChannel
|
||
|
|
type EditChannelReq struct {
|
||
|
|
// in:body
|
||
|
|
Body values.EditChannelReq
|
||
|
|
}
|
||
|
|
|
||
|
|
// swagger:route POST /sys/channel/del sys idOfDelChannel
|
||
|
|
// 删除渠道
|
||
|
|
// Responses:
|
||
|
|
// 200:DelChannelResp
|
||
|
|
|
||
|
|
// swagger:response DelChannelResp
|
||
|
|
type DelChannelResp struct {
|
||
|
|
// in:body
|
||
|
|
Body app.R
|
||
|
|
}
|
||
|
|
|
||
|
|
// swagger:parameters idOfDelChannel
|
||
|
|
type DelChannelReq struct {
|
||
|
|
// in:body
|
||
|
|
Body values.DelChannelReq
|
||
|
|
}
|
||
|
|
|
||
|
|
// swagger:route POST /sys/editHistory/list sys idOfEditHistory
|
||
|
|
// 获取操作日志
|
||
|
|
// Responses:
|
||
|
|
// 200:EditHistoryResp
|
||
|
|
|
||
|
|
// swagger:response EditHistoryResp
|
||
|
|
type EditHistoryResp struct {
|
||
|
|
// in:body
|
||
|
|
Body values.EditHistoryListResp
|
||
|
|
}
|
||
|
|
|
||
|
|
// swagger:parameters idOfEditHistory
|
||
|
|
type EditHistoryReq struct {
|
||
|
|
// in:body
|
||
|
|
Body values.EditHistoryListReq
|
||
|
|
}
|