|
|
package controllers
|
|
|
|
|
|
import (
|
|
|
"github.com/linmadan/egglib-go/web/beego"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/performance/pkg/application/notify/command"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/performance/pkg/application/notify/service"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/performance/pkg/port/beego/middlewares"
|
|
|
)
|
|
|
|
|
|
// 获取个人的消息提示
|
|
|
type MessagePersonalController struct {
|
|
|
beego.BaseController
|
|
|
}
|
|
|
|
|
|
// 周期综合自评是否开启,是否提示
|
|
|
func (c *MessagePersonalController) TodayMessageSummaryEvaluation() {
|
|
|
srv := service.NewMessagePersonalService()
|
|
|
userReq := middlewares.GetUser(c.Ctx)
|
|
|
param := command.GetUserMessageCommand{}
|
|
|
param.UserId = int(userReq.UserId)
|
|
|
data, err := srv.TodayMessageSummaryEvaluationSelf(¶m)
|
|
|
c.Response(data, err)
|
|
|
} |
...
|
...
|
|