commit 921cdc2c8a4475e4090082c5286c1e0ac57fa504
Author: 张毅大神 <3163302184@qq.com>
Date: Tue Aug 27 21:40:02 2024 +0800
企业团队接口
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..267ec64
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,35 @@
+target/
+!.mvn/wrapper/maven-wrapper.jar
+!**/src/main/**/target/
+!**/src/test/**/target/
+
+### IntelliJ IDEA ###
+.ideagit
+*.iws
+*.iml
+*.ipr
+
+### Eclipse ###
+.apt_generated
+.classpath
+.factorypath
+.project
+.settings
+.springBeans
+.sts4-cache
+
+### NetBeans ###
+/nbproject/private/
+/nbbuild/
+/dist/
+/nbdist/
+/.nb-gradle/
+build/
+!**/src/main/**/build/
+!**/src/test/**/build/
+
+### VS Code ###
+.vscode/
+
+### Mac OS ###
+.DS_Store
diff --git a/.idea/.gitignore b/.idea/.gitignore
new file mode 100644
index 0000000..35410ca
--- /dev/null
+++ b/.idea/.gitignore
@@ -0,0 +1,8 @@
+# 默认忽略的文件
+/shelf/
+/workspace.xml
+# 基于编辑器的 HTTP 客户端请求
+/httpRequests/
+# Datasource local storage ignored files
+/dataSources/
+/dataSources.local.xml
diff --git a/.idea/compiler.xml b/.idea/compiler.xml
new file mode 100644
index 0000000..43d0f5a
--- /dev/null
+++ b/.idea/compiler.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/easycode.ignore b/.idea/easycode.ignore
new file mode 100644
index 0000000..be585df
--- /dev/null
+++ b/.idea/easycode.ignore
@@ -0,0 +1,13 @@
+node_modules/
+dist/
+vendor/
+cache/
+.*/
+*.min.*
+*.test.*
+*.spec.*
+*.bundle.*
+*.bundle-min.*
+*.*.js
+*.*.ts
+*.log
diff --git a/.idea/encodings.xml b/.idea/encodings.xml
new file mode 100644
index 0000000..2f2fd3f
--- /dev/null
+++ b/.idea/encodings.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml
new file mode 100644
index 0000000..845213f
--- /dev/null
+++ b/.idea/jarRepositories.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..67e1e61
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/uiDesigner.xml b/.idea/uiDesigner.xml
new file mode 100644
index 0000000..e96534f
--- /dev/null
+++ b/.idea/uiDesigner.xml
@@ -0,0 +1,124 @@
+
+
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+
+
+ -
+
+
+ -
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..8306744
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..d013590
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,12 @@
+FROM anolis-registry.cn-zhangjiakou.cr.aliyuncs.com/openanolis/dragonwell:17.0.4.0.4.8-standard-ga-8.6
+
+ENV TZ=Asia/Shanghai
+RUN ln -snf /usr/share/zoneifon/$TZ /etc/localtime && echo '$TZ' > /etc/timezone
+
+VOLUME ["/home/logs/cloud-market"]
+
+COPY ./target/cloud-market.jar /home/app.jar
+
+ENTRYPOINT ["java","-jar"]
+
+CMD ["/home/app.jar"]
diff --git a/cloud-market-client/.gitignore b/cloud-market-client/.gitignore
new file mode 100644
index 0000000..5ff6309
--- /dev/null
+++ b/cloud-market-client/.gitignore
@@ -0,0 +1,38 @@
+target/
+!.mvn/wrapper/maven-wrapper.jar
+!**/src/main/**/target/
+!**/src/test/**/target/
+
+### IntelliJ IDEA ###
+.idea/modules.xml
+.idea/jarRepositories.xml
+.idea/compiler.xml
+.idea/libraries/
+*.iws
+*.iml
+*.ipr
+
+### Eclipse ###
+.apt_generated
+.classpath
+.factorypath
+.project
+.settings
+.springBeans
+.sts4-cache
+
+### NetBeans ###
+/nbproject/private/
+/nbbuild/
+/dist/
+/nbdist/
+/.nb-gradle/
+build/
+!**/src/main/**/build/
+!**/src/test/**/build/
+
+### VS Code ###
+.vscode/
+
+### Mac OS ###
+.DS_Store
\ No newline at end of file
diff --git a/cloud-market-client/pom.xml b/cloud-market-client/pom.xml
new file mode 100644
index 0000000..18612d6
--- /dev/null
+++ b/cloud-market-client/pom.xml
@@ -0,0 +1,28 @@
+
+
+ 4.0.0
+
+ com.muyu
+ cloud-market
+ 3.6.5
+
+
+ cloud-market-client
+
+
+ 17
+ 17
+ UTF-8
+
+
+
+
+ com.muyu
+ cloud-market-common
+ 3.6.5
+
+
+
+
diff --git a/cloud-market-common/.gitignore b/cloud-market-common/.gitignore
new file mode 100644
index 0000000..5ff6309
--- /dev/null
+++ b/cloud-market-common/.gitignore
@@ -0,0 +1,38 @@
+target/
+!.mvn/wrapper/maven-wrapper.jar
+!**/src/main/**/target/
+!**/src/test/**/target/
+
+### IntelliJ IDEA ###
+.idea/modules.xml
+.idea/jarRepositories.xml
+.idea/compiler.xml
+.idea/libraries/
+*.iws
+*.iml
+*.ipr
+
+### Eclipse ###
+.apt_generated
+.classpath
+.factorypath
+.project
+.settings
+.springBeans
+.sts4-cache
+
+### NetBeans ###
+/nbproject/private/
+/nbbuild/
+/dist/
+/nbdist/
+/.nb-gradle/
+build/
+!**/src/main/**/build/
+!**/src/test/**/build/
+
+### VS Code ###
+.vscode/
+
+### Mac OS ###
+.DS_Store
\ No newline at end of file
diff --git a/cloud-market-common/pom.xml b/cloud-market-common/pom.xml
new file mode 100644
index 0000000..4f188d8
--- /dev/null
+++ b/cloud-market-common/pom.xml
@@ -0,0 +1,27 @@
+
+
+ 4.0.0
+
+ com.muyu
+ cloud-market
+ 3.6.5
+
+
+ cloud-market-common
+
+
+ 17
+ 17
+ UTF-8
+
+
+
+
+ com.muyu
+ cloud-common-core
+
+
+
+
diff --git a/cloud-market-common/src/main/java/com/muyu/market/api.java b/cloud-market-common/src/main/java/com/muyu/market/api.java
new file mode 100644
index 0000000..97e0df8
--- /dev/null
+++ b/cloud-market-common/src/main/java/com/muyu/market/api.java
@@ -0,0 +1,4 @@
+package com.muyu.market;
+
+public class api {
+}
diff --git a/cloud-market-common/src/main/java/com/muyu/market/domain/SysApitype.java b/cloud-market-common/src/main/java/com/muyu/market/domain/SysApitype.java
new file mode 100644
index 0000000..16bfbea
--- /dev/null
+++ b/cloud-market-common/src/main/java/com/muyu/market/domain/SysApitype.java
@@ -0,0 +1,126 @@
+package com.muyu.market.domain;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.muyu.common.core.annotation.Excel;
+import com.muyu.common.core.web.domain.BaseEntity;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+
+/**
+ * 接口对象 sys_apitype
+ *
+ * @author ruoyi
+ * @date 2024-08-21
+ */
+@TableName(resultMap = "com.muyu.api.market.mapper.SysApitypeMapper.SysApitypeResult")
+public class SysApitype extends BaseEntity
+ {
+private static final long serialVersionUID = 1L;
+
+ /** api_id */
+ @TableId(value = "sys_id",type = IdType.AUTO)
+ private Long sysId;
+
+ /** 产品编号 */
+ @Excel(name = "产品编号")
+ private String sysSerial;
+
+ /** 简介 */
+ @Excel(name = "简介")
+ private String sysIntro;
+
+ /** 产品状态 */
+ @Excel(name = "产品状态")
+ private Long sysTypes;
+
+ /** 备注 */
+ @Excel(name = "备注")
+ private String sysBeihzu;
+
+ /** 类型选择 */
+ @Excel(name = "类型选择")
+ private Long sysLeixingpick;
+
+ /** 次/元 时间 */
+ @Excel(name = "次/元 时间")
+ private Long sysNumber;
+
+ public void setSysId(Long sysId)
+ {
+ this.sysId = sysId;
+ }
+
+ public Long getSysId()
+ {
+ return sysId;
+ }
+ public void setSysSerial(String sysSerial)
+ {
+ this.sysSerial = sysSerial;
+ }
+
+ public String getSysSerial()
+ {
+ return sysSerial;
+ }
+ public void setSysIntro(String sysIntro)
+ {
+ this.sysIntro = sysIntro;
+ }
+
+ public String getSysIntro()
+ {
+ return sysIntro;
+ }
+ public void setSysTypes(Long sysTypes)
+ {
+ this.sysTypes = sysTypes;
+ }
+
+ public Long getSysTypes()
+ {
+ return sysTypes;
+ }
+ public void setSysBeihzu(String sysBeihzu)
+ {
+ this.sysBeihzu = sysBeihzu;
+ }
+
+ public String getSysBeihzu()
+ {
+ return sysBeihzu;
+ }
+ public void setSysLeixingpick(Long sysLeixingpick)
+ {
+ this.sysLeixingpick = sysLeixingpick;
+ }
+
+ public Long getSysLeixingpick()
+ {
+ return sysLeixingpick;
+ }
+ public void setSysNumber(Long sysNumber)
+ {
+ this.sysNumber = sysNumber;
+ }
+
+ public Long getSysNumber()
+ {
+ return sysNumber;
+ }
+
+@Override
+public String toString() {
+ return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+ .append("sysId", getSysId())
+ .append("sysSerial", getSysSerial())
+ .append("sysIntro", getSysIntro())
+ .append("sysTypes", getSysTypes())
+ .append("sysBeihzu", getSysBeihzu())
+ .append("sysLeixingpick", getSysLeixingpick())
+ .append("sysNumber", getSysNumber())
+ .toString();
+ }
+ }
diff --git a/cloud-market-common/src/main/java/com/muyu/market/domain/SysFirm.java b/cloud-market-common/src/main/java/com/muyu/market/domain/SysFirm.java
new file mode 100644
index 0000000..bb6d6c0
--- /dev/null
+++ b/cloud-market-common/src/main/java/com/muyu/market/domain/SysFirm.java
@@ -0,0 +1,107 @@
+package com.muyu.market.domain;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import com.muyu.common.core.annotation.Excel;
+import com.muyu.common.core.web.domain.BaseEntity;
+import lombok.*;
+import lombok.experimental.SuperBuilder;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+
+import java.math.BigDecimal;
+import java.util.Date;
+
+/**
+ * 企业信息对象 sys_firminfo
+ *
+ * @author 2112A
+ * @date 2024-08-23
+ */
+
+@Data
+@Setter
+@Getter
+@SuperBuilder
+@NoArgsConstructor
+@AllArgsConstructor
+@TableName("sys_firminfo")
+public class SysFirm extends BaseEntity{
+ private static final long serialVersionUID = 1L;
+
+ /** 企业数据id */
+ @TableId( type = IdType.AUTO)
+ private Long firmId;
+
+ /** 头像 */
+ @Excel(name = "头像")
+ private String firmAvatr;
+
+ /** 创建人昵称 */
+ @Excel(name = "创建人昵称")
+ private String createdName;
+
+ /** 手机号 */
+ @Excel(name = "手机号")
+ private String phone;
+
+ /** 企业名称 */
+ @Excel(name = "企业名称")
+ private String firmTem;
+
+ /** 姓名 */
+ @Excel(name = "姓名")
+ private String names;
+
+ /** 职位 */
+ @Excel(name = "职位")
+ private String position;
+
+ /** 公司所在省市区 */
+ @Excel(name = "公司所在省市区")
+ private String firmRegion;
+
+ /** 公司详细地址 */
+ @Excel(name = "公司详细地址")
+ private String firmFrom;
+
+ /** 社会信誉 */
+ @Excel(name = "社会信誉")
+ private String socialReputation;
+
+ /** 营业执照 */
+ @Excel(name = "营业执照")
+ private String businessLicense;
+
+ /** 创建时间 */
+ @JsonFormat(pattern = "yyyy-MM-dd")
+ @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
+ private Date firmTime;
+
+ /** 余额 */
+ @Excel(name = "余额")
+ private BigDecimal firmScore;
+
+
+
+ @Override
+ public String toString() {
+ return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+ .append("firmId", getFirmId())
+ .append("firmAvatr", getFirmAvatr())
+ .append("createdName", getCreatedName())
+ .append("phone", getPhone())
+ .append("firmTem", getFirmTem())
+ .append("names", getNames())
+ .append("position", getPosition())
+ .append("firmRegion", getFirmRegion())
+ .append("firmFrom", getFirmFrom())
+ .append("socialReputation", getSocialReputation())
+ .append("businessLicense", getBusinessLicense())
+ .append("firmTime", getFirmTime())
+ .append("firmScore", getFirmScore())
+ .toString();
+ }
+}
diff --git a/cloud-market-remote/.gitignore b/cloud-market-remote/.gitignore
new file mode 100644
index 0000000..5ff6309
--- /dev/null
+++ b/cloud-market-remote/.gitignore
@@ -0,0 +1,38 @@
+target/
+!.mvn/wrapper/maven-wrapper.jar
+!**/src/main/**/target/
+!**/src/test/**/target/
+
+### IntelliJ IDEA ###
+.idea/modules.xml
+.idea/jarRepositories.xml
+.idea/compiler.xml
+.idea/libraries/
+*.iws
+*.iml
+*.ipr
+
+### Eclipse ###
+.apt_generated
+.classpath
+.factorypath
+.project
+.settings
+.springBeans
+.sts4-cache
+
+### NetBeans ###
+/nbproject/private/
+/nbbuild/
+/dist/
+/nbdist/
+/.nb-gradle/
+build/
+!**/src/main/**/build/
+!**/src/test/**/build/
+
+### VS Code ###
+.vscode/
+
+### Mac OS ###
+.DS_Store
\ No newline at end of file
diff --git a/cloud-market-remote/pom.xml b/cloud-market-remote/pom.xml
new file mode 100644
index 0000000..7c0ff68
--- /dev/null
+++ b/cloud-market-remote/pom.xml
@@ -0,0 +1,28 @@
+
+
+ 4.0.0
+
+ com.muyu
+ cloud-market
+ 3.6.5
+
+
+ cloud-market-remote
+
+
+ 17
+ 17
+ UTF-8
+
+
+
+
+ com.muyu
+ cloud-market-common
+ 3.6.5
+
+
+
+
diff --git a/cloud-market-server/.gitignore b/cloud-market-server/.gitignore
new file mode 100644
index 0000000..5ff6309
--- /dev/null
+++ b/cloud-market-server/.gitignore
@@ -0,0 +1,38 @@
+target/
+!.mvn/wrapper/maven-wrapper.jar
+!**/src/main/**/target/
+!**/src/test/**/target/
+
+### IntelliJ IDEA ###
+.idea/modules.xml
+.idea/jarRepositories.xml
+.idea/compiler.xml
+.idea/libraries/
+*.iws
+*.iml
+*.ipr
+
+### Eclipse ###
+.apt_generated
+.classpath
+.factorypath
+.project
+.settings
+.springBeans
+.sts4-cache
+
+### NetBeans ###
+/nbproject/private/
+/nbbuild/
+/dist/
+/nbdist/
+/.nb-gradle/
+build/
+!**/src/main/**/build/
+!**/src/test/**/build/
+
+### VS Code ###
+.vscode/
+
+### Mac OS ###
+.DS_Store
\ No newline at end of file
diff --git a/cloud-market-server/pom.xml b/cloud-market-server/pom.xml
new file mode 100644
index 0000000..f159941
--- /dev/null
+++ b/cloud-market-server/pom.xml
@@ -0,0 +1,112 @@
+
+
+ 4.0.0
+
+ com.muyu
+ cloud-market
+ 3.6.5
+
+
+ cloud-market-server
+
+
+ 17
+ 17
+ UTF-8
+
+
+
+
+
+ com.alibaba.cloud
+ spring-cloud-starter-alibaba-nacos-discovery
+
+
+
+ com.alibaba.cloud
+ spring-cloud-starter-alibaba-nacos-config
+
+
+
+ com.alibaba.cloud
+ spring-cloud-starter-alibaba-sentinel
+
+
+
+ org.springframework.boot
+ spring-boot-starter-actuator
+
+
+
+ com.mysql
+ mysql-connector-j
+
+
+
+ com.muyu
+ cloud-common-datasource
+
+
+
+ com.muyu
+ cloud-common-datascope
+
+
+
+ com.muyu
+ cloud-common-log
+
+
+
+ com.muyu
+ cloud-common-api-doc
+
+
+
+ com.muyu
+ cloud-common-xxl
+
+
+
+
+
+
+
+ com.muyu
+ cloud-market-common
+ 3.6.5
+
+
+ com.muyu
+ cloud-common-xxl
+ 3.6.5
+
+
+
+ cloud-market
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+
+
+
+ repackage
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-deploy-plugin
+
+ true
+
+
+
+
+
+
diff --git a/cloud-market-server/src/main/java/com/muyu/MarketApplication.java b/cloud-market-server/src/main/java/com/muyu/MarketApplication.java
new file mode 100644
index 0000000..c82fb66
--- /dev/null
+++ b/cloud-market-server/src/main/java/com/muyu/MarketApplication.java
@@ -0,0 +1,17 @@
+package com.muyu;
+
+import com.muyu.common.security.annotation.EnableCustomConfig;
+import com.muyu.common.security.annotation.EnableMyFeignClients;
+import lombok.extern.log4j.Log4j2;
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+@Log4j2
+@EnableCustomConfig
+@EnableMyFeignClients
+@SpringBootApplication
+public class MarketApplication {
+ public static void main (String[] args) {
+ SpringApplication.run(MarketApplication.class, args);
+ }
+}
diff --git a/cloud-market-server/src/main/java/com/muyu/market/controller/SysApitypeController.java b/cloud-market-server/src/main/java/com/muyu/market/controller/SysApitypeController.java
new file mode 100644
index 0000000..2e4c2ca
--- /dev/null
+++ b/cloud-market-server/src/main/java/com/muyu/market/controller/SysApitypeController.java
@@ -0,0 +1,128 @@
+package com.muyu.market.controller;
+
+
+
+import com.muyu.common.core.domain.Result;
+import com.muyu.common.core.utils.poi.ExcelUtil;
+import com.muyu.common.core.web.controller.BaseController;
+import com.muyu.common.core.web.page.TableDataInfo;
+import com.muyu.common.log.annotation.Log;
+import com.muyu.common.log.enums.BusinessType;
+import com.muyu.common.security.annotation.RequiresPermissions;
+import com.muyu.market.domain.SysApitype;
+import com.muyu.market.domain.SysFirm;
+import com.muyu.market.service.ISysApitypeService;
+import jakarta.servlet.http.HttpServletResponse;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.List;
+
+
+/**
+ * 接口Controller
+ *
+ * @author ruoyi
+ * @date 2024-08-21
+ */
+@RestController
+@RequestMapping("/apitype")
+public class SysApitypeController extends BaseController
+{
+ @Autowired
+ private ISysApitypeService sysApitypeService;
+
+ /**
+ * 查询接口列表
+ */
+ @RequiresPermissions("market:apitype:list")
+ @GetMapping("/list")
+ public Result> list(SysApitype sysApitype)
+ {
+ startPage();
+ List list = sysApitypeService.selectSysApitypeList(sysApitype);
+ return getDataTable(list);
+ }
+
+ /**
+ * 企业信息接口
+ */
+ @RequiresPermissions("market:apitype:firm")
+ @GetMapping("/firm")
+ public Result> apifirminfo(SysFirm sysFirm){
+ startPage();
+ List apifirmlist= sysApitypeService.selectSysApiFirm(sysFirm);
+ return getDataTable(apifirmlist);
+ }
+
+
+ /**
+ * 获取企业信息详细信息
+ */
+// @RequiresPermissions("market:apitype:query")
+// @GetMapping(value = "/{firmId}")
+// public Result> getInfo(@PathVariable("firmId") Long firmId)
+// {
+// return success(sysApitypeService.selectSysFirminfoByFirmId(firmId));
+// }
+
+
+
+ /**
+ * 导出接口列表
+ */
+ @RequiresPermissions("market:apitype:export")
+ @Log(title = "接口", businessType = BusinessType.EXPORT)
+ @PostMapping("/export")
+ public void export(HttpServletResponse response, SysApitype sysApitype)
+ {
+ List list = sysApitypeService.selectSysApitypeList(sysApitype);
+ ExcelUtil util = new ExcelUtil(SysApitype.class);
+ util.exportExcel(response, list, "接口数据");
+ }
+
+
+ /**
+ * 获取接口详细信息
+ */
+ @RequiresPermissions("market:apitype:query")
+ @GetMapping(value = "/{sysId}")
+ public Result getInfo(@PathVariable("sysId") Long sysId)
+ {
+ return success(sysApitypeService.selectSysApitypeBySysId(sysId));
+ }
+
+
+ /**
+ * 新增接口
+ */
+ @RequiresPermissions("market:apitype:add")
+ @Log(title = "接口", businessType = BusinessType.INSERT)
+ @PostMapping
+ public Result add(@RequestBody SysApitype sysApitype)
+ {
+ return toAjax(sysApitypeService.insertSysApitype(sysApitype));
+ }
+
+ /**
+ * 修改接口
+ */
+ @RequiresPermissions("market:apitype:edit")
+ @Log(title = "接口", businessType = BusinessType.UPDATE)
+ @PutMapping
+ public Result edit(@RequestBody SysApitype sysApitype)
+ {
+ return toAjax(sysApitypeService.updateSysApitype(sysApitype));
+ }
+
+ /**
+ * 删除接口
+ */
+ @RequiresPermissions("market:apitype:remove")
+ @Log(title = "接口", businessType = BusinessType.DELETE)
+ @DeleteMapping("/{sysIds}")
+ public Result remove(@PathVariable Long[] sysIds)
+ {
+ return toAjax(sysApitypeService.deleteSysApitypeBySysIds(sysIds));
+ }
+}
diff --git a/cloud-market-server/src/main/java/com/muyu/market/mapper/SysApitypeMapper.java b/cloud-market-server/src/main/java/com/muyu/market/mapper/SysApitypeMapper.java
new file mode 100644
index 0000000..7d45271
--- /dev/null
+++ b/cloud-market-server/src/main/java/com/muyu/market/mapper/SysApitypeMapper.java
@@ -0,0 +1,68 @@
+package com.muyu.market.mapper;
+
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.muyu.market.domain.SysApitype;
+import com.muyu.market.domain.SysFirm;
+
+
+import java.util.List;
+
+/**
+ * 接口Mapper接口
+ *
+ * @author ruoyi
+ * @date 2024-08-21
+ */
+public interface SysApitypeMapper extends BaseMapper {
+ /**
+ * 查询接口
+ *
+ * @param sysId 接口主键
+ * @return 接口
+ */
+ public SysApitype selectSysApitypeBySysId(Long sysId);
+
+ /**
+ * 查询接口列表
+ *
+ * @param sysApitype 接口
+ * @return 接口集合
+ */
+ public List selectSysApitypeList(SysApitype sysApitype);
+
+
+ public List selectSysApiFirm(SysFirm SysFirm);
+
+ /**
+ * 新增接口
+ *
+ * @param sysApitype 接口
+ * @return 结果
+ */
+ public int insertSysApitype(SysApitype sysApitype);
+
+ /**
+ * 修改接口
+ *
+ * @param sysApitype 接口
+ * @return 结果
+ */
+ public int updateSysApitype(SysApitype sysApitype);
+
+ /**
+ * 删除接口
+ *
+ * @param sysId 接口主键
+ * @return 结果
+ */
+ public int deleteSysApitypeBySysId(Long sysId);
+
+ /**
+ * 批量删除接口
+ *
+ * @param sysIds 需要删除的数据主键集合
+ * @return 结果
+ */
+ public int deleteSysApitypeBySysIds(Long[] sysIds);
+}
diff --git a/cloud-market-server/src/main/java/com/muyu/market/service/ISysApitypeService.java b/cloud-market-server/src/main/java/com/muyu/market/service/ISysApitypeService.java
new file mode 100644
index 0000000..79bb251
--- /dev/null
+++ b/cloud-market-server/src/main/java/com/muyu/market/service/ISysApitypeService.java
@@ -0,0 +1,73 @@
+package com.muyu.market.service;
+
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.muyu.market.domain.SysApitype;
+import com.muyu.market.domain.SysFirm;
+
+import java.util.List;
+
+/**
+ * 接口Service接口
+ *
+ * @author ruoyi
+
+ */
+public interface ISysApitypeService extends IService {
+ /**
+ * 查询接口
+ *
+ * @param sysId 接口主键
+ * @return 接口
+ */
+ public SysApitype selectSysApitypeBySysId(Long sysId);
+
+ /**
+ * 查询接口列表
+ *
+ * @param sysApitype 接口
+ * @return 接口集合
+ */
+ public List selectSysApitypeList(SysApitype sysApitype);
+
+ /**
+ * 查询企业信息
+ * @param sysFirm
+ * @return
+ */
+ public List selectSysApiFirm(SysFirm sysFirm);
+
+
+ /**
+ * 新增接口
+ *
+ * @param sysApitype 接口
+ * @return 结果
+ */
+ public int insertSysApitype(SysApitype sysApitype);
+
+ /**
+ * 修改接口
+ *
+ * @param sysApitype 接口
+ * @return 结果
+ */
+ public int updateSysApitype(SysApitype sysApitype);
+
+ /**
+ * 批量删除接口
+ *
+ * @param sysIds 需要删除的接口主键集合
+ * @return 结果
+ */
+ public int deleteSysApitypeBySysIds(Long[] sysIds);
+
+ /**
+ * 删除接口信息
+ *
+ * @param sysId 接口主键
+ * @return 结果
+ */
+ public int deleteSysApitypeBySysId(Long sysId);
+
+
+}
diff --git a/cloud-market-server/src/main/java/com/muyu/market/service/impl/SysApitypeServiceImpl.java b/cloud-market-server/src/main/java/com/muyu/market/service/impl/SysApitypeServiceImpl.java
new file mode 100644
index 0000000..f90b942
--- /dev/null
+++ b/cloud-market-server/src/main/java/com/muyu/market/service/impl/SysApitypeServiceImpl.java
@@ -0,0 +1,97 @@
+package com.muyu.market.service.impl;
+
+
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.muyu.market.domain.SysApitype;
+import com.muyu.market.domain.SysFirm;
+import com.muyu.market.mapper.SysApitypeMapper;
+import com.muyu.market.service.ISysApitypeService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+/**
+ * 接口Service业务层处理
+ *
+ * @author ruoyi
+ * @date 2024-08-21
+ */
+@Service
+public class SysApitypeServiceImpl extends ServiceImpl implements ISysApitypeService {
+ @Autowired
+ private SysApitypeMapper sysApitypeMapper;
+
+ /**
+ * 查询接口
+ *
+ * @param sysId 接口主键
+ * @return 接口
+ */
+ @Override
+ public SysApitype selectSysApitypeBySysId(Long sysId) {
+ return sysApitypeMapper.selectSysApitypeBySysId(sysId);
+ }
+
+ /**
+ * 查询接口列表
+ *
+ * @param sysApitype 接口
+ * @return 接口
+ */
+ @Override
+ public List selectSysApitypeList(SysApitype sysApitype) {
+ return sysApitypeMapper.selectSysApitypeList(sysApitype);
+ }
+
+ @Override
+ public List selectSysApiFirm(SysFirm sysFirm) {
+ return sysApitypeMapper.selectSysApiFirm(sysFirm);
+ }
+
+
+ /**
+ * 新增接口
+ *
+ * @param sysApitype 接口
+ * @return 结果
+ */
+ @Override
+ public int insertSysApitype(SysApitype sysApitype) {
+ return sysApitypeMapper.insertSysApitype(sysApitype);
+ }
+
+ /**
+ * 修改接口
+ *
+ * @param sysApitype 接口
+ * @return 结果
+ */
+ @Override
+ public int updateSysApitype(SysApitype sysApitype) {
+ return sysApitypeMapper.updateSysApitype(sysApitype);
+ }
+
+ /**
+ * 批量删除接口
+ *
+ * @param sysIds 需要删除的接口主键
+ * @return 结果
+ */
+ @Override
+ public int deleteSysApitypeBySysIds(Long[] sysIds) {
+ return sysApitypeMapper.deleteSysApitypeBySysIds(sysIds);
+ }
+
+ /**
+ * 删除接口信息
+ *
+ * @param sysId 接口主键
+ * @return 结果
+ */
+ @Override
+ public int deleteSysApitypeBySysId(Long sysId) {
+ return sysApitypeMapper.deleteSysApitypeBySysId(sysId);
+ }
+}
diff --git a/cloud-market-server/src/main/resources/banner.txt b/cloud-market-server/src/main/resources/banner.txt
new file mode 100644
index 0000000..0dd5eee
--- /dev/null
+++ b/cloud-market-server/src/main/resources/banner.txt
@@ -0,0 +1,2 @@
+Spring Boot Version: ${spring-boot.version}
+Spring Application Name: ${spring.application.name}
diff --git a/cloud-market-server/src/main/resources/bootstrap.yml b/cloud-market-server/src/main/resources/bootstrap.yml
new file mode 100644
index 0000000..5af01b0
--- /dev/null
+++ b/cloud-market-server/src/main/resources/bootstrap.yml
@@ -0,0 +1,54 @@
+# Tomcat
+server:
+ port: 10023
+
+# nacos线上地址
+nacos:
+ addr: 10.0.1.97:8848
+ user-name: nacos
+ password: nacos
+ namespace: cloud-2112
+
+# Spring
+spring:
+ main:
+ allow-bean-definition-overriding: true
+ application:
+ # 应用名称
+ name: cloud-apimaster
+ profiles:
+ # 环境配置
+ active: dev
+ cloud:
+ nacos:
+ discovery:
+ # 服务注册地址
+ server-addr: ${nacos.addr}
+ # nacos用户名
+ username: ${nacos.user-name}
+ # nacos密码
+ password: ${nacos.password}
+ # 命名空间
+ namespace: ${nacos.namespace}
+ config:
+ # 服务注册地址
+ server-addr: ${nacos.addr}
+ # nacos用户名
+ username: ${nacos.user-name}
+ # nacos密码
+ password: ${nacos.password}
+ # 命名空间
+ namespace: ${nacos.namespace}
+ # 配置文件格式
+ file-extension: yml
+ # 共享配置
+ shared-configs:
+ # 系统共享配置
+ - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
+ # 系统环境Config共享配置
+ - application-config-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
+ # xxl-job 配置文件
+ - application-xxl-config-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
+logging:
+ level:
+ com.muyu.system.mapper: DEBUG
diff --git a/cloud-market-server/src/main/resources/logback/dev.xml b/cloud-market-server/src/main/resources/logback/dev.xml
new file mode 100644
index 0000000..d1b5629
--- /dev/null
+++ b/cloud-market-server/src/main/resources/logback/dev.xml
@@ -0,0 +1,74 @@
+
+
+
+
+
+
+
+
+
+
+ ${log.pattern}
+
+
+
+
+
+ ${log.path}/info.log
+
+
+
+ ${log.path}/info.%d{yyyy-MM-dd}.log
+
+ 60
+
+
+ ${log.pattern}
+
+
+
+ INFO
+
+ ACCEPT
+
+ DENY
+
+
+
+
+ ${log.path}/error.log
+
+
+
+ ${log.path}/error.%d{yyyy-MM-dd}.log
+
+ 60
+
+
+ ${log.pattern}
+
+
+
+ ERROR
+
+ ACCEPT
+
+ DENY
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/cloud-market-server/src/main/resources/logback/prod.xml b/cloud-market-server/src/main/resources/logback/prod.xml
new file mode 100644
index 0000000..76a0d8f
--- /dev/null
+++ b/cloud-market-server/src/main/resources/logback/prod.xml
@@ -0,0 +1,81 @@
+
+
+
+
+
+
+
+
+
+
+
+ ${log.sky.pattern}
+
+
+
+
+
+ ${log.path}/info.log
+
+
+
+ ${log.path}/info.%d{yyyy-MM-dd}.log
+
+ 60
+
+
+
+
+ INFO
+
+ ACCEPT
+
+ DENY
+
+
+
+
+ ${log.path}/error.log
+
+
+
+ ${log.path}/error.%d{yyyy-MM-dd}.log
+
+ 60
+
+
+
+
+ ERROR
+
+ ACCEPT
+
+ DENY
+
+
+
+
+
+
+
+ ${log.sky.pattern}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/cloud-market-server/src/main/resources/logback/test.xml b/cloud-market-server/src/main/resources/logback/test.xml
new file mode 100644
index 0000000..2cd69e4
--- /dev/null
+++ b/cloud-market-server/src/main/resources/logback/test.xml
@@ -0,0 +1,81 @@
+
+
+
+
+
+
+
+
+
+
+
+ ${log.sky.pattern}
+
+
+
+
+
+ ${log.path}/info.log
+
+
+
+ ${log.path}/info.%d{yyyy-MM-dd}.log
+
+ 60
+
+
+
+
+ INFO
+
+ ACCEPT
+
+ DENY
+
+
+
+
+ ${log.path}/error.log
+
+
+
+ ${log.path}/error.%d{yyyy-MM-dd}.log
+
+ 60
+
+
+
+
+ ERROR
+
+ ACCEPT
+
+ DENY
+
+
+
+
+
+
+
+ ${log.sky.pattern}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/cloud-market-server/src/main/resources/mapper/market/SysApitmarketMapper.xml b/cloud-market-server/src/main/resources/mapper/market/SysApitmarketMapper.xml
new file mode 100644
index 0000000..90a11ff
--- /dev/null
+++ b/cloud-market-server/src/main/resources/mapper/market/SysApitmarketMapper.xml
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ select firm_id, firm_avatr, created_name, phone, firm_tem, names, position, firm_region, firm_from, social_reputation, business_license, firm_time, firm_score from sys_firminfo
+
+
+ select sys_id, sys_serial, sys_intro, sys_types, sys_beihzu, sys_leixingpick, sys_number from sys_apitype
+
+
+
+
+
+
+
+
+
+
+
+
+
+ insert into sys_apitype
+
+ sys_serial,
+ sys_intro,
+ sys_types,
+ sys_beihzu,
+ sys_leixingpick,
+ sys_number,
+
+
+ #{sysSerial},
+ #{sysIntro},
+ #{sysTypes},
+ #{sysBeihzu},
+ #{sysLeixingpick},
+ #{sysNumber},
+
+
+
+
+ update sys_apitype
+
+ sys_serial = #{sysSerial},
+ sys_intro = #{sysIntro},
+ sys_types = #{sysTypes},
+ sys_beihzu = #{sysBeihzu},
+ sys_leixingpick = #{sysLeixingpick},
+ sys_number = #{sysNumber},
+
+ where sys_id = #{sysId}
+
+
+
+ delete from sys_apitype where sys_id = #{sysId}
+
+
+
+ delete from sys_apitype where sys_id in
+
+ #{sysId}
+
+
+
diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000..970e1d0
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,32 @@
+
+
+ 4.0.0
+
+
+ com.muyu
+ cloud-server-parent
+ 3.6.5
+
+
+ cloud-market
+ 3.6.5
+ pom
+
+ cloud-market-server
+ cloud-market-client
+ cloud-market-common
+ cloud-market-remote
+
+
+
+ 17
+ 17
+ UTF-8
+
+
+
+ cloud-market数据集市模块
+
+