|
|
|
@ -4,6 +4,7 @@ import com.qniao.dam.domain.aggregate.marriagebounty.entity.MarriageBountyOrder; |
|
|
|
import com.qniao.dam.domain.aggregate.order.entity.Order; |
|
|
|
import com.qniao.dam.domain.aggregate.product.entity.Product; |
|
|
|
import com.qniao.dam.domain.aggregate.productspec.entity.ProductSpec; |
|
|
|
import com.qniao.dam.domian.aggregate.marriagebount.constant.MarriageBountyOrderDisplay; |
|
|
|
import com.qniao.dam.domian.aggregate.marriagebount.constant.MarriageBountyOrderType; |
|
|
|
import com.qniao.dam.domian.aggregate.marriagebount.constant.PublishIdentityTypeEnum; |
|
|
|
import com.qniao.dam.domian.aggregate.product.constant.ProductMainCategoryEnum; |
|
|
|
@ -31,6 +32,9 @@ public class UserSubmitMarriageBountyOrderDto implements Trans2DomainAssembler<O |
|
|
|
@NotNull(message = "征婚资料标识不能为空") |
|
|
|
private Long miId; |
|
|
|
|
|
|
|
@ApiModelProperty("悬赏招亲版本展示") |
|
|
|
private MarriageBountyOrderDisplay display; |
|
|
|
|
|
|
|
@ApiModelProperty("悬赏招亲发布者类型") |
|
|
|
private PublishIdentityTypeEnum publishType; |
|
|
|
|
|
|
|
@ -62,6 +66,13 @@ public class UserSubmitMarriageBountyOrderDto implements Trans2DomainAssembler<O |
|
|
|
MarriageBountyOrder marriageBountyOrder = new MarriageBountyOrder(); |
|
|
|
marriageBountyOrder.setMiId(miId); |
|
|
|
marriageBountyOrder.setType(type); |
|
|
|
//可见范围 |
|
|
|
if (Objects.isNull(display)) { |
|
|
|
//默认所有人可见 |
|
|
|
marriageBountyOrder.setDisplay(MarriageBountyOrderDisplay.ALL); |
|
|
|
} else { |
|
|
|
marriageBountyOrder.setDisplay(display); |
|
|
|
} |
|
|
|
if (Objects.isNull(publishType)) { |
|
|
|
//默认嘉宾自己发布 |
|
|
|
marriageBountyOrder.setPublishType(PublishIdentityTypeEnum.GUEST); |
|
|
|
|