admin
2021-06-24 df4441322e9801c102299451da41d7c40b4502e9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package com.ks.daylucky.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 {
 
    //,url = "dubbo://134.175.68.214:20901/com.ks.app.service.AppService"
    @Reference(version = "1.0.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;
    }
 
    public AppInfo getAppDetail(String appKey) {
        AppInfo info = appService.getAppDetail(appKey);
        return info;
    }
 
}