Merge remote-tracking branch 'origin/sy' into cy

sy
86173 2024-08-22 20:57:28 +08:00
commit 448c3997eb
10 changed files with 256 additions and 89 deletions

View File

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding">
<file url="file://$APPLICATION_HOME_DIR$/jbr/bin/src/main/java" charset="UTF-8" />
<file url="file://$APPLICATION_HOME_DIR$/jbr/bin/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/cloud-market-client/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/cloud-market-client/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/cloud-market-common/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/cloud-market-common/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/cloud-market-remote/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/cloud-market-remote/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/cloud-market-server/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/cloud-market-server/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/src/main/resources" charset="UTF-8" />
</component>
</project>

View File

@ -0,0 +1,44 @@
package com.muyu.market.domian;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.muyu.common.core.web.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName(value = "rule", autoResultMap = true)
public class Connertor extends BaseEntity {
/**
*
*/
@TableId(value = "connector_id" ,type = IdType.AUTO)
private Long connectorId;
/**
*
*/
private String connectorName;
/**
*
*/
private String connectorDescription;
/**
* 使
*/
private Integer connectorNum;
/**
*
*/
private Integer status;
}

View File

@ -28,30 +28,47 @@ import java.util.Date;
@TableName(value = "defined", autoResultMap = true) @TableName(value = "defined", autoResultMap = true)
public class Defined extends BaseEntity { public class Defined extends BaseEntity {
/**
*
*/
@TableId(value = "defined_id" ,type = IdType.AUTO) @TableId(value = "defined_id" ,type = IdType.AUTO)
private Long definedId ; private Long definedId ;
/** 定义名称 */ /**
*
*/
private String definedName ; private String definedName ;
/** 描述 */ /**
*
*/
private String definedDescription ; private String definedDescription ;
/** 接口分配 */ /**
*
*/
private String definedAllot ; private String definedAllot ;
/** 有效期(天) */ /**
private Date definedDateValidity ; * (
/** 接口类型 */ */
private Long definedTypeId ; private Integer definedDateValidity ;
/** 接口使用量 */ /**
*
*/
private Integer typeId ;
/**
* 使
*/
private Integer interfaceNum ; private Integer interfaceNum ;
/** 接口来源 */ /**
*
*/
private String definedSource ; private String definedSource ;
/** 使用模板 */ /**
private String definedStencil ; *
/** 开发人员 */ */
private String definedManpower ; private String definedPeople;
/** 状态 */ /**
private String state ; *
*/
private Integer status ;
public Defined getDefinedName(Defined defined) {
return defined;
}
} }

View File

@ -0,0 +1,43 @@
package com.muyu.market.domian;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.muyu.common.core.web.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import java.util.Date;
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName(value = "rule", autoResultMap = true)
public class Logs extends BaseEntity {
/**
*
*/
@TableId(value = "logs_id" ,type = IdType.AUTO)
private Long logsId;
/**
* id
*/
private Integer userId;
/**
* id
*/
private Integer typeId;
/**
*
*/
private Date logsTime;
}

View File

@ -0,0 +1,45 @@
package com.muyu.market.domian;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.muyu.common.core.web.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import java.util.Date;
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName(value = "pay", autoResultMap = true)
public class Pay extends BaseEntity {
/**
*
*/
@TableId(value = "pay_id" ,type = IdType.AUTO)
private Long payId;
/**
*
*/
private Integer payType;
/**
*
*/
private Integer payStatus;
/**
*
*/
private Integer userId;
/**
*
*/
private Date payTime;
}

View File

