zmy #3

Closed
cbx wants to merge 0 commits from zmy into master
159 changed files with 289 additions and 5139 deletions

View File

@ -22,10 +22,6 @@
<groupId>doctor</groupId>
<artifactId>doctor-common-core</artifactId>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
</dependencies>

View File

@ -1,7 +1,6 @@
package doctor.system.api;
import doctor.common.core.constant.ServiceNameConstants;
import doctor.common.core.domain.HealthR;
import doctor.common.core.domain.R;
import doctor.system.api.factory.RemoteDoctorFallbackFactory;
import doctor.system.api.model.LoginUser;
@ -9,12 +8,9 @@ import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
@FeignClient(contextId = "remoteDoctorService", value = ServiceNameConstants.FILE_DOCTOR, fallbackFactory = RemoteDoctorFallbackFactory.class)
@FeignClient(contextId = "remoteDoctorService", value = ServiceNameConstants.FILE_DOCTOR, fallback = RemoteDoctorFallbackFactory.class)
public interface RemoteDoctorService {
@PostMapping("/doctor/getDoctor")
public R<LoginUser> getDoctorInfo(@RequestParam("email") String email);
@PostMapping("/doctor/getUser")
public R<LoginUser> getUser(@RequestParam("email") String email);
R<LoginUser> getDoctorUserInfo(@RequestParam("email") String email);
}

View File

@ -36,8 +36,4 @@ public interface RemoteUserService
*/
@PostMapping("/user/register")
public R<Boolean> registerUserInfo(@RequestBody SysUser sysUser, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
@PostMapping("/user/getUser/{email}")
public R<LoginUser> getUser(@PathVariable("email") String email);
}

View File

