Commit 7b4b002d by licy

时间格式转换

1 parent 3eb37781
package cn.com.glsx.merchants.response;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
......@@ -46,6 +47,7 @@ public class DictDataResponse implements Serializable {
private String remark;
@ApiModelProperty(name = "createdDate", notes = "创建时间", dataType = "String", required = true, example = "1",value = "字典主键")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createdDate;
@ApiModelProperty(name = "productType", notes = "产品类型", dataType = "Integer", required = true, example = "1",value = "字典主键")
......
package cn.com.glsx.merchants.response;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
......@@ -41,6 +42,7 @@ public class FileResponse {
* 创建时间
*/
@ApiModelProperty(name = "createdTime", notes = "创建时间",dataType = "Date")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createdTime;
/**
......@@ -53,6 +55,7 @@ public class FileResponse {
* 更新时间
*/
@ApiModelProperty(name = "updatedTime", notes = "更新时间",dataType = "Date")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date updatedTime;
/**
......
package cn.com.glsx.merchants.response;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
......@@ -75,6 +76,7 @@ public class FunctionResponse {
* 创建时间
*/
@ApiModelProperty(name = "createdTime", notes = "创建时间", dataType = "Date", required = true, example = "1",value = "创建时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createdTime;
/**
......
package cn.com.glsx.merchants.response;
import cn.com.glsx.merchants.model.response.MerchantProductMenuResponse;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
......@@ -56,23 +57,27 @@ public class MenuResponse implements Serializable {
/**
* 创建人
*/
@ApiModelProperty(name = "createdBy", notes = "创建人", dataType = "Integer", required = true, example = "1212",value = "创建人")
@ApiModelProperty(name = "createdBy", notes = "创建人", dataType = "Integer", required = true,value = "创建人")
private Integer createdBy;
/**
* 创建时间
*/
@ApiModelProperty(name = "createdTime", notes = "创建时间", dataType = "Date", required = true, example = "1212",value = "创建时间")
@ApiModelProperty(name = "createdTime", notes = "创建时间", dataType = "Date", required = true, value = "创建时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createdTime;
/**
* 更新人
*/
@ApiModelProperty(name = "updatedBy", notes = "更新人", dataType = "Integer", required = true,value = "更新人")
private Integer updatedBy;
/**
* 更新时间
*/
@ApiModelProperty(name = "updatedTime", notes = "更新时间", dataType = "Date", required = true,value = "更新时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date updatedTime;
/**
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!