|
@@ -1,5 +1,6 @@
|
|
package com.bosshand.virgo.core.controller;
|
|
package com.bosshand.virgo.core.controller;
|
|
|
|
|
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
import com.bosshand.virgo.core.model.Identity;
|
|
import com.bosshand.virgo.core.model.Identity;
|
|
import com.bosshand.virgo.core.model.MgrOrganization;
|
|
import com.bosshand.virgo.core.model.MgrOrganization;
|
|
import com.bosshand.virgo.core.model.MgrUser;
|
|
import com.bosshand.virgo.core.model.MgrUser;
|
|
@@ -232,4 +233,11 @@ public class UserContextController {
|
|
return Response.ok();
|
|
return Response.ok();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @ApiOperation(value = "获取openid", notes = "获取openid")
|
|
|
|
+ @RequestMapping(value = "/getOpenId/{code}", method = RequestMethod.GET)
|
|
|
|
+ public Response getOpenId(@PathVariable String code) {
|
|
|
|
+ JSONObject jsonObject = JSONObject.parseObject(mgrUserService.wxLogin(code));
|
|
|
|
+ return Response.ok(jsonObject);
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|