@ -1,51 +0,0 @@
package doctor.system.api.domain;
import java.util.Date;
public class Department {
private int id;
private String departmentName;
private String pic;
private int rank;
private Date createTime;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getDepartmentName() {
return departmentName;
}
public void setDepartmentName(String departmentName) {
this.departmentName = departmentName;
}
public String getPic() {
return pic;
}
public void setPic(String pic) {
this.pic = pic;
}
public int getRank() {
return rank;
}
public void setRank(int rank) {
this.rank = rank;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
}

View File

@ -1,148 +0,0 @@
package doctor.system.api.domain;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
public class Doctor {
private Integer id;
private Integer departmentId;
private String email;
private String userName;
private Integer reviewStatus;
private String phone;
private String pwd;
private String name;
private String imagePic;
private String jobTitle;
private String inauguralHospital;
private String personalProfile;
private String goodField;
private Department department;
public Department getDepartment() {
return department;
}
public void setDepartment(Department department) {
this.department = department;
}
@DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
private Date createTime;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getDepartmentId() {
return departmentId;
}
public void setDepartmentId(Integer departmentId) {
this.departmentId = departmentId;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
public Integer getReviewStatus() {
return reviewStatus;
}
public void setReviewStatus(Integer reviewStatus) {
this.reviewStatus = reviewStatus;
}
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
public String getPwd() {
return pwd;
}
public void setPwd(String pwd) {
this.pwd = pwd;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getImagePic() {
return imagePic;
}
public void setImagePic(String imagePic) {
this.imagePic = imagePic;
}
public String getJobTitle() {
return jobTitle;
}
public void setJobTitle(String jobTitle) {
this.jobTitle = jobTitle;
}
public String getInauguralHospital() {
return inauguralHospital;
}
public void setInauguralHospital(String inauguralHospital) {
this.inauguralHospital = inauguralHospital;
}
public String getPersonalProfile() {
return personalProfile;
}
public void setPersonalProfile(String personalProfile) {
this.personalProfile = personalProfile;
}
public String getGoodField() {
return goodField;
}
public void setGoodField(String goodField) {
this.goodField = goodField;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
}

View File

@ -1,140 +0,0 @@
package doctor.system.api.domain;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
/**
* @ClassName : User
* @Description :
* @Author : FJJ
* @Date: 2024-01-10 20:46
*/
public class User {
private Integer id;
private String phone;
private String pwd;
private String email;
private String nickName;
private String userName;
private String headPic;
private Integer sex;
private Integer age;
private Integer height;
private Integer weight;
private String invitationCode;
private Date updateTime;
private Long createTime;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
public String getPwd() {
return pwd;
}
public void setPwd(String pwd) {
this.pwd = pwd;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getNickName() {
return nickName;
}
public void setNickName(String nickName) {
this.nickName = nickName;
}
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
public String getHeadPic() {
return headPic;
}
public void setHeadPic(String headPic) {
this.headPic = headPic;
}
public Integer getSex() {
return sex;
}
public void setSex(Integer sex) {
this.sex = sex;
}
public Integer getAge() {
return age;
}
public void setAge(Integer age) {
this.age = age;
}
public Integer getHeight() {
return height;
}
public void setHeight(Integer height) {
this.height = height;
}
public Integer getWeight() {
return weight;
}
public void setWeight(Integer weight) {
this.weight = weight;
}
public String getInvitationCode() {
return invitationCode;
}
public void setInvitationCode(String invitationCode) {
this.invitationCode = invitationCode;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public long getCreateTime() {
return createTime;
}
public void setCreateTime(long createTime) {
this.createTime = createTime;
}
}

View File

@ -1,56 +0,0 @@
package doctor.system.api.domain;
/**
* @ClassName : UserVideoBuy
* @Description :
* @Author : FJJ
* @Date: 2024-01-10 15:20
*/
public class UserVideoBuy {
private Integer id;
private Integer userId;
private Integer videoId;
private Long createTime;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getUserId() {
return userId;
}
public void setUserId(Integer userId) {
this.userId = userId;
}
public Integer getVideoId() {
return videoId;
}
public void setVideoId(Integer videoId) {
this.videoId = videoId;
}
public Long getCreateTime() {
return createTime;
}
public void setCreateTime(Long createTime) {
this.createTime = createTime;
}
public UserVideoBuy(Integer id, Integer userId, Integer videoId, Long createTime) {
this.id = id;
this.userId = userId;
this.videoId = videoId;
this.createTime = createTime;
}
public UserVideoBuy() {
}
}

View File

@ -1,61 +0,0 @@
package doctor.system.api.domain;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
/**
* @ClassName : UserVideoCollection
* @Description :
* @Author : FJJ
* @Date: 2024-01-10 14:28
*/
public class UserVideoCollection {
private Integer id;
private Integer userId;
private Integer videoId;
private Long createTime;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getUserId() {
return userId;
}
public void setUserId(Integer userId) {
this.userId = userId;
}
public Integer getVideoId() {
return videoId;
}
public void setVideoId(Integer videoId) {
this.videoId = videoId;
}
public Long getCreateTime() {
return createTime;
}
public void setCreateTime(Long createTime) {
this.createTime = createTime;
}
public UserVideoCollection(Integer id, Integer userId, Integer videoId, Long createTime) {
this.id = id;
this.userId = userId;
this.videoId = videoId;
this.createTime = createTime;
}
public UserVideoCollection() {
}
}

View File

@ -1,68 +0,0 @@
package doctor.system.api.domain;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
/**
* @ClassName : UserWallet
* @Description :
* @Author : FJJ
* @Date: 2024-01-10 20:30
*/
public class UserWallet {
private Integer id;
private Integer userId;
private Integer balance;
private Long updateTime;
private Integer version;
private Long createTime;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getUserId() {
return userId;
}
public void setUserId(Integer userId) {
this.userId = userId;
}
public Integer getBalance() {
return balance;
}
public void setBalance(Integer balance) {
this.balance = balance;
}
public Long getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Long updateTime) {
this.updateTime = updateTime;
}
public Integer getVersion() {
return version;
}
public void setVersion(Integer version) {
this.version = version;
}
public Long getCreateTime() {
return createTime;
}
public void setCreateTime(Long createTime) {
this.createTime = createTime;
}
}

View File

@ -1,110 +0,0 @@
package doctor.system.api.domain;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
/**
* @ClassName : Video
* @Description :
* @Author : FJJ
* @Date: 2024-01-10 15:59
*/
public class Video {
private Integer id;
private String title;
private Integer categoryId;
private String shearUrl;
private String abstracts;
private String originalUrl;
private Integer duration;
private Integer price;
private Long createTime;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public Integer getCategoryId() {
return categoryId;
}
public void setCategoryId(Integer categoryId) {
this.categoryId = categoryId;
}
public String getShearUrl() {
return shearUrl;
}
public void setShearUrl(String shearUrl) {
this.shearUrl = shearUrl;
}
public String getAbstracts() {
return abstracts;
}
public void setAbstracts(String abstracts) {
this.abstracts = abstracts;
}
public String getOriginalUrl() {
return originalUrl;
}
public void setOriginalUrl(String originalUrl) {
this.originalUrl = originalUrl;
}
public Integer getDuration() {
return duration;
}
public void setDuration(Integer duration) {
this.duration = duration;
}
public Integer getPrice() {
return price;
}
public void setPrice(Integer price) {
this.price = price;
}
public Long getCreateTime() {
return createTime;
}
public void setCreateTime(Long createTime) {
this.createTime = createTime;
}
public Video(Integer id, String title, Integer categoryId, String shearUrl, String abstracts, String originalUrl, Integer duration, Integer price, Long createTime) {
this.id = id;
this.title = title;
this.categoryId = categoryId;
this.shearUrl = shearUrl;
this.abstracts = abstracts;
this.originalUrl = originalUrl;
this.duration = duration;
this.price = price;
this.createTime = createTime;
}
public Video() {
}
}

View File

@ -1,60 +0,0 @@
package doctor.system.api.domain;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
/**
* @ClassName : VideoComment
* @Description :
* @Author : FJJ
* @Date: 2024-01-10 21:54
*/
public class VideoComment {
private Integer id;
private Integer userId;
private Integer videoId;
private String content;
private Date createTime;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getUserId() {
return userId;
}
public void setUserId(Integer userId) {
this.userId = userId;
}
public Integer getVideoId() {
return videoId;
}
public void setVideoId(Integer videoId) {
this.videoId = videoId;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
}

View File

@ -1,70 +0,0 @@
package doctor.system.api.domain;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
/**
* @ClassName : VideoCount
* @Description :
* @Author : FJJ
* @Date: 2024-01-10 16:24
*/
public class VideoCount {
private Integer id;
private Integer videoId;
private Integer buyNum;
private Integer collectionNum;
private Integer commentNum;
private Date createTime;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getVideoId() {
return videoId;
}
public void setVideoId(Integer videoId) {
this.videoId = videoId;
}
public Integer getBuyNum() {
return buyNum;
}
public void setBuyNum(Integer buyNum) {
this.buyNum = buyNum;
}
public Integer getCollectionNum() {
return collectionNum;
}
public void setCollectionNum(Integer collectionNum) {
this.collectionNum = collectionNum;
}
public Integer getCommentNum() {
return commentNum;
}
public void setCommentNum(Integer commentNum) {
this.commentNum = commentNum;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
}

View File

@ -1,34 +1,15 @@
package doctor.system.api.factory;
import doctor.common.core.domain.HealthR;
import doctor.common.core.domain.R;
import doctor.system.api.RemoteDoctorService;
import doctor.system.api.model.LoginUser;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;
@Component
public class RemoteDoctorFallbackFactory implements FallbackFactory<RemoteDoctorService> {
private static final Logger log = LoggerFactory.getLogger(RemoteDoctorFallbackFactory.class);
public class RemoteDoctorFallbackFactory implements RemoteDoctorService {
@Override
public RemoteDoctorService create(Throwable throwable)
{
log.error("文件服务调用失败:{}", throwable.getMessage());
return new RemoteDoctorService() {
@Override
public R<LoginUser> getDoctorInfo(String email) {
return R.fail("登录失败");
}
@Override
public R<LoginUser> getUser(String email) {
return R.fail("登录失败");
}
};
public R<LoginUser> getDoctorUserInfo(String email) {
return R.fail("登录超时");
}
}

View File

@ -36,13 +36,6 @@ public class RemoteUserFallbackFactory implements FallbackFactory<RemoteUserServ
{
return R.fail("注册用户失败:" + throwable.getMessage());
}
@Override
public R<LoginUser> getUser(String email) {
return R.fail("登录失败:" + throwable.getMessage());
}
};
}
}

View File

@ -1,12 +1,9 @@
package doctor.system.api.model;
import doctor.system.api.domain.Doctor;
import java.io.Serializable;
import java.util.Set;
import doctor.system.api.domain.Doctor;
import doctor.system.api.domain.SysUser;
import doctor.system.api.domain.User;
/**
*
@ -62,10 +59,6 @@ public class LoginUser implements Serializable
*/
private SysUser sysUser;
private Doctor doctor;
private User user;
public String getToken()
{
@ -92,22 +85,6 @@ public class LoginUser implements Serializable
return username;
}
public Doctor getDoctor() {
return doctor;
}
public void setDoctor(Doctor doctor) {
this.doctor = doctor;
}
public User getUser() {
return user;
}
public void setUser(User user) {
this.user = user;
}
public void setUsername(String username)
{
this.username = username;

View File

@ -1,24 +1,29 @@
package doctor.auth.controller;
import doctor.auth.service.HealthUserService;
import doctor.auth.vo.UserVo;
import doctor.auth.service.HealthService;
import doctor.auth.vo.DoctorUserVo;
import doctor.common.core.domain.HealthR;
import doctor.common.core.domain.R;
import doctor.common.security.service.TokenService;
import doctor.system.api.model.LoginUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import java.util.Map;
@RestController
@RequestMapping("/user/v1")
public class HealthUserController {
@RequestMapping("/doctor/v1")
public class HealthController {
@Autowired
private HealthUserService healthService;
private HealthService healthService;
@PostMapping("/login")
public HealthR<?> login(@RequestParam String email, @RequestParam String pwd) {
UserVo userInfo = healthService.login(email,pwd);
DoctorUserVo userInfo = healthService.login(email,pwd);
if (userInfo!=null){
return HealthR.ok(userInfo);
}else {

View File

@ -1,31 +0,0 @@
package doctor.auth.controller;
import doctor.auth.service.HealthDoctorService;
import doctor.auth.service.HealthUserService;
import doctor.auth.vo.DoctorVo;
import doctor.common.core.domain.HealthR;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/doctor/v1")
public class HealthDoctorController {
@Autowired
private HealthDoctorService healthDoctorService;
@PostMapping("/login")
public HealthR<?> login(@RequestParam String email, @RequestParam String pwd) {
DoctorVo userInfo = healthDoctorService.login(email,pwd);
if (userInfo!=null){
return HealthR.ok(userInfo,"登录成功");
}else {
return HealthR.fail("登录失败");
}
}
}

View File

@ -1,51 +0,0 @@
package doctor.auth.service;
import doctor.auth.util.RSAUtils;
import doctor.auth.util.RsaKey;
import doctor.auth.vo.DoctorVo;
import doctor.common.core.domain.HealthR;
import doctor.common.core.domain.R;
import doctor.common.security.service.TokenService;
import doctor.system.api.RemoteDoctorService;
import doctor.system.api.model.LoginUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import java.util.Map;
@Component
public class HealthDoctorService {
@Autowired
private RemoteDoctorService remoteDoctorService;
@Autowired
private TokenService tokenService;
public DoctorVo login(String email, String pwd) {
DoctorVo doctorVo = new DoctorVo();
R<LoginUser> userResult = remoteDoctorService.getDoctorInfo(email);
LoginUser data = userResult.getData();
String s="";
try {
s = RSAUtils.rsaDecrypt(pwd, RsaKey.PRIVATE_KEY);
} catch (Exception e) {
throw new RuntimeException(e);
}
if (s.equals(data.getDoctor().getPwd())){
Map<String, Object> token = tokenService.createToken(data);
String accessToken = (String) token.get("access_token");
doctorVo.setSessionId(accessToken);
doctorVo.setDoctorId(data.getSysUser().getUserId().intValue());
doctorVo.setUserName(data.getSysUser().getUserName());
doctorVo.setImagePic(data.getDoctor().getImagePic());
doctorVo.setJobTitle(data.getDoctor().getJobTitle());
doctorVo.setDepartmentId(data.getDoctor().getDepartmentId().intValue());
doctorVo.setInauguralHospital(data.getDoctor().getInauguralHospital());
doctorVo.setDepartmentName(data.getDoctor().getDepartment().getDepartmentName());
doctorVo.setInauguralHospital(data.getDoctor().getInauguralHospital());
doctorVo.setJiGuangPwd(s);
doctorVo.setWhetherHaveImagePic(2);
return doctorVo;
}
return null;
}
}

View File

@ -0,0 +1,50 @@
package doctor.auth.service;
import doctor.auth.util.RSAUtils;
import doctor.auth.util.RsaKey;
import doctor.auth.vo.DoctorUserVo;
import doctor.common.core.domain.R;
import doctor.common.security.service.TokenService;
import doctor.system.api.RemoteDoctorService;
import doctor.system.api.model.LoginUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import java.util.Map;
@Component
public class HealthService {
@Autowired
private RemoteDoctorService remoteDoctorService;
@Autowired
private TokenService tokenService;
public DoctorUserVo login(String email, String pwd) {
DoctorUserVo doctorUserVo = new DoctorUserVo();
R<LoginUser> userResult = remoteDoctorService.getDoctorUserInfo(email);
LoginUser data = userResult.getData();
String s="";
try {
s = RSAUtils.rsaDecrypt(pwd, RsaKey.PRIVATE_KEY);
} catch (Exception e) {
throw new RuntimeException(e);
}
if (s.equals(data.getSysUser().getPassword())){
Map<String, Object> token = tokenService.createToken(data);
String accessToken = (String) token.get("access_token");
doctorUserVo.setSessionId(accessToken);
doctorUserVo.setEmail(data.getSysUser().getEmail());
doctorUserVo.setUserId(data.getSysUser().getUserId().intValue());
doctorUserVo.setUserName(data.getSysUser().getUserName());
doctorUserVo.setNickName(data.getSysUser().getNickName());
doctorUserVo.setJiGuangPwd(s);
if (data.getSysUser().getSex()=="男"){
doctorUserVo.setSex(0);
}else {
doctorUserVo.setSex(1);
}
return doctorUserVo;
}
return null;
}
}

View File

@ -1,56 +0,0 @@
package doctor.auth.service;
import doctor.auth.util.RSAUtils;
import doctor.auth.util.RsaKey;
import doctor.auth.vo.UserVo;
import doctor.common.core.domain.R;
import doctor.common.security.service.TokenService;
import doctor.system.api.RemoteDoctorService;
import doctor.system.api.model.LoginUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import java.util.Map;
import java.util.UUID;
@Component
public class HealthUserService {
@Autowired
private RemoteDoctorService remoteDoctorUserService;
@Autowired
private TokenService tokenService;
public UserVo login(String email, String pwd) {
UserVo doctorUserVo = new UserVo();
R<LoginUser> userResult = remoteDoctorUserService.getUser(email);
LoginUser data = userResult.getData();
String s="";
try {
s = RSAUtils.rsaDecrypt(pwd, RsaKey.PRIVATE_KEY);
} catch (Exception e) {
throw new RuntimeException(e);
}
if (s.equals(data.getUser().getPwd())){
Map<String, Object> token = tokenService.createToken(data);
String accessToken = (String) token.get("access_token");
doctorUserVo.setSessionId(accessToken);
doctorUserVo.setEmail(data.getUser().getEmail());
doctorUserVo.setUserId(data.getUser().getId());
doctorUserVo.setUserName(data.getUser().getUserName());
doctorUserVo.setNickName(data.getUser().getNickName());
doctorUserVo.setAge(data.getUser().getAge());
doctorUserVo.setJiGuangPwd(s);
doctorUserVo.setHeadPic(data.getUser().getHeadPic());
doctorUserVo.setSex(data.getUser().getSex());
doctorUserVo.setHeight(data.getUser().getHeight());
doctorUserVo.setWeight(data.getUser().getWeight());
doctorUserVo.setFaceFlag(1);
UUID uuid = UUID.randomUUID();
String inviteCode = uuid.toString().replaceAll("-", "").substring(0, 8);
doctorUserVo.setInvitationCode(inviteCode);
doctorUserVo.setWhetherBingWeChat(2);
return doctorUserVo;
}
return null;
}
}

View File

@ -1,112 +0,0 @@
package doctor.auth.vo;
public class DoctorVo {
private int doctorId;
private String sessionId;
private String name;
private String userName;
private int reviewStatus;
private String jiGuangPwd;
private String imagePic;
private String inauguralHospital;
private String jobTitle;
private int departmentId;
private String departmentName;
private int whetherHaveImagePic;
public int getDoctorId() {
return doctorId;
}
public void setDoctorId(int doctorId) {
this.doctorId = doctorId;
}
public String getSessionId() {
return sessionId;
}
public void setSessionId(String sessionId) {
this.sessionId = sessionId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
public int getReviewStatus() {
return reviewStatus;
}
public void setReviewStatus(int reviewStatus) {
this.reviewStatus = reviewStatus;
}
public String getJiGuangPwd() {
return jiGuangPwd;
}
public void setJiGuangPwd(String jiGuangPwd) {
this.jiGuangPwd = jiGuangPwd;
}
public String getImagePic() {
return imagePic;
}
public void setImagePic(String imagePic) {
this.imagePic = imagePic;
}
public String getInauguralHospital() {
return inauguralHospital;
}
public void setInauguralHospital(String inauguralHospital) {
this.inauguralHospital = inauguralHospital;
}
public String getJobTitle() {
return jobTitle;
}
public void setJobTitle(String jobTitle) {
this.jobTitle = jobTitle;
}
public int getDepartmentId() {
return departmentId;
}
public void setDepartmentId(int departmentId) {
this.departmentId = departmentId;
}
public String getDepartmentName() {
return departmentName;
}
public void setDepartmentName(String departmentName) {
this.departmentName = departmentName;
}
public int getWhetherHaveImagePic() {
return whetherHaveImagePic;
}
public void setWhetherHaveImagePic(int whetherHaveImagePic) {
this.whetherHaveImagePic = whetherHaveImagePic;
}
}

View File

@ -1,130 +0,0 @@
package doctor.auth.vo;
public class UserVo {
private Integer userId;
private String sessionId;
private String nickName;
private String userName;
private String jiGuangPwd;
private String headPic;
private Integer sex;
private Integer age;
private Integer height;
private Integer weight;
private String email;
private Integer whetherBingWeChat;
private String invitationCode;
private Integer faceFlag;
public Integer getUserId() {
return userId;
}
public void setUserId(Integer userId) {
this.userId = userId;
}
public String getSessionId() {
return sessionId;
}
public void setSessionId(String sessionId) {
this.sessionId = sessionId;
}
public String getNickName() {
return nickName;
}
public void setNickName(String nickName) {
this.nickName = nickName;
}
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
public String getJiGuangPwd() {
return jiGuangPwd;
}
public void setJiGuangPwd(String jiGuangPwd) {
this.jiGuangPwd = jiGuangPwd;
}
public String getHeadPic() {
return headPic;
}
public void setHeadPic(String headPic) {
this.headPic = headPic;
}
public Integer getSex() {
return sex;
}
public void setSex(Integer sex) {
this.sex = sex;
}
public Integer getAge() {
return age;
}
public void setAge(Integer age) {
this.age = age;
}
public Integer getHeight() {
return height;
}
public void setHeight(Integer height) {
this.height = height;
}
public Integer getWeight() {
return weight;
}
public void setWeight(Integer weight) {
this.weight = weight;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public Integer getWhetherBingWeChat() {
return whetherBingWeChat;
}
public void setWhetherBingWeChat(Integer whetherBingWeChat) {
this.whetherBingWeChat = whetherBingWeChat;
}
public String getInvitationCode() {
return invitationCode;
}
public void setInvitationCode(String invitationCode) {
this.invitationCode = invitationCode;
}
public Integer getFaceFlag() {
return faceFlag;
}
public void setFaceFlag(Integer faceFlag) {
this.faceFlag = faceFlag;
}
}

View File

@ -15,11 +15,11 @@ spring:
discovery:
# 服务注册地址
server-addr: 101.34.77.101:8848
namespace: 9de208a6-cb30-41ae-a880-78196c99c050
namespace: 7e34f104-f333-4828-b36a-02146e521c9a
config:
# 配置中心地址
server-addr: 101.34.77.101:8848
namespace: 9de208a6-cb30-41ae-a880-78196c99c050
namespace: 7e34f104-f333-4828-b36a-02146e521c9a
# 配置文件格式
file-extension: yml
# 共享配置

View File

@ -113,15 +113,6 @@
<artifactId>swagger-annotations</artifactId>
</dependency>
<!-- https://mvnrepository.com/artifact/org.projectlombok/lombok -->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.30</version>
</dependency>
</dependencies>

View File

@ -51,10 +51,6 @@ public class Constants
*
*/
public static final Integer SUCCESS = 200;
/**
*
*/
/**
*

View File

@ -21,6 +21,5 @@ public class ServiceNameConstants
* serviceid
*/
public static final String FILE_SERVICE = "doctor-file";
public static final String FILE_DOCTOR = "doctor-health";
}

View File

@ -1,7 +1,7 @@
package doctor.common.core.domain;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import doctor.common.core.constant.Constants;
import java.io.Serializable;
@ -11,7 +11,6 @@ import java.io.Serializable;
*
* @author ruoyi
*/
@JsonPropertyOrder({ "result", "message", "status" })
public class HealthR<T> implements Serializable
{
private static final long serialVersionUID = 1L;
@ -22,11 +21,11 @@ public class HealthR<T> implements Serializable
/** 失败 */
public static final String FAIL = Constants.FAIL_HEALTH;
private T result;
private String status;
private String message;
private T result;
public static <T> HealthR<T> ok()
{

View File

@ -43,9 +43,9 @@ public class BaseController
/**
*
*/
protected void startPage()
protected void startPage(Integer page, Integer count)
{
PageUtils.startPage();
PageUtils.startPage(page,count);
}
/**

View File

@ -16,4 +16,5 @@ import doctor.common.swagger.config.SwaggerAutoConfiguration;
@Import({ SwaggerAutoConfiguration.class })
public @interface EnableCustomSwagger2
{
}

View File

@ -15,11 +15,11 @@ spring:
discovery:
# 服务注册地址
server-addr: 101.34.77.101:8848
namespace: 9de208a6-cb30-41ae-a880-78196c99c050
namespace: 7e34f104-f333-4828-b36a-02146e521c9a
config:
# 配置中心地址
server-addr: 101.34.77.101:8848
namespace: 9de208a6-cb30-41ae-a880-78196c99c050
namespace: 7e34f104-f333-4828-b36a-02146e521c9a
# 配置文件格式
file-extension: yml
# 共享配置

View File

@ -15,11 +15,11 @@ spring:
discovery:
# 服务注册地址
server-addr: 101.34.77.101:8848
namespace: 9de208a6-cb30-41ae-a880-78196c99c050
namespace: 7e34f104-f333-4828-b36a-02146e521c9a
config:
# 配置中心地址
server-addr: 101.34.77.101:8848
namespace: 9de208a6-cb30-41ae-a880-78196c99c050
namespace: 7e34f104-f333-4828-b36a-02146e521c9a
# 配置文件格式
file-extension: yml
# 共享配置

View File

@ -50,7 +50,7 @@ public class GenController extends BaseController
@GetMapping("/list")
public TableDataInfo genList(GenTable genTable)
{
startPage();
startPage(page, count);
List<GenTable> list = genTableService.selectGenTableList(genTable);
return getDataTable(list);
}
@ -79,7 +79,7 @@ public class GenController extends BaseController
@GetMapping("/db/list")
public TableDataInfo dataList(GenTable genTable)
{
startPage();
startPage(page, count);
List<GenTable> list = genTableService.selectDbTableList(genTable);
return getDataTable(list);
}

View File

@ -15,11 +15,11 @@ spring:
discovery:
# 服务注册地址
server-addr: 101.34.77.101:8848
namespace: 9de208a6-cb30-41ae-a880-78196c99c050
namespace: 7e34f104-f333-4828-b36a-02146e521c9a
config:
# 配置中心地址
server-addr: 101.34.77.101:8848
namespace: 9de208a6-cb30-41ae-a880-78196c99c050
namespace: 7e34f104-f333-4828-b36a-02146e521c9a
# 配置文件格式
file-extension: yml
# 共享配置

View File

@ -45,7 +45,7 @@ public class ${ClassName}Controller extends BaseController
#if($table.crud || $table.sub)
public TableDataInfo list(${ClassName} ${className})
{
startPage();
startPage(page, count);
List<${ClassName}> list = ${className}Service.select${ClassName}List(${className});
return getDataTable(list);
}

View File

@ -79,16 +79,6 @@
<artifactId>lombok</artifactId>
</dependency>
<dependency>
<groupId>doctor</groupId>
<artifactId>doctor-api-system</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-mail</artifactId>
</dependency>
</dependencies>

View File

@ -1,62 +0,0 @@
package doctor.controller;
import doctor.common.core.domain.HealthR;
import doctor.domain.entity.*;
import doctor.service.DepartmentService;
import doctor.service.DiseaseCategoryService;
import doctor.service.DiseaseKnowledgeService;
import doctor.service.HealthDepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
import static com.github.pagehelper.page.PageMethod.startPage;
@RestController
@RequestMapping("/knowledgeBase/v1")
public class HealthDepartmentController {
@Autowired
private HealthDepartmentService healthV1Service;
@Autowired
private DiseaseCategoryService diseaseCategoryService;
@Autowired
private DiseaseKnowledgeService diseaseKnowledgeService;
//罕见病症详情
@GetMapping("/findDiseaseKnowledge")
public HealthR<List<DiseaseKnowledge>> findDiseaseKnowledge(@RequestParam Integer diseaseCategoryId){
return HealthR.ok(diseaseKnowledgeService.findDiseaseKnowledge(diseaseCategoryId));
}
@GetMapping("/findDrugsCategoryList")
public HealthR<List<DrugsCategory>> findDrugsCategoryList(){
return HealthR.ok(diseaseKnowledgeService.findDrugsCategoryList());
}
@GetMapping("/findDrugsKnowledgeList")
public HealthR<List<DrugsCategory>> findDrugsKnowledgeList(@RequestParam Integer drugsCategoryId,
@RequestParam(value = "page",defaultValue = "1") Integer page,
@RequestParam(value = "count",defaultValue = "5") Integer count){
startPage(page,count);
List<DrugsCategory> list=diseaseKnowledgeService.findDrugsKnowledgeList(drugsCategoryId);
return HealthR.ok(list);
}
@GetMapping("/findDiseaseCategory")
public HealthR<List<DiseaseCategory>> findDiseaseCategory(@RequestParam Integer departmentId){
List<DiseaseCategory> list=diseaseCategoryService.findDiseaseCategory(departmentId);
return HealthR.ok(list);
}
@GetMapping("/findDepartment")
public HealthR<List<DepartmentEntity>> findDepartment(){
List<DepartmentEntity> departmentEntities=healthV1Service.findDepartment();
return HealthR.ok(departmentEntities);
}
}

View File

@ -1,45 +0,0 @@
package doctor.controller;
import doctor.common.core.domain.HealthR;
import doctor.domain.dto.ApplyJoinDto;
import doctor.domain.entity.Banners;
import doctor.domain.entity.DoctorJobTitleEntity;
import doctor.service.BannersService;
import doctor.service.HealthJobTitleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@RestController
@RequestMapping("/v1")
public class HealthJobTitleController {
@Autowired
private HealthJobTitleService healthJobTitleService;
@Autowired
private BannersService bannersService;
@GetMapping("/bannersShow")
public HealthR<List<Banners>> bannersShow(){
List<Banners> banners = bannersService.bannersShow();
return HealthR.ok(banners);
}
@GetMapping("/findJobTitleList")
public HealthR<List<DoctorJobTitleEntity>> findJobTitleList() {
List<DoctorJobTitleEntity> doctorJobTitleEntities=healthJobTitleService.findJobTitleList();
return HealthR.ok(doctorJobTitleEntities);
}
@PostMapping("/sendEmailCode")
public HealthR sendEmailCode(@RequestParam("email") String email) {
HealthR healthR= healthJobTitleService.sendEmailCode(email);
return HealthR.ok(healthR);
}
@PostMapping("/applyJoin")
public HealthR applyJoin(@RequestBody ApplyJoinDto applyJoinDto) {
HealthR healthR= healthJobTitleService.applyJoin(applyJoinDto);
return HealthR.ok(healthR);
}
}

View File

@ -1,46 +0,0 @@
package doctor.controller;
import com.baomidou.dynamic.datasource.annotation.DS;
import doctor.common.core.domain.HealthR;
import doctor.common.core.domain.R;
import doctor.system.api.domain.Doctor;
import doctor.service.DoctorUserService;
import doctor.system.api.domain.SysUser;
import doctor.system.api.domain.User;
import doctor.system.api.model.LoginUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@RestController
@RequestMapping("/doctor")
public class HealthLoginController {
@Autowired
private DoctorUserService iDoctorUserService;
@PostMapping("/getUser")
public R<LoginUser> getUser(@RequestParam String email) {
User user = iDoctorUserService.getUser(email);
LoginUser loginUser = new LoginUser();
SysUser sysUser = new SysUser();
sysUser.setUserId(Long.valueOf(user.getId()));
sysUser.setUserName(user.getNickName());
loginUser.setUser(user);
loginUser.setSysUser(sysUser);
return R.ok(loginUser);
}
@PostMapping("/getDoctor")
public R<LoginUser> getDoctor(@RequestParam String email) {
Doctor user = iDoctorUserService.getDoctor(email);
LoginUser loginUser = new LoginUser();
SysUser sysUser = new SysUser();
sysUser.setUserId(Long.valueOf(user.getId()));
sysUser.setUserName(user.getName());
loginUser.setDoctor(user);
loginUser.setSysUser(sysUser);
return R.ok(loginUser);
}
}

View File

@ -2,10 +2,15 @@ package doctor.controller;
import doctor.common.core.domain.HealthR;
import doctor.common.core.web.controller.BaseController;
import doctor.common.core.web.page.TableDataInfo;
import doctor.domain.dto.VideoDto;
import doctor.domain.entity.VideoCategoryEntity;
import doctor.domain.entity.VideoEntity;
import doctor.domain.vo.VideoCategoryVo;
import doctor.domain.vo.VideoVo;
import doctor.service.HealthUserVideoService;
import doctor.util.ConvertUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@ -26,9 +31,9 @@ public class HealthUserVideoController{
}
@GetMapping("/findVideoVoList")
public HealthR<List<VideoVo>> findVideoVoList(@RequestParam Integer categoryId,@RequestParam Integer page,@RequestParam Integer count){
startPage(page,count);
List<VideoVo> List = healthUserVideoService.findVideoVoList(categoryId);
public HealthR<List<VideoVo>> findVideoVoList(@RequestBody VideoDto videoDto){
startPage(videoDto.getPage(), videoDto.getCount());
List<VideoVo> List = healthUserVideoService.findVideoVoList(videoDto);
return HealthR.ok(List);
}

View File

@ -1,41 +0,0 @@
package doctor.controller;
import doctor.common.core.domain.HealthR;
import doctor.domain.entity.Information;
import doctor.domain.entity.InformationPlate;
import doctor.service.InformationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
import static com.github.pagehelper.page.PageMethod.startPage;
/**
* @BelongsProject: Medical_Treatment
* @BelongsPackage: doctor.controller
* @Author: jpz
* @CreateTime: 2024/1/11 16:19
*/
@RestController
@RequestMapping("/information/v1")
public class InformationController {
@Autowired
private InformationService informationService;
@GetMapping("/findInformationList")
public HealthR<List<Information>> findInformationList(@RequestParam Integer plateId,
@RequestParam(value = "page",defaultValue = "1") Integer page,
@RequestParam(value = "count",defaultValue = "5") Integer count){
startPage(page,count);
List<Information> list=informationService.findInformationList(plateId);
return HealthR.ok(list);
}
@GetMapping("/findInformationPlateList")
public HealthR<List<InformationPlate>> findInformationPlateList(){
List<InformationPlate> list=informationService.findInformationPlateList();
return HealthR.ok(list);
}
}

View File

@ -1,35 +0,0 @@
package doctor.controller;
import doctor.common.core.domain.HealthR;
import doctor.domain.vo.InquiryDetailsRecordVo;
import doctor.service.InquiryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
import static com.github.pagehelper.page.PageMethod.startPage;
/**
* @ClassName : InquiryController
* @Description :
* @Author : FJJ
* @Date: 2024-01-12 19:09
*/
@RestController
@RequestMapping("/user/inquiry/verify/v1")
public class InquiryController {
@Autowired
private InquiryService inquiryService;
//历史问诊记录列表
@GetMapping("/findHistoryInquiryRecord")
public HealthR<List<InquiryDetailsRecordVo>> findHistoryInquiryRecord(@RequestParam Integer page,@RequestParam Integer count){
startPage(page,count);
List<InquiryDetailsRecordVo> inquiryDetailsRecordVoList = inquiryService.findHistoryInquiryRecord();
return HealthR.ok(inquiryDetailsRecordVoList);
}
}

View File

@ -0,0 +1,40 @@
package doctor.controller;
import com.baomidou.dynamic.datasource.annotation.DS;
import doctor.common.core.domain.R;
import doctor.domain.entity.DoctorUser;
import doctor.service.IDoctorUserService;
import doctor.system.api.domain.SysUser;
import doctor.system.api.model.LoginUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/doctor")
@DS("master")
public class SysDoctorController {
@Autowired
private IDoctorUserService iDoctorUserService;
@PostMapping("/getUser")
public R<LoginUser> getUser(String email) {
DoctorUser user = iDoctorUserService.getUser(email);
LoginUser loginUser = new LoginUser();
SysUser sysUser = new SysUser();
sysUser.setUserId(Long.valueOf(user.getId()));
sysUser.setNickName(user.getNickName());
sysUser.setUserName(user.getUserName());
sysUser.setPhonenumber(user.getPhone());
sysUser.setPassword(user.getPwd());
if (user.getSex()==0){
sysUser.setSex("男");
}else {
sysUser.setSex("女");
}
loginUser.setSysUser(sysUser);
return R.ok(loginUser);
}
}

View File

@ -1,63 +0,0 @@
package doctor.controller;
import doctor.common.core.domain.HealthR;
import doctor.domain.entity.UserWalletEntity;
import doctor.domain.vo.UserVideoBuyVo;
import doctor.domain.vo.UserVideoCollectionVo;
import doctor.service.UserVideoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
import static com.github.pagehelper.page.PageMethod.startPage;
/**
* @ClassName : UserVideoController
* @Description :
* @Author : FJJ
* @Date: 2024-01-10 14:32
*/
@RestController
@RequestMapping("/user/verify/v1")
public class UserVideoController {
@Autowired
private UserVideoService userVideoService;
//用户视频收藏列表
@GetMapping("/findVideoCollectionList")
public HealthR<List<UserVideoCollectionVo>> findVideoCollectionList(@RequestParam Integer page, @RequestParam Integer count){
startPage(page,count);
List<UserVideoCollectionVo> userVideoCollectionVos=userVideoService.findVideoCollectionList();
return HealthR.ok(userVideoCollectionVos);
}
//用户取消视频收藏
@GetMapping("/cancelVideoCollection/{id}")
public HealthR cancelVideoCollection(@PathVariable Integer id){
userVideoService.cancelVideoCollection(id);
return HealthR.ok();
}
//用户购买视频列表
@GetMapping("/findUserVideoBuyList")
public HealthR<List<UserVideoBuyVo>>findUserVideoBuyList(@RequestParam Integer page, @RequestParam Integer count){
startPage(page,count);
List<UserVideoBuyVo> userVideoCollectionVos =userVideoService.findUserVideoBuyList();
return HealthR.ok(userVideoCollectionVos);
}
//用户删除购买的视频
@DeleteMapping("/deleteVideoBuy/{id}")
public HealthR deleteVideoBuy(@PathVariable Integer id){
userVideoService.deleteVideoBuy(id);
return HealthR.ok();
}
//我的钱包
@GetMapping("/findUserWallet")
public HealthR<List<UserWalletEntity>> findUserWallet(){
List<UserWalletEntity> userWallets = userVideoService.findUserWallet();
return HealthR.ok(userWallets);
}
}

View File

@ -1,42 +0,0 @@
package doctor.controller;
import doctor.common.core.domain.HealthR;
import doctor.common.core.domain.R;
import doctor.domain.entity.*;
import doctor.service.VideoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* @ClassName : VideoController
* @Description :
* @Author : FJJ
* @Date: 2024-01-10 15:58
*/
@RestController
@RequestMapping("/user/video")
public class VideoController {
@Autowired
private VideoService videoService;
//收藏健康讲堂视频列表
@PostMapping("/verify/v1/addUserVideoCollection/{videoId}")
public HealthR addUserVideoCollection(@RequestParam Integer videoId){
videoService.addUserVideoCollection(videoId);
return HealthR.ok();
}
//购买健康讲堂视频
@PostMapping("/verify/v1/videoBuy")
public HealthR videoBuy(@RequestParam Integer videoId, @RequestParam Integer price){
videoService.videoBuy(videoId,price);
return HealthR.ok();
}
// //视频评论列表
// @GetMapping("/v1/findVideoCommentList")
// public R<List<VideoCommentEntity>> findVideoCommentList(){
// List<VideoCommentEntity> videoCommentList = videoService.findVideoCommentList();
// return R.ok(videoCommentList);
// }
}

View File

@ -1,17 +0,0 @@
package doctor.domain.dto;
import lombok.Data;
@Data
public class ApplyJoinDto {
private String email;
private String code;
private String pwd1;
private String pwd2;
private String name;
private String inauguralHospital;
private Integer departmentId;
private Integer jobTitleId;
private String personalProfile;
private String goodFieId;
}

View File

@ -1,85 +0,0 @@
package doctor.domain.entity;
import java.util.Date;
/**
* @BelongsProject: Medical_Treatment
* @BelongsPackage: doctor.domain.entity
* @Author: jpz
* @CreateTime: 2024/1/10 15:12
*/
public class Banners {
private Integer id;
private String imageUrl;
private String title;
private String jumpUrl;
private String rank;
private Date startTime;
private Date endTime;
private Date createTime;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getImageUrl() {
return imageUrl;
}
public void setImageUrl(String imageUrl) {
this.imageUrl = imageUrl;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getJumpUrl() {
return jumpUrl;
}
public void setJumpUrl(String jumpUrl) {
this.jumpUrl = jumpUrl;
}
public String getRank() {
return rank;
}
public void setRank(String rank) {
this.rank = rank;
}
public Date getStartTime() {
return startTime;
}
public void setStartTime(Date startTime) {
this.startTime = startTime;
}
public Date getEndTime() {
return endTime;
}
public void setEndTime(Date endTime) {
this.endTime = endTime;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
}

View File

@ -1,57 +0,0 @@
package doctor.domain.entity;
import java.util.Date;
/**
* @BelongsProject: Medical_Treatment
* @BelongsPackage: doctor.domain.entity
* @Author: jpz
* @CreateTime: 2024/1/10 16:48
*/
public class Department {
private Integer id;
private String departmentName;
private String pic;
private Integer rank;
private Date createTime;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getDepartmentName() {
return departmentName;
}
public void setDepartmentName(String departmentName) {
this.departmentName = departmentName;
}
public String getPic() {
return pic;
}
public void setPic(String pic) {
this.pic = pic;
}
public Integer getRank() {
return rank;
}
public void setRank(Integer rank) {
this.rank = rank;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
}

View File

@ -1,20 +0,0 @@
package doctor.domain.entity;
import lombok.Data;
import java.util.Date;
@Data
public class DepartmentEntity {
private Integer id;
private String departmentName;
private String pic;
private Integer rank;
private Date createTime;
}

View File

@ -1,50 +0,0 @@
package doctor.domain.entity;
import java.util.Date;
/**
* @BelongsProject: Medical_Treatment
* @BelongsPackage: doctor.domain.entity
* @Author: jpz
* @CreateTime: 2024/1/10 17:12
*/
public class DiseaseCategory {
private Integer id;
private Integer departmentId;
private String name;
private Date createTime;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getDepartmentId() {
return departmentId;
}
public void setDepartmentId(Integer departmentId) {
this.departmentId = departmentId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
}

View File

@ -1,86 +0,0 @@
package doctor.domain.entity;
import org.w3c.dom.Text;
import java.util.Date;
/**
* @BelongsProject: Medical_Treatment
* @BelongsPackage: doctor.domain.entity
* @Author: jpz
* @CreateTime: 2024/1/10 21:36
*/
public class DiseaseKnowledge {
private Integer id;
private Integer diseaseCategoryId;
private Text pathology;
private Text symptom;
private Text benefitTaboo;
private Text chineseMedicineTreatment;
private Text westernMedicineTreatment;
private Date createTime;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getDiseaseCategoryId() {
return diseaseCategoryId;
}
public void setDiseaseCategoryId(Integer diseaseCategoryId) {
this.diseaseCategoryId = diseaseCategoryId;
}
public Text getPathology() {
return pathology;
}
public void setPathology(Text pathology) {
this.pathology = pathology;
}
public Text getSymptom() {
return symptom;
}
public void setSymptom(Text symptom) {
this.symptom = symptom;
}
public Text getBenefitTaboo() {
return benefitTaboo;
}
public void setBenefitTaboo(Text benefitTaboo) {
this.benefitTaboo = benefitTaboo;
}
public Text getChineseMedicineTreatment() {
return chineseMedicineTreatment;
}
public void setChineseMedicineTreatment(Text chineseMedicineTreatment) {
this.chineseMedicineTreatment = chineseMedicineTreatment;
}
public Text getWesternMedicineTreatment() {
return westernMedicineTreatment;
}
public void setWesternMedicineTreatment(Text westernMedicineTreatment) {
this.westernMedicineTreatment = westernMedicineTreatment;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
}

View File

@ -1,18 +0,0 @@
package doctor.domain.entity;
import lombok.Data;
import java.util.Date;
@Data
public class DoctorJobTitleEntity {
private Integer id;
private String jobTitle;
private Date createTime;
}

View File

@ -1,8 +1,8 @@
package doctor.domain.entity;
import java.util.Date;
import java.security.Timestamp;
public class DoctorUserEntity {
public class DoctorUser {
private int id;
private String phone;
@ -16,8 +16,8 @@ public class DoctorUserEntity {
private int height;
private int weight;
private String invitationCode;
private Date updateTime;
private Date createTime;
private Timestamp updateTime;
private Timestamp createTime;
public int getId() {
return id;
@ -115,19 +115,19 @@ public class DoctorUserEntity {
this.invitationCode = invitationCode;
}
public Date getUpdateTime() {
public Timestamp getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
public void setUpdateTime(Timestamp updateTime) {
this.updateTime = updateTime;
}
public Date getCreateTime() {
public Timestamp getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
public void setCreateTime(Timestamp createTime) {
this.createTime = createTime;
}
}

View File

@ -1,23 +0,0 @@
package doctor.domain.entity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.Date;
/**
* @BelongsProject: Medical_Treatment
* @BelongsPackage: doctor.domain.entity
* @Author: jpz
* @CreateTime: 2024/1/10 21:52
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DrugsCategory {
private Integer id;
private String name;
private Integer rank;
private Date createTime;
}

View File

@ -1,149 +0,0 @@
package doctor.domain.entity;
import org.w3c.dom.Text;
import java.util.Date;
/**
* @BelongsProject: Medical_Treatment
* @BelongsPackage: doctor.domain.entity
* @Author: jpz
* @CreateTime: 2024/1/10 22:00
*/
public class DrugsKnowledge {
private Integer id;
private Integer drugsCategoryId;
private String name;
private Text picture;
private String effect;
private Text taboo;
private String shape;
private String packing;
private Text component;
private Text usage;
private Text sideEffects;
private String storage;
private Text mindMatter;
private String approvalNumber;
private Date createTime;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getDrugsCategoryId() {
return drugsCategoryId;
}
public void setDrugsCategoryId(Integer drugsCategoryId) {
this.drugsCategoryId = drugsCategoryId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Text getPicture() {
return picture;
}
public void setPicture(Text picture) {
this.picture = picture;
}
public String getEffect() {
return effect;
}
public void setEffect(String effect) {
this.effect = effect;
}
public Text getTaboo() {
return taboo;
}
public void setTaboo(Text taboo) {
this.taboo = taboo;
}
public String getShape() {
return shape;
}
public void setShape(String shape) {
this.shape = shape;
}
public String getPacking() {
return packing;
}
public void setPacking(String packing) {
this.packing = packing;
}
public Text getComponent() {
return component;
}
public void setComponent(Text component) {
this.component = component;
}
public Text getUsage() {
return usage;
}
public void setUsage(Text usage) {
this.usage = usage;
}
public Text getSideEffects() {
return sideEffects;
}
public void setSideEffects(Text sideEffects) {
this.sideEffects = sideEffects;
}
public String getStorage() {
return storage;
}
public void setStorage(String storage) {
this.storage = storage;
}
public Text getMindMatter() {
return mindMatter;
}
public void setMindMatter(Text mindMatter) {
this.mindMatter = mindMatter;
}
public String getApprovalNumber() {
return approvalNumber;
}
public void setApprovalNumber(String approvalNumber) {
this.approvalNumber = approvalNumber;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
}

View File

@ -1,85 +0,0 @@
package doctor.domain.entity;
import java.util.Date;
/**
* @BelongsProject: Medical_Treatment
* @BelongsPackage: doctor.entity
* @Author: jpz
* @CreateTime: 2024/1/11 16:03
*/
public class Information {
private Integer id;
private Integer plateId;
private String title;
private String thumbnail;
private String content;
private String source;
private Date createTime;
private Date releaseTime;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getPlateId() {
return plateId;
}
public void setPlateId(Integer plateId) {
this.plateId = plateId;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getThumbnail() {
return thumbnail;
}
public void setThumbnail(String thumbnail) {
this.thumbnail = thumbnail;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
public String getSource() {
return source;
}
public void setSource(String source) {
this.source = source;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getReleaseTime() {
return releaseTime;
}
public void setReleaseTime(Date releaseTime) {
this.releaseTime = releaseTime;
}
}

View File

@ -1,23 +0,0 @@
package doctor.domain.entity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.Date;
/**
* @BelongsProject: Medical_Treatment
* @BelongsPackage: doctor.entity
* @Author: jpz
* @CreateTime: 2024/1/11 16:12
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class InformationPlate {
private Integer id;
private String name;
private String sort;
private Date createTime;
}

View File

@ -1,106 +0,0 @@
package doctor.domain.entity;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
/**
* @ClassName : InquiryDetailsRecordEntity
* @Description :
* @Author : FJJ
* @Date: 2024-01-12 17:26
*/
public class InquiryDetailsRecordEntity {
private Integer id;
private Integer inquiryId;
private Integer userId;
private Integer friendId;
private String askContent;
private String askImage;
private String voiceChat;
private Integer direction;
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date askTime;
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date createTime;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getInquiryId() {
return inquiryId;
}
public void setInquiryId(Integer inquiryId) {
this.inquiryId = inquiryId;
}
public Integer getUserId() {
return userId;
}
public void setUserId(Integer userId) {
this.userId = userId;
}
public Integer getFriendId() {
return friendId;
}
public void setFriendId(Integer friendId) {
this.friendId = friendId;
}
public String getAskContent() {
return askContent;
}
public void setAskContent(String askContent) {
this.askContent = askContent;
}
public String getAskImage() {
return askImage;
}
public void setAskImage(String askImage) {
this.askImage = askImage;
}
public String getVoiceChat() {
return voiceChat;
}
public void setVoiceChat(String voiceChat) {
this.voiceChat = voiceChat;
}
public Integer getDirection() {
return direction;
}
public void setDirection(Integer direction) {
this.direction = direction;
}
public Date getAskTime() {
return askTime;
}
public void setAskTime(Date askTime) {
this.askTime = askTime;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
}

View File

@ -1,75 +0,0 @@
package doctor.domain.entity;
import java.util.Date;
/**
* @ClassName : SickCircleCommentEntity
* @Description :
* @Author : FJJ
* @Date: 2024-01-12 19:57
*/
public class SickCircleCommentEntity {
private Integer id;
private Integer sickCircleId;
private Integer userId;
private String content;
private Date commentTime;
private Integer whetherDoctor;
private Long createTime;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getSickCircleId() {
return sickCircleId;
}
public void setSickCircleId(Integer sickCircleId) {
this.sickCircleId = sickCircleId;
}
public Integer getUserId() {
return userId;
}
public void setUserId(Integer userId) {
this.userId = userId;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
public Date getCommentTime() {
return commentTime;
}
public void setCommentTime(Date commentTime) {
this.commentTime = commentTime;
}
public Integer getWhetherDoctor() {
return whetherDoctor;
}
public void setWhetherDoctor(Integer whetherDoctor) {
this.whetherDoctor = whetherDoctor;
}
public Long getCreateTime() {
return createTime;
}
public void setCreateTime(Long createTime) {
this.createTime = createTime;
}
}

View File

@ -1,104 +0,0 @@
package doctor.domain.entity;
import java.util.Date;
/**
* @BelongsProject: Medical_Treatment
* @BelongsPackage: doctor.entity
* @Author: jpz
* @CreateTime: 2024/1/8 21:33
*/
public class UserAdoptCommentEntity {
private Integer id;
private Integer userId;
private Integer releaseUserId;
private String releaseUserName;
private String releaseUserHeadPic;
private Integer sickCircleId;
private String title;
private String disease;
private String content;
private Date createTime;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getUserId() {
return userId;
}
public void setUserId(Integer userId) {
this.userId = userId;
}
public Integer getReleaseUserId() {
return releaseUserId;
}
public void setReleaseUserId(Integer releaseUserId) {
this.releaseUserId = releaseUserId;
}
public String getReleaseUserName() {
return releaseUserName;
}
public void setReleaseUserName(String releaseUserName) {
this.releaseUserName = releaseUserName;
}
public String getReleaseUserHeadPic() {
return releaseUserHeadPic;
}
public void setReleaseUserHeadPic(String releaseUserHeadPic) {
this.releaseUserHeadPic = releaseUserHeadPic;
}
public Integer getSickCircleId() {
return sickCircleId;
}
public void setSickCircleId(Integer sickCircleId) {
this.sickCircleId = sickCircleId;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getDisease() {
return disease;
}
public void setDisease(String disease) {
this.disease = disease;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
}

View File

@ -1,78 +0,0 @@
package doctor.domain.entity;
import lombok.Data;
import java.util.Date;
/**
* @BelongsProject: Medical_Treatment
* @BelongsPackage: doctor.entity
* @Author: jpz
* @CreateTime: 2024/1/8 21:37
*/
public class UserArchivesEntity {
private Integer id;
private Integer userId;
private String bankCardNumber;
private String bankName;
private Integer bankCardType;
private Date updateTime;
private Date createTime;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getUserId() {
return userId;
}
public void setUserId(Integer userId) {
this.userId = userId;
}
public String getBankCardNumber() {
return bankCardNumber;
}
public void setBankCardNumber(String bankCardNumber) {
this.bankCardNumber = bankCardNumber;
}
public String getBankName() {
return bankName;
}
public void setBankName(String bankName) {
this.bankName = bankName;
}
public Integer getBankCardType() {
return bankCardType;
}
public void setBankCardType(Integer bankCardType) {
this.bankCardType = bankCardType;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
}

View File

@ -1,69 +0,0 @@
package doctor.domain.entity;
import lombok.Data;
import java.util.Date;
/**
* @BelongsProject: Medical_Treatment
* @BelongsPackage: doctor.entity
* @Author: jpz
* @CreateTime: 2024/1/8 21:40
*/
public class UserBindingLoginEntity {
private Integer id;
private Integer userId;
private Integer type;
private String openId;
private String unionId;
private Date createTime;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getUserId() {
return userId;
}
public void setUserId(Integer userId) {
this.userId = userId;
}
public Integer getType() {
return type;
}
public void setType(Integer type) {
this.type = type;
}
public String getOpenId() {
return openId;
}
public void setOpenId(String openId) {
this.openId = openId;
}
public String getUnionId() {
return unionId;
}
public void setUnionId(String unionId) {
this.unionId = unionId;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
}

View File

@ -1,78 +0,0 @@
package doctor.domain.entity;
import lombok.Data;
import java.util.Date;
/**
* @BelongsProject: Medical_Treatment
* @BelongsPackage: doctor.entity
* @Author: jpz
* @CreateTime: 2024/1/8 21:45
*/
public class UserConsumptionRecordEntity {
private Integer id;
private Integer userId;
private Integer type;
private Integer balance;
private Integer changeNum;
private String remark;
private Date createTime;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getUserId() {
return userId;
}
public void setUserId(Integer userId) {
this.userId = userId;
}
public Integer getType() {
return type;
}
public void setType(Integer type) {
this.type = type;
}
public Integer getBalance() {
return balance;
}
public void setBalance(Integer balance) {
this.balance = balance;
}
public Integer getChangeNum() {
return changeNum;
}
public void setChangeNum(Integer changeNum) {
this.changeNum = changeNum;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
}

View File

@ -1,51 +0,0 @@
package doctor.domain.entity;
import lombok.Data;
import java.util.Date;
/**
* @BelongsProject: Medical_Treatment
* @BelongsPackage: doctor.entity
* @Author: jpz
* @CreateTime: 2024/1/8 21:49
*/
public class UserDoctorFollowEntity {
private Integer id;
private Integer userId;
private Integer doctorId;
private Date createTime;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getUserId() {
return userId;
}
public void setUserId(Integer userId) {
this.userId = userId;
}
public Integer getDoctorId() {
return doctorId;
}
public void setDoctorId(Integer doctorId) {
this.doctorId = doctorId;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
}

View File

@ -1,87 +0,0 @@
package doctor.domain.entity;
import lombok.Data;
import java.util.Date;
/**
* @BelongsProject: Medical_Treatment
* @BelongsPackage: doctor.entity
* @Author: jpz
* @CreateTime: 2024/1/8 21:53
*/
public class UserDrawRecordEntity {
private Integer id;
private Integer userId;
private Double money;
private String bankCardNumber;
private String bankName;
private String remark;
private Integer status;
private Date createTime;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getUserId() {
return userId;
}
public void setUserId(Integer userId) {
this.userId = userId;
}
public Double getMoney() {
return money;
}
public void setMoney(Double money) {
this.money = money;
}
public String getBankCardNumber() {
return bankCardNumber;
}
public void setBankCardNumber(String bankCardNumber) {
this.bankCardNumber = bankCardNumber;
}
public String getBankName() {
return bankName;
}
public void setBankName(String bankName) {
this.bankName = bankName;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
}

View File

@ -1,35 +0,0 @@
package doctor.domain.entity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.Date;
/**
* @ClassName : UserEntity
* @Description :
* @Author : FJJ
* @Date: 2024-01-10 20:46
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserEntity {
private Integer id;
private String phone;
private String pwd;
private String email;
private String nickName;
private String userName;
private String headPic;
private Integer sex;
private Integer age;
private String height;
private String weight;
private String invitationCode;
private Date updateTime;
private Long createTime;
}

View File

@ -1,105 +0,0 @@
package doctor.domain.entity;
import lombok.Data;
import java.util.Date;
/**
* @BelongsProject: Medical_Treatment
* @BelongsPackage: doctor.entity
* @Author: jpz
* @CreateTime: 2024/1/8 21:56
*/
public class UserIdCardEntity {
private Integer id;
private Integer userId;
private String name;
private String sex;
private String nation;
private String birthday;
private String address;
private String idNumber;
private String issueOffice;
private Date createTime;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getUserId() {
return userId;
}
public void setUserId(Integer userId) {
this.userId = userId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getSex() {
return sex;
}
public void setSex(String sex) {
this.sex = sex;
}
public String getNation() {
return nation;
}
public void setNation(String nation) {
this.nation = nation;
}
public String getBirthday() {
return birthday;
}
public void setBirthday(String birthday) {
this.birthday = birthday;
}
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
public String getIdNumber() {
return idNumber;
}
public void setIdNumber(String idNumber) {
this.idNumber = idNumber;
}
public String getIssueOffice() {
return issueOffice;
}
public void setIssueOffice(String issueOffice) {
this.issueOffice = issueOffice;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
}

View File

@ -1,51 +0,0 @@
package doctor.domain.entity;
import lombok.Data;
import java.util.Date;
/**
* @BelongsProject: Medical_Treatment
* @BelongsPackage: doctor.entity
* @Author: jpz
* @CreateTime: 2024/1/8 22:02
*/
public class UserInfoCollectionEntity {
private Integer id;
private Integer userId;
private String infoId;
private Date createTime;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getUserId() {
return userId;
}
public void setUserId(Integer userId) {
this.userId = userId;
}
public String getInfoId() {
return infoId;
}
public void setInfoId(String infoId) {
this.infoId = infoId;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
}

View File

@ -1,56 +0,0 @@
package doctor.domain.entity;
/**
* @ClassName : UserVideoBuyEntity
* @Description :
* @Author : FJJ
* @Date: 2024-01-10 15:20
*/
public class UserVideoBuyEntity {
private Integer id;
private Integer userId;
private Integer videoId;
private Long createTime;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getUserId() {
return userId;
}
public void setUserId(Integer userId) {
this.userId = userId;
}
public Integer getVideoId() {
return videoId;
}
public void setVideoId(Integer videoId) {
this.videoId = videoId;
}
public Long getCreateTime() {
return createTime;
}
public void setCreateTime(Long createTime) {
this.createTime = createTime;
}
public UserVideoBuyEntity(Integer id, Integer userId, Integer videoId, Long createTime) {
this.id = id;
this.userId = userId;
this.videoId = videoId;
this.createTime = createTime;
}
public UserVideoBuyEntity() {
}
}

View File

@ -1,57 +0,0 @@
package doctor.domain.entity;
/**
* @ClassName : UserVideoCollectionEntity
* @Description :
* @Author : FJJ
* @Date: 2024-01-10 14:28
*/
public class UserVideoCollectionEntity {
private Integer id;
private Integer userId;
private Integer videoId;
private Long createTime;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getUserId() {
return userId;
}
public void setUserId(Integer userId) {
this.userId = userId;
}
public Integer getVideoId() {
return videoId;
}
public void setVideoId(Integer videoId) {
this.videoId = videoId;
}
public Long getCreateTime() {
return createTime;
}
public void setCreateTime(Long createTime) {
this.createTime = createTime;
}
public UserVideoCollectionEntity(Integer id, Integer userId, Integer videoId, Long createTime) {
this.id = id;
this.userId = userId;
this.videoId = videoId;
this.createTime = createTime;
}
public UserVideoCollectionEntity() {
}
}

View File

@ -1,64 +0,0 @@
package doctor.domain.entity;
/**
* @ClassName : UserWalletEntity
* @Description :
* @Author : FJJ
* @Date: 2024-01-10 20:30
*/
public class UserWalletEntity {
private Integer id;
private Integer userId;
private Integer balance;
private Long updateTime;
private Integer version;
private Long createTime;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getUserId() {
return userId;
}
public void setUserId(Integer userId) {
this.userId = userId;
}
public Integer getBalance() {
return balance;
}
public void setBalance(Integer balance) {
this.balance = balance;
}
public Long getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Long updateTime) {
this.updateTime = updateTime;
}
public Integer getVersion() {
return version;
}
public void setVersion(Integer version) {
this.version = version;
}
public Long getCreateTime() {
return createTime;
}
public void setCreateTime(Long createTime) {
this.createTime = createTime;
}
}

View File

@ -1,58 +1,22 @@
package doctor.domain.entity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
/**
* @ClassName : VideoCommentEntity
* @Description :
* @Author : FJJ
* @Date: 2024-01-10 21:54
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class VideoCommentEntity {
private Integer id;
private Integer userId;
private Integer videoId;
private String content;
private String content;
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private Date createTime;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getUserId() {
return userId;
}
public void setUserId(Integer userId) {
this.userId = userId;
}
public Integer getVideoId() {
return videoId;
}
public void setVideoId(Integer videoId) {
this.videoId = videoId;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
}

View File

@ -1,11 +1,5 @@
package doctor.domain.entity;
/**
* @ClassName : VideoEntity
* @Description :
* @Author : FJJ
* @Date: 2024-01-10 15:59
*/
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
@ -26,5 +20,7 @@ public class VideoEntity {
private String originalUrl;
private Integer duration;
private Integer price;
private Long createTime;
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private Date createTime;
}

View File

@ -1,50 +0,0 @@
package doctor.domain.vo;
import lombok.Data;
/**
* @BelongsProject: Medical_Treatment
* @BelongsPackage: doctor.domain.vo
* @Author: jpz
* @CreateTime: 2024/1/12 15:33
*/
@Data
public class BannersVo {
private String imageUrl;
private String jumpUrl;
private Integer rank;
private String title;
public String getImageUrl() {
return imageUrl;
}
public void setImageUrl(String imageUrl) {
this.imageUrl = imageUrl;
}
public String getJumpUrl() {
return jumpUrl;
}
public void setJumpUrl(String jumpUrl) {
this.jumpUrl = jumpUrl;
}
public Integer getRank() {
return rank;
}
public void setRank(Integer rank) {
this.rank = rank;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
}

View File

@ -1,23 +0,0 @@
package doctor.domain.vo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* @BelongsProject: Medical_Treatment
* @BelongsPackage: doctor.domain.vo
* @Author: jpz
* @CreateTime: 2024/1/12 15:37
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DepartmentVo {
private Integer id;
private String departmentName;
private String pic;
private Integer rank;
}

View File

@ -1,22 +0,0 @@
package doctor.domain.vo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* @BelongsProject: Medical_Treatment
* @BelongsPackage: doctor.domain.vo
* @Author: jpz
* @CreateTime: 2024/1/12 15:39
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DiseaseCategoryVo {
private Integer id;
private Integer departmentId;
private String name;
}

View File

@ -1,24 +0,0 @@
package doctor.domain.vo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* @BelongsProject: Medical_Treatment
* @BelongsPackage: doctor.domain.vo
* @Author: jpz
* @CreateTime: 2024/1/12 15:40
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DiseaseKnowledgeVo {
private Integer id;
private String pathology;
private String symptom;
private String benefitTaboo;
private String chineseMedicineTreatment;
private String westernMedicineTreatment;
}

View File

@ -1,21 +0,0 @@
package doctor.domain.vo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* @BelongsProject: Medical_Treatment
* @BelongsPackage: doctor.domain.vo
* @Author: jpz
* @CreateTime: 2024/1/12 15:49
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DrugsCategoryVo {
private Integer id;
private String name;
private Integer rank;
}

View File

@ -1,22 +0,0 @@
package doctor.domain.vo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* @BelongsProject: Medical_Treatment
* @BelongsPackage: doctor.domain.vo
* @Author: jpz
* @CreateTime: 2024/1/12 15:51
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DrugsKnowledgeVo {
private Integer id;
private Integer drugsCategoryId;
private String name;
private String picture;
}

View File

@ -1,21 +0,0 @@
package doctor.domain.vo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* @BelongsProject: Medical_Treatment
* @BelongsPackage: doctor.domain.vo
* @Author: jpz
* @CreateTime: 2024/1/12 15:59
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class InformationPlateVo {
private Integer id;
private String name;
private Integer sort;
}

View File

@ -1,23 +0,0 @@
package doctor.domain.vo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* @BelongsProject: Medical_Treatment
* @BelongsPackage: doctor.domain.vo
* @Author: jpz
* @CreateTime: 2024/1/12 15:57
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class InformationVo {
private Integer id;
private String title;
private String thumbnail;
private String source;
private long releaseTime;
}

View File

@ -1,100 +0,0 @@
package doctor.domain.vo;
/**
* @ClassName : InquiryDetailsRecordVo
* @Description :
* @Author : FJJ
* @Date: 2024-01-12 19:02
*/
public class InquiryDetailsRecordVo {
private Integer recordId;
private Integer doctorId;
private String imagePic;
private String doctorName;
private String department;
private String jobTitle;
private Integer evaluateStatus;
private String userName;
private String jiGuangPwd;
private Long inquiryTime;
public Integer getRecordId() {
return recordId;
}
public void setRecordId(Integer recordId) {
this.recordId = recordId;
}
public Integer getDoctorId() {
return doctorId;
}
public void setDoctorId(Integer doctorId) {
this.doctorId = doctorId;
}
public String getImagePic() {
return imagePic;
}
public void setImagePic(String imagePic) {
this.imagePic = imagePic;
}
public String getDoctorName() {
return doctorName;
}
public void setDoctorName(String doctorName) {
this.doctorName = doctorName;
}
public String getDepartment() {
return department;
}
public void setDepartment(String department) {
this.department = department;
}
public String getJobTitle() {
return jobTitle;
}
public void setJobTitle(String jobTitle) {
this.jobTitle = jobTitle;
}
public Integer getEvaluateStatus() {
return evaluateStatus;
}
public void setEvaluateStatus(Integer evaluateStatus) {
this.evaluateStatus = evaluateStatus;
}
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
public String getJiGuangPwd() {
return jiGuangPwd;
}
public void setJiGuangPwd(String jiGuangPwd) {
this.jiGuangPwd = jiGuangPwd;
}
public Long getInquiryTime() {
return inquiryTime;
}
public void setInquiryTime(Long inquiryTime) {
this.inquiryTime = inquiryTime;
}
}

View File

@ -1,11 +0,0 @@
package doctor.domain.vo;
/**
* @ClassName : UserArchivesVo
* @Description :
* @Author : FJJ
* @Date: 2024-01-12 18:52
*/
public class UserArchivesVo {
private Integer recordId;
}

View File

@ -1,64 +0,0 @@
package doctor.domain.vo;
/**
* @ClassName : UserVideoBuyVo
* @Description :
* @Author : FJJ
* @Date: 2024-01-12 16:37
*/
public class UserVideoBuyVo {
private Integer id;
private Integer videoId;
private String title;
private String original;
private Integer duration;
private Long createTime;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getVideoId() {
return videoId;
}
public void setVideoId(Integer videoId) {
this.videoId = videoId;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getOriginal() {
return original;
}
public void setOriginal(String original) {
this.original = original;
}
public Integer getDuration() {
return duration;
}
public void setDuration(Integer duration) {
this.duration = duration;
}
public Long getCreateTime() {
return createTime;
}
public void setCreateTime(Long createTime) {
this.createTime = createTime;
}
}

View File

@ -1,91 +0,0 @@
package doctor.domain.vo;
/**
* @ClassName : UserVideoCollectionVo
* @Description :
* @Author : FJJ
* @Date: 2024-01-12 16:11
*/
public class UserVideoCollectionVo {
private Integer id;
private String title;
private String shearUrl;
private String original;
private Integer price;
private Integer duration;
private Integer whetherBuy;
private Integer buyNum;
private Long createTime;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getShearUrl() {
return shearUrl;
}
public void setShearUrl(String shearUrl) {
this.shearUrl = shearUrl;
}
public String getOriginal() {
return original;
}
public void setOriginal(String original) {
this.original = original;
}
public Integer getPrice() {
return price;
}
public void setPrice(Integer price) {
this.price = price;
}
public Integer getDuration() {
return duration;
}
public void setDuration(Integer duration) {
this.duration = duration;
}
public Integer getWhetherBuy() {
return whetherBuy;
}
public void setWhetherBuy(Integer whetherBuy) {
this.whetherBuy = whetherBuy;
}
public Integer getBuyNum() {
return buyNum;
}
public void setBuyNum(Integer buyNum) {
this.buyNum = buyNum;
}
public Long getCreateTime() {
return createTime;
}
public void setCreateTime(Long createTime) {
this.createTime = createTime;
}
}

View File

@ -1,25 +0,0 @@
package doctor.domain.vo;
import lombok.Data;
import org.apache.catalina.User;
/**
* @BelongsProject: Medical_Treatment
* @BelongsPackage: doctor.vo
* @Author: jpz
* @CreateTime: 2024/1/8 20:41
*/
@Data
public class UserVo {
private String pwd;
//邮箱
private String email;
//昵称
private String nickName;
//验证码
private String code;
public static User toUser(UserVo userVo) {
return null;
}
}

View File

@ -1,17 +0,0 @@
package doctor.mapper;
import doctor.domain.entity.Banners;
import org.mybatis.spring.annotation.MapperScan;
import java.util.List;
/**
* @BelongsProject: Medical_Treatment
* @BelongsPackage: doctor.mapper
* @Author: jpz
* @CreateTime: 2024/1/10 16:12
*/
@MapperScan
public interface BannersMapper {
List<Banners> bannersShow();
}

View File

@ -1,18 +0,0 @@
package doctor.mapper;
import doctor.domain.entity.Department;
import org.mybatis.spring.annotation.MapperScan;
import java.util.List;
/**
* @BelongsProject: Medical_Treatment
* @BelongsPackage: doctor.mapper
* @Author: jpz
* @CreateTime: 2024/1/10 16:54
*/
@MapperScan
public interface DepartmentMapper {
List<Department> list();
}

View File

@ -1,18 +0,0 @@
package doctor.mapper;
import doctor.domain.entity.DiseaseCategory;
import org.mybatis.spring.annotation.MapperScan;
import java.util.List;
/**
* @BelongsProject: Medical_Treatment
* @BelongsPackage: doctor.mapper
* @Author: jpz
* @CreateTime: 2024/1/10 20:23
*/
@MapperScan
public interface DiseaseCategoryMapper {
List<DiseaseCategory> list(Integer departmentId);
}

View File

@ -1,26 +0,0 @@
package doctor.mapper;
import doctor.domain.entity.DiseaseKnowledge;
import doctor.domain.entity.DrugsCategory;
import doctor.domain.entity.Information;
import doctor.domain.entity.InformationPlate;
import org.mybatis.spring.annotation.MapperScan;
import java.util.List;
/**
* @BelongsProject: Medical_Treatment
* @BelongsPackage: doctor.mapper
* @Author: jpz
* @CreateTime: 2024/1/10 21:42
*/
@MapperScan
public interface DiseaseKnowledgeMapper {
List<DiseaseKnowledge> findDiseaseKnowledge(Integer diseaseCategoryId);
List<DrugsCategory> findDrugsCategoryList();
List<DrugsCategory> findDrugsKnowledgeList(Integer drugsCategoryId);
}

View File

@ -1,16 +0,0 @@
package doctor.mapper;
import doctor.system.api.domain.Department;
import doctor.system.api.domain.Doctor;
import doctor.system.api.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface DoctorUserMapper {
User selectUserByEmail(@Param("email") String email);
Doctor selectDoctorByEmail(String email);
Department findDepartmentByDoctorDepartmentId(Integer departmentId);
}

View File

@ -1,12 +0,0 @@
package doctor.mapper;
import doctor.domain.entity.DepartmentEntity;
import org.mybatis.spring.annotation.MapperScan;
import java.util.List;
@MapperScan
public interface HealthDepartmentMapper {
List<DepartmentEntity> findDepartments();
}

View File

@ -1,14 +0,0 @@
package doctor.mapper;
import doctor.domain.entity.DoctorJobTitleEntity;
import doctor.system.api.domain.Doctor;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
@Mapper
public interface HealthJobTitleMapper {
List<DoctorJobTitleEntity> findJobTitleList();
void insertDoctor(Doctor doctor);
}

View File

@ -12,5 +12,5 @@ import java.util.List;
public interface HealthUserVideoMapper {
List<VideoCategoryEntity> findVideoCategoryList();
List<VideoEntity> findVideoVoList(@Param("categoryId") Integer categoryId);
List<VideoEntity> findVideoVoList(VideoDto videoDto);
}

View File

@ -0,0 +1,10 @@
package doctor.mapper;
import doctor.domain.entity.DoctorUser;
import org.apache.ibatis.annotations.Param;
import org.mybatis.spring.annotation.MapperScan;
@MapperScan
public interface IDoctorUserMapper {
DoctorUser selectDoctorUserByEmail(@Param("email") String email);
}

View File

@ -1,21 +0,0 @@
package doctor.mapper;
import doctor.domain.entity.Information;
import doctor.domain.entity.InformationPlate;
import org.mybatis.spring.annotation.MapperScan;
import java.util.List;
/**
* @BelongsProject: Medical_Treatment
* @BelongsPackage: doctor.mapper
* @Author: jpz
* @CreateTime: 2024/1/11 16:22
*/
@MapperScan
public interface InformationMapper {
List<Information> findInformationList(Integer plateId);
List<InformationPlate> findInformationPlateList();
}

View File

@ -1,17 +0,0 @@
package doctor.mapper;
import doctor.domain.entity.InquiryDetailsRecordEntity;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
/**
* @ClassName : InquiryMapper
* @Description :
* @Author : FJJ
* @Date: 2024-01-12 19:18
*/
@Mapper
public interface InquiryMapper {
List<InquiryDetailsRecordEntity> findHistoryInquiryRecord();
}

View File

@ -1,28 +0,0 @@
package doctor.mapper;
import doctor.domain.entity.UserVideoBuyEntity;
import doctor.domain.entity.UserVideoCollectionEntity;
import doctor.domain.entity.UserWalletEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* @ClassName : UserVideoMapper
* @Description :
* @Author : FJJ
* @Date: 2024-01-10 14:33
*/
@Mapper
public interface UserVideoMapper {
List<UserVideoCollectionEntity> findVideoCollectionList();
void cancelVideoCollection(@Param("id") Integer id);
List<UserVideoBuyEntity> findUserVideoBuyList();
void deleteVideoBuy(@Param("id") Integer id);
List<UserWalletEntity> findUserWallet();
}

View File

@ -1,38 +0,0 @@
package doctor.mapper;
import doctor.domain.entity.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* @ClassName : VideoMapper
* @Description :
* @Author : FJJ
* @Date: 2024-01-10 16:03
*/
@Mapper
public interface VideoMapper {
void addUserVideoCollection(@Param("userId") Integer userId, @Param("videoId") Integer videoId);
VideoEntity findById(@Param("videoId") Integer videoId);
VideoCountEntity FindVideoId(@Param("id") Integer id);
void updateVideoCount(VideoCountEntity videoCount);
UserEntity FindById(@Param("userId") Integer userId);
UserWalletEntity FindUserWallet(@Param("id") Integer id);
void updateUserWallet(@Param("newblance") int newblance, @Param("id") Integer id);
// UserWalletEntity FindById(@Param("userId") Integer userId);
}

View File

@ -1,18 +0,0 @@
package doctor.service;
import doctor.domain.entity.Banners;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* @BelongsProject: Medical_Treatment
* @BelongsPackage: doctor.service
* @Author: jpz
* @CreateTime: 2024/1/10 16:10
*/
public interface BannersService {
List<Banners> bannersShow();
}

View File

@ -1,16 +0,0 @@
package doctor.service;
import doctor.domain.entity.Department;
import java.util.List;
/**
* @BelongsProject: Medical_Treatment
* @BelongsPackage: doctor.service
* @Author: jpz
* @CreateTime: 2024/1/10 16:52
*/
public interface DepartmentService {
List<Department> findDepartment();
}

Some files were not shown because too many files have changed in this diff Show More