Commit f27e702e by fudahua

会员小程序 获取用户信息接口

parent 0adf2c28
...@@ -16,6 +16,7 @@ import com.gic.commons.util.GlobalInfo; ...@@ -16,6 +16,7 @@ import com.gic.commons.util.GlobalInfo;
import com.gic.commons.util.GlobalVar; import com.gic.commons.util.GlobalVar;
import com.gic.haoban.manage.api.dto.*; import com.gic.haoban.manage.api.dto.*;
import com.gic.haoban.manage.api.service.DepartmentApiService; import com.gic.haoban.manage.api.service.DepartmentApiService;
import com.gic.redis.data.anno.RedisCache;
import com.gic.thirdparty.api.dto.PicUploadResDTO; import com.gic.thirdparty.api.dto.PicUploadResDTO;
import com.gic.thirdparty.api.service.QQCloudPicService; import com.gic.thirdparty.api.service.QQCloudPicService;
import com.vdurmont.emoji.EmojiParser; import com.vdurmont.emoji.EmojiParser;
...@@ -1072,7 +1073,8 @@ public class StaffApiServiceImpl implements StaffApiService { ...@@ -1072,7 +1073,8 @@ public class StaffApiServiceImpl implements StaffApiService {
} }
@Override @Override
public ServiceResponse<String> getStaffQrcode(String clerkCode, String storeId) { @RedisCache(value = "qrcode=#{clerkCode}-#{storeId}", timeOut = 10)
public ServiceResponse<String> getStaffQrcode(String clerkCode, String storeId) {
ServiceResponse<String> resp = new ServiceResponse<>(); ServiceResponse<String> resp = new ServiceResponse<>();
TabHaobanDepartment department = departmentService.selectByRelatedId(storeId); TabHaobanDepartment department = departmentService.selectByRelatedId(storeId);
if (null == department) { if (null == department) {
......
...@@ -117,7 +117,7 @@ public void createSelfUser() { ...@@ -117,7 +117,7 @@ public void createSelfUser() {
userDTO.setDepartment(new Integer[]{5072}); userDTO.setDepartment(new Integer[]{5072});
userDTO.setMobile("17605628851"); userDTO.setMobile("17605628851");
userDTO.setCorpid("ww9ede832a84b7ae5f"); userDTO.setCorpid("ww9ede832a84b7ae5f");
JSONResponse workWxUser = qywxUserApiService.createSelfWorkWxUser(userDTO, "ww9ede832a84b7ae5f", JSONResponse workWxUser = qywxUserApiService.createSelfWorkWxUser(userDTO, "n",
"3aOw7jbcHlHkDmOi5TuG42Ta8NqskOhZxy5urrmaGl8"); "3aOw7jbcHlHkDmOi5TuG42Ta8NqskOhZxy5urrmaGl8");
System.out.println(JSONObject.toJSONString(workWxUser)); System.out.println(JSONObject.toJSONString(workWxUser));
} }
...@@ -163,4 +163,12 @@ public void sendMessage() { ...@@ -163,4 +163,12 @@ public void sendMessage() {
} }
@Test
public void extensionList() {
String s = qywxUserApiService.listSelfExternalUserid("ww9ede832a84b7ae5f", "01YQ-pcdYzF3K0So8uCFfkB5i8D5EBW7KcVB4qA8Ktk", "qiuwenmin");
System.out.println(JSONObject.toJSONString(s));
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment