|
@@ -54,7 +54,7 @@ func SendApproveMsg(receiverId int64, name string, companyId int64, chanceId int |
|
@@ -54,7 +54,7 @@ func SendApproveMsg(receiverId int64, name string, companyId int64, chanceId int |
54
|
Message: fmt.Sprintf(format, chanceType.Name),
|
54
|
Message: fmt.Sprintf(format, chanceType.Name),
|
55
|
SourceId: chanceId,
|
55
|
SourceId: chanceId,
|
56
|
SourceType: protocol.SourceTypeChance,
|
56
|
SourceType: protocol.SourceTypeChance,
|
57
|
- IsPublic: 0,
|
57
|
+ IsPublic: 1,
|
58
|
CreateAt: time.Now(),
|
58
|
CreateAt: time.Now(),
|
59
|
ChanceId: chanceId,
|
59
|
ChanceId: chanceId,
|
60
|
Data: common.AssertJson(data),
|
60
|
Data: common.AssertJson(data),
|
|
@@ -108,7 +108,7 @@ func sendApproveMsg(header *protocol.RequestHeader, receiverId int64, name strin |
|
@@ -108,7 +108,7 @@ func sendApproveMsg(header *protocol.RequestHeader, receiverId int64, name strin |
108
|
Message: fmt.Sprintf(format, chanceType.Name),
|
108
|
Message: fmt.Sprintf(format, chanceType.Name),
|
109
|
SourceId: chanceId,
|
109
|
SourceId: chanceId,
|
110
|
SourceType: protocol.SourceTypeChance,
|
110
|
SourceType: protocol.SourceTypeChance,
|
111
|
- IsPublic: 0,
|
111
|
+ IsPublic: 1,
|
112
|
CreateAt: time.Now(),
|
112
|
CreateAt: time.Now(),
|
113
|
ChanceId: chanceId,
|
113
|
ChanceId: chanceId,
|
114
|
//Data: jsonData, ,
|
114
|
//Data: jsonData, ,
|
|
@@ -141,7 +141,7 @@ func SendApproveMsgByFormat(header *protocol.RequestHeader, receiverId int64, ch |
|
@@ -141,7 +141,7 @@ func SendApproveMsgByFormat(header *protocol.RequestHeader, receiverId int64, ch |
141
|
Message: message, //fmt.Sprintf(message, chanceType.Name),
|
141
|
Message: message, //fmt.Sprintf(message, chanceType.Name),
|
142
|
SourceId: chanceId,
|
142
|
SourceId: chanceId,
|
143
|
SourceType: protocol.SourceTypeChance,
|
143
|
SourceType: protocol.SourceTypeChance,
|
144
|
- IsPublic: 0,
|
144
|
+ IsPublic: 1,
|
145
|
CreateAt: time.Now(),
|
145
|
CreateAt: time.Now(),
|
146
|
Data: common.AssertJson(data),
|
146
|
Data: common.AssertJson(data),
|
147
|
SenderUserId: header.UserId,
|
147
|
SenderUserId: header.UserId,
|
|
@@ -194,7 +194,7 @@ func SendMsg(receiverId int64, name string, companyId int64, sourceId int64, sou |
|
@@ -194,7 +194,7 @@ func SendMsg(receiverId int64, name string, companyId int64, sourceId int64, sou |
194
|
Message: message,
|
194
|
Message: message,
|
195
|
SourceId: sourceId,
|
195
|
SourceId: sourceId,
|
196
|
SourceType: sourceType,
|
196
|
SourceType: sourceType,
|
197
|
- IsPublic: 0,
|
197
|
+ IsPublic: 1,
|
198
|
CreateAt: time.Now(),
|
198
|
CreateAt: time.Now(),
|
199
|
ChanceId: chanceId,
|
199
|
ChanceId: chanceId,
|
200
|
}
|
200
|
}
|
|
@@ -218,7 +218,7 @@ func SendMsgWithData(receiverId int64, name string, companyId int64, sourceId in |
|
@@ -218,7 +218,7 @@ func SendMsgWithData(receiverId int64, name string, companyId int64, sourceId in |
218
|
Message: message,
|
218
|
Message: message,
|
219
|
SourceId: sourceId,
|
219
|
SourceId: sourceId,
|
220
|
SourceType: sourceType,
|
220
|
SourceType: sourceType,
|
221
|
- IsPublic: 0,
|
221
|
+ IsPublic: 1,
|
222
|
CreateAt: time.Now(),
|
222
|
CreateAt: time.Now(),
|
223
|
ChanceId: chanceId,
|
223
|
ChanceId: chanceId,
|
224
|
Data: common.AssertJson(msgData),
|
224
|
Data: common.AssertJson(msgData),
|
|
@@ -244,7 +244,7 @@ func SendMsgWithHeader(header *protocol.RequestHeader, receiverId int64, name st |
|
@@ -244,7 +244,7 @@ func SendMsgWithHeader(header *protocol.RequestHeader, receiverId int64, name st |
244
|
Message: message,
|
244
|
Message: message,
|
245
|
SourceId: sourceId,
|
245
|
SourceId: sourceId,
|
246
|
SourceType: sourceType,
|
246
|
SourceType: sourceType,
|
247
|
- IsPublic: 0,
|
247
|
+ IsPublic: 1,
|
248
|
CreateAt: time.Now(),
|
248
|
CreateAt: time.Now(),
|
249
|
ChanceId: chanceId,
|
249
|
ChanceId: chanceId,
|
250
|
}
|
250
|
}
|