...
|
...
|
@@ -36,9 +36,7 @@ func BulletinRelease(uid, companyId int64, request *protocol.BulletinReleaseRequ |
|
|
Title: request.Title,
|
|
|
Type: int8(request.Type),
|
|
|
Content: request.Content,
|
|
|
Cover: request.Cover.Path,
|
|
|
H: request.Cover.H,
|
|
|
W: request.Cover.W,
|
|
|
Cover: string(request.Cover),
|
|
|
Receiver: string(receiver),
|
|
|
QuestionSwitch: int8(request.QuestionSwitch),
|
|
|
//AllowCondition: int8(request.AllowCondition),
|
...
|
...
|
@@ -253,11 +251,7 @@ func GetBulletin(id int, companyId int64, request *protocol.GetBulletinRequest) |
|
|
Content: bulletin.Content,
|
|
|
AllowClose: int(bulletin.AllowClose),
|
|
|
//AllowCondition: int(bulletin.AllowCondition),
|
|
|
Cover: protocol.Cover{
|
|
|
Path: bulletin.Cover,
|
|
|
W: bulletin.W,
|
|
|
H: bulletin.H,
|
|
|
},
|
|
|
Cover: protocol.Cover(bulletin.Cover),
|
|
|
}
|
|
|
if bulletin.QuestionSwitch == 1 {
|
|
|
if question, err = models.GetBulletinQuestionByBulletinId(bulletin.Id); err != nil {
|
...
|
...
|
@@ -308,9 +302,7 @@ func UpdateBulletin(companyId int64, request *protocol.UpdateBulletinRequest) (r |
|
|
bulletin.Title = request.Title
|
|
|
bulletin.Type = int8(request.Type)
|
|
|
bulletin.Content = request.Content
|
|
|
bulletin.Cover = request.Cover.Path
|
|
|
bulletin.H = request.Cover.H
|
|
|
bulletin.W = request.Cover.W
|
|
|
bulletin.Cover = string(request.Cover)
|
|
|
bulletin.Receiver = string(receiver)
|
|
|
bulletin.QuestionSwitch = int8(request.QuestionSwitch)
|
|
|
//bulletin.AllowCondition = int8(request.AllowCondition)
|
...
|
...
|
|