package com.yihu.platform.test; import com.coreframework.db.DB; import com.yihu.platform.api.UserApi; import com.yihu.wsgw.api.InterfaceMessage; import net.sf.json.JSONObject; /** * Created by Administrator on 2017/8/28. */ public class UserApiTest { public static void main(String[] args) { DB.me().addDataSourceMySQL("BasicServiceDB","BasicServiceDB","172.18.20.24",3306,"bscsrv","jkzl123456"); queryUserInfoByID(); } static void queryUserInfoByID(){ UserApi apiImpl = new UserApi(); InterfaceMessage msg = new InterfaceMessage(); JSONObject obj = new JSONObject(); obj.put("userId", "1"); msg.setParam(obj.toString()); String result = apiImpl.queryUserInfoByID(msg); System.out.println(result); } }