This commit is contained in:
sxu 2025-05-15 10:45:43 +08:00
parent bb2d95709c
commit 3cf549e24a
2 changed files with 9 additions and 2 deletions

View File

@ -1,5 +1,6 @@
package com.bonus.canteen.core.supermarket.domain;
import com.bonus.canteen.core.common.utils.FileUrlUtil;
import com.bonus.common.core.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@ -130,5 +131,7 @@ public class SupermarketInfo extends BaseEntity {
@ApiModelProperty(value = "用户类别")
private String userType;
public String getImgUrl() {
return FileUrlUtil.getFileUrl(imgUrl);
}
}

View File

@ -1,6 +1,8 @@
package com.bonus.canteen.core.supermarket.domain;
import java.math.BigDecimal;
import com.bonus.canteen.core.common.utils.FileUrlUtil;
import com.bonus.common.core.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@ -132,5 +134,7 @@ public class SupermarketProduct extends BaseEntity {
@ApiModelProperty(value = "状态 1启用 2禁用")
private String state;
public String getImgUrl() {
return FileUrlUtil.getFileUrl(imgUrl);
}
}