...
|
...
|
@@ -17,6 +17,8 @@ func (controller *NoticePersonalController) GetNoticePersonalList() { |
|
|
err := controller.Unmarshal(getNoticePersonalListQuery)
|
|
|
if err != nil {
|
|
|
log.Logger.Debug("json err:" + err.Error())
|
|
|
controller.Response(nil, err)
|
|
|
return
|
|
|
}
|
|
|
cnt, list, err := noticePersonalService.GetNoticePersonalList(getNoticePersonalListQuery)
|
|
|
data := map[string]interface{}{
|
...
|
...
|
@@ -32,6 +34,8 @@ func (controller *NoticePersonalController) AgreeJoinCreationProject() { |
|
|
err := controller.Unmarshal(agreeJoinCreationProjectCommand)
|
|
|
if err != nil {
|
|
|
log.Logger.Debug("json err:" + err.Error())
|
|
|
controller.Response(nil, err)
|
|
|
return
|
|
|
}
|
|
|
data, err := noticePersonalService.AgreeJoinCreationProject(agreeJoinCreationProjectCommand)
|
|
|
controller.Response(data, err)
|
...
|
...
|
@@ -43,6 +47,8 @@ func (controller *NoticePersonalController) InformExpectedDividends() { |
|
|
err := controller.Unmarshal(informExpectedDividendsCommand)
|
|
|
if err != nil {
|
|
|
log.Logger.Debug("json err:" + err.Error())
|
|
|
controller.Response(nil, err)
|
|
|
return
|
|
|
}
|
|
|
data, err := noticePersonalService.InformExpectedDividends(informExpectedDividendsCommand)
|
|
|
controller.Response(data, err)
|
...
|
...
|
@@ -54,6 +60,8 @@ func (controller *NoticePersonalController) RefuseJoinCreationProject() { |
|
|
err := controller.Unmarshal(refuseJoinCreationProjectCommand)
|
|
|
if err != nil {
|
|
|
log.Logger.Debug("json err:" + err.Error())
|
|
|
controller.Response(nil, err)
|
|
|
return
|
|
|
}
|
|
|
data, err := noticePersonalService.RefuseJoinCreationProject(refuseJoinCreationProjectCommand)
|
|
|
controller.Response(data, err)
|
...
|
...
|
@@ -65,6 +73,8 @@ func (controller *NoticePersonalController) InformJoinCreationContract() { |
|
|
err := controller.Unmarshal(informJoinCreationContractCommand)
|
|
|
if err != nil {
|
|
|
log.Logger.Debug("json err:" + err.Error())
|
|
|
controller.Response(nil, err)
|
|
|
return
|
|
|
}
|
|
|
data, err := noticePersonalService.InformJoinCreationContract(informJoinCreationContractCommand)
|
|
|
controller.Response(data, err)
|
...
|
...
|
@@ -76,6 +86,8 @@ func (controller *NoticePersonalController) CreditAccountEstimate() { |
|
|
err := controller.Unmarshal(creditAccountEstimateCommand)
|
|
|
if err != nil {
|
|
|
log.Logger.Debug("json err:" + err.Error())
|
|
|
controller.Response(nil, err)
|
|
|
return
|
|
|
}
|
|
|
data, err := noticePersonalService.CreditAccountEstimate(creditAccountEstimateCommand)
|
|
|
controller.Response(data, err)
|
...
|
...
|
@@ -87,6 +99,8 @@ func (controller *NoticePersonalController) CreditAccountPayment() { |
|
|
err := controller.Unmarshal(creditAccountPaymentCommand)
|
|
|
if err != nil {
|
|
|
log.Logger.Debug("json err:" + err.Error())
|
|
|
controller.Response(nil, err)
|
|
|
return
|
|
|
}
|
|
|
data, err := noticePersonalService.CreditAccountPayment(creditAccountPaymentCommand)
|
|
|
controller.Response(data, err)
|
...
|
...
|
@@ -98,6 +112,8 @@ func (controller *NoticePersonalController) ReadNotice() { |
|
|
err := controller.Unmarshal(readNoticeCommand)
|
|
|
if err != nil {
|
|
|
log.Logger.Debug("json err:" + err.Error())
|
|
|
controller.Response(nil, err)
|
|
|
return
|
|
|
}
|
|
|
data, err := noticePersonalService.ReadNotice(readNoticeCommand)
|
|
|
controller.Response(data, err)
|
...
|
...
|
@@ -105,5 +121,14 @@ func (controller *NoticePersonalController) ReadNotice() { |
|
|
|
|
|
//SystemNotice 系统消息
|
|
|
func (controller *NoticePersonalController) SystemNotice() {
|
|
|
|
|
|
noticePersonalService := service.NewNoticePersonalService(nil)
|
|
|
systemNoticeCommand := &command.SystemNoticeCommand{}
|
|
|
err := controller.Unmarshal(systemNoticeCommand)
|
|
|
if err != nil {
|
|
|
log.Logger.Debug("json err:" + err.Error())
|
|
|
controller.Response(nil, err)
|
|
|
return
|
|
|
}
|
|
|
data, err := noticePersonalService.CommonNotice(systemNoticeCommand)
|
|
|
controller.Response(data, err)
|
|
|
} |
...
|
...
|
|