|
|
|
@ -1,16 +1,285 @@
|
|
|
|
|
package AccessSystemController
|
|
|
|
|
|
|
|
|
|
import "github.com/gin-gonic/gin"
|
|
|
|
|
import (
|
|
|
|
|
"dsSupport/Utils/CommonUtil"
|
|
|
|
|
"github.com/gin-gonic/gin"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
//模块的路由配置
|
|
|
|
|
func Routers(r *gin.RouterGroup) {
|
|
|
|
|
rr := r.Group("/accessSystem")
|
|
|
|
|
//配置接口
|
|
|
|
|
rr.GET("/PageAccessSystemInfo", PageAccessSystemInfo)
|
|
|
|
|
rr.POST("/AddAccessSystemInfo", AddAccessSystemInfo)
|
|
|
|
|
//rr.GET("/GetBaseBusiness", GetBaseBusiness)
|
|
|
|
|
rr.POST("/UpdateAccessSystemInfo", UpdateAccessSystemInfo)
|
|
|
|
|
rr.POST("/DeleteAccessSystemInfo", DeleteAccessSystemInfo)
|
|
|
|
|
rr.GET("/GetAccessSystemRangeInfo", GetAccessSystemRangeInfo)
|
|
|
|
|
rr.POST("/SettingAccessSystemRangeInfo", SettingAccessSystemRangeInfo)
|
|
|
|
|
rr.POST("/EmptyAccessSystemRangeInfo", EmptyAccessSystemRangeInfo)
|
|
|
|
|
rr.GET("/GetAccessSystemSsoInfo", GetAccessSystemSsoInfo)
|
|
|
|
|
rr.POST("/SettingAccessSystemSsoInfo", SettingAccessSystemSsoInfo)
|
|
|
|
|
rr.POST("/EmptyAccessSystemSsoInfo", EmptyAccessSystemSsoInfo)
|
|
|
|
|
rr.GET("/GetAccessSystemIntegratedInfo", GetAccessSystemIntegratedInfo)
|
|
|
|
|
rr.POST("/SettingAccessSystemIntegratedInfo", SettingAccessSystemIntegratedInfo)
|
|
|
|
|
rr.POST("/EmptyAccessSystemIntegratedInfo", EmptyAccessSystemIntegratedInfo)
|
|
|
|
|
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// @Summary 获取接入系统列表
|
|
|
|
|
// @Description 获取接入系统列表
|
|
|
|
|
// @Tags 接入系统
|
|
|
|
|
// @Accept application/x-www-form-urlencoded
|
|
|
|
|
// @Produce json
|
|
|
|
|
// @Param page query int true "第几页"
|
|
|
|
|
// @Param limit query int true "一页显示多少条"
|
|
|
|
|
// @Success 200 {object} Model.Res
|
|
|
|
|
// @Router /base/support/PageAccessSystemInfo [get]
|
|
|
|
|
// @X-EmptyLimit ["page","limit"]
|
|
|
|
|
// @X-IntRangeLimit [{"page":"1,1000"},{"limit":"1,1000"}]
|
|
|
|
|
// @X-TableName ["t_app_base"]
|
|
|
|
|
// @X-Sort [0]
|
|
|
|
|
func PageAccessSystemInfo(c *gin.Context) {
|
|
|
|
|
//第几页
|
|
|
|
|
page := CommonUtil.ConvertStringToInt32(c.Query("page"))
|
|
|
|
|
//一页显示多少条
|
|
|
|
|
limit := CommonUtil.ConvertStringToInt32(c.Query("limit"))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// @Summary 增加接入系统
|
|
|
|
|
// @Description 增加接入系统
|
|
|
|
|
// @Tags 接入系统
|
|
|
|
|
// @Accept application/x-www-form-urlencoded
|
|
|
|
|
// @Produce json
|
|
|
|
|
// @Param appName formData string true "系统名称"
|
|
|
|
|
// @Param appCode formData string true "系统编码"
|
|
|
|
|
// @Param sortId formData int false "排序号"
|
|
|
|
|
// @Success 200 {object} Model.Res
|
|
|
|
|
// @Router /base/support/AddAccessSystemInfo [post]
|
|
|
|
|
// @X-EmptyLimit ["appName","appCode"]
|
|
|
|
|
// @X-LengthLimit [{"appName":"2,30"},{"appCode":"2,20"}]
|
|
|
|
|
// @X-TableName ["t_app_base"]
|
|
|
|
|
// @X-Sort [1]
|
|
|
|
|
func AddAccessSystemInfo(c *gin.Context) {
|
|
|
|
|
//系统名称
|
|
|
|
|
appName := c.PostForm("appName")
|
|
|
|
|
//系统编码
|
|
|
|
|
appCode := c.PostForm("appCode")
|
|
|
|
|
//排序号
|
|
|
|
|
sortId := CommonUtil.ConvertStringToInt32(c.PostForm("sortId"))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// @Summary 修改接入系统
|
|
|
|
|
// @Description 修改接入系统
|
|
|
|
|
// @Tags 接入系统
|
|
|
|
|
// @Accept application/x-www-form-urlencoded
|
|
|
|
|
// @Produce json
|
|
|
|
|
// @Param appId formData string true "系统ID"
|
|
|
|
|
// @Param appName formData string true "系统名称"
|
|
|
|
|
// @Param appCode formData string true "系统编码"
|
|
|
|
|
// @Param sortId formData int false "排序号"
|
|
|
|
|
// @Success 200 {object} Model.Res
|
|
|
|
|
// @Router /base/support/UpdateAccessSystemInfo [post]
|
|
|
|
|
// @X-EmptyLimit ["appId","appName","appCode"]
|
|
|
|
|
// @X-LengthLimit [{"appId":"36,36"},{"appName":"2,30"},{"appCode":"2,20"}]
|
|
|
|
|
// @X-TableName ["t_app_base"]
|
|
|
|
|
// @X-Sort [2]
|
|
|
|
|
func UpdateAccessSystemInfo(c *gin.Context) {
|
|
|
|
|
//系统ID
|
|
|
|
|
appId := c.PostForm("appId")
|
|
|
|
|
//系统名称
|
|
|
|
|
appName := c.PostForm("appName")
|
|
|
|
|
//系统编码
|
|
|
|
|
appCode := c.PostForm("appCode")
|
|
|
|
|
//排序号
|
|
|
|
|
sortId := CommonUtil.ConvertStringToInt32(c.PostForm("sortId"))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// @Summary 删除接入系统
|
|
|
|
|
// @Description 删除接入系统
|
|
|
|
|
// @Tags 接入系统
|
|
|
|
|
// @Accept application/x-www-form-urlencoded
|
|
|
|
|
// @Produce json
|
|
|
|
|
// @Param appIds formData string true "系统ID,多个用逗号分隔"
|
|
|
|
|
// @Success 200 {object} Model.Res
|
|
|
|
|
// @Router /base/support/DeleteAccessSystemInfo [post]
|
|
|
|
|
// @X-EmptyLimit ["appIds"]
|
|
|
|
|
// @X-LengthLimit [{"appIds":"36,3700"}]
|
|
|
|
|
// @X-TableName ["t_app_base"]
|
|
|
|
|
// @X-Sort [3]
|
|
|
|
|
func DeleteAccessSystemInfo(c *gin.Context) {
|
|
|
|
|
//系统ID,多个用逗号分隔
|
|
|
|
|
appIds := c.PostForm("appIds")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// @Summary 获取接入系统的使用范围
|
|
|
|
|
// @Description 获取接入系统的使用范围
|
|
|
|
|
// @Tags 接入系统
|
|
|
|
|
// @Accept application/x-www-form-urlencoded
|
|
|
|
|
// @Produce json
|
|
|
|
|
// @Param appId query string true "系统ID"
|
|
|
|
|
// @Success 200 {object} Model.Res
|
|
|
|
|
// @Router /base/support/GetAccessSystemRangeInfo [get]
|
|
|
|
|
// @X-EmptyLimit ["appId"]
|
|
|
|
|
// @X-LengthLimit [{"appId":"36,36"}]
|
|
|
|
|
// @X-TableName ["t_app_base"]
|
|
|
|
|
// @X-Sort [5]
|
|
|
|
|
func GetAccessSystemRangeInfo(c *gin.Context) {
|
|
|
|
|
//系统ID
|
|
|
|
|
appId := c.Query("appId")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// @Summary 设置接入系统的使用范围
|
|
|
|
|
// @Description 设置接入系统的使用范围
|
|
|
|
|
// @Tags 接入系统
|
|
|
|
|
// @Accept application/x-www-form-urlencoded
|
|
|
|
|
// @Produce json
|
|
|
|
|
// @Param appId formData string true "系统ID"
|
|
|
|
|
// @Param rangeCode formData string true "使用范围的行政区划码、单位ID,多个用逗号分隔"
|
|
|
|
|
// @Success 200 {object} Model.Res
|
|
|
|
|
// @Router /base/support/SettingAccessSystemRange [post]
|
|
|
|
|
// @X-EmptyLimit ["orgId","rangeCode"]
|
|
|
|
|
// @X-LengthLimit [{"orgId":"36,36"},{"rangeCode":"1,3700"}]
|
|
|
|
|
// @X-TableName ["t_app_base"]
|
|
|
|
|
// @X-Sort [4]
|
|
|
|
|
func SettingAccessSystemRangeInfo(c *gin.Context) {
|
|
|
|
|
//系统ID
|
|
|
|
|
appId := c.PostForm("appId")
|
|
|
|
|
//使用范围的行政区划码、单位ID,多个用逗号分隔
|
|
|
|
|
rangeCode := c.PostForm("rangeCode")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// @Summary 清空接入系统的使用范围
|
|
|
|
|
// @Description 清空接入系统的使用范围
|
|
|
|
|
// @Tags 接入系统
|
|
|
|
|
// @Accept application/x-www-form-urlencoded
|
|
|
|
|
// @Produce json
|
|
|
|
|
// @Param appId formData string true "系统ID"
|
|
|
|
|
// @Success 200 {object} Model.Res
|
|
|
|
|
// @Router /base/support/EmptyAccessSystemRangeInfo [post]
|
|
|
|
|
// @X-EmptyLimit ["orgId"]
|
|
|
|
|
// @X-LengthLimit [{"orgId":"36,36"}]
|
|
|
|
|
// @X-TableName ["t_app_base"]
|
|
|
|
|
// @X-Sort [5]
|
|
|
|
|
func EmptyAccessSystemRangeInfo(c *gin.Context) {
|
|
|
|
|
//系统ID
|
|
|
|
|
appId := c.PostForm("appId")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// @Summary 获取接入系统的统一认证信息
|
|
|
|
|
// @Description 获取接入系统的统一认证信息
|
|
|
|
|
// @Tags 接入系统
|
|
|
|
|
// @Accept application/x-www-form-urlencoded
|
|
|
|
|
// @Produce json
|
|
|
|
|
// @Param appId query string true "系统ID"
|
|
|
|
|
// @Success 200 {object} Model.Res
|
|
|
|
|
// @Router /base/support/GetAccessSystemSsoInfo [get]
|
|
|
|
|
// @X-EmptyLimit ["appId"]
|
|
|
|
|
// @X-LengthLimit [{"appId":"36,36"}]
|
|
|
|
|
// @X-TableName ["t_app_base"]
|
|
|
|
|
// @X-Sort [6]
|
|
|
|
|
func GetAccessSystemSsoInfo(c *gin.Context) {
|
|
|
|
|
//系统ID
|
|
|
|
|
appId := c.Query("appId")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// @Summary 设置接入系统的统一认证信息
|
|
|
|
|
// @Description 设置接入系统的统一认证信息
|
|
|
|
|
// @Tags 接入系统
|
|
|
|
|
// @Accept application/x-www-form-urlencoded
|
|
|
|
|
// @Produce json
|
|
|
|
|
// @Param appId formData string true "系统ID"
|
|
|
|
|
// @Param redirectUri formData string true "统一认证回调地址"
|
|
|
|
|
// @Param logoutUri formData string false "统一认证登出地址"
|
|
|
|
|
// @Success 200 {object} Model.Res
|
|
|
|
|
// @Router /base/support/SettingAccessSystemSsoInfo [post]
|
|
|
|
|
// @X-EmptyLimit ["appId","redirectUri"]
|
|
|
|
|
// @X-LengthLimit [{"appId":"36,36"},{"redirectUri":"2,300"},{"logoutUri":"2,300"}]
|
|
|
|
|
// @X-TableName ["t_app_base"]
|
|
|
|
|
// @X-Sort [7]
|
|
|
|
|
func SettingAccessSystemSsoInfo(c *gin.Context) {
|
|
|
|
|
//系统ID
|
|
|
|
|
appId := c.PostForm("appId")
|
|
|
|
|
//统一认证回调地址
|
|
|
|
|
redirectUri := c.PostForm("redirectUri")
|
|
|
|
|
//统一认证登出地址
|
|
|
|
|
logoutUri := c.PostForm("logoutUri")
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// @Summary 清空接入系统的统一认证信息
|
|
|
|
|
// @Description 清空接入系统的统一认证信息
|
|
|
|
|
// @Tags 接入系统
|
|
|
|
|
// @Accept application/x-www-form-urlencoded
|
|
|
|
|
// @Produce json
|
|
|
|
|
// @Param appId formData string true "系统ID"
|
|
|
|
|
// @Success 200 {object} Model.Res
|
|
|
|
|
// @Router /base/support/EmptyAccessSystemSsoInfo [post]
|
|
|
|
|
// @X-EmptyLimit ["orgId"]
|
|
|
|
|
// @X-LengthLimit [{"orgId":"36,36"}]
|
|
|
|
|
// @X-TableName ["t_app_base"]
|
|
|
|
|
// @X-Sort [8]
|
|
|
|
|
func EmptyAccessSystemSsoInfo(c *gin.Context) {
|
|
|
|
|
//系统ID
|
|
|
|
|
appId := c.PostForm("appId")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// @Summary 获取接入系统的集成信息
|
|
|
|
|
// @Description 获取接入系统的集成信息
|
|
|
|
|
// @Tags 接入系统
|
|
|
|
|
// @Accept application/x-www-form-urlencoded
|
|
|
|
|
// @Produce json
|
|
|
|
|
// @Param appId query string true "系统ID"
|
|
|
|
|
// @Success 200 {object} Model.Res
|
|
|
|
|
// @Router /base/support/GetAccessSystemIntegratedInfo [get]
|
|
|
|
|
// @X-EmptyLimit ["appId"]
|
|
|
|
|
// @X-LengthLimit [{"appId":"36,36"}]
|
|
|
|
|
// @X-TableName ["t_app_base"]
|
|
|
|
|
// @X-Sort [6]
|
|
|
|
|
func GetAccessSystemIntegratedInfo(c *gin.Context) {
|
|
|
|
|
//系统ID
|
|
|
|
|
appId := c.Query("appId")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// @Summary 设置接入系统的集成信息
|
|
|
|
|
// @Description 设置接入系统的集成信息
|
|
|
|
|
// @Tags 接入系统
|
|
|
|
|
// @Accept application/x-www-form-urlencoded
|
|
|
|
|
// @Produce json
|
|
|
|
|
// @Param appId formData string true "系统ID"
|
|
|
|
|
// @Param appUrl formData string true "接入系统在集成页面的调用地址"
|
|
|
|
|
// @Param appIcon formData file true "接入系统在集成页面的图标"
|
|
|
|
|
// @Success 200 {object} Model.Res
|
|
|
|
|
// @Router /base/support/SettingAccessSystemIntegratedInfo [post]
|
|
|
|
|
// @X-EmptyLimit ["appId","redirectUri"]
|
|
|
|
|
// @X-LengthLimit [{"appId":"36,36"},{"redirectUri":"2,300"},{"logoutUri":"2,300"}]
|
|
|
|
|
// @X-TableName ["t_app_base"]
|
|
|
|
|
// @X-Sort [7]
|
|
|
|
|
func SettingAccessSystemIntegratedInfo(c *gin.Context) {
|
|
|
|
|
//系统ID
|
|
|
|
|
appId := c.PostForm("appId")
|
|
|
|
|
//接入系统在集成页面的调用地址
|
|
|
|
|
redirectUri := c.PostForm("redirectUri")
|
|
|
|
|
//接入系统在集成页面的图标
|
|
|
|
|
header, _ := c.FormFile("excelFile")
|
|
|
|
|
//生成图标的ID
|
|
|
|
|
iconFileId := CommonUtil.GetUUID()
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// @Summary 清空接入系统的集成信息
|
|
|
|
|
// @Description 清空接入系统的集成信息
|
|
|
|
|
// @Tags 接入系统
|
|
|
|
|
// @Accept application/x-www-form-urlencoded
|
|
|
|
|
// @Produce json
|
|
|
|
|
// @Param appId formData string true "系统ID"
|
|
|
|
|
// @Success 200 {object} Model.Res
|
|
|
|
|
// @Router /base/support/EmptyAccessSystemIntegratedInfo [post]
|
|
|
|
|
// @X-EmptyLimit ["orgId"]
|
|
|
|
|
// @X-LengthLimit [{"orgId":"36,36"}]
|
|
|
|
|
// @X-TableName ["t_app_base"]
|
|
|
|
|
// @X-Sort [8]
|
|
|
|
|
func EmptyAccessSystemIntegratedInfo(c *gin.Context) {
|
|
|
|
|
//系统ID
|
|
|
|
|
appId := c.PostForm("appId")
|
|
|
|
|
}
|
|
|
|
|