app登录、注册接口
parent
496e6f6968
commit
7697192403
@ -1,37 +0,0 @@
|
|||||||
package com.ruoyi.web.controller.system;
|
|
||||||
|
|
||||||
import com.ruoyi.common.core.domain.AjaxResult;
|
|
||||||
import com.ruoyi.system.domain.req.WechatRegisterReq;
|
|
||||||
import com.ruoyi.system.service.IWechatService;
|
|
||||||
import org.slf4j.Logger;
|
|
||||||
import org.slf4j.LoggerFactory;
|
|
||||||
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 javax.annotation.Resource;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 微信登录相关接口
|
|
||||||
*/
|
|
||||||
@RestController
|
|
||||||
@RequestMapping("/wechat/register")
|
|
||||||
public class WechatRegisterController {
|
|
||||||
|
|
||||||
private static final Logger logger = LoggerFactory.getLogger(WechatRegisterController.class);
|
|
||||||
|
|
||||||
@Resource
|
|
||||||
private IWechatService iWechatService;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@PostMapping("/for/app")
|
|
||||||
public AjaxResult wechatRegister(@RequestBody WechatRegisterReq req) {
|
|
||||||
logger.info("wechat register, req = [{}]", req);
|
|
||||||
|
|
||||||
return AjaxResult.success();
|
|
||||||
}
|
|
||||||
}
|
|
@ -0,0 +1,85 @@
|
|||||||
|
package com.ruoyi.system.domain.req;
|
||||||
|
|
||||||
|
import com.ruoyi.common.utils.Phone;
|
||||||
|
import org.hibernate.validator.constraints.Length;
|
||||||
|
|
||||||
|
import javax.validation.constraints.NotBlank;
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
public class AppRegisterReq implements Serializable {
|
||||||
|
private static final long serialVersionUID = -2536864616757279758L;
|
||||||
|
|
||||||
|
@NotBlank
|
||||||
|
@Length(max = 10)
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
@Phone
|
||||||
|
@NotBlank
|
||||||
|
private String phone;
|
||||||
|
|
||||||
|
@NotBlank
|
||||||
|
private String password;
|
||||||
|
|
||||||
|
@NotNull
|
||||||
|
private Long hospitalId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 专长
|
||||||
|
*/
|
||||||
|
@Length(max = 30)
|
||||||
|
private String speciality;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 医生执照
|
||||||
|
*/
|
||||||
|
private String medicalLicense;
|
||||||
|
|
||||||
|
public String getName() {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setName(String name) {
|
||||||
|
this.name = name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPhone() {
|
||||||
|
return phone;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPhone(String phone) {
|
||||||
|
this.phone = phone;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPassword() {
|
||||||
|
return password;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPassword(String password) {
|
||||||
|
this.password = password;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getHospitalId() {
|
||||||
|
return hospitalId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setHospitalId(Long hospitalId) {
|
||||||
|
this.hospitalId = hospitalId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSpeciality() {
|
||||||
|
return speciality;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSpeciality(String speciality) {
|
||||||
|
this.speciality = speciality;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getMedicalLicense() {
|
||||||
|
return medicalLicense;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMedicalLicense(String medicalLicense) {
|
||||||
|
this.medicalLicense = medicalLicense;
|
||||||
|
}
|
||||||
|
}
|
@ -1,9 +0,0 @@
|
|||||||
package com.ruoyi.system.domain.req;
|
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
|
|
||||||
public class WechatRegisterReq implements Serializable {
|
|
||||||
private static final long serialVersionUID = -2536864616757279758L;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
Loading…
Reference in New Issue