parent
4b2416c8ef
commit
cff2f0d16d
@ -1,21 +1,33 @@
|
||||
package au.com.royalpay.payment.manage.appclient.core.impls;
|
||||
|
||||
import au.com.royalpay.payment.manage.appclient.core.ManageAppService;
|
||||
import au.com.royalpay.payment.manage.mappers.system.OrgMapper;
|
||||
import au.com.royalpay.payment.tools.device.DeviceSupport;
|
||||
import au.com.royalpay.payment.tools.device.ManageDeviceSupport;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.github.miemiedev.mybatis.paginator.domain.PageBounds;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
@Service
|
||||
public class ManageAppServiceImp implements ManageAppService {
|
||||
|
||||
@Resource
|
||||
private ManageDeviceSupport manageDeviceSupport;
|
||||
@Resource
|
||||
private OrgMapper orgMapper;
|
||||
|
||||
@Override
|
||||
public void updateDevToken(JSONObject device, String devToken) {
|
||||
manageDeviceSupport.updateDeviceMessageToken(device, devToken);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<JSONObject> getReferrerList(JSONObject device) {
|
||||
String clientType = device.getString("client_type");
|
||||
manageDeviceSupport.findRegister(clientType);
|
||||
return orgMapper.listOrgs(1,new PageBounds());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in new issue