|
|
@@ -0,0 +1,174 @@
|
|
|
+package com.ytpm.question.base;
|
|
|
+
|
|
|
+
|
|
|
+import com.ytpm.agent.param.AdRecordListParam;
|
|
|
+import com.ytpm.agent.param.AuditCheckParam;
|
|
|
+import com.ytpm.agent.view.AgentAdGroupStaticsVO;
|
|
|
+import com.ytpm.agent.view.AgentTopCountView;
|
|
|
+import com.ytpm.app.model.YtAppDefaultConfig;
|
|
|
+import com.ytpm.app.model.YtDyzAdRecord;
|
|
|
+import com.ytpm.app.model.YtUser;
|
|
|
+import com.ytpm.app.param.AppConfigUpdateParam;
|
|
|
+import com.ytpm.app.param.AppQueryUserTodayTimeParam;
|
|
|
+import com.ytpm.app.param.AppUserParam;
|
|
|
+import com.ytpm.app.param.AppUserQueryParam;
|
|
|
+import com.ytpm.app.param.AppUserTodayBannedParam;
|
|
|
+import com.ytpm.app.param.YtAppUserListParam;
|
|
|
+import com.ytpm.app.view.WxDefaultConfig;
|
|
|
+import com.ytpm.app.view.YtAppUserListView;
|
|
|
+import com.ytpm.general.Result;
|
|
|
+import com.ytpm.general.ResultTable;
|
|
|
+import com.ytpm.middle.view.DashboardRankingListVO;
|
|
|
+import com.ytpm.middle.view.DashboardRevenueVO;
|
|
|
+import com.ytpm.middle.view.DashboardRiskVO;
|
|
|
+import org.springframework.cloud.openfeign.FeignClient;
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.PathVariable;
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
+import org.springframework.web.bind.annotation.RequestParam;
|
|
|
+
|
|
|
+import java.math.BigDecimal;
|
|
|
+import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @author lih
|
|
|
+ * @date 2025-10-24 09:15
|
|
|
+ */
|
|
|
+@FeignClient(name = "dynamic-client", url = "dynamic-url")
|
|
|
+public interface DynamicFeignClient {
|
|
|
+
|
|
|
+ @GetMapping("{serviceName}/visitor/getLoginDitchCount")
|
|
|
+ int getLoginDitchCount(@PathVariable("serviceName") String serviceName,
|
|
|
+ @RequestParam("deviceId") String deviceId,
|
|
|
+ @RequestParam("hours") Integer hours);
|
|
|
+
|
|
|
+ @GetMapping("{serviceName}/visitor/getDitchCount")
|
|
|
+ int getDitchCount(@RequestParam("deviceId") String deviceId,
|
|
|
+ @RequestParam("hours") Integer hours);
|
|
|
+
|
|
|
+ @GetMapping("{serviceName}/user/getMonthRegistryUser")
|
|
|
+ List<YtUser> getMonthRegistryUser(@PathVariable("serviceName") String serviceName,
|
|
|
+ @RequestParam("appIds") String appIds,
|
|
|
+ @RequestParam("type") Integer type);
|
|
|
+
|
|
|
+ @PostMapping("{serviceName}/user/queryAll")
|
|
|
+ ResultTable<YtAppUserListView> queryAll(@PathVariable("serviceName") String serviceName,
|
|
|
+ @RequestBody YtAppUserListParam param);
|
|
|
+
|
|
|
+ @GetMapping("{serviceName}/user/getUserInfo")
|
|
|
+ Result<YtUser> getUserInfo(@PathVariable("serviceName") String serviceName, @RequestParam("userId") String userId);
|
|
|
+
|
|
|
+ @PostMapping("{serviceName}/user/getUserList")
|
|
|
+ ResultTable<YtUser> getUserList(@PathVariable("serviceName") String serviceName, @RequestBody AppUserParam param);
|
|
|
+
|
|
|
+ @PostMapping("{serviceName}/user/getUserAll")
|
|
|
+ ResultTable<YtUser> getUserAll(@PathVariable("serviceName") String serviceName, @RequestBody AppUserParam param);
|
|
|
+
|
|
|
+ @PostMapping("{serviceName}/user/updateUserInfo")
|
|
|
+ Result<?> updateUserInfo(@PathVariable("serviceName") String serviceName, @RequestBody YtUser dyzUser);
|
|
|
+
|
|
|
+ @GetMapping("{serviceName}/user/adRecords")
|
|
|
+ ResultTable<YtDyzAdRecord> adRecords(@PathVariable("serviceName") String serviceName,
|
|
|
+ @RequestParam(name = "userId", required = true) String userId,
|
|
|
+ @RequestParam(name = "adsourceType", required = false) Integer adsourceType);
|
|
|
+
|
|
|
+ @PostMapping("{serviceName}/user/adRecords/page")
|
|
|
+ ResultTable<YtDyzAdRecord> adRecordsPage(@PathVariable("serviceName") String serviceName,
|
|
|
+ @RequestBody AdRecordListParam param);
|
|
|
+
|
|
|
+ @GetMapping("{serviceName}/user/adRecords/count/month")
|
|
|
+ Result<Integer> queryRecordMonthCount(@PathVariable("serviceName") String serviceName,
|
|
|
+ @RequestParam(name = "userId") String userId,
|
|
|
+ @RequestParam(name = "adSourceType", required = false) Integer adSourceType,
|
|
|
+ @RequestParam(name = "startTime", required = false) String startTime);
|
|
|
+
|
|
|
+ @PostMapping("{serviceName}/user/queryUserByTime")
|
|
|
+ List<YtUser> queryUserByTime(@PathVariable("serviceName") String serviceName,
|
|
|
+ @RequestBody AppUserQueryParam appUserQueryParam);
|
|
|
+
|
|
|
+ @PostMapping("{serviceName}/user/queryUserByTodayTime")
|
|
|
+ int[] queryUserByTodayTime(@PathVariable("serviceName") String serviceName,
|
|
|
+ @RequestBody AppQueryUserTodayTimeParam appQueryUserTodayTimeParam);
|
|
|
+
|
|
|
+ @PostMapping("{serviceName}/user/queryLoginRecords")
|
|
|
+ List<String> queryLoginRecords(@PathVariable("serviceName") String serviceName,
|
|
|
+ @RequestBody AppUserQueryParam appUserQueryParam);
|
|
|
+
|
|
|
+ @GetMapping("{serviceName}/user/queryByOpenid")
|
|
|
+ List<YtUser> queryByOpenid(@PathVariable("serviceName") String serviceName,
|
|
|
+ @RequestParam("openid") String openid);
|
|
|
+
|
|
|
+ @PostMapping("{serviceName}/wx/saveAppConfig")
|
|
|
+ Result<String> saveAppConfig(@PathVariable("serviceName") String serviceName,
|
|
|
+ @RequestBody YtAppDefaultConfig defaultConfig);
|
|
|
+
|
|
|
+ @PostMapping("{serviceName}/wx/updateAppConfig")
|
|
|
+ Result<String> updateAppConfig(@PathVariable("serviceName") String serviceName,
|
|
|
+ @RequestBody YtAppDefaultConfig defaultConfig);
|
|
|
+
|
|
|
+ @PostMapping("{serviceName}/wx/updateAppsConfig")
|
|
|
+ void updateAppsConfig(@PathVariable("serviceName") String serviceName,
|
|
|
+ @RequestBody AppConfigUpdateParam param);
|
|
|
+
|
|
|
+ @GetMapping("{serviceName}/wx/getConfigs")
|
|
|
+ List<WxDefaultConfig> getConfigs(@PathVariable("serviceName") String serviceName,
|
|
|
+ @RequestParam(name = "appIds") String appIds);
|
|
|
+
|
|
|
+ @PostMapping("{serviceName}/user/queryTodayBanned")
|
|
|
+ List<YtUser> queryTodayBanned(@PathVariable("serviceName") String serviceName,
|
|
|
+ @RequestBody AppUserTodayBannedParam appUserTodayBannedParam);
|
|
|
+
|
|
|
+ @GetMapping("{serviceName}/ad/getAdCount")
|
|
|
+ Map<String, BigDecimal> getAdCount(@PathVariable("serviceName") String serviceName,
|
|
|
+ @RequestParam(name = "appIds") String appIds);
|
|
|
+
|
|
|
+ @GetMapping("{serviceName}/ad/getAppTopCount")
|
|
|
+ AgentTopCountView getAppTopCount(@PathVariable("serviceName") String serviceName,
|
|
|
+ @RequestParam(name = "appIds") String appIds);
|
|
|
+
|
|
|
+ @GetMapping("{serviceName}/ad/getAppRankingList")
|
|
|
+ DashboardRankingListVO queryRankingList(@PathVariable("serviceName") String serviceName,
|
|
|
+ @RequestParam(name = "sortBy") Integer sortBy,
|
|
|
+ @RequestParam(name = "limit") Integer limit);
|
|
|
+
|
|
|
+ @GetMapping("{serviceName}/ad/revenueStatics")
|
|
|
+ DashboardRevenueVO revenueStatics(@PathVariable("serviceName") String serviceName,
|
|
|
+ @RequestParam(name = "apkIds") String apkIds);
|
|
|
+
|
|
|
+ @GetMapping("{serviceName}/ad/userStatics")
|
|
|
+ DashboardRiskVO userStatics(@PathVariable("serviceName") String serviceName,
|
|
|
+ @RequestParam(name = "appId") String appId);
|
|
|
+
|
|
|
+ @GetMapping("{serviceName}/ad/getAgentProfit")
|
|
|
+ List<AgentAdGroupStaticsVO> getAgentProfit(@PathVariable("serviceName") String serviceName,
|
|
|
+ @RequestParam(name = "appIds") String appIds);
|
|
|
+
|
|
|
+ @PostMapping("{serviceName}/user/getRevenueByTime")
|
|
|
+ BigDecimal getRevenueByTime(@PathVariable("serviceName") String serviceName,
|
|
|
+ @RequestBody YtAppUserListParam param);
|
|
|
+
|
|
|
+ @GetMapping("{serviceName}/wx/delDefaultConfig")
|
|
|
+ void delAppConfig(@PathVariable("serviceName") String serviceName,
|
|
|
+ @RequestParam("appId") String appId);
|
|
|
+
|
|
|
+ @PostMapping("{serviceName}/user/unLockUser")
|
|
|
+ void unLockUser(@PathVariable("serviceName") String serviceName,
|
|
|
+ @RequestParam("userIds") String userIds);
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 锁定用户
|
|
|
+ */
|
|
|
+ @GetMapping("{serviceName}/user/lockUser")
|
|
|
+ YtUser lockUser(@PathVariable("serviceName") String serviceName,
|
|
|
+ @RequestParam(name = "userId") String userId,
|
|
|
+ @RequestParam("userStatus") Integer userStatus);
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 批量审核用户
|
|
|
+ */
|
|
|
+ @PostMapping("{serviceName}/user/batchAudit")
|
|
|
+ void batchAudit(@PathVariable("serviceName") String serviceName,
|
|
|
+ @RequestBody AuditCheckParam auditCheckParam);
|
|
|
+}
|