parent
980cfee63e
commit
321772afa7
@ -0,0 +1,15 @@
|
||||
package com.softegg.freetogo.Evaluate.Dao;
|
||||
|
||||
import com.softegg.freetogo.Evaluate.bean.Evaluations;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
|
||||
/**
|
||||
* @description: 继承Jpa数据库接口类
|
||||
* @author: zhanglinhao
|
||||
* @date: 2024/5/10 9:27
|
||||
*/
|
||||
public interface EvaluateRepository extends JpaRepository<Evaluations, Integer> {
|
||||
// List<Evaluations> findByEditorPhone(String phone);
|
||||
|
||||
// List<Evaluations> findByEditedPhone(String phone);
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
package com.softegg.freetogo.Evaluate.bean;
|
||||
|
||||
import jakarta.persistence.*;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* @description:
|
||||
* @author:zhanglinhao
|
||||
* @date:2024/5/10 9:07
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "evaluation")
|
||||
@Setter
|
||||
@Getter
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class Evaluations {
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
private int eid;//评价id
|
||||
@Column(name = "createtime")
|
||||
private String ct;//创建日期
|
||||
@Column(name = "modifytime")
|
||||
private String mt;//编辑日期
|
||||
@Column
|
||||
private String ebody;//评价本体
|
||||
@Column
|
||||
private int satisfaction;//满意度整数1-5
|
||||
}
|
@ -0,0 +1,115 @@
|
||||
package com.softegg.freetogo.Evaluate.controller;
|
||||
|
||||
import com.softegg.freetogo.Evaluate.bean.Evaluations;
|
||||
import com.softegg.freetogo.Evaluate.service.EvaluateService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @description: 对评价的操作
|
||||
* @author: zhanglinhao
|
||||
* @date: 2024/5/11 17:33
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/evaluate")
|
||||
public class EvaluationController {
|
||||
@Autowired
|
||||
EvaluateService evaluateService;
|
||||
|
||||
/**
|
||||
* @description: 获取所有需求
|
||||
* @param: null
|
||||
* @return: java.util.List<com.softegg.freetogo.Evaluate.bean.Evaluations>
|
||||
* @author: zhanglinhao
|
||||
* @date: 2024/5/12 0:11
|
||||
*/
|
||||
@GetMapping("findAllEvaluation")
|
||||
public List<Evaluations> findAllEvaluation() {
|
||||
return evaluateService.evaluationList();
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 添加评价
|
||||
* @param: ebody
|
||||
* @return: void
|
||||
* @author: zhanglinhao
|
||||
* @date: 2024/5/12 0:28
|
||||
*/
|
||||
@PostMapping("addEvaluation")
|
||||
public void addEvaluation(@RequestBody Map<String, String> ebody) {
|
||||
LocalDateTime currentTime = LocalDateTime.now();
|
||||
Evaluations evaluation = new Evaluations();
|
||||
evaluation.setEid(Integer.parseInt(ebody.get("eid")));
|
||||
evaluation.setEbody(ebody.get("ebody"));
|
||||
evaluation.setSatisfaction(Integer.parseInt(ebody.get("satisfaction")));
|
||||
evaluation.setCt(currentTime.toString());
|
||||
evaluation.setMt(currentTime.toString());
|
||||
evaluateService.addEvaluation(evaluation);
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 获取该用户对别人的评价
|
||||
* @param: phone
|
||||
* @return: java.util.List<com.softegg.freetogo.Evaluate.bean.Evaluations>
|
||||
* @author: zhanglinhao
|
||||
* @date: 2024/5/12 0:30
|
||||
*/
|
||||
// @GetMapping("evaluationByPhone")
|
||||
// public List<Evaluations> evaluationByPhone(String phone) {
|
||||
// return evaluateService.getEListByPhone(phone);
|
||||
// }
|
||||
@GetMapping("getEvaluation")
|
||||
public Evaluations getEvaluation(int eid) {
|
||||
return evaluateService.getEvaluationById(eid);
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 编辑评论
|
||||
* @param: eid
|
||||
* @param: ebody
|
||||
* @return: void
|
||||
* @author: zhanglinhao
|
||||
* @date: 2024/5/12 13:31
|
||||
*/
|
||||
@PostMapping("editEvaluation")
|
||||
public void editEvaluation(@RequestBody Map<String, String> ebody) {
|
||||
System.out.println("接收的json:" + ebody);
|
||||
LocalDateTime currentTime = LocalDateTime.now();
|
||||
Evaluations evaluation = new Evaluations(Integer.parseInt(ebody.get("eid")), ebody.get("ct"), currentTime.toString(), ebody.get("ebody"), Integer.parseInt(ebody.get("satisfaction")));
|
||||
evaluateService.editEvaluation(evaluation);
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 删除评论
|
||||
* @param: eid
|
||||
* @return: void
|
||||
* @author: zhanglinhao
|
||||
* @date: 2024/5/12 13:32
|
||||
*/
|
||||
@GetMapping("deleteEvaluation")
|
||||
public void deleteEvaluation(int eid) {
|
||||
evaluateService.deleteEvaluation(eid);
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 获取该用户的受满意程度
|
||||
* @param: phone
|
||||
* @return: int
|
||||
* @author: zhanglinhao
|
||||
* @date: 2024/5/12 13:39
|
||||
*/
|
||||
// @GetMapping("getSatisfaction")
|
||||
// public String getSatisfaction(String phone) {
|
||||
// List<Evaluations> elist = evaluateService.getEvaluatedByPhone(phone);
|
||||
// float sumOfSatisfaction = 0;
|
||||
// for (Evaluations evaluation : elist) {
|
||||
// sumOfSatisfaction += evaluation.getSatisfaction();
|
||||
// }
|
||||
// System.out.println("查询满意度:"+ sumOfSatisfaction);
|
||||
// return Float.toString(sumOfSatisfaction /elist.size());
|
||||
// }
|
||||
}
|
@ -0,0 +1,27 @@
|
||||
package com.softegg.freetogo.Evaluate.service;
|
||||
|
||||
import com.softegg.freetogo.Evaluate.bean.Evaluations;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @description:
|
||||
* @author:zhanglinhao
|
||||
* @date:2024/5/10 8:52
|
||||
*/
|
||||
@Service
|
||||
public interface EvaluateService {
|
||||
List<Evaluations> evaluationList();//获取所有评论
|
||||
|
||||
// List<Evaluations> getEListByPhone(String phone);//根据电话筛选评价
|
||||
|
||||
// List<Evaluations> getEvaluatedByPhone(String phone);
|
||||
Evaluations getEvaluationById(int eid);//根据id获取评论
|
||||
|
||||
void addEvaluation(Evaluations evaluation);//添加评论
|
||||
|
||||
void editEvaluation(Evaluations evaluation);//编辑评论
|
||||
|
||||
void deleteEvaluation(int eid);//删除评论
|
||||
}
|
@ -0,0 +1,112 @@
|
||||
package com.softegg.freetogo.Evaluate.service;
|
||||
|
||||
import com.softegg.freetogo.Evaluate.Dao.EvaluateRepository;
|
||||
import com.softegg.freetogo.Evaluate.bean.Evaluations;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @description:
|
||||
* @author:zhanglinhao
|
||||
* @date:2024/5/10 9:25
|
||||
*/
|
||||
@Component
|
||||
public class EvaluateServiceImpl implements EvaluateService {
|
||||
|
||||
@Autowired
|
||||
EvaluateRepository evaluateRepository;
|
||||
|
||||
/**
|
||||
* @description: 获取所有评论
|
||||
* @param: null
|
||||
* @return: void
|
||||
* @author: zhanglinhao
|
||||
* @date: 2024/5/10 9:25
|
||||
*/
|
||||
@Override
|
||||
public List<Evaluations> evaluationList() {
|
||||
System.out.println("查询评论");
|
||||
return evaluateRepository.findAll();
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 根据id获取评论
|
||||
* @param: eid
|
||||
* @return: com.softegg.freetogo.Evaluate.bean.Evaluations
|
||||
* @author: zhanglinhao
|
||||
* @date: 2024/5/15 8:13
|
||||
*/
|
||||
@Override
|
||||
public Evaluations getEvaluationById(int eid) {
|
||||
return evaluateRepository.findById(eid).get();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @description: 根据电话筛选评价
|
||||
* @param: phone
|
||||
* @return: java.util.List<com.softegg.freetogo.Evaluate.bean.Evaluations>
|
||||
* @author: zhanglinhao
|
||||
* @date: 2024/5/11 16:28
|
||||
*/
|
||||
// @Override
|
||||
// public List<Evaluations> getEListByPhone(String phone) {
|
||||
// System.out.println("查询" + phone + "的评论");
|
||||
// return evaluateRepository.findByEditorPhone(phone);
|
||||
// }
|
||||
|
||||
/**
|
||||
* @description: 获取该用户所有被他人评价的评价
|
||||
* @param: phone
|
||||
* @return: java.util.List<com.softegg.freetogo.Evaluate.bean.Evaluations>
|
||||
* @author: zhanglinhao
|
||||
* @date: 2024/5/12 21:21
|
||||
*/
|
||||
// @Override
|
||||
// public List<Evaluations> getEvaluatedByPhone(String phone) {
|
||||
// return evaluateRepository.findByEditedPhone(phone);
|
||||
// }
|
||||
|
||||
/**
|
||||
* @description: 添加评论
|
||||
* @param: evaluation
|
||||
* @return: void
|
||||
* @author: zhanglinhao
|
||||
* @date: 2024/5/10 21:20
|
||||
*/
|
||||
@Override
|
||||
public void addEvaluation(Evaluations evaluation) {
|
||||
evaluateRepository.save(evaluation);
|
||||
System.out.println("添加评论:" + evaluation.getEbody());
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 编辑评论
|
||||
* @param: eid
|
||||
* @return: void
|
||||
* @author: zhanglinhao
|
||||
* @date: 2024/5/11 17:10
|
||||
*/
|
||||
@Override
|
||||
public void editEvaluation(Evaluations evaluation) {
|
||||
int eid = evaluation.getEid();
|
||||
System.out.println("编辑评论:" + eid);
|
||||
evaluateRepository.save(evaluation);
|
||||
System.out.println("编辑成功:" + eid);
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 删除评论
|
||||
* @param: eid
|
||||
* @return: void
|
||||
* @author: zhanglinhao
|
||||
* @date: 2024/5/11 17:28
|
||||
*/
|
||||
@Override
|
||||
public void deleteEvaluation(int eid) {
|
||||
evaluateRepository.deleteById(eid);
|
||||
System.out.println("删除评论:" + eid);
|
||||
}
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package com.softegg.freetogo.FeedBack;
|
||||
|
||||
/**
|
||||
* @description:
|
||||
* @author: zhanglinhao
|
||||
* @date: 2024/5/20 11:14
|
||||
*/
|
||||
public class bean {
|
||||
}
|
@ -0,0 +1,77 @@
|
||||
package com.softegg.freetogo.Login.controller;
|
||||
|
||||
import com.softegg.freetogo.Login.service.LoginService;
|
||||
import com.softegg.freetogo.User.Dao.GuidesRepository;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @description:登录服务前后端交互
|
||||
* @author:zhanglinhao
|
||||
* @date:2024/5/9 9:35
|
||||
*/
|
||||
@RestController
|
||||
//@CrossOrigin(origins = "*")
|
||||
@RequestMapping("/Login")
|
||||
public class LoginController {
|
||||
|
||||
@Autowired
|
||||
LoginService loginService;
|
||||
|
||||
@Autowired
|
||||
GuidesRepository guidesRepository;
|
||||
|
||||
/**
|
||||
* @description: 登录的交互逻辑
|
||||
* @param: map
|
||||
* @return: java.lang.String
|
||||
* @author: zhanglinhao
|
||||
* @date: 2024/5/9 22:44
|
||||
*/
|
||||
@PostMapping("login")
|
||||
public int Login(@RequestBody Map<String, Object> map) {
|
||||
System.out.println(map);
|
||||
System.out.println("phone:" + map.get("phone").toString());
|
||||
System.out.println("password" + map.get("password").toString());
|
||||
int tag = loginService.loginAccount(map.get("phone").toString(), map.get("password").toString());
|
||||
System.out.println("LoginTag:" + tag);
|
||||
return switch (tag) {
|
||||
case 1000 -> 1;//登陆成功
|
||||
case 1001 -> 2;//密码或账号错误
|
||||
case 1002 -> 3;//该账户未注册
|
||||
case 1005 -> 6;//未输入账号密码
|
||||
case 1006 -> 7;//未输入账号
|
||||
case 1007 -> 8;//未输入密码
|
||||
default -> 0;
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 注册的交互逻辑
|
||||
* @param: map
|
||||
* @return: java.lang.String
|
||||
* @author: zhanglinhao
|
||||
* @date: 2024/5/9 22:45
|
||||
*/
|
||||
@PostMapping("register")
|
||||
public int Register(@RequestBody Map<String, Object> map) {
|
||||
System.out.println(map);
|
||||
int tag = loginService.registerAccount((String) map.get("name"), (String) map.get("password"), (String) map.get("phone"), (String) map.get("nickname"), (String) map.get("IDCard"));
|
||||
System.out.println("RegisterTag:" + tag);
|
||||
return switch (tag) {
|
||||
case 1003 -> 4;//该账户已经注册
|
||||
case 1004 -> 5;//注册成功
|
||||
case 1008 -> 9;//身份证输入错误18位
|
||||
case 1010 -> 11;//手机号输入错误11位
|
||||
case 1011 -> 12;//密码过短最少8位
|
||||
case 1012 -> 13;//姓名未输入
|
||||
default -> 0;
|
||||
};
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
package com.softegg.freetogo.Login.service;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* @description:抽象登录服务接口类
|
||||
* @author:zhanglinhao
|
||||
* @date:2024/5/9 8:37
|
||||
*/
|
||||
@Service
|
||||
public interface LoginService {
|
||||
int loginAccount(String phone, String password);//登录
|
||||
// int registerAccount(String phone, String password);
|
||||
|
||||
int registerAccount(String name,
|
||||
String password,
|
||||
String phone,
|
||||
String nickname,
|
||||
String IDCard);//注册
|
||||
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
1000->1 登录成功
|
||||
1001->2 密码或账号错误
|
||||
1002->3 该账户未注册
|
||||
1003->4 该账户已经注册
|
||||
1004->5 注册成功
|
||||
1005->6 未输入账号密码
|
||||
1006->7 未输入账号
|
||||
1007->8 身份证输入错误
|
||||
1008->9 成功注册导游
|
||||
1009->10 已是导游
|
||||
1010->11 手机号输入错误
|
||||
1011->12 密码过短
|
||||
1012->13 未输入姓名
|
@ -0,0 +1,12 @@
|
||||
package com.softegg.freetogo.User.Dao;
|
||||
|
||||
import com.softegg.freetogo.User.bean.Guides;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
|
||||
/**
|
||||
* @description: 继承Jpa数据库接口类
|
||||
* @author: zhanglinhao
|
||||
* @date: 2024/5/16 10:44
|
||||
*/
|
||||
public interface GuidesRepository extends JpaRepository<Guides, Integer> {
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
package com.softegg.freetogo.User.Dao;
|
||||
|
||||
import com.softegg.freetogo.User.bean.Users;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
|
||||
/**
|
||||
* @description:继承Jpa数据库接口类
|
||||
* @author:zhanglinhao
|
||||
* @date:2024/5/8 8:50
|
||||
*/
|
||||
public interface UsersRepository extends JpaRepository<Users, Integer> {
|
||||
Users findByPhone(String phone);//自定义函数,根据手机号进行查找返回对应对象
|
||||
}
|
@ -0,0 +1,31 @@
|
||||
package com.softegg.freetogo.User.bean;
|
||||
|
||||
import jakarta.persistence.*;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* @description: 导游实体类
|
||||
* @author: zhanglinhao
|
||||
* @date: 2024/5/16 10:33
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "guides")
|
||||
@Setter
|
||||
@Getter
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class Guides {
|
||||
@Id
|
||||
private Integer uid;
|
||||
@Column(name = "residence")
|
||||
private String rsd;
|
||||
@Column(name = "familiarareas")
|
||||
private String fa;
|
||||
@Column(name = "synopsis")
|
||||
private String syns;
|
||||
@Column(name = "experance")
|
||||
private boolean re;
|
||||
}
|
@ -0,0 +1,60 @@
|
||||
package com.softegg.freetogo.User.bean;
|
||||
|
||||
import jakarta.persistence.*;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* @description:数据库中表users的对应实体类
|
||||
* @author:zhanglinhao
|
||||
* @date:2024/5/7 15:36
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "users")
|
||||
@Setter
|
||||
@Getter
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class Users {
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
private Integer uid;
|
||||
@Column
|
||||
private String name;
|
||||
@Column
|
||||
private String email;
|
||||
@Column
|
||||
private String password;
|
||||
@Column
|
||||
private String createtime;
|
||||
@Column(name="IDCard")
|
||||
private String idcard;
|
||||
@Column
|
||||
private int reputation;
|
||||
@Column
|
||||
private boolean gender;//ture:male, false:female
|
||||
@Column
|
||||
private boolean membertype;//true:guide, false:visitor
|
||||
@Column
|
||||
private String phone;
|
||||
@Column
|
||||
private String nickname;
|
||||
@Column
|
||||
private int status;
|
||||
|
||||
public Users(String name, String email, String psw, String ct, int rpt, String phone, String nkn, String idc, boolean gender, boolean type, int status) {
|
||||
this.name = name;
|
||||
this.email = email;
|
||||
this.password = psw;
|
||||
this.createtime = ct;
|
||||
this.reputation = rpt;
|
||||
this.phone = phone;
|
||||
this.nickname = nkn;
|
||||
this.idcard = idc;
|
||||
this.gender = gender;
|
||||
this.membertype = type;
|
||||
this.status = status;
|
||||
}
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
package com.softegg.freetogo.User.service;
|
||||
|
||||
import com.softegg.freetogo.User.bean.Guides;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* @description: 数据库操作抽象接口类
|
||||
* @author: zhanglinhao
|
||||
* @date: 2024/5/16 10:45
|
||||
*/
|
||||
@Service
|
||||
public interface GuidesService {
|
||||
boolean registerToGuide(Guides guide);//注册成为导游,将导游注册信息入库
|
||||
}
|
@ -0,0 +1,49 @@
|
||||
package com.softegg.freetogo.User.service;
|
||||
|
||||
import com.softegg.freetogo.User.Dao.GuidesRepository;
|
||||
import com.softegg.freetogo.User.bean.Guides;
|
||||
import com.softegg.freetogo.User.bean.Users;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* @description: 数据库操作接口实现类
|
||||
* @author: zhanglinhao
|
||||
* @date: 2024/5/16 10:46
|
||||
*/
|
||||
@Component
|
||||
public class GuidesServiceImpl implements GuidesService {
|
||||
@Autowired
|
||||
GuidesRepository guidesRepository;
|
||||
@Autowired
|
||||
UsersService usersService;
|
||||
//
|
||||
// @Override
|
||||
// public void registerToGuide(Guides guide) {
|
||||
// guidesRepository.save(guide);
|
||||
// System.out.println("成功保存注册导游信息!");
|
||||
// }
|
||||
|
||||
/**
|
||||
* @description: 注册成为导游
|
||||
* @param: guide
|
||||
* @return: int
|
||||
* @author: zhanglinhao
|
||||
* @date: 2024/5/15 21:19
|
||||
*/
|
||||
@Override
|
||||
public boolean registerToGuide(Guides guide) {
|
||||
System.out.println("注册成为导游id:" + guide.getUid());
|
||||
Users user = usersService.getUserById(guide.getUid());
|
||||
user.setMembertype(true);
|
||||
guidesRepository.save(guide);
|
||||
if (user.isMembertype()) {
|
||||
System.out.println("注册成功!");
|
||||
return true;
|
||||
}else{
|
||||
System.out.println("注册失败!");
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
@ -0,0 +1,33 @@
|
||||
package com.softegg.freetogo.User.service;
|
||||
|
||||
import com.softegg.freetogo.User.bean.Users;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @description:数据库操作抽象接口类
|
||||
* @author:zhanglinhaon
|
||||
* @date:2024/5/7 16:06
|
||||
*/
|
||||
@Service
|
||||
public interface UsersService {
|
||||
List<Users> findAll();//查找所有用户
|
||||
|
||||
void add(Users user);//以user为用户入库
|
||||
|
||||
void deleteById(int id);//删除对应id用户
|
||||
|
||||
Users getUserById(int id);//获得对应id用户
|
||||
|
||||
void update(Users user);//更新用户信息
|
||||
|
||||
boolean isRegister(String phone);//判断该手机号(账号)是否已经入库
|
||||
|
||||
Users getUserByPhone(String phone);//根据手机号获得用户
|
||||
|
||||
boolean isGuide(String phone);//查询是否是导游
|
||||
|
||||
int getIdByPhone(String phone);//查找uid
|
||||
void showInfo(Users user);//打印所有信息
|
||||
}
|
Loading…
Reference in new issue