mirror of
https://github.com/hpd840321/craftlabs-authorization-sdk.git
synced 2026-06-09 10:00:30 +08:00
feat: add feature mapping view and notification template config
This commit is contained in:
+6
@@ -150,6 +150,12 @@ public class IntegrationCatalogController {
|
||||
return ResponseEntity.ok().build();
|
||||
}
|
||||
|
||||
@GetMapping("/feature-mappings")
|
||||
public ResponseEntity<List<PlatformBitanswerIdMapping>> listFeatureMappings(
|
||||
@RequestParam(required = false) Long productLineId) {
|
||||
return ResponseEntity.ok(integrationCatalogService.listFeatureMappings(productLineId));
|
||||
}
|
||||
|
||||
@GetMapping("/sku-mappings")
|
||||
public ResponseEntity<List<SkuMappingResponse>> listSkuMappings(
|
||||
@RequestParam(required = false) Long contractLineId) {
|
||||
|
||||
+8
@@ -155,6 +155,14 @@ public class IntegrationCatalogService {
|
||||
environmentMapper.deleteById(id);
|
||||
}
|
||||
|
||||
public List<PlatformBitanswerIdMapping> listFeatureMappings(Long productLineId) {
|
||||
var qw = new com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper<PlatformBitanswerIdMapping>()
|
||||
.isNotNull(PlatformBitanswerIdMapping::getFeatureKey);
|
||||
if (productLineId != null) qw.eq(PlatformBitanswerIdMapping::getProductLineId, productLineId);
|
||||
qw.orderByDesc(PlatformBitanswerIdMapping::getCreatedAt);
|
||||
return idMappingMapper.selectList(qw);
|
||||
}
|
||||
|
||||
public List<PlatformBitanswerIdMapping> listIdMappings(Long productLineId, Long environmentId) {
|
||||
var qw = new com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper<PlatformBitanswerIdMapping>();
|
||||
if (productLineId != null) qw.eq(PlatformBitanswerIdMapping::getProductLineId, productLineId);
|
||||
|
||||
Reference in New Issue
Block a user