master
wubin 5 years ago
parent 61fbae1df4
commit 9004c840a6

@ -20,6 +20,9 @@ func Routers(r *gin.RouterGroup) {
rr.POST("/AddAccessSystemInfo", AddAccessSystemInfo)
rr.POST("/UpdateAccessSystemInfo", UpdateAccessSystemInfo)
rr.POST("/DeleteAccessSystemInfo", DeleteAccessSystemInfo)
rr.POST("/EnableAccessSystemInfo", EnableAccessSystemInfo)
rr.POST("/DisableAccessSystemInfo", DisableAccessSystemInfo)
rr.GET("/GetAccessSystemRangeInfo", GetAccessSystemRangeInfo)
rr.POST("/SettingAccessSystemRangeInfo", SettingAccessSystemRangeInfo)
rr.GET("/GetAccessSystemSsoInfo", GetAccessSystemSsoInfo)
@ -178,6 +181,39 @@ func DeleteAccessSystemInfo(c *gin.Context) {
})
}
// @Summary 启用接入系统
// @Description 启用接入系统
// @Tags 接入系统
// @Accept application/x-www-form-urlencoded
// @Produce json
// @Param appId formData string true "系统ID"
// @Success 200 {object} Model.Res
// @Router /support/accessSystem/EnableAccessSystemInfo [post]
// @X-EmptyLimit ["appId"]
// @X-LengthLimit [{"appId":"36,36"}]
// @X-TableName ["t_app_base"]
// @X-Sort [4]
func EnableAccessSystemInfo(c *gin.Context) {
}
// @Summary 禁用接入系统
// @Description 禁用接入系统
// @Tags 接入系统
// @Accept application/x-www-form-urlencoded
// @Produce json
// @Param appId formData string true "系统ID"
// @Success 200 {object} Model.Res
// @Router /support/accessSystem/EnableAccessSystemInfo [post]
// @X-EmptyLimit ["appId"]
// @X-LengthLimit [{"appId":"36,36"}]
// @X-TableName ["t_app_base"]
// @X-Sort [5]
func DisableAccessSystemInfo(c *gin.Context) {
}
// @Summary 获取接入系统的使用范围
// @Description 获取接入系统的使用范围
// @Tags 接入系统
@ -189,7 +225,7 @@ func DeleteAccessSystemInfo(c *gin.Context) {
// @X-EmptyLimit ["appId"]
// @X-LengthLimit [{"appId":"36,36"}]
// @X-TableName ["t_app_base"]
// @X-Sort [5]
// @X-Sort [6]
func GetAccessSystemRangeInfo(c *gin.Context) {
//系统ID
appId := c.Query("appId")
@ -229,7 +265,7 @@ func GetAccessSystemRangeInfo(c *gin.Context) {
// @X-EmptyLimit ["orgId","rangeCode"]
// @X-LengthLimit [{"orgId":"36,36"},{"rangeCode":"1,3700"}]
// @X-TableName ["t_app_base"]
// @X-Sort [4]
// @X-Sort [7]
func SettingAccessSystemRangeInfo(c *gin.Context) {
//系统ID
appId := c.PostForm("appId")
@ -265,7 +301,7 @@ func SettingAccessSystemRangeInfo(c *gin.Context) {
// @X-EmptyLimit ["appId"]
// @X-LengthLimit [{"appId":"36,36"}]
// @X-TableName ["t_app_base"]
// @X-Sort [6]
// @X-Sort [8]
func GetAccessSystemSsoInfo(c *gin.Context) {
//系统ID
appId := c.Query("appId")
@ -297,7 +333,7 @@ func GetAccessSystemSsoInfo(c *gin.Context) {
// @X-EmptyLimit ["appId","redirectUri"]
// @X-LengthLimit [{"appId":"36,36"},{"redirectUri":"2,300"},{"logoutUri":"2,300"}]
// @X-TableName ["t_app_base"]
// @X-Sort [7]
// @X-Sort [9]
func SettingAccessSystemSsoInfo(c *gin.Context) {
//系统ID
appId := c.PostForm("appId")
@ -333,7 +369,7 @@ func SettingAccessSystemSsoInfo(c *gin.Context) {
// @X-EmptyLimit ["orgId"]
// @X-LengthLimit [{"orgId":"36,36"}]
// @X-TableName ["t_app_base"]
// @X-Sort [8]
// @X-Sort [10]
func EmptyAccessSystemSsoInfo(c *gin.Context) {
//系统ID
appId := c.PostForm("appId")
@ -363,7 +399,7 @@ func EmptyAccessSystemSsoInfo(c *gin.Context) {
// @X-EmptyLimit ["appId"]
// @X-LengthLimit [{"appId":"36,36"}]
// @X-TableName ["t_app_base"]
// @X-Sort [6]
// @X-Sort [11]
func GetAccessSystemIntegratedInfo(c *gin.Context) {
//系统ID
appId := c.Query("appId")
@ -396,7 +432,7 @@ func GetAccessSystemIntegratedInfo(c *gin.Context) {
// @X-EmptyLimit ["appId","redirectUri"]
// @X-LengthLimit [{"appId":"36,36"},{"redirectUri":"2,300"},{"logoutUri":"2,300"}]
// @X-TableName ["t_app_base"]
// @X-Sort [7]
// @X-Sort [12]
func SettingAccessSystemIntegratedInfo(c *gin.Context) {
//系统ID
appId := c.PostForm("appId")
@ -440,7 +476,7 @@ func SettingAccessSystemIntegratedInfo(c *gin.Context) {
// @X-EmptyLimit ["orgId"]
// @X-LengthLimit [{"orgId":"36,36"}]
// @X-TableName ["t_app_base"]
// @X-Sort [8]
// @X-Sort [13]
func EmptyAccessSystemIntegratedInfo(c *gin.Context) {
//系统ID
appId := c.PostForm("appId")
@ -467,7 +503,7 @@ func EmptyAccessSystemIntegratedInfo(c *gin.Context) {
// @Success 200 {object} Model.Res
// @Router /support/accessSystem/GetPositionTreeInfo [get]
// @X-RemoveSwaggerField ["id_int","b_use","last_updated_time","postion_flag"]
// @X-Sort [11]
// @X-Sort [14]
func GetPositionTreeInfo(c *gin.Context) {
r, err := BasePositionService.TreePositionInfo()
if err != nil {
@ -495,7 +531,7 @@ func GetPositionTreeInfo(c *gin.Context) {
// @X-EmptyLimit ["appId"]
// @X-LengthLimit [{"appId":"36,36"}]
// @X-TableName ["t_app_base"]
// @X-Sort [9]
// @X-Sort [15]
func GetAccessSystemIdentityPositionInfo(c *gin.Context) {
//系统ID
appId := c.Query("appId")
@ -570,7 +606,7 @@ func GetAccessSystemIdentityPositionInfo(c *gin.Context) {
// @X-LengthLimit [{"appId":"36,36"}]
// @X-IntRangeLimit [{"teacherFlag":"1,3"},{"studentFlag":"1,2"},{"parentFlag":"1,2"}]
// @X-TableName ["t_app_base"]
// @X-Sort [10]
// @X-Sort [16]
func SettingAccessSystemIdentityPositionInfo(c *gin.Context) {
//系统ID
appId := c.PostForm("appId")
@ -631,7 +667,7 @@ func SettingAccessSystemIdentityPositionInfo(c *gin.Context) {
// @X-EmptyLimit ["appId"]
// @X-LengthLimit [{"appId":"36,36"}]
// @X-TableName ["t_app_base"]
// @X-Sort [9]
// @X-Sort [17]
func GetAccessSystemStageInfo(c *gin.Context) {
//系统ID
appId := c.Query("appId")
@ -672,7 +708,7 @@ func GetAccessSystemStageInfo(c *gin.Context) {
// @X-LengthLimit [{"appId":"36,36"}]
// @X-IntRangeLimit [{"teacherFlag":"1,3"},{"studentFlag":"1,2"},{"parentFlag":"1,2"}]
// @X-TableName ["t_app_base"]
// @X-Sort [10]
// @X-Sort [18]
func SettingAccessSystemStageInfo(c *gin.Context) {
//系统ID
appId := c.PostForm("appId")
@ -707,7 +743,7 @@ func SettingAccessSystemStageInfo(c *gin.Context) {
// @X-EmptyLimit ["page","limit","areaCode"]
// @X-IntLimit ["page","limit","areaCode"]
// @X-LengthLimit [{"areaCode":"6,6"}]
// @X-Sort [11]
// @X-Sort [19]
func PageGovArea(c *gin.Context) {
page := CommonUtil.ConvertStringToInt32(c.Query("page"))
limit := CommonUtil.ConvertStringToInt32(c.Query("limit"))

Loading…
Cancel
Save