|
@@ -17,6 +17,8 @@ func (controller *NoticePersonalController) GetNoticePersonalList() { |
|
@@ -17,6 +17,8 @@ func (controller *NoticePersonalController) GetNoticePersonalList() { |
17
|
err := controller.Unmarshal(getNoticePersonalListQuery)
|
17
|
err := controller.Unmarshal(getNoticePersonalListQuery)
|
18
|
if err != nil {
|
18
|
if err != nil {
|
19
|
log.Logger.Debug("json err:" + err.Error())
|
19
|
log.Logger.Debug("json err:" + err.Error())
|
|
|
20
|
+ controller.Response(nil, err)
|
|
|
21
|
+ return
|
20
|
}
|
22
|
}
|
21
|
cnt, list, err := noticePersonalService.GetNoticePersonalList(getNoticePersonalListQuery)
|
23
|
cnt, list, err := noticePersonalService.GetNoticePersonalList(getNoticePersonalListQuery)
|
22
|
data := map[string]interface{}{
|
24
|
data := map[string]interface{}{
|
|
@@ -32,6 +34,8 @@ func (controller *NoticePersonalController) AgreeJoinCreationProject() { |
|
@@ -32,6 +34,8 @@ func (controller *NoticePersonalController) AgreeJoinCreationProject() { |
32
|
err := controller.Unmarshal(agreeJoinCreationProjectCommand)
|
34
|
err := controller.Unmarshal(agreeJoinCreationProjectCommand)
|
33
|
if err != nil {
|
35
|
if err != nil {
|
34
|
log.Logger.Debug("json err:" + err.Error())
|
36
|
log.Logger.Debug("json err:" + err.Error())
|
|
|
37
|
+ controller.Response(nil, err)
|
|
|
38
|
+ return
|
35
|
}
|
39
|
}
|
36
|
data, err := noticePersonalService.AgreeJoinCreationProject(agreeJoinCreationProjectCommand)
|
40
|
data, err := noticePersonalService.AgreeJoinCreationProject(agreeJoinCreationProjectCommand)
|
37
|
controller.Response(data, err)
|
41
|
controller.Response(data, err)
|
|
@@ -43,6 +47,8 @@ func (controller *NoticePersonalController) InformExpectedDividends() { |
|
@@ -43,6 +47,8 @@ func (controller *NoticePersonalController) InformExpectedDividends() { |
43
|
err := controller.Unmarshal(informExpectedDividendsCommand)
|
47
|
err := controller.Unmarshal(informExpectedDividendsCommand)
|
44
|
if err != nil {
|
48
|
if err != nil {
|
45
|
log.Logger.Debug("json err:" + err.Error())
|
49
|
log.Logger.Debug("json err:" + err.Error())
|
|
|
50
|
+ controller.Response(nil, err)
|
|
|
51
|
+ return
|
46
|
}
|
52
|
}
|
47
|
data, err := noticePersonalService.InformExpectedDividends(informExpectedDividendsCommand)
|
53
|
data, err := noticePersonalService.InformExpectedDividends(informExpectedDividendsCommand)
|
48
|
controller.Response(data, err)
|
54
|
controller.Response(data, err)
|
|
@@ -54,6 +60,8 @@ func (controller *NoticePersonalController) RefuseJoinCreationProject() { |
|
@@ -54,6 +60,8 @@ func (controller *NoticePersonalController) RefuseJoinCreationProject() { |
54
|
err := controller.Unmarshal(refuseJoinCreationProjectCommand)
|
60
|
err := controller.Unmarshal(refuseJoinCreationProjectCommand)
|
55
|
if err != nil {
|
61
|
if err != nil {
|
56
|
log.Logger.Debug("json err:" + err.Error())
|
62
|
log.Logger.Debug("json err:" + err.Error())
|
|
|
63
|
+ controller.Response(nil, err)
|
|
|
64
|
+ return
|
57
|
}
|
65
|
}
|
58
|
data, err := noticePersonalService.RefuseJoinCreationProject(refuseJoinCreationProjectCommand)
|
66
|
data, err := noticePersonalService.RefuseJoinCreationProject(refuseJoinCreationProjectCommand)
|
59
|
controller.Response(data, err)
|
67
|
controller.Response(data, err)
|
|
@@ -65,6 +73,8 @@ func (controller *NoticePersonalController) InformJoinCreationContract() { |
|
@@ -65,6 +73,8 @@ func (controller *NoticePersonalController) InformJoinCreationContract() { |
65
|
err := controller.Unmarshal(informJoinCreationContractCommand)
|
73
|
err := controller.Unmarshal(informJoinCreationContractCommand)
|
66
|
if err != nil {
|
74
|
if err != nil {
|
67
|
log.Logger.Debug("json err:" + err.Error())
|
75
|
log.Logger.Debug("json err:" + err.Error())
|
|
|
76
|
+ controller.Response(nil, err)
|
|
|
77
|
+ return
|
68
|
}
|
78
|
}
|
69
|
data, err := noticePersonalService.InformJoinCreationContract(informJoinCreationContractCommand)
|
79
|
data, err := noticePersonalService.InformJoinCreationContract(informJoinCreationContractCommand)
|
70
|
controller.Response(data, err)
|
80
|
controller.Response(data, err)
|
|
@@ -76,6 +86,8 @@ func (controller *NoticePersonalController) CreditAccountEstimate() { |
|
@@ -76,6 +86,8 @@ func (controller *NoticePersonalController) CreditAccountEstimate() { |
76
|
err := controller.Unmarshal(creditAccountEstimateCommand)
|
86
|
err := controller.Unmarshal(creditAccountEstimateCommand)
|
77
|
if err != nil {
|
87
|
if err != nil {
|
78
|
log.Logger.Debug("json err:" + err.Error())
|
88
|
log.Logger.Debug("json err:" + err.Error())
|
|
|
89
|
+ controller.Response(nil, err)
|
|
|
90
|
+ return
|
79
|
}
|
91
|
}
|
80
|
data, err := noticePersonalService.CreditAccountEstimate(creditAccountEstimateCommand)
|
92
|
data, err := noticePersonalService.CreditAccountEstimate(creditAccountEstimateCommand)
|
81
|
controller.Response(data, err)
|
93
|
controller.Response(data, err)
|
|
@@ -87,6 +99,8 @@ func (controller *NoticePersonalController) CreditAccountPayment() { |
|
@@ -87,6 +99,8 @@ func (controller *NoticePersonalController) CreditAccountPayment() { |
87
|
err := controller.Unmarshal(creditAccountPaymentCommand)
|
99
|
err := controller.Unmarshal(creditAccountPaymentCommand)
|
88
|
if err != nil {
|
100
|
if err != nil {
|
89
|
log.Logger.Debug("json err:" + err.Error())
|
101
|
log.Logger.Debug("json err:" + err.Error())
|
|
|
102
|
+ controller.Response(nil, err)
|
|
|
103
|
+ return
|
90
|
}
|
104
|
}
|
91
|
data, err := noticePersonalService.CreditAccountPayment(creditAccountPaymentCommand)
|
105
|
data, err := noticePersonalService.CreditAccountPayment(creditAccountPaymentCommand)
|
92
|
controller.Response(data, err)
|
106
|
controller.Response(data, err)
|
|
@@ -98,6 +112,8 @@ func (controller *NoticePersonalController) ReadNotice() { |
|
@@ -98,6 +112,8 @@ func (controller *NoticePersonalController) ReadNotice() { |
98
|
err := controller.Unmarshal(readNoticeCommand)
|
112
|
err := controller.Unmarshal(readNoticeCommand)
|
99
|
if err != nil {
|
113
|
if err != nil {
|
100
|
log.Logger.Debug("json err:" + err.Error())
|
114
|
log.Logger.Debug("json err:" + err.Error())
|
|
|
115
|
+ controller.Response(nil, err)
|
|
|
116
|
+ return
|
101
|
}
|
117
|
}
|
102
|
data, err := noticePersonalService.ReadNotice(readNoticeCommand)
|
118
|
data, err := noticePersonalService.ReadNotice(readNoticeCommand)
|
103
|
controller.Response(data, err)
|
119
|
controller.Response(data, err)
|
|
@@ -105,5 +121,14 @@ func (controller *NoticePersonalController) ReadNotice() { |
|
@@ -105,5 +121,14 @@ func (controller *NoticePersonalController) ReadNotice() { |
105
|
|
121
|
|
106
|
//SystemNotice 系统消息
|
122
|
//SystemNotice 系统消息
|
107
|
func (controller *NoticePersonalController) SystemNotice() {
|
123
|
func (controller *NoticePersonalController) SystemNotice() {
|
108
|
-
|
124
|
+ noticePersonalService := service.NewNoticePersonalService(nil)
|
|
|
125
|
+ systemNoticeCommand := &command.SystemNoticeCommand{}
|
|
|
126
|
+ err := controller.Unmarshal(systemNoticeCommand)
|
|
|
127
|
+ if err != nil {
|
|
|
128
|
+ log.Logger.Debug("json err:" + err.Error())
|
|
|
129
|
+ controller.Response(nil, err)
|
|
|
130
|
+ return
|
|
|
131
|
+ }
|
|
|
132
|
+ data, err := noticePersonalService.CommonNotice(systemNoticeCommand)
|
|
|
133
|
+ controller.Response(data, err)
|
109
|
} |
134
|
} |