parent
6f515e450b
commit
77d0b15152
@ -1,14 +1,14 @@ |
||||
package com.bellmann.converter; |
||||
|
||||
import com.bellmann.model.entity.Service; |
||||
import com.bellmann.model.vo.DeviceServiceVO; |
||||
import com.bellmann.model.entity.Business; |
||||
import com.bellmann.model.form.BusinessForm; |
||||
import org.mapstruct.Mapper; |
||||
|
||||
import java.util.List; |
||||
|
||||
|
||||
@Mapper(componentModel = "spring") |
||||
public interface ServiceConverter { |
||||
|
||||
Business form2Entity(BusinessForm form); |
||||
|
||||
BusinessForm entity2Form(Business business); |
||||
} |
@ -0,0 +1,24 @@ |
||||
package com.bellmann.model.form; |
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema; |
||||
import lombok.Data; |
||||
|
||||
@Data |
||||
@Schema(description = "业务管理业务信息表单") |
||||
public class BusinessForm { |
||||
private Long servId; |
||||
|
||||
@Schema(description = "业务名称") |
||||
private String servName; |
||||
|
||||
@Schema(description = "业务版本") |
||||
private String servVerName; |
||||
|
||||
@Schema(description = "业务显示名称") |
||||
private String servDisplayName; |
||||
|
||||
@Schema(description = "业务描述") |
||||
private String servDesc; |
||||
|
||||
private Long pluginFileId; |
||||
} |
@ -0,0 +1,36 @@ |
||||
package com.bellmann.model.vo; |
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
import io.swagger.v3.oas.annotations.media.Schema; |
||||
import lombok.Data; |
||||
|
||||
import java.time.LocalDateTime; |
||||
|
||||
@Data |
||||
@Schema(description = "业务管理业务信息视图") |
||||
public class BusinessVO { |
||||
|
||||
private Long servId; |
||||
|
||||
@Schema(description = "业务名称") |
||||
private String servName; |
||||
|
||||
@Schema(description = "业务版本") |
||||
private String servVerName; |
||||
|
||||
@Schema(description = "业务显示名称") |
||||
private String servDisplayName; |
||||
|
||||
@Schema(description = "业务描述") |
||||
private String servDesc; |
||||
|
||||
@Schema(description = "文件名称") |
||||
private Long fileId; |
||||
|
||||
@Schema(description = "文件名称") |
||||
private String fileName; |
||||
|
||||
@Schema(description = "文件上传时间") |
||||
@JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss") |
||||
private LocalDateTime fileCreateTime; |
||||
} |
Loading…
Reference in new issue