...
|
...
|
@@ -74,10 +74,6 @@ func (noticePersonalService *NoticePersonalService) AgreeJoinCreationProject(agr |
|
|
extendData := map[string]interface{}{
|
|
|
"creationProjectId": agreeJoinCreationProjectCommand.CreationProjectId,
|
|
|
}
|
|
|
noticeAction, err := domain.GetNoticeModuleAction(domain.Module01, domain.Action01_01)
|
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.ARG_ERROR, err.Error())
|
|
|
}
|
|
|
extendStr, _ := json.Marshal(extendData)
|
|
|
noticePersonal := domain.NoticePersonal{
|
|
|
CreatedAt: time.Now(),
|
...
|
...
|
@@ -91,7 +87,6 @@ func (noticePersonalService *NoticePersonalService) AgreeJoinCreationProject(agr |
|
|
UserBaseId: agreeJoinCreationProjectCommand.UserBaseId,
|
|
|
OrgId: agreeJoinCreationProjectCommand.OrgId,
|
|
|
UserId: agreeJoinCreationProjectCommand.UserId,
|
|
|
MsgType: noticeAction.MsgType,
|
|
|
}
|
|
|
var noticePersonalRepository domain.NoticePersonalRepository
|
|
|
if value, err := factory.CreateNoticePersonalRepository(map[string]interface{}{
|
...
|
...
|
@@ -153,6 +148,9 @@ func (noticePersonalService *NoticePersonalService) GetNoticePersonalList(getNot |
|
|
if getNoticePersonalListQuery.IsRead > 0 {
|
|
|
queryOption["isRead"] = getNoticePersonalListQuery.IsRead
|
|
|
}
|
|
|
if getNoticePersonalListQuery.UserBaseId > 0 {
|
|
|
queryOption["userBaseId"] = getNoticePersonalListQuery.UserBaseId
|
|
|
}
|
|
|
cnt, noticeList, err := noticePersonalRepository.Find(queryOption)
|
|
|
if err != nil {
|
|
|
return 0, nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
|
...
|
...
|
@@ -160,6 +158,7 @@ func (noticePersonalService *NoticePersonalService) GetNoticePersonalList(getNot |
|
|
if err := transactionContext.CommitTransaction(); err != nil {
|
|
|
return 0, nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
|
|
|
}
|
|
|
|
|
|
return cnt, noticeList, nil
|
|
|
}
|
|
|
|
...
|
...
|
@@ -230,10 +229,6 @@ func (noticePersonalService *NoticePersonalService) InformExpectedDividends(info |
|
|
"creationContractId": informExpectedDividendsCommand.CreationContractId,
|
|
|
"dividendsEstimateId": informExpectedDividendsCommand.DividendsEstimateId,
|
|
|
}
|
|
|
noticeAction, err := domain.GetNoticeModuleAction(domain.Module01, domain.Action01_01)
|
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.ARG_ERROR, err.Error())
|
|
|
}
|
|
|
extendStr, _ := json.Marshal(extendData)
|
|
|
noticePersonal := domain.NoticePersonal{
|
|
|
CreatedAt: time.Now(),
|
...
|
...
|
@@ -247,7 +242,6 @@ func (noticePersonalService *NoticePersonalService) InformExpectedDividends(info |
|
|
UserBaseId: informExpectedDividendsCommand.UserBaseId,
|
|
|
OrgId: informExpectedDividendsCommand.OrgId,
|
|
|
UserId: informExpectedDividendsCommand.UserId,
|
|
|
MsgType: noticeAction.MsgType,
|
|
|
}
|
|
|
var noticePersonalRepository domain.NoticePersonalRepository
|
|
|
if value, err := factory.CreateNoticePersonalRepository(map[string]interface{}{
|
...
|
...
|
@@ -328,10 +322,6 @@ func (noticePersonalService *NoticePersonalService) InformJoinCreationContract(i |
|
|
}
|
|
|
extendData := map[string]interface{}{}
|
|
|
extendStr, _ := json.Marshal(extendData)
|
|
|
noticeAction, err := domain.GetNoticeModuleAction(domain.Module01, domain.Action01_01)
|
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.ARG_ERROR, err.Error())
|
|
|
}
|
|
|
noticePersonal := domain.NoticePersonal{
|
|
|
CreatedAt: time.Now(),
|
|
|
UpdatedAt: time.Now(),
|
...
|
...
|
@@ -344,7 +334,6 @@ func (noticePersonalService *NoticePersonalService) InformJoinCreationContract(i |
|
|
UserBaseId: informJoinCreationContractCommand.UserBaseId,
|
|
|
OrgId: informJoinCreationContractCommand.OrgId,
|
|
|
UserId: informJoinCreationContractCommand.UserId,
|
|
|
MsgType: noticeAction.MsgType,
|
|
|
}
|
|
|
var noticePersonalRepository domain.NoticePersonalRepository
|
|
|
if value, err := factory.CreateNoticePersonalRepository(map[string]interface{}{
|
...
|
...
|
@@ -424,10 +413,6 @@ func (noticePersonalService *NoticePersonalService) RefuseJoinCreationProject(re |
|
|
"creationProjectId": refuseJoinCreationProjectCommand.CreationProjectId,
|
|
|
}
|
|
|
extendStr, _ := json.Marshal(extendData)
|
|
|
noticeAction, err := domain.GetNoticeModuleAction(domain.Module01, domain.Action01_01)
|
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.ARG_ERROR, err.Error())
|
|
|
}
|
|
|
noticePersonal := domain.NoticePersonal{
|
|
|
CreatedAt: time.Now(),
|
|
|
UpdatedAt: time.Now(),
|
...
|
...
|
@@ -440,7 +425,6 @@ func (noticePersonalService *NoticePersonalService) RefuseJoinCreationProject(re |
|
|
UserBaseId: refuseJoinCreationProjectCommand.UserBaseId,
|
|
|
OrgId: refuseJoinCreationProjectCommand.OrgId,
|
|
|
UserId: refuseJoinCreationProjectCommand.UserId,
|
|
|
MsgType: noticeAction.MsgType,
|
|
|
}
|
|
|
var noticePersonalRepository domain.NoticePersonalRepository
|
|
|
if value, err := factory.CreateNoticePersonalRepository(map[string]interface{}{
|
...
|
...
|
@@ -523,10 +507,6 @@ func (noticePersonalService *NoticePersonalService) CreditAccountEstimate(credit |
|
|
"dividendsEstimateId": creditAccountEstimateCommand.DividendsEstimateId,
|
|
|
}
|
|
|
extendStr, _ := json.Marshal(extendData)
|
|
|
noticeAction, err := domain.GetNoticeModuleAction(domain.Module01, domain.Action01_01)
|
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.ARG_ERROR, err.Error())
|
|
|
}
|
|
|
noticePersonal := domain.NoticePersonal{
|
|
|
CreatedAt: time.Now(),
|
|
|
UpdatedAt: time.Now(),
|
...
|
...
|
@@ -539,7 +519,6 @@ func (noticePersonalService *NoticePersonalService) CreditAccountEstimate(credit |
|
|
UserBaseId: creditAccountEstimateCommand.UserBaseId,
|
|
|
OrgId: creditAccountEstimateCommand.OrgId,
|
|
|
UserId: creditAccountEstimateCommand.UserId,
|
|
|
MsgType: noticeAction.MsgType,
|
|
|
}
|
|
|
var noticePersonalRepository domain.NoticePersonalRepository
|
|
|
if value, err := factory.CreateNoticePersonalRepository(map[string]interface{}{
|
...
|
...
|
@@ -621,10 +600,6 @@ func (noticePersonalService *NoticePersonalService) CreditAccountPayment(creditA |
|
|
"creditAccountId": creditAccountPaymentCommand.CreditAccountId,
|
|
|
}
|
|
|
extendStr, _ := json.Marshal(extendData)
|
|
|
noticeAction, err := domain.GetNoticeModuleAction(domain.Module01, domain.Action01_01)
|
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.ARG_ERROR, err.Error())
|
|
|
}
|
|
|
noticePersonal := domain.NoticePersonal{
|
|
|
CreatedAt: time.Now(),
|
|
|
UpdatedAt: time.Now(),
|
...
|
...
|
@@ -637,7 +612,6 @@ func (noticePersonalService *NoticePersonalService) CreditAccountPayment(creditA |
|
|
UserBaseId: creditAccountPaymentCommand.UserBaseId,
|
|
|
OrgId: creditAccountPaymentCommand.OrgId,
|
|
|
UserId: creditAccountPaymentCommand.UserId,
|
|
|
MsgType: noticeAction.MsgType,
|
|
|
}
|
|
|
var noticePersonalRepository domain.NoticePersonalRepository
|
|
|
if value, err := factory.CreateNoticePersonalRepository(map[string]interface{}{
|
...
|
...
|
|