咨询师后台数据优化

This commit is contained in:
cjw 2024-08-14 14:44:02 +08:00
parent 26e87fddb0
commit 5826ef0648
2 changed files with 20 additions and 1 deletions

View File

@ -36,6 +36,11 @@ public class Counselor extends BaseEntity {
*/
private Long userId;
/**
* 手机号
*/
private String phonenumber;
/**
* 价格
*/
@ -54,6 +59,7 @@ public class Counselor extends BaseEntity {
/**
* 封面组
*/
private String covers;
/**

View File

@ -1,7 +1,10 @@
package org.dromara.scale.domain.vo;
import io.github.linpeilie.annotations.AutoMapper;
import io.github.linpeilie.annotations.AutoMapping;
import lombok.Data;
import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;
import org.dromara.scale.domain.Counselor;
import java.io.Serial;
@ -10,7 +13,6 @@ import java.math.BigDecimal;
import java.util.Date;
/**
* 心理咨询师视图对象 m_counselor
*
@ -32,8 +34,14 @@ public class CounselorVo implements Serializable {
/**
* 姓名
*/
@Translation(type = TransConstant.USER_ID_TO_NICKNAME)
private String name;
/**
* 手机号
*/
private String phonenumber;
/**
* 价格
*/
@ -52,8 +60,13 @@ public class CounselorVo implements Serializable {
/**
* 封面组
*/
private String covers;
@Translation(type = TransConstant.OSS_ID_TO_URL)
@AutoMapping(target = "covers")
private String coversUrl;
/**
* 服务时长
*/