|
@@ -36,9 +36,7 @@ func BulletinRelease(uid, companyId int64, request *protocol.BulletinReleaseRequ |
|
@@ -36,9 +36,7 @@ func BulletinRelease(uid, companyId int64, request *protocol.BulletinReleaseRequ |
36
|
Title: request.Title,
|
36
|
Title: request.Title,
|
37
|
Type: int8(request.Type),
|
37
|
Type: int8(request.Type),
|
38
|
Content: request.Content,
|
38
|
Content: request.Content,
|
39
|
- Cover: request.Cover.Path,
|
|
|
40
|
- H: request.Cover.H,
|
|
|
41
|
- W: request.Cover.W,
|
39
|
+ Cover: string(request.Cover),
|
42
|
Receiver: string(receiver),
|
40
|
Receiver: string(receiver),
|
43
|
QuestionSwitch: int8(request.QuestionSwitch),
|
41
|
QuestionSwitch: int8(request.QuestionSwitch),
|
44
|
//AllowCondition: int8(request.AllowCondition),
|
42
|
//AllowCondition: int8(request.AllowCondition),
|
|
@@ -253,11 +251,7 @@ func GetBulletin(id int, companyId int64, request *protocol.GetBulletinRequest) |
|
@@ -253,11 +251,7 @@ func GetBulletin(id int, companyId int64, request *protocol.GetBulletinRequest) |
253
|
Content: bulletin.Content,
|
251
|
Content: bulletin.Content,
|
254
|
AllowClose: int(bulletin.AllowClose),
|
252
|
AllowClose: int(bulletin.AllowClose),
|
255
|
//AllowCondition: int(bulletin.AllowCondition),
|
253
|
//AllowCondition: int(bulletin.AllowCondition),
|
256
|
- Cover: protocol.Cover{
|
|
|
257
|
- Path: bulletin.Cover,
|
|
|
258
|
- W: bulletin.W,
|
|
|
259
|
- H: bulletin.H,
|
|
|
260
|
- },
|
254
|
+ Cover: protocol.Cover(bulletin.Cover),
|
261
|
}
|
255
|
}
|
262
|
if bulletin.QuestionSwitch == 1 {
|
256
|
if bulletin.QuestionSwitch == 1 {
|
263
|
if question, err = models.GetBulletinQuestionByBulletinId(bulletin.Id); err != nil {
|
257
|
if question, err = models.GetBulletinQuestionByBulletinId(bulletin.Id); err != nil {
|
|
@@ -308,9 +302,7 @@ func UpdateBulletin(companyId int64, request *protocol.UpdateBulletinRequest) (r |
|
@@ -308,9 +302,7 @@ func UpdateBulletin(companyId int64, request *protocol.UpdateBulletinRequest) (r |
308
|
bulletin.Title = request.Title
|
302
|
bulletin.Title = request.Title
|
309
|
bulletin.Type = int8(request.Type)
|
303
|
bulletin.Type = int8(request.Type)
|
310
|
bulletin.Content = request.Content
|
304
|
bulletin.Content = request.Content
|
311
|
- bulletin.Cover = request.Cover.Path
|
|
|
312
|
- bulletin.H = request.Cover.H
|
|
|
313
|
- bulletin.W = request.Cover.W
|
305
|
+ bulletin.Cover = string(request.Cover)
|
314
|
bulletin.Receiver = string(receiver)
|
306
|
bulletin.Receiver = string(receiver)
|
315
|
bulletin.QuestionSwitch = int8(request.QuestionSwitch)
|
307
|
bulletin.QuestionSwitch = int8(request.QuestionSwitch)
|
316
|
//bulletin.AllowCondition = int8(request.AllowCondition)
|
308
|
//bulletin.AllowCondition = int8(request.AllowCondition)
|