@ -30,9 +30,9 @@ public class Rule extends BaseEntity {
/** 规则代码 */ /** 规则代码 */
private String ruleCode ; private String ruleCode ;
/** 规则描述 */ /** 规则描述 */
private String ruleDescribe ; private String ruleDescription ;
/** 规则状态 */ /** 规则状态 */
private Integer state ; private Integer status ;
/** 使用次数 */ /** 使用次数 */
private Integer ruleNum ; private Integer ruleNum ;

View File

@ -23,16 +23,32 @@ import lombok.experimental.SuperBuilder;
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@TableName(value = "type", autoResultMap = true) @TableName(value = "type", autoResultMap = true)
public class Type extends BaseEntity { public class Type extends BaseEntity {
/**
*
*/
@TableId(value = "type_id" ,type = IdType.AUTO) @TableId(value = "type_id" ,type = IdType.AUTO)
private Long typeId ; private Long typeId;
/** 类型名称 */ /**
private String typeName ; *
/** 接口列 */ */
private String typeBar ; private String typeName;
/** 类型描述 */ /**
private String typeSpecification ; *
/** 接口数量 */ */
private Integer typeNum ; private String typeDescription;
/** 调用次数 */ /**
private Integer typeNumber ; * 使
*/
private Integer typeNum;
/**
*
*/
private Integer typeNumber;
// private String createBy;
// private String createTime;
// private String updateBy;
// private String updateTime;
} }

View File

@ -31,49 +31,50 @@ import java.util.List;
@Tag(name = "定义接口控制层",description = "进行客户管理,查看等相关操作") @Tag(name = "定义接口控制层",description = "进行客户管理,查看等相关操作")
public class DefinedController { public class DefinedController {
/**
*
*/
@Autowired
private DefinedService definedService;
/** // /**
* // * 接口业务层
*/ // */
@RequestMapping(path = "/list",method = RequestMethod.POST) // @Autowired
@Operation(summary = "查询",description = "根据接口的名称、编码,是否开启等可以进行筛选") // private DefinedService definedService;
public Result<List<Defined>> selectList( //
@Validated @RequestBody Defined defined) { // /**
return Result.success( // * 接口列表
definedService.selectList(defined) // */
); // @RequestMapping(path = "/list",method = RequestMethod.POST)
} // @Operation(summary = "查询",description = "根据接口的名称、编码,是否开启等可以进行筛选")
// public Result<List<Defined>> selectList(
// @Validated @RequestBody Defined defined) {
/** // return Result.success(
* // definedService.selectList(defined)
*/ // );
@PostMapping // }
@Operation(summary = "添加", description = "根据接口实体类添加,添加成功之后才可以使用支付类产品") //
public Result<String> save(@Validated @RequestBody Defined defined) { //
definedService.save(defined); // /**
return Result.success(); // * 接口添加
} // */
// @PostMapping
// @Operation(summary = "添加", description = "根据接口实体类添加,添加成功之后才可以使用支付类产品")
/** // public Result<String> save(@Validated @RequestBody Defined defined) {
* // definedService.save(defined);
*/ // return Result.success();
@PutMapping("/{definedId}") // }
@Operation(summary = "修改", description = "通过ID修改信息") //
public Result<String> updateById( //
@Validated @RequestBody Defined defined, // /**
@Schema(title = "ID", defaultValue = "1", type = "Long", description = "修改信息所需的唯一条件") // * 接口修改
@PathVariable("definedId") Long definedId) { // */
// @PutMapping("/{definedId}")
definedService.updateById(defined); // @Operation(summary = "修改", description = "通过ID修改信息")
return Result.success(); // public Result<String> updateById(
} // @Validated @RequestBody Defined defined,
// @Schema(title = "ID", defaultValue = "1", type = "Long", description = "修改信息所需的唯一条件")
// @PathVariable("definedId") Long definedId) {
//
// definedService.updateById(defined);
// return Result.success();
// }
} }

View File

@ -13,6 +13,5 @@ import java.util.List;
* @Date2024/8/20 14:48 * @Date2024/8/20 14:48
*/ */
public interface DefinedService extends IService<Defined> { public interface DefinedService extends IService<Defined> {
List<Defined> selectList(Defined defined);
} }

View File

@ -30,20 +30,5 @@ public class DefinedServiceImpl
private DefinedMapper definedMapper; private DefinedMapper definedMapper;
@Override
public List<Defined> selectList(Defined defined) {
LambdaQueryWrapper<Defined> queryWrapper = new LambdaQueryWrapper<>();
queryWrapper.like(
StringUtils.isNotEmpty(defined.getDefinedName()),
defined::getDefinedName, defined.getDefinedName()
);
return this.list(queryWrapper)
.stream()
.toList();
}
} }