43 changed files with 1219 additions and 5 deletions
@ -0,0 +1,45 @@ |
|||||||
|
package com.cloud.kicc.commonbiz.api.entity; |
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||||
|
import com.cloud.kicc.common.data.entity.CommonEntity; |
||||||
|
import java.io.Serializable; |
||||||
|
import io.swagger.annotations.ApiModel; |
||||||
|
import io.swagger.annotations.ApiModelProperty; |
||||||
|
import lombok.Getter; |
||||||
|
import lombok.Setter; |
||||||
|
import lombok.experimental.Accessors; |
||||||
|
|
||||||
|
/** |
||||||
|
* <p> |
||||||
|
* |
||||||
|
* </p> |
||||||
|
* |
||||||
|
* @author wangxiang4 |
||||||
|
* @since 2023-02-16 |
||||||
|
*/ |
||||||
|
@Getter |
||||||
|
@Setter |
||||||
|
@Accessors(chain = true) |
||||||
|
@TableName("common_push_application") |
||||||
|
@ApiModel(value = "PushApplication对象", description = "") |
||||||
|
public class PushApplication extends CommonEntity { |
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L; |
||||||
|
|
||||||
|
private String id; |
||||||
|
|
||||||
|
private String name; |
||||||
|
|
||||||
|
private Long pushSize; |
||||||
|
|
||||||
|
private Long sendSize; |
||||||
|
|
||||||
|
private String status; |
||||||
|
|
||||||
|
private String url; |
||||||
|
|
||||||
|
private String appKey; |
||||||
|
|
||||||
|
private String messageSecret; |
||||||
|
|
||||||
|
} |
@ -0,0 +1,33 @@ |
|||||||
|
package com.cloud.kicc.commonbiz.api.entity; |
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||||
|
import com.cloud.kicc.common.data.entity.CommonEntity; |
||||||
|
import java.io.Serializable; |
||||||
|
import io.swagger.annotations.ApiModel; |
||||||
|
import io.swagger.annotations.ApiModelProperty; |
||||||
|
import lombok.Getter; |
||||||
|
import lombok.Setter; |
||||||
|
import lombok.experimental.Accessors; |
||||||
|
|
||||||
|
/** |
||||||
|
* <p> |
||||||
|
* |
||||||
|
* </p> |
||||||
|
* |
||||||
|
* @author wangxiang4 |
||||||
|
* @since 2023-02-16 |
||||||
|
*/ |
||||||
|
@Getter |
||||||
|
@Setter |
||||||
|
@Accessors(chain = true) |
||||||
|
@TableName("common_push_blacklist") |
||||||
|
@ApiModel(value = "PushBlacklist对象", description = "") |
||||||
|
public class PushBlacklist extends CommonEntity { |
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L; |
||||||
|
|
||||||
|
private String id; |
||||||
|
|
||||||
|
private String pushId; |
||||||
|
|
||||||
|
} |
@ -0,0 +1,53 @@ |
|||||||
|
package com.cloud.kicc.commonbiz.api.entity; |
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||||
|
import com.cloud.kicc.common.data.entity.CommonEntity; |
||||||
|
import java.io.Serializable; |
||||||
|
import io.swagger.annotations.ApiModel; |
||||||
|
import io.swagger.annotations.ApiModelProperty; |
||||||
|
import lombok.Getter; |
||||||
|
import lombok.Setter; |
||||||
|
import lombok.experimental.Accessors; |
||||||
|
|
||||||
|
/** |
||||||
|
* <p> |
||||||
|
* |
||||||
|
* </p> |
||||||
|
* |
||||||
|
* @author wangxiang4 |
||||||
|
* @since 2023-02-16 |
||||||
|
*/ |
||||||
|
@Getter |
||||||
|
@Setter |
||||||
|
@Accessors(chain = true) |
||||||
|
@TableName("common_push_certification") |
||||||
|
@ApiModel(value = "PushCertification对象", description = "") |
||||||
|
public class PushCertification extends CommonEntity { |
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L; |
||||||
|
|
||||||
|
private String id; |
||||||
|
|
||||||
|
private String name; |
||||||
|
|
||||||
|
private String license; |
||||||
|
|
||||||
|
private String phone; |
||||||
|
|
||||||
|
private String idCard; |
||||||
|
|
||||||
|
private String contact; |
||||||
|
|
||||||
|
private String creditCode; |
||||||
|
|
||||||
|
private String type; |
||||||
|
|
||||||
|
private String fileId; |
||||||
|
|
||||||
|
private String status; |
||||||
|
|
||||||
|
private String corpName; |
||||||
|
|
||||||
|
private String detailedAddress; |
||||||
|
|
||||||
|
} |
@ -0,0 +1,39 @@ |
|||||||
|
package com.cloud.kicc.commonbiz.api.entity; |
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||||
|
import com.cloud.kicc.common.data.entity.CommonEntity; |
||||||
|
import java.io.Serializable; |
||||||
|
|
||||||
|
import com.cloud.kicc.common.data.entity.TreeEntity; |
||||||
|
import io.swagger.annotations.ApiModel; |
||||||
|
import io.swagger.annotations.ApiModelProperty; |
||||||
|
import lombok.Getter; |
||||||
|
import lombok.Setter; |
||||||
|
import lombok.experimental.Accessors; |
||||||
|
|
||||||
|
/** |
||||||
|
* <p> |
||||||
|
* |
||||||
|
* </p> |
||||||
|
* |
||||||
|
* @author wangxiang4 |
||||||
|
* @since 2023-02-16 |
||||||
|
*/ |
||||||
|
@Getter |
||||||
|
@Setter |
||||||
|
@Accessors(chain = true) |
||||||
|
@TableName("common_push_manage") |
||||||
|
@ApiModel(value = "PushManage对象", description = "") |
||||||
|
public class PushManage extends TreeEntity<PushManage> { |
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L; |
||||||
|
|
||||||
|
private String isVibration; |
||||||
|
|
||||||
|
private String isSound; |
||||||
|
|
||||||
|
private String appKey; |
||||||
|
|
||||||
|
private String customSound; |
||||||
|
|
||||||
|
} |
@ -0,0 +1,37 @@ |
|||||||
|
package com.cloud.kicc.commonbiz.api.entity; |
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||||
|
import com.cloud.kicc.common.data.entity.CommonEntity; |
||||||
|
import java.io.Serializable; |
||||||
|
import io.swagger.annotations.ApiModel; |
||||||
|
import io.swagger.annotations.ApiModelProperty; |
||||||
|
import lombok.Getter; |
||||||
|
import lombok.Setter; |
||||||
|
import lombok.experimental.Accessors; |
||||||
|
|
||||||
|
/** |
||||||
|
* <p> |
||||||
|
* |
||||||
|
* </p> |
||||||
|
* |
||||||
|
* @author wangxiang4 |
||||||
|
* @since 2023-02-16 |
||||||
|
*/ |
||||||
|
@Getter |
||||||
|
@Setter |
||||||
|
@Accessors(chain = true) |
||||||
|
@TableName("common_push_todo_auth") |
||||||
|
@ApiModel(value = "PushTodoAuth对象", description = "") |
||||||
|
public class PushTodoAuth extends CommonEntity { |
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L; |
||||||
|
|
||||||
|
private String id; |
||||||
|
|
||||||
|
private String name; |
||||||
|
|
||||||
|
private String certificationId; |
||||||
|
|
||||||
|
private String status; |
||||||
|
|
||||||
|
} |
@ -0,0 +1,35 @@ |
|||||||
|
package com.cloud.kicc.commonbiz.api.entity; |
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||||
|
import com.cloud.kicc.common.data.entity.CommonEntity; |
||||||
|
import java.io.Serializable; |
||||||
|
import io.swagger.annotations.ApiModel; |
||||||
|
import io.swagger.annotations.ApiModelProperty; |
||||||
|
import lombok.Getter; |
||||||
|
import lombok.Setter; |
||||||
|
import lombok.experimental.Accessors; |
||||||
|
|
||||||
|
/** |
||||||
|
* <p> |
||||||
|
* |
||||||
|
* </p> |
||||||
|
* |
||||||
|
* @author wangxiang4 |
||||||
|
* @since 2023-02-16 |
||||||
|
*/ |
||||||
|
@Getter |
||||||
|
@Setter |
||||||
|
@Accessors(chain = true) |
||||||
|
@TableName("common_push_type") |
||||||
|
@ApiModel(value = "PushType对象", description = "") |
||||||
|
public class PushType extends CommonEntity { |
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L; |
||||||
|
|
||||||
|
private String id; |
||||||
|
|
||||||
|
private String name; |
||||||
|
|
||||||
|
private String level; |
||||||
|
|
||||||
|
} |
@ -0,0 +1,33 @@ |
|||||||
|
package com.cloud.kicc.commonbiz.api.entity; |
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||||
|
import com.cloud.kicc.common.data.entity.CommonEntity; |
||||||
|
import java.io.Serializable; |
||||||
|
import io.swagger.annotations.ApiModel; |
||||||
|
import io.swagger.annotations.ApiModelProperty; |
||||||
|
import lombok.Getter; |
||||||
|
import lombok.Setter; |
||||||
|
import lombok.experimental.Accessors; |
||||||
|
|
||||||
|
/** |
||||||
|
* <p> |
||||||
|
* |
||||||
|
* </p> |
||||||
|
* |
||||||
|
* @author wangxiang4 |
||||||
|
* @since 2023-02-16 |
||||||
|
*/ |
||||||
|
@Getter |
||||||
|
@Setter |
||||||
|
@Accessors(chain = true) |
||||||
|
@TableName("common_push_whitelist") |
||||||
|
@ApiModel(value = "PushWhitelist对象", description = "") |
||||||
|
public class PushWhitelist extends CommonEntity { |
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L; |
||||||
|
|
||||||
|
private String id; |
||||||
|
|
||||||
|
private String pushId; |
||||||
|
|
||||||
|
} |
@ -0,0 +1,71 @@ |
|||||||
|
package com.cloud.kicc.commonbiz.controller; |
||||||
|
|
||||||
|
|
||||||
|
import cn.hutool.core.util.StrUtil; |
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
||||||
|
import com.cloud.kicc.common.core.api.R; |
||||||
|
import com.cloud.kicc.common.core.constant.AppConstants; |
||||||
|
import com.cloud.kicc.common.log.annotation.SysLog; |
||||||
|
import com.cloud.kicc.commonbiz.api.entity.PushApplication; |
||||||
|
import com.cloud.kicc.commonbiz.service.IPushApplicationService; |
||||||
|
import com.cloud.kicc.system.api.entity.OauthClientDetails; |
||||||
|
import lombok.RequiredArgsConstructor; |
||||||
|
import org.springframework.stereotype.Controller; |
||||||
|
import org.springframework.web.bind.annotation.*; |
||||||
|
|
||||||
|
import javax.validation.Valid; |
||||||
|
import java.util.Arrays; |
||||||
|
|
||||||
|
/** |
||||||
|
* <p> |
||||||
|
* 前端控制器 |
||||||
|
* </p> |
||||||
|
* |
||||||
|
* @author wangxiang4 |
||||||
|
* @since 2023-02-16` |
||||||
|
*/ |
||||||
|
@RestController |
||||||
|
@RequestMapping(AppConstants.APP_COMMON + "/pushApplication") |
||||||
|
@RequiredArgsConstructor |
||||||
|
public class PushApplicationController { |
||||||
|
|
||||||
|
private final IPushApplicationService iPushApplicationService; |
||||||
|
|
||||||
|
private LambdaQueryWrapper<PushApplication> getQueryWrapper(PushApplication pushApplication) { |
||||||
|
return new LambdaQueryWrapper<PushApplication>() |
||||||
|
.eq(StrUtil.isNotBlank(pushApplication.getName()), PushApplication::getName, pushApplication.getName()); |
||||||
|
} |
||||||
|
|
||||||
|
@GetMapping("/list") |
||||||
|
public R list(Page page, PushApplication pushApplication) { |
||||||
|
IPage<OauthClientDetails> list = iPushApplicationService.page(page, getQueryWrapper(pushApplication)); |
||||||
|
return R.ok(list.getRecords(), list.getTotal()); |
||||||
|
} |
||||||
|
|
||||||
|
@GetMapping("/{id:\\w+}") |
||||||
|
public R getById(@PathVariable("id") String id) { |
||||||
|
return R.ok(iPushApplicationService.getById(id)); |
||||||
|
} |
||||||
|
|
||||||
|
@PostMapping("/save") |
||||||
|
public R save(@Valid @RequestBody PushApplication pushApplication) { |
||||||
|
iPushApplicationService.save(pushApplication); |
||||||
|
return R.ok(); |
||||||
|
} |
||||||
|
|
||||||
|
@PutMapping("/update") |
||||||
|
public R update(@Valid @RequestBody PushApplication pushApplication) { |
||||||
|
iPushApplicationService.updateById(pushApplication); |
||||||
|
return R.ok(); |
||||||
|
} |
||||||
|
|
||||||
|
@DeleteMapping("/remove/{ids:[\\w,]+}") |
||||||
|
public R<Boolean> removeById(@PathVariable String[] ids) { |
||||||
|
iPushApplicationService.removeByIds(Arrays.asList(ids)); |
||||||
|
return R.ok(); |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
|
|
@ -0,0 +1,74 @@ |
|||||||
|
package com.cloud.kicc.commonbiz.controller; |
||||||
|
|
||||||
|
|
||||||
|
import cn.hutool.core.util.StrUtil; |
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
||||||
|
import com.cloud.kicc.common.core.api.R; |
||||||
|
import com.cloud.kicc.common.core.constant.AppConstants; |
||||||
|
import com.cloud.kicc.common.log.annotation.SysLog; |
||||||
|
import com.cloud.kicc.commonbiz.api.entity.PushApplication; |
||||||
|
import com.cloud.kicc.commonbiz.api.entity.PushBlacklist; |
||||||
|
import com.cloud.kicc.commonbiz.service.IPushApplicationService; |
||||||
|
import com.cloud.kicc.commonbiz.service.IPushBlacklistService; |
||||||
|
import com.cloud.kicc.system.api.entity.OauthClientDetails; |
||||||
|
import lombok.RequiredArgsConstructor; |
||||||
|
import org.springframework.web.bind.annotation.*; |
||||||
|
|
||||||
|
import org.springframework.stereotype.Controller; |
||||||
|
|
||||||
|
import javax.validation.Valid; |
||||||
|
import java.util.Arrays; |
||||||
|
|
||||||
|
/** |
||||||
|
* <p> |
||||||
|
* 前端控制器 |
||||||
|
* </p> |
||||||
|
* |
||||||
|
* @author wangxiang4 |
||||||
|
* @since 2023-02-16 |
||||||
|
*/ |
||||||
|
@RestController |
||||||
|
@RequestMapping(AppConstants.APP_COMMON + "/pushBlacklist") |
||||||
|
@RequiredArgsConstructor |
||||||
|
public class PushBlacklistController { |
||||||
|
|
||||||
|
private final IPushBlacklistService iPushBlacklistService; |
||||||
|
|
||||||
|
private LambdaQueryWrapper<PushBlacklist> getQueryWrapper(PushBlacklist pushBlacklist) { |
||||||
|
return new LambdaQueryWrapper<PushBlacklist>() |
||||||
|
.eq(StrUtil.isNotBlank(pushBlacklist.getPushId()), PushBlacklist::getPushId, pushBlacklist.getPushId()); |
||||||
|
} |
||||||
|
|
||||||
|
@GetMapping("/list") |
||||||
|
public R list(Page page, PushBlacklist pushBlacklist) { |
||||||
|
IPage<OauthClientDetails> list = iPushBlacklistService.page(page, getQueryWrapper(pushBlacklist)); |
||||||
|
return R.ok(list.getRecords(), list.getTotal()); |
||||||
|
} |
||||||
|
|
||||||
|
@GetMapping("/{id:\\w+}") |
||||||
|
public R getById(@PathVariable("id") String id) { |
||||||
|
return R.ok(iPushBlacklistService.getById(id)); |
||||||
|
} |
||||||
|
|
||||||
|
@PostMapping("/save") |
||||||
|
public R save(@Valid @RequestBody PushBlacklist pushBlacklist) { |
||||||
|
iPushBlacklistService.save(pushBlacklist); |
||||||
|
return R.ok(); |
||||||
|
} |
||||||
|
|
||||||
|
@PutMapping("/update") |
||||||
|
public R update(@Valid @RequestBody PushBlacklist pushBlacklist) { |
||||||
|
iPushBlacklistService.updateById(pushBlacklist); |
||||||
|
return R.ok(); |
||||||
|
} |
||||||
|
|
||||||
|
@DeleteMapping("/remove/{ids:[\\w,]+}") |
||||||
|
public R<Boolean> removeById(@PathVariable String[] ids) { |
||||||
|
iPushBlacklistService.removeByIds(Arrays.asList(ids)); |
||||||
|
return R.ok(); |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
|
|
@ -0,0 +1,69 @@ |
|||||||
|
package com.cloud.kicc.commonbiz.controller; |
||||||
|
|
||||||
|
|
||||||
|
import cn.hutool.core.util.StrUtil; |
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
||||||
|
import com.cloud.kicc.common.core.api.R; |
||||||
|
import com.cloud.kicc.common.core.constant.AppConstants; |
||||||
|
import com.cloud.kicc.commonbiz.api.entity.PushCertification; |
||||||
|
import com.cloud.kicc.commonbiz.service.IPushCertificationService; |
||||||
|
import lombok.RequiredArgsConstructor; |
||||||
|
import org.springframework.stereotype.Controller; |
||||||
|
import org.springframework.web.bind.annotation.*; |
||||||
|
|
||||||
|
import javax.validation.Valid; |
||||||
|
import java.util.Arrays; |
||||||
|
|
||||||
|
/** |
||||||
|
* <p> |
||||||
|
* 前端控制器 |
||||||
|
* </p> |
||||||
|
* |
||||||
|
* @author wangxiang4 |
||||||
|
* @since 2023-02-16 |
||||||
|
*/ |
||||||
|
@RestController |
||||||
|
@RequestMapping(AppConstants.APP_COMMON + "/pushCertification") |
||||||
|
@RequiredArgsConstructor |
||||||
|
public class PushCertificationController { |
||||||
|
|
||||||
|
private final IPushCertificationService iPushCertificationService; |
||||||
|
|
||||||
|
private LambdaQueryWrapper<PushCertification> getQueryWrapper(PushCertification pushCertification) { |
||||||
|
return new LambdaQueryWrapper<PushCertification>() |
||||||
|
.eq(StrUtil.isNotBlank(pushCertification.getName()), PushCertification::getName, pushCertification.getName()); |
||||||
|
} |
||||||
|
|
||||||
|
@GetMapping("/list") |
||||||
|
public R list(Page page, PushCertification pushCertification) { |
||||||
|
IPage<PushCertification> list = iPushCertificationService.page(page, getQueryWrapper(pushCertification)); |
||||||
|
return R.ok(list.getRecords(), list.getTotal()); |
||||||
|
} |
||||||
|
|
||||||
|
@GetMapping("/{id:\\w+}") |
||||||
|
public R getById(@PathVariable("id") String id) { |
||||||
|
return R.ok(iPushCertificationService.getById(id)); |
||||||
|
} |
||||||
|
|
||||||
|
@PostMapping("/save") |
||||||
|
public R save(@Valid @RequestBody PushCertification pushCertification) { |
||||||
|
iPushCertificationService.save(pushCertification); |
||||||
|
return R.ok(); |
||||||
|
} |
||||||
|
|
||||||
|
@PutMapping("/update") |
||||||
|
public R update(@Valid @RequestBody PushCertification pushCertification) { |
||||||
|
iPushCertificationService.updateById(pushCertification); |
||||||
|
return R.ok(); |
||||||
|
} |
||||||
|
|
||||||
|
@DeleteMapping("/remove/{ids:[\\w,]+}") |
||||||
|
public R<Boolean> removeById(@PathVariable String[] ids) { |
||||||
|
iPushCertificationService.removeByIds(Arrays.asList(ids)); |
||||||
|
return R.ok(); |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
|
|
@ -0,0 +1,109 @@ |
|||||||
|
package com.cloud.kicc.commonbiz.controller; |
||||||
|
|
||||||
|
|
||||||
|
import cn.hutool.core.lang.tree.Tree; |
||||||
|
import cn.hutool.core.lang.tree.TreeNodeConfig; |
||||||
|
import cn.hutool.core.lang.tree.TreeUtil; |
||||||
|
import cn.hutool.core.util.StrUtil; |
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
||||||
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
||||||
|
import com.cloud.kicc.common.core.api.R; |
||||||
|
import com.cloud.kicc.common.core.constant.AppConstants; |
||||||
|
import com.cloud.kicc.commonbiz.api.entity.PushManage; |
||||||
|
import com.cloud.kicc.commonbiz.service.IPushManageService; |
||||||
|
import lombok.RequiredArgsConstructor; |
||||||
|
import org.springframework.stereotype.Controller; |
||||||
|
import org.springframework.web.bind.annotation.*; |
||||||
|
|
||||||
|
import java.util.List; |
||||||
|
|
||||||
|
/** |
||||||
|
* <p> |
||||||
|
* 前端控制器 |
||||||
|
* </p> |
||||||
|
* |
||||||
|
* @author wangxiang4 |
||||||
|
* @since 2023-02-16 |
||||||
|
*/ |
||||||
|
@RestController |
||||||
|
@RequestMapping(AppConstants.APP_COMMON + "/pushManage") |
||||||
|
@RequiredArgsConstructor |
||||||
|
public class PushManageController { |
||||||
|
|
||||||
|
private final IPushManageService iPushManageService; |
||||||
|
|
||||||
|
private LambdaQueryWrapper<PushManage> getQueryWrapper(PushManage pushManage) { |
||||||
|
return Wrappers.<PushManage>lambdaQuery() |
||||||
|
.like(StrUtil.isNotBlank(pushManage.getName()), PushManage::getName, pushManage.getName()) |
||||||
|
.eq(StrUtil.isNotBlank(pushManage.getAppKey()), PushManage::getAppKey, pushManage.getAppKey()) |
||||||
|
.orderByAsc(PushManage::getSort); |
||||||
|
} |
||||||
|
|
||||||
|
@GetMapping("/list") |
||||||
|
public R list(PushManage pushManage) { |
||||||
|
List<PushManage> list = iPushManageService.list(getQueryWrapper(pushManage)); |
||||||
|
return R.ok(list, list.size()); |
||||||
|
} |
||||||
|
|
||||||
|
@GetMapping("/listTree") |
||||||
|
public R listTree() { |
||||||
|
TreeNodeConfig treeNodeConfig = new TreeNodeConfig(); |
||||||
|
treeNodeConfig.setWeightKey("sort"); |
||||||
|
List<PushManage> list = iPushManageService.list(new LambdaQueryWrapper<PushManage>().orderByAsc(PushManage::getSort)); |
||||||
|
List<Tree<String>> listTree = TreeUtil.build(list, "0", treeNodeConfig, (treeNode, tree) -> { |
||||||
|
tree.setId(treeNode.getId()); |
||||||
|
tree.setParentId(treeNode.getParentId()); |
||||||
|
tree.setWeight(treeNode.getSort()); |
||||||
|
tree.setName(treeNode.getName()); |
||||||
|
// 扩展属性
|
||||||
|
tree.putExtra("isVibration", treeNode.getIsVibration()); |
||||||
|
tree.putExtra("isSound", treeNode.getIsSound()); |
||||||
|
tree.putExtra("appKey", treeNode.getAppKey()); |
||||||
|
tree.putExtra("customSound", treeNode.getCustomSound()); |
||||||
|
tree.putExtra("createById", treeNode.getCreateById()); |
||||||
|
tree.putExtra("createByName", treeNode.getCreateByName()); |
||||||
|
tree.putExtra("createTime", treeNode.getCreateTime()); |
||||||
|
tree.putExtra("updateById", treeNode.getUpdateById()); |
||||||
|
tree.putExtra("updateByName", treeNode.getUpdateByName()); |
||||||
|
tree.putExtra("updateTime", treeNode.getUpdateTime()); |
||||||
|
tree.putExtra("remarks", treeNode.getRemarks()); |
||||||
|
tree.putExtra("beginTime", treeNode.getBeginTime()); |
||||||
|
tree.putExtra("endTime", treeNode.getEndTime()); |
||||||
|
}); |
||||||
|
return R.ok(listTree); |
||||||
|
} |
||||||
|
|
||||||
|
@GetMapping("/{id:\\w+}") |
||||||
|
public R getById(@PathVariable("id") String id) { |
||||||
|
return R.ok(iPushManageService.getById(id)); |
||||||
|
} |
||||||
|
|
||||||
|
@PostMapping("/save") |
||||||
|
public R save(@RequestBody PushManage pushManage) { |
||||||
|
iPushManageService.save(pushManage); |
||||||
|
return R.ok(); |
||||||
|
} |
||||||
|
|
||||||
|
@PutMapping("/update") |
||||||
|
public R update(@RequestBody PushManage pushManage) { |
||||||
|
iPushManageService.updateById(pushManage); |
||||||
|
return R.ok(); |
||||||
|
} |
||||||
|
|
||||||
|
@DeleteMapping("/remove/{id:\\w+}") |
||||||
|
public R remove(@PathVariable("id") String id) { |
||||||
|
if (iPushManageService.getOne(Wrappers.<PushManage>lambdaQuery().eq(PushManage::getParentId, id)) != null) { |
||||||
|
return R.error("存在下级用户,不允许删除"); |
||||||
|
} |
||||||
|
iPushManageService.removeById(id); |
||||||
|
return R.ok(); |
||||||
|
} |
||||||
|
|
||||||
|
@GetMapping("/changeStatus") |
||||||
|
public R changeStatus(PushManage pushManage) { |
||||||
|
iPushManageService.updateById(pushManage); |
||||||
|
return R.ok(); |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
|
|
@ -0,0 +1,72 @@ |
|||||||
|
package com.cloud.kicc.commonbiz.controller; |
||||||
|
|
||||||
|
|
||||||
|
import cn.hutool.core.util.StrUtil; |
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
||||||
|
import com.cloud.kicc.common.core.api.R; |
||||||
|
import com.cloud.kicc.common.core.constant.AppConstants; |
||||||
|
import com.cloud.kicc.commonbiz.api.entity.PushCertification; |
||||||
|
import com.cloud.kicc.commonbiz.api.entity.PushTodoAuth; |
||||||
|
import com.cloud.kicc.commonbiz.service.IPushCertificationService; |
||||||
|
import com.cloud.kicc.commonbiz.service.IPushTodoAuthService; |
||||||
|
import lombok.RequiredArgsConstructor; |
||||||
|
import org.springframework.web.bind.annotation.*; |
||||||
|
|
||||||
|
import org.springframework.stereotype.Controller; |
||||||
|
|
||||||
|
import javax.validation.Valid; |
||||||
|
import java.util.Arrays; |
||||||
|
|
||||||
|
/** |
||||||
|
* <p> |
||||||
|
* 前端控制器 |
||||||
|
* </p> |
||||||
|
* |
||||||
|
* @author wangxiang4 |
||||||
|
* @since 2023-02-16 |
||||||
|
*/ |
||||||
|
@RestController |
||||||
|
@RequestMapping(AppConstants.APP_COMMON + "/pushTodoAuth") |
||||||
|
@RequiredArgsConstructor |
||||||
|
public class PushTodoAuthController { |
||||||
|
|
||||||
|
private final IPushTodoAuthService iPushTodoAuthService; |
||||||
|
|
||||||
|
private LambdaQueryWrapper<PushTodoAuth> getQueryWrapper(PushTodoAuth pushTodoAuth) { |
||||||
|
return new LambdaQueryWrapper<PushTodoAuth>() |
||||||
|
.eq(StrUtil.isNotBlank(pushTodoAuth.getName()), PushTodoAuth::getName, pushTodoAuth.getName()); |
||||||
|
} |
||||||
|
|
||||||
|
@GetMapping("/list") |
||||||
|
public R list(Page page, PushTodoAuth pushTodoAuth) { |
||||||
|
IPage<PushTodoAuth> list = iPushTodoAuthService.page(page, getQueryWrapper(pushTodoAuth)); |
||||||
|
return R.ok(list.getRecords(), list.getTotal()); |
||||||
|
} |
||||||
|
|
||||||
|
@GetMapping("/{id:\\w+}") |
||||||
|
public R getById(@PathVariable("id") String id) { |
||||||
|
return R.ok(iPushTodoAuthService.getById(id)); |
||||||
|
} |
||||||
|
|
||||||
|
@PostMapping("/save") |
||||||
|
public R save(@Valid @RequestBody PushTodoAuth pushTodoAuth) { |
||||||
|
iPushTodoAuthService.save(pushTodoAuth); |
||||||
|
return R.ok(); |
||||||
|
} |
||||||
|
|
||||||
|
@PutMapping("/update") |
||||||
|
public R update(@Valid @RequestBody PushTodoAuth pushTodoAuth) { |
||||||
|
iPushTodoAuthService.updateById(pushTodoAuth); |
||||||
|
return R.ok(); |
||||||
|
} |
||||||
|
|
||||||
|
@DeleteMapping("/remove/{ids:[\\w,]+}") |
||||||
|
public R<Boolean> removeById(@PathVariable String[] ids) { |
||||||
|
iPushTodoAuthService.removeByIds(Arrays.asList(ids)); |
||||||
|
return R.ok(); |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
|
|
@ -0,0 +1,69 @@ |
|||||||
|
package com.cloud.kicc.commonbiz.controller; |
||||||
|
|
||||||
|
|
||||||
|
import cn.hutool.core.util.StrUtil; |
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
||||||
|
import com.cloud.kicc.common.core.api.R; |
||||||
|
import com.cloud.kicc.common.core.constant.AppConstants; |
||||||
|
import com.cloud.kicc.commonbiz.api.entity.PushType; |
||||||
|
import com.cloud.kicc.commonbiz.service.IPushTypeService; |
||||||
|
import lombok.RequiredArgsConstructor; |
||||||
|
import org.springframework.stereotype.Controller; |
||||||
|
import org.springframework.web.bind.annotation.*; |
||||||
|
|
||||||
|
import javax.validation.Valid; |
||||||
|
import java.util.Arrays; |
||||||
|
|
||||||
|
/** |
||||||
|
* <p> |
||||||
|
* 前端控制器 |
||||||
|
* </p> |
||||||
|
* |
||||||
|
* @author wangxiang4 |
||||||
|
* @since 2023-02-16 |
||||||
|
*/ |
||||||
|
@RestController |
||||||
|
@RequestMapping(AppConstants.APP_COMMON + "/pushType") |
||||||
|
@RequiredArgsConstructor |
||||||
|
public class PushTypeController { |
||||||
|
|
||||||
|
private final IPushTypeService iPushTypeService; |
||||||
|
|
||||||
|
private LambdaQueryWrapper<PushType> getQueryWrapper(PushType pushType) { |
||||||
|
return new LambdaQueryWrapper<PushType>() |
||||||
|
.eq(StrUtil.isNotBlank(pushType.getName()), PushType::getName, pushType.getName()); |
||||||
|
} |
||||||
|
|
||||||
|
@GetMapping("/list") |
||||||
|
public R list(Page page, PushType pushType) { |
||||||
|
IPage<PushType> list = iPushTypeService.page(page, getQueryWrapper(pushType)); |
||||||
|
return R.ok(list.getRecords(), list.getTotal()); |
||||||
|
} |
||||||
|
|
||||||
|
@GetMapping("/{id:\\w+}") |
||||||
|
public R getById(@PathVariable("id") String id) { |
||||||
|
return R.ok(iPushTypeService.getById(id)); |
||||||
|
} |
||||||
|
|
||||||
|
@PostMapping("/save") |
||||||
|
public R save(@Valid @RequestBody PushType pushType) { |
||||||
|
iPushTypeService.save(pushType); |
||||||
|
return R.ok(); |
||||||
|
} |
||||||
|
|
||||||
|
@PutMapping("/update") |
||||||
|
public R update(@Valid @RequestBody PushType pushType) { |
||||||
|
iPushTypeService.updateById(pushType); |
||||||
|
return R.ok(); |
||||||
|
} |
||||||
|
|
||||||
|
@DeleteMapping("/remove/{ids:[\\w,]+}") |
||||||
|
public R<Boolean> removeById(@PathVariable String[] ids) { |
||||||
|
iPushTypeService.removeByIds(Arrays.asList(ids)); |
||||||
|
return R.ok(); |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
|
|
@ -0,0 +1,73 @@ |
|||||||
|
package com.cloud.kicc.commonbiz.controller; |
||||||
|
|
||||||
|
|
||||||
|
import cn.hutool.core.util.StrUtil; |
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
||||||
|
import com.cloud.kicc.common.core.api.R; |
||||||
|
import com.cloud.kicc.common.core.constant.AppConstants; |
||||||
|
import com.cloud.kicc.commonbiz.api.entity.PushBlacklist; |
||||||
|
import com.cloud.kicc.commonbiz.api.entity.PushWhitelist; |
||||||
|
import com.cloud.kicc.commonbiz.service.IPushBlacklistService; |
||||||
|
import com.cloud.kicc.commonbiz.service.IPushWhitelistService; |
||||||
|
import com.cloud.kicc.system.api.entity.OauthClientDetails; |
||||||
|
import lombok.RequiredArgsConstructor; |
||||||
|
import org.springframework.web.bind.annotation.*; |
||||||
|
|
||||||
|
import org.springframework.stereotype.Controller; |
||||||
|
|
||||||
|
import javax.validation.Valid; |
||||||
|
import java.util.Arrays; |
||||||
|
|
||||||
|
/** |
||||||
|
* <p> |
||||||
|
* 前端控制器 |
||||||
|
* </p> |
||||||
|
* |
||||||
|
* @author wangxiang4 |
||||||
|
* @since 2023-02-16 |
||||||
|
*/ |
||||||
|
@RestController |
||||||
|
@RequestMapping(AppConstants.APP_COMMON + "/pushWhitelist") |
||||||
|
@RequiredArgsConstructor |
||||||
|
public class PushWhitelistController { |
||||||
|
|
||||||
|
private final IPushWhitelistService iPushWhitelistService; |
||||||
|
|
||||||
|
private LambdaQueryWrapper<PushWhitelist> getQueryWrapper(PushWhitelist pushWhitelist) { |
||||||
|
return new LambdaQueryWrapper<PushWhitelist>() |
||||||
|
.eq(StrUtil.isNotBlank(pushWhitelist.getPushId()), PushWhitelist::getPushId, pushWhitelist.getPushId()); |
||||||
|
} |
||||||
|
|
||||||
|
@GetMapping("/list") |
||||||
|
public R list(Page page, PushWhitelist pushWhitelist) { |
||||||
|
IPage<PushWhitelist> list = iPushWhitelistService.page(page, getQueryWrapper(pushWhitelist)); |
||||||
|
return R.ok(list.getRecords(), list.getTotal()); |
||||||
|
} |
||||||
|
|
||||||
|
@GetMapping("/{id:\\w+}") |
||||||
|
public R getById(@PathVariable("id") String id) { |
||||||
|
return R.ok(iPushWhitelistService.getById(id)); |
||||||
|
} |
||||||
|
|
||||||
|
@PostMapping("/save") |
||||||
|
public R save(@Valid @RequestBody PushWhitelist pushWhitelist) { |
||||||
|
iPushWhitelistService.save(pushWhitelist); |
||||||
|
return R.ok(); |
||||||
|
} |
||||||
|
|
||||||
|
@PutMapping("/update") |
||||||
|
public R update(@Valid @RequestBody PushWhitelist pushWhitelist) { |
||||||
|
iPushWhitelistService.updateById(pushWhitelist); |
||||||
|
return R.ok(); |
||||||
|
} |
||||||
|
|
||||||
|
@DeleteMapping("/remove/{ids:[\\w,]+}") |
||||||
|
public R<Boolean> removeById(@PathVariable String[] ids) { |
||||||
|
iPushWhitelistService.removeByIds(Arrays.asList(ids)); |
||||||
|
return R.ok(); |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
|
|
@ -0,0 +1,16 @@ |
|||||||
|
package com.cloud.kicc.commonbiz.mapper; |
||||||
|
|
||||||
|
import com.cloud.kicc.commonbiz.api.entity.PushApplication; |
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||||
|
|
||||||
|
/** |
||||||
|
* <p> |
||||||
|
* Mapper 接口 |
||||||
|
* </p> |
||||||
|
* |
||||||
|
* @author wangxiang4 |
||||||
|
* @since 2023-02-16 |
||||||
|
*/ |
||||||
|
public interface PushApplicationMapper extends BaseMapper<PushApplication> { |
||||||
|
|
||||||
|
} |
@ -0,0 +1,16 @@ |
|||||||
|
package com.cloud.kicc.commonbiz.mapper; |
||||||
|
|
||||||
|
import com.cloud.kicc.commonbiz.api.entity.PushBlacklist; |
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||||
|
|
||||||
|
/** |
||||||
|
* <p> |
||||||
|
* Mapper 接口 |
||||||
|
* </p> |
||||||
|
* |
||||||
|
* @author wangxiang4 |
||||||
|
* @since 2023-02-16 |
||||||
|
*/ |
||||||
|
public interface PushBlacklistMapper extends BaseMapper<PushBlacklist> { |
||||||
|
|
||||||
|
} |
@ -0,0 +1,16 @@ |
|||||||
|
package com.cloud.kicc.commonbiz.mapper; |
||||||
|
|
||||||
|
import com.cloud.kicc.commonbiz.api.entity.PushCertification; |
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||||
|
|
||||||
|
/** |
||||||
|
* <p> |
||||||
|
* Mapper 接口 |
||||||
|
* </p> |
||||||
|
* |
||||||
|
* @author wangxiang4 |
||||||
|
* @since 2023-02-16 |
||||||
|
*/ |
||||||
|
public interface PushCertificationMapper extends BaseMapper<PushCertification> { |
||||||
|
|
||||||
|
} |
@ -0,0 +1,16 @@ |
|||||||
|
package com.cloud.kicc.commonbiz.mapper; |
||||||
|
|
||||||
|
import com.cloud.kicc.commonbiz.api.entity.PushManage; |
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||||
|
|
||||||
|
/** |
||||||
|
* <p> |
||||||
|
* Mapper 接口 |
||||||
|
* </p> |
||||||
|
* |
||||||
|
* @author wangxiang4 |
||||||
|
* @since 2023-02-16 |
||||||
|
*/ |
||||||
|
public interface PushManageMapper extends BaseMapper<PushManage> { |
||||||
|
|
||||||
|
} |
@ -0,0 +1,16 @@ |
|||||||
|
package com.cloud.kicc.commonbiz.mapper; |
||||||
|
|
||||||
|
import com.cloud.kicc.commonbiz.api.entity.PushTodoAuth; |
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||||
|
|
||||||
|
/** |
||||||
|
* <p> |
||||||
|
* Mapper 接口 |
||||||
|
* </p> |
||||||
|
* |
||||||
|
* @author wangxiang4 |
||||||
|
* @since 2023-02-16 |
||||||
|
*/ |
||||||
|
public interface PushTodoAuthMapper extends BaseMapper<PushTodoAuth> { |
||||||
|
|
||||||
|
} |
@ -0,0 +1,16 @@ |
|||||||
|
package com.cloud.kicc.commonbiz.mapper; |
||||||
|
|
||||||
|
import com.cloud.kicc.commonbiz.api.entity.PushType; |
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||||
|
|
||||||
|
/** |
||||||
|
* <p> |
||||||
|
* Mapper 接口 |
||||||
|
* </p> |
||||||
|
* |
||||||
|
* @author wangxiang4 |
||||||
|
* @since 2023-02-16 |
||||||
|
*/ |
||||||
|
public interface PushTypeMapper extends BaseMapper<PushType> { |
||||||
|
|
||||||
|
} |
@ -0,0 +1,16 @@ |
|||||||
|
package com.cloud.kicc.commonbiz.mapper; |
||||||
|
|
||||||
|
import com.cloud.kicc.commonbiz.api.entity.PushWhitelist; |
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||||
|
|
||||||
|
/** |
||||||
|
* <p> |
||||||
|
* Mapper 接口 |
||||||
|
* </p> |
||||||
|
* |
||||||
|
* @author wangxiang4 |
||||||
|
* @since 2023-02-16 |
||||||
|
*/ |
||||||
|
public interface PushWhitelistMapper extends BaseMapper<PushWhitelist> { |
||||||
|
|
||||||
|
} |
@ -0,0 +1,16 @@ |
|||||||
|
package com.cloud.kicc.commonbiz.service; |
||||||
|
|
||||||
|
import com.cloud.kicc.commonbiz.api.entity.PushApplication; |
||||||
|
import com.baomidou.mybatisplus.extension.service.IService; |
||||||
|
|
||||||
|
/** |
||||||
|
* <p> |
||||||
|
* 服务类 |
||||||
|
* </p> |
||||||
|
* |
||||||
|
* @author wangxiang4 |
||||||
|
* @since 2023-02-16 |
||||||
|
*/ |
||||||
|
public interface IPushApplicationService extends IService<PushApplication> { |
||||||
|
|
||||||
|
} |
@ -0,0 +1,16 @@ |
|||||||
|
package com.cloud.kicc.commonbiz.service; |
||||||
|
|
||||||
|
import com.cloud.kicc.commonbiz.api.entity.PushBlacklist; |
||||||
|
import com.baomidou.mybatisplus.extension.service.IService; |
||||||
|
|
||||||
|
/** |
||||||
|
* <p> |
||||||
|
* 服务类 |
||||||
|
* </p> |
||||||
|
* |
||||||
|
* @author wangxiang4 |
||||||
|
* @since 2023-02-16 |
||||||
|
*/ |
||||||
|
public interface IPushBlacklistService extends IService<PushBlacklist> { |
||||||
|
|
||||||
|
} |
@ -0,0 +1,16 @@ |
|||||||
|
package com.cloud.kicc.commonbiz.service; |
||||||
|
|
||||||
|
import com.cloud.kicc.commonbiz.api.entity.PushCertification; |
||||||
|
import com.baomidou.mybatisplus.extension.service.IService; |
||||||
|
|
||||||
|
/** |
||||||
|
* <p> |
||||||
|
* 服务类 |
||||||
|
* </p> |
||||||
|
* |
||||||
|
* @author wangxiang4 |
||||||
|
* @since 2023-02-16 |
||||||
|
*/ |
||||||
|
public interface IPushCertificationService extends IService<PushCertification> { |
||||||
|
|
||||||
|
} |
@ -0,0 +1,17 @@ |
|||||||
|
package com.cloud.kicc.commonbiz.service; |
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService; |
||||||
|
import com.cloud.kicc.commonbiz.api.entity.PushManage; |
||||||
|
|
||||||
|
/** |
||||||
|
* <p> |
||||||
|
* 服务类 |
||||||
|
* </p> |
||||||
|
* |
||||||
|
* @author wangxiang4 |
||||||
|
* @since 2023-02-16 |
||||||
|
*/ |
||||||
|
public interface IPushManageService extends IService<PushManage> { |
||||||
|
|
||||||
|
|
||||||
|
} |
@ -0,0 +1,16 @@ |
|||||||
|
package com.cloud.kicc.commonbiz.service; |
||||||
|
|
||||||
|
import com.cloud.kicc.commonbiz.api.entity.PushTodoAuth; |
||||||
|
import com.baomidou.mybatisplus.extension.service.IService; |
||||||
|
|
||||||
|
/** |
||||||
|
* <p> |
||||||
|
* 服务类 |
||||||
|
* </p> |
||||||
|
* |
||||||
|
* @author wangxiang4 |
||||||
|
* @since 2023-02-16 |
||||||
|
*/ |
||||||
|
public interface IPushTodoAuthService extends IService<PushTodoAuth> { |
||||||
|
|
||||||
|
} |
@ -0,0 +1,16 @@ |
|||||||
|
package com.cloud.kicc.commonbiz.service; |
||||||
|
|
||||||
|
import com.cloud.kicc.commonbiz.api.entity.PushType; |
||||||
|
import com.baomidou.mybatisplus.extension.service.IService; |
||||||
|
|
||||||
|
/** |
||||||
|
* <p> |
||||||
|
* 服务类 |
||||||
|
* </p> |
||||||
|
* |
||||||
|
* @author wangxiang4 |
||||||
|
* @since 2023-02-16 |
||||||
|
*/ |
||||||
|
public interface IPushTypeService extends IService<PushType> { |
||||||
|
|
||||||
|
} |
@ -0,0 +1,16 @@ |
|||||||
|
package com.cloud.kicc.commonbiz.service; |
||||||
|
|
||||||
|
import com.cloud.kicc.commonbiz.api.entity.PushWhitelist; |
||||||
|
import com.baomidou.mybatisplus.extension.service.IService; |
||||||
|
|
||||||
|
/** |
||||||
|
* <p> |
||||||
|
* 服务类 |
||||||
|
* </p> |
||||||
|
* |
||||||
|
* @author wangxiang4 |
||||||
|
* @since 2023-02-16 |
||||||
|
*/ |
||||||
|
public interface IPushWhitelistService extends IService<PushWhitelist> { |
||||||
|
|
||||||
|
} |
@ -0,0 +1,20 @@ |
|||||||
|
package com.cloud.kicc.commonbiz.service.impl; |
||||||
|
|
||||||
|
import com.cloud.kicc.commonbiz.api.entity.PushApplication; |
||||||
|
import com.cloud.kicc.commonbiz.mapper.PushApplicationMapper; |
||||||
|
import com.cloud.kicc.commonbiz.service.IPushApplicationService; |
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
||||||
|
import org.springframework.stereotype.Service; |
||||||
|
|
||||||
|
/** |
||||||
|
* <p> |
||||||
|
* 服务实现类 |
||||||
|
* </p> |
||||||
|
* |
||||||
|
* @author wangxiang4 |
||||||
|
* @since 2023-02-16 |
||||||
|
*/ |
||||||
|
@Service |
||||||
|
public class PushApplicationServiceImpl extends ServiceImpl<PushApplicationMapper, PushApplication> implements IPushApplicationService { |
||||||
|
|
||||||
|
} |
@ -0,0 +1,20 @@ |
|||||||
|
package com.cloud.kicc.commonbiz.service.impl; |
||||||
|
|
||||||
|
import com.cloud.kicc.commonbiz.api.entity.PushBlacklist; |
||||||
|
import com.cloud.kicc.commonbiz.mapper.PushBlacklistMapper; |
||||||
|
import com.cloud.kicc.commonbiz.service.IPushBlacklistService; |
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
||||||
|
import org.springframework.stereotype.Service; |
||||||
|
|
||||||
|
/** |
||||||
|
* <p> |
||||||
|
* 服务实现类 |
||||||
|
* </p> |
||||||
|
* |
||||||
|
* @author wangxiang4 |
||||||
|
* @since 2023-02-16 |
||||||
|
*/ |
||||||
|
@Service |
||||||
|
public class PushBlacklistServiceImpl extends ServiceImpl<PushBlacklistMapper, PushBlacklist> implements IPushBlacklistService { |
||||||
|
|
||||||
|
} |
@ -0,0 +1,20 @@ |
|||||||
|
package com.cloud.kicc.commonbiz.service.impl; |
||||||
|
|
||||||
|
import com.cloud.kicc.commonbiz.api.entity.PushCertification; |
||||||
|
import com.cloud.kicc.commonbiz.mapper.PushCertificationMapper; |
||||||
|
import com.cloud.kicc.commonbiz.service.IPushCertificationService; |
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
||||||
|
import org.springframework.stereotype.Service; |
||||||
|
|
||||||
|
/** |
||||||
|
* <p> |
||||||
|
* 服务实现类 |
||||||
|
* </p> |
||||||
|
* |
||||||
|
* @author wangxiang4 |
||||||
|
* @since 2023-02-16 |
||||||
|
*/ |
||||||
|
@Service |
||||||
|
public class PushCertificationServiceImpl extends ServiceImpl<PushCertificationMapper, PushCertification> implements IPushCertificationService { |
||||||
|
|
||||||
|
} |
@ -0,0 +1,22 @@ |
|||||||
|
package com.cloud.kicc.commonbiz.service.impl; |
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
||||||
|
import com.cloud.kicc.commonbiz.api.entity.PushManage; |
||||||
|
import com.cloud.kicc.commonbiz.mapper.PushManageMapper; |
||||||
|
import com.cloud.kicc.commonbiz.service.IPushManageService; |
||||||
|
import lombok.RequiredArgsConstructor; |
||||||
|
import org.springframework.stereotype.Service; |
||||||
|
|
||||||
|
/** |
||||||
|
* <p> |
||||||
|
* 服务实现类 |
||||||
|
* </p> |
||||||
|
* |
||||||
|
* @author wangxiang4 |
||||||
|
* @since 2023-02-16 |
||||||
|
*/ |
||||||
|
@Service |
||||||
|
@RequiredArgsConstructor |
||||||
|
public class PushManageServiceImpl extends ServiceImpl<PushManageMapper, PushManage> implements IPushManageService { |
||||||
|
|
||||||
|
} |
@ -0,0 +1,20 @@ |
|||||||
|
package com.cloud.kicc.commonbiz.service.impl; |
||||||
|
|
||||||
|
import com.cloud.kicc.commonbiz.api.entity.PushTodoAuth; |
||||||
|
import com.cloud.kicc.commonbiz.mapper.PushTodoAuthMapper; |
||||||
|
import com.cloud.kicc.commonbiz.service.IPushTodoAuthService; |
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
||||||
|
import org.springframework.stereotype.Service; |
||||||
|
|
||||||
|
/** |
||||||
|
* <p> |
||||||
|
* 服务实现类 |
||||||
|
* </p> |
||||||
|
* |
||||||
|
* @author wangxiang4 |
||||||
|
* @since 2023-02-16 |
||||||
|
*/ |
||||||
|
@Service |
||||||
|
public class PushTodoAuthServiceImpl extends ServiceImpl<PushTodoAuthMapper, PushTodoAuth> implements IPushTodoAuthService { |
||||||
|
|
||||||
|
} |
@ -0,0 +1,20 @@ |
|||||||
|
package com.cloud.kicc.commonbiz.service.impl; |
||||||
|
|
||||||
|
import com.cloud.kicc.commonbiz.api.entity.PushType; |
||||||
|
import com.cloud.kicc.commonbiz.mapper.PushTypeMapper; |
||||||
|
import com.cloud.kicc.commonbiz.service.IPushTypeService; |
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
||||||
|
import org.springframework.stereotype.Service; |
||||||
|
|
||||||
|
/** |
||||||
|
* <p> |
||||||
|
* 服务实现类 |
||||||
|
* </p> |
||||||
|
* |
||||||
|
* @author wangxiang4 |
||||||
|
* @since 2023-02-16 |
||||||
|
*/ |
||||||
|
@Service |
||||||
|
public class PushTypeServiceImpl extends ServiceImpl<PushTypeMapper, PushType> implements IPushTypeService { |
||||||
|
|
||||||
|
} |
@ -0,0 +1,20 @@ |
|||||||
|
package com.cloud.kicc.commonbiz.service.impl; |
||||||
|
|
||||||
|
import com.cloud.kicc.commonbiz.api.entity.PushWhitelist; |
||||||
|
import com.cloud.kicc.commonbiz.mapper.PushWhitelistMapper; |
||||||
|
import com.cloud.kicc.commonbiz.service.IPushWhitelistService; |
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
||||||
|
import org.springframework.stereotype.Service; |
||||||
|
|
||||||
|
/** |
||||||
|
* <p> |
||||||
|
* 服务实现类 |
||||||
|
* </p> |
||||||
|
* |
||||||
|
* @author wangxiang4 |
||||||
|
* @since 2023-02-16 |
||||||
|
*/ |
||||||
|
@Service |
||||||
|
public class PushWhitelistServiceImpl extends ServiceImpl<PushWhitelistMapper, PushWhitelist> implements IPushWhitelistService { |
||||||
|
|
||||||
|
} |
@ -0,0 +1,5 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||||
|
<mapper namespace="com.cloud.kicc.commonbiz.mapper.PushApplicationMapper"> |
||||||
|
|
||||||
|
</mapper> |
@ -0,0 +1,5 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||||
|
<mapper namespace="com.cloud.kicc.commonbiz.mapper.PushBlacklistMapper"> |
||||||
|
|
||||||
|
</mapper> |
@ -0,0 +1,5 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||||
|
<mapper namespace="com.cloud.kicc.commonbiz.mapper.PushCertificationMapper"> |
||||||
|
|
||||||
|
</mapper> |
@ -0,0 +1,5 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||||
|
<mapper namespace="com.cloud.kicc.commonbiz.mapper.PushManageMapper"> |
||||||
|
|
||||||
|
</mapper> |
@ -0,0 +1,5 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||||
|
<mapper namespace="com.cloud.kicc.commonbiz.mapper.PushTodoAuthMapper"> |
||||||
|
|
||||||
|
</mapper> |
@ -0,0 +1,5 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||||
|
<mapper namespace="com.cloud.kicc.commonbiz.mapper.PushTypeMapper"> |
||||||
|
|
||||||
|
</mapper> |
@ -0,0 +1,5 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||||
|
<mapper namespace="com.cloud.kicc.commonbiz.mapper.PushWhitelistMapper"> |
||||||
|
|
||||||
|
</mapper> |
Loading…
Reference in new issue