替换旧代码
This commit is contained in:
parent
9cfa6bd47b
commit
8f444954f1
@ -1,7 +1,7 @@
|
||||
package com.xkrs.controller;
|
||||
|
||||
import com.xkrs.common.encapsulation.PromptMessageEnum;
|
||||
import com.xkrs.model.qo.SysUserPushAccountQo;
|
||||
import com.xkrs.model.qo.SysUserPushIdQo;
|
||||
import com.xkrs.straw.dao.SysUserDao;
|
||||
import com.xkrs.straw.model.entity.SysUserEntity;
|
||||
import com.xkrs.straw.model.helper.PushHelper;
|
||||
@ -30,9 +30,9 @@ public class PushController {
|
||||
private PushHelper pushHelper;
|
||||
|
||||
@PostMapping("/bindUserPushInfo")
|
||||
public String bindUserPushInfo(@RequestBody SysUserPushAccountQo sysUserPushAccountQo) {
|
||||
Long id = sysUserPushAccountQo.getId();
|
||||
String pushId = sysUserPushAccountQo.getPushId();
|
||||
public String bindUserPushInfo(@RequestBody SysUserPushIdQo sysUserPushIdQo) {
|
||||
Long id = sysUserPushIdQo.getId();
|
||||
String pushId = sysUserPushIdQo.getPushId();
|
||||
if (null == id) {
|
||||
return outputEncapsulationObject(PromptMessageEnum.PROCESS_FAIL, "绑定失败,id == null", locale);
|
||||
}
|
||||
|
@ -1,12 +1,12 @@
|
||||
package com.xkrs.model.qo;
|
||||
|
||||
public class SysUserPushAccountQo {
|
||||
public class SysUserPushIdQo {
|
||||
|
||||
private Long id;
|
||||
|
||||
private String pushId;
|
||||
|
||||
public SysUserPushAccountQo() {
|
||||
public SysUserPushIdQo() {
|
||||
}
|
||||
|
||||
public Long getId() {
|
Loading…
Reference in New Issue
Block a user