package eleme.openapi.sdk.api.service;

import eleme.openapi.sdk.api.annotation.Service;
import eleme.openapi.sdk.api.base.BaseNopService;
import eleme.openapi.sdk.api.exception.ServiceException;
import eleme.openapi.sdk.oauth.response.Token;
import eleme.openapi.sdk.config.Config;
import eleme.openapi.sdk.api.entity.user.*;
import eleme.openapi.sdk.api.enumeration.user.*;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 商户服务
 */
@Service("eleme.user")
public class UserService extends BaseNopService {
    public UserService(Config config,Token token) {
        super(config, token, UserService.class);
    }

    /**
     * 获取商户账号信息
     *
     * @return 商户账号
     * @throws ServiceException 服务异常
     */
    public OUser getUser() throws ServiceException {
        Map<String, Object> params = new HashMap<String, Object>();
        return call("eleme.user.getUser", params);
    }
}

@@ -166,33 +166,24 @@
 pi.e
-xception.ServiceException
+ntity.user.OUser
 ;%0Aim
@@ -209,27 +209,37 @@
 sdk.
-oauth.response.Toke
+api.exception.ServiceExceptio
 n;%0Ai
@@ -306,75 +306,30 @@
 sdk.
-api.entity.user.*;%0Aimport eleme.openapi.sdk.api.enumeration.user.*;
+oauth.response.Token;%0A
 %0Aimp
@@ -355,31 +355,8 @@
 ap;%0A
-import java.util.List;%0A
 impo
@@ -844,11 +844,318 @@
 );%0A    %7D
+%0A%0A    /**%0A     * %E8%8E%B7%E5%8F%96%E5%BD%93%E5%89%8D%E6%8E%88%E6%9D%83%E5%B8%90%E5%8F%B7%E7%9A%84%E6%89%8B%E6%9C%BA%E5%8F%B7,%E7%89%B9%E6%9D%83%E6%8E%A5%E5%8F%A3%E4%BB%85%E9%83%A8%E5%88%86%E5%B8%90%E5%8F%B7%E5%8F%AF%E4%BB%A5%E8%B0%83%E7%94%A8%0A     *%0A     * @return %E6%89%8B%E6%9C%BA%E5%8F%B7%0A     * @throws ServiceException %E6%9C%8D%E5%8A%A1%E5%BC%82%E5%B8%B8%0A     */%0A    public String getPhoneNumber() throws ServiceException %7B%0A        Map%3CString, Object%3E params = new HashMap%3CString, Object%3E();%0A        return call(%22eleme.user.getPhoneNumber%22, params);%0A    %7D
 %0A%7D%0A

add interface