123456789101112131415161718192021222324252627282930313233 |
- package controllers
- import (
- "hongze/hongze_open_api/services"
- "hongze/hongze_open_api/utils"
- )
- type EnglishReportController struct {
- BaseCommon
- }
- func (c *EnglishReportController) PublishNotify() {
-
- id, err := c.GetInt("id")
- utils.ApiLog.Println("PublishNotify: id = ", id)
- if err != nil {
- c.FailWithMessageErr("id 格式错误", err.Error())
- return
- }
- if id == 0 {
-
- c.FailWithMessage("请输入id")
- return
- }
- go services.PullEnglishPolicyReportSingle(id)
- c.Ok()
- return
- }
|