package com.ks.lucky.service.impl;
|
|
import com.ks.app.entity.AppInfo;
|
import com.ks.app.service.AppService;
|
import org.apache.dubbo.config.annotation.Reference;
|
import org.springframework.stereotype.Component;
|
|
@Component
|
public class AppManager {
|
|
@Reference(version = "1.0")
|
private AppService appService;
|
|
public Long getAppId(String appKey) {
|
AppInfo app = appService.getApp(appKey);
|
if (app != null) {
|
return app.getId();
|
}
|
return null;
|
}
|
|
public AppInfo getAppDetail(Long appId) {
|
AppInfo info = appService.getAppDetail(appId);
|
return info;
|
}
|
}
|