修改接口
This commit is contained in:
		| @@ -13,6 +13,7 @@ import com.stdiet.custom.domain.SysWxUserLog; | ||||
| import com.stdiet.custom.page.WxServeInfo; | ||||
| import com.stdiet.custom.service.ISysOrderService; | ||||
| import com.stdiet.custom.service.ISysWxUserInfoService; | ||||
| import org.aspectj.weaver.loadtime.Aj; | ||||
| import org.springframework.beans.factory.annotation.Autowired; | ||||
| import org.springframework.security.access.prepost.PreAuthorize; | ||||
| import org.springframework.web.bind.annotation.*; | ||||
| @@ -141,4 +142,17 @@ public class SysWxUserInfoController extends BaseController { | ||||
|  | ||||
|         return AjaxResult.success(wxServeInfo); | ||||
|     } | ||||
|  | ||||
|     @GetMapping("/wx/user/list") | ||||
|     public AjaxResult userList(SysWxUserInfo sysWxUserInfo) { | ||||
|         startPage(); | ||||
|         List<SysWxUserInfo> list = sysWxUserInfoService.selectSysWxUserInfoList(sysWxUserInfo); | ||||
|  | ||||
|         for (SysWxUserInfo userInfo : list) { | ||||
|             if (StringUtils.isNotEmpty(userInfo.getPhone())) { | ||||
|                 userInfo.setPhone(userInfo.getPhone().replaceAll("(\\d{3})\\d{4}(\\d{4})", "$1****$2")); | ||||
|             } | ||||
|         } | ||||
|         return AjaxResult.success(list); | ||||
|     } | ||||
| } | ||||
| @@ -108,6 +108,7 @@ public class SysWxUserLogController extends BaseController { | ||||
|  | ||||
|     @GetMapping(value = "/wx/logs/list") | ||||
|     public AjaxResult getLogs(SysWxUserLog sysWxUserLog) { | ||||
|         System.out.println(sysWxUserLog.toString()); | ||||
|         List<WxLogInfo> list = sysWxUserLogService.selectWxLogInfoList(sysWxUserLog); | ||||
|         return AjaxResult.success(list); | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user