parent
5c942d230c
commit
aaeabdad4a
@ -0,0 +1,32 @@ |
||||
package com.community.pocket.entity.vo.android; |
||||
|
||||
import com.community.pocket.entity.po.android.MyInfo; |
||||
import com.community.pocket.entity.vo.Result; |
||||
|
||||
/** |
||||
* 个人信息响应 |
||||
*/ |
||||
public class InfoResponse extends AndroidResponse<InfoResponse.Msg>{ |
||||
private MyInfo myInfo; |
||||
|
||||
public InfoResponse(Result result, Msg message, Object... args) { |
||||
super(result, message, args); |
||||
} |
||||
|
||||
public MyInfo getMyInfo() { |
||||
return myInfo; |
||||
} |
||||
|
||||
public void setMyInfo(MyInfo myInfo) { |
||||
this.myInfo = myInfo; |
||||
} |
||||
|
||||
public enum Msg implements CustomMessage{ |
||||
ok, |
||||
fail, |
||||
modify_pwd_ok, |
||||
modify_pwd_fail, |
||||
modify_oldpwd_fail, |
||||
token |
||||
} |
||||
} |
@ -0,0 +1,29 @@ |
||||
package com.community.pocket.entity.vo.android; |
||||
|
||||
import com.community.pocket.entity.po.android.Token; |
||||
|
||||
/** |
||||
* 修改密码表单 |
||||
*/ |
||||
public class ModifyPwdForm extends Token { |
||||
//原密码
|
||||
private String oldPassword; |
||||
//新密码
|
||||
private String newPassword; |
||||
|
||||
public String getOldPassword() { |
||||
return oldPassword; |
||||
} |
||||
|
||||
public void setOldPassword(String oldPassword) { |
||||
this.oldPassword = oldPassword; |
||||
} |
||||
|
||||
public String getNewPassword() { |
||||
return newPassword; |
||||
} |
||||
|
||||
public void setNewPassword(String newPassword) { |
||||
this.newPassword = newPassword; |
||||
} |
||||
} |
@ -1,13 +1,26 @@ |
||||
package com.community.pocket; |
||||
|
||||
import com.community.pocket.entity.vo.android.QueryUserForm; |
||||
import com.community.pocket.repository.android.UserDao; |
||||
import org.junit.jupiter.api.Test; |
||||
import org.springframework.beans.factory.annotation.Autowired; |
||||
import org.springframework.boot.test.context.SpringBootTest; |
||||
|
||||
@SpringBootTest |
||||
class DemoApplicationTests { |
||||
|
||||
@Autowired |
||||
private UserDao userDao; |
||||
|
||||
@Test |
||||
void contextLoads() { |
||||
} |
||||
|
||||
@Test |
||||
void queryUser(){ |
||||
QueryUserForm queryUserForm=new QueryUserForm(); |
||||
queryUserForm.setName("p"); |
||||
userDao.queryUser(queryUserForm); |
||||
} |
||||
|
||||
} |
||||
|
Loading…
Reference in new issue