|
|
|
@ -36,6 +36,10 @@ func Routers(r *gin.RouterGroup) {
|
|
|
|
|
rr.POST("/DeleteTeacherMultipleBureauInfo", DeleteTeacherMultipleBureauInfo)
|
|
|
|
|
rr.POST("/SettingMainOrgInfo", SettingMainOrgInfo)
|
|
|
|
|
|
|
|
|
|
rr.POST("/TeacherTransferInfo", TeacherTransferInfo)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -761,3 +765,35 @@ func SettingMainOrgInfo(c *gin.Context) {
|
|
|
|
|
Message: r.Message,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// @Summary 教师调转单位
|
|
|
|
|
// @Description 教师调转单位
|
|
|
|
|
// @Tags 教师信息
|
|
|
|
|
// @Accept application/x-www-form-urlencoded
|
|
|
|
|
// @Produce json
|
|
|
|
|
// @Param orgId formData string true "部门ID"
|
|
|
|
|
// @Param personId formData string true "人员ID"
|
|
|
|
|
// @Success 200 {object} Model.Res
|
|
|
|
|
// @Router /base/teacher/TeacherTransferInfo [post]
|
|
|
|
|
// @X-EmptyLimit ["orgId","personId"]
|
|
|
|
|
// @X-LengthLimit [{"orgId":"36,36"},{"personId":"36,36"}]
|
|
|
|
|
// @X-RoleLimit ["1","3","4"]
|
|
|
|
|
// @X-Sort [15]
|
|
|
|
|
func TeacherTransferInfo(c *gin.Context) {
|
|
|
|
|
//部门ID
|
|
|
|
|
orgId := c.PostForm("orgId")
|
|
|
|
|
//人员ID
|
|
|
|
|
personId := c.PostForm("personId")
|
|
|
|
|
r, err := BaseTeacherService.TeacherTransferInfo(orgId, personId)
|
|
|
|
|
if err != nil {
|
|
|
|
|
c.JSON(http.StatusOK, Model.Res{
|
|
|
|
|
Success: false,
|
|
|
|
|
Message: "调用RPC服务失败!",
|
|
|
|
|
})
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
c.JSON(http.StatusOK, Model.Res{
|
|
|
|
|
Success: r.Success,
|
|
|
|
|
Message: r.Message,
|
|
|
|
|
})
|
|
|
|
|
}
|