diff --git a/ruoyi-admin/src/main/resources/application-druid.yml b/ruoyi-admin/src/main/resources/application-druid.yml index dc0ab8a..597dab8 100644 --- a/ruoyi-admin/src/main/resources/application-druid.yml +++ b/ruoyi-admin/src/main/resources/application-druid.yml @@ -6,9 +6,9 @@ spring: druid: # 主库数据源 jdbc:mysql://localhost:3306/catmdogf?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&allowMultiQueries=true master: - url: jdbc:mysql://gz-cdb-58faug9b.sql.tencentcdb.com :24894/catmdogf?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&allowMultiQueries=true + url: jdbc:mysql://124.222.255.146:3306/catmdogf?useUnicode=true&useSSL=false&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true username: root - password: 20070110Hh.. + password: Tc$GePcZ # 从库数据源 slave: # 从数据源开关/默认关闭 @@ -23,13 +23,13 @@ spring: # redis 配置 redis: # 地址 - host: localhost + host: 124.222.255.146 # 端口,默认为6379 port: 6379 # 数据库索引 database: 5 # 密码 - password: 123456 + password: Abc.123456 redisson: address: "redis://ip" password: "password" # 如果有密码的话 @@ -44,12 +44,12 @@ scheduling: enabled: false #操作oss需要的一些参数 aliyun: - accessKeyId: LTAI5tD3bjTBDvgmgXLTKL5X # 阿里云的accessKeyId - secretAccessKey: wCPlCO5nnnqBekd3wxAPU6CSUto6fQ # accessKey 密码 + accessKeyId: LTAI5tQSs47izVy8DLVdwUU9 # 阿里云的accessKeyId + secretAccessKey: qHI7C3PaXYZySr84HTToviC71AYlFq # accessKey 密码 oss: - endPoint: oss-cn-shanghai.aliyuncs.com # Endpoint:在阿里云oss控制台查看自己使用的endpoint - bucketName: catmdogf # bucket 名称 - cdnName: cdn.catmdogd.com + endPoint: oss-cn-shenzhen.aliyuncs.com # Endpoint:在阿里云oss控制台查看自己使用的endpoint + bucketName: hanhaiimage # bucket 名称 + cdnName: https://image.hhlm1688.com/ wechat: enabled: true appId: wxd1a6ba7b5e17a5b6 diff --git a/ruoyi-catdog/src/main/java/com/ruoyi/applet/contoller/AppletWithdrawalConfigController.java b/ruoyi-catdog/src/main/java/com/ruoyi/applet/contoller/AppletWithdrawalConfigController.java deleted file mode 100644 index 3ab39fe..0000000 --- a/ruoyi-catdog/src/main/java/com/ruoyi/applet/contoller/AppletWithdrawalConfigController.java +++ /dev/null @@ -1,25 +0,0 @@ -package com.ruoyi.applet.contoller; - -import com.ruoyi.common.core.controller.BaseController; -import com.ruoyi.common.core.page.TableDataInfo; -import com.ruoyi.model.service.IWithdrawalConfigService; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; - -@Api(description = "钱包提现配置") -@RestController -@RequestMapping("/applet/withdrawalConfig") -public class AppletWithdrawalConfigController extends BaseController { - @Autowired - private IWithdrawalConfigService withdrawalConfigService; - - @ApiOperation("钱包提现配置列表") - @GetMapping("/getWithdrawalConfigList") - public TableDataInfo getWithdrawalConfigList(){ - return getDataTable(withdrawalConfigService.getWithdrawalConfigList()); - } -} diff --git a/ruoyi-catdog/src/main/java/com/ruoyi/model/controller/WithdrawalConfigController.java b/ruoyi-catdog/src/main/java/com/ruoyi/model/controller/WithdrawalConfigController.java deleted file mode 100644 index ac424ba..0000000 --- a/ruoyi-catdog/src/main/java/com/ruoyi/model/controller/WithdrawalConfigController.java +++ /dev/null @@ -1,104 +0,0 @@ -package com.ruoyi.model.controller; - -import java.io.IOException; -import java.util.List; -import javax.servlet.http.HttpServletResponse; -import org.springframework.security.access.prepost.PreAuthorize; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.PutMapping; -import org.springframework.web.bind.annotation.DeleteMapping; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; -import com.ruoyi.common.annotation.Log; -import com.ruoyi.common.core.controller.BaseController; -import com.ruoyi.common.core.domain.AjaxResult; -import com.ruoyi.common.enums.BusinessType; -import com.ruoyi.model.domain.WithdrawalConfig; -import com.ruoyi.model.service.IWithdrawalConfigService; -import com.ruoyi.common.utils.poi.ExcelUtil; -import com.ruoyi.common.core.page.TableDataInfo; - -/** - * 钱包提现配置Controller - * - * @author ruoyi - * @date 2025-03-05 - */ -@RestController -@RequestMapping("/model/WithdrawalConfig") -public class WithdrawalConfigController extends BaseController -{ - @Autowired - private IWithdrawalConfigService withdrawalConfigService; - - /** - * 查询钱包提现配置列表 - */ - @PreAuthorize("@ss.hasPermi('model:WithdrawalConfig:list')") - @GetMapping("/list") - public TableDataInfo list(WithdrawalConfig withdrawalConfig) - { - startPage(); - List list = withdrawalConfigService.selectWithdrawalConfigList(withdrawalConfig); - return getDataTable(list); - } - - /** - * 导出钱包提现配置列表 - */ - @PreAuthorize("@ss.hasPermi('model:WithdrawalConfig:export')") - @Log(title = "钱包提现配置", businessType = BusinessType.EXPORT) - @PostMapping("/export") - public void export(HttpServletResponse response, WithdrawalConfig withdrawalConfig) throws IOException { - List list = withdrawalConfigService.selectWithdrawalConfigList(withdrawalConfig); - ExcelUtil util = new ExcelUtil(WithdrawalConfig.class); - util.exportExcel(response, list, "钱包提现配置数据"); - } - - /** - * 获取钱包提现配置详细信息 - */ - @PreAuthorize("@ss.hasPermi('model:WithdrawalConfig:query')") - @GetMapping(value = "/{id}") - public AjaxResult getInfo(@PathVariable("id") Long id) - { - return success(withdrawalConfigService.selectWithdrawalConfigById(id)); - } - - /** - * 新增钱包提现配置 - */ - @PreAuthorize("@ss.hasPermi('model:WithdrawalConfig:add')") - @Log(title = "钱包提现配置", businessType = BusinessType.INSERT) - @PostMapping - public AjaxResult add(@RequestBody WithdrawalConfig withdrawalConfig) - { - return toAjax(withdrawalConfigService.insertWithdrawalConfig(withdrawalConfig)); - } - - /** - * 修改钱包提现配置 - */ - @PreAuthorize("@ss.hasPermi('model:WithdrawalConfig:edit')") - @Log(title = "钱包提现配置", businessType = BusinessType.UPDATE) - @PutMapping - public AjaxResult edit(@RequestBody WithdrawalConfig withdrawalConfig) - { - return toAjax(withdrawalConfigService.updateWithdrawalConfig(withdrawalConfig)); - } - - /** - * 删除钱包提现配置 - */ - @PreAuthorize("@ss.hasPermi('model:WithdrawalConfig:remove')") - @Log(title = "钱包提现配置", businessType = BusinessType.DELETE) - @DeleteMapping("/{ids}") - public AjaxResult remove(@PathVariable Long[] ids) - { - return toAjax(withdrawalConfigService.deleteWithdrawalConfigByIds(ids)); - } -} diff --git a/ruoyi-catdog/src/main/java/com/ruoyi/model/domain/WithdrawalConfig.java b/ruoyi-catdog/src/main/java/com/ruoyi/model/domain/WithdrawalConfig.java deleted file mode 100644 index 5c0c64e..0000000 --- a/ruoyi-catdog/src/main/java/com/ruoyi/model/domain/WithdrawalConfig.java +++ /dev/null @@ -1,79 +0,0 @@ -package com.ruoyi.model.domain; - -import org.apache.commons.lang3.builder.ToStringBuilder; -import org.apache.commons.lang3.builder.ToStringStyle; -import com.ruoyi.common.annotation.Excel; -import com.ruoyi.common.core.domain.BaseEntity; - -/** - * 钱包提现配置对象 withdrawal_config - * - * @author ruoyi - * @date 2025-03-05 - */ -public class WithdrawalConfig extends BaseEntity -{ - private static final long serialVersionUID = 1L; - - /** 主键 */ - private Long id; - - /** 提现标题 */ - @Excel(name = "提现标题") - private String withdrawalTitle; - - /** 提现文本 */ - @Excel(name = "提现文本") - private String withdrawalText; - - /** 提现消息弹窗文本 */ - @Excel(name = "提现消息弹窗文本") - private String withdrawalMessage; - - public void setId(Long id) - { - this.id = id; - } - - public Long getId() - { - return id; - } - public void setWithdrawalTitle(String withdrawalTitle) - { - this.withdrawalTitle = withdrawalTitle; - } - - public String getWithdrawalTitle() - { - return withdrawalTitle; - } - public void setWithdrawalText(String withdrawalText) - { - this.withdrawalText = withdrawalText; - } - - public String getWithdrawalText() - { - return withdrawalText; - } - public void setWithdrawalMessage(String withdrawalMessage) - { - this.withdrawalMessage = withdrawalMessage; - } - - public String getWithdrawalMessage() - { - return withdrawalMessage; - } - - @Override - public String toString() { - return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) - .append("id", getId()) - .append("withdrawalTitle", getWithdrawalTitle()) - .append("withdrawalText", getWithdrawalText()) - .append("withdrawalMessage", getWithdrawalMessage()) - .toString(); - } -} diff --git a/ruoyi-catdog/src/main/java/com/ruoyi/model/mapper/WithdrawalConfigMapper.java b/ruoyi-catdog/src/main/java/com/ruoyi/model/mapper/WithdrawalConfigMapper.java deleted file mode 100644 index 6d5e425..0000000 --- a/ruoyi-catdog/src/main/java/com/ruoyi/model/mapper/WithdrawalConfigMapper.java +++ /dev/null @@ -1,68 +0,0 @@ -package com.ruoyi.model.mapper; - -import java.util.List; -import com.ruoyi.model.domain.WithdrawalConfig; - -/** - * 钱包提现配置Mapper接口 - * - * @author ruoyi - * @date 2025-03-05 - */ -public interface WithdrawalConfigMapper -{ - /** - * 查询钱包提现配置 - * - * @param id 钱包提现配置主键 - * @return 钱包提现配置 - */ - public WithdrawalConfig selectWithdrawalConfigById(Long id); - - /** - * 查询钱包提现配置列表 - * - * @param withdrawalConfig 钱包提现配置 - * @return 钱包提现配置集合 - */ - public List selectWithdrawalConfigList(WithdrawalConfig withdrawalConfig); - - /** - * 新增钱包提现配置 - * - * @param withdrawalConfig 钱包提现配置 - * @return 结果 - */ - public int insertWithdrawalConfig(WithdrawalConfig withdrawalConfig); - - /** - * 修改钱包提现配置 - * - * @param withdrawalConfig 钱包提现配置 - * @return 结果 - */ - public int updateWithdrawalConfig(WithdrawalConfig withdrawalConfig); - - /** - * 删除钱包提现配置 - * - * @param id 钱包提现配置主键 - * @return 结果 - */ - public int deleteWithdrawalConfigById(Long id); - - /** - * 批量删除钱包提现配置 - * - * @param ids 需要删除的数据主键集合 - * @return 结果 - */ - public int deleteWithdrawalConfigByIds(Long[] ids); - - /** - * 查询钱包提现配置列表 - * - * @return 钱包提现配置集合 - */ - public List getWithdrawalConfigList(); -} diff --git a/ruoyi-catdog/src/main/java/com/ruoyi/model/service/IWithdrawalConfigService.java b/ruoyi-catdog/src/main/java/com/ruoyi/model/service/IWithdrawalConfigService.java deleted file mode 100644 index 8f8076e..0000000 --- a/ruoyi-catdog/src/main/java/com/ruoyi/model/service/IWithdrawalConfigService.java +++ /dev/null @@ -1,68 +0,0 @@ -package com.ruoyi.model.service; - -import java.util.List; -import com.ruoyi.model.domain.WithdrawalConfig; - -/** - * 钱包提现配置Service接口 - * - * @author ruoyi - * @date 2025-03-05 - */ -public interface IWithdrawalConfigService -{ - /** - * 查询钱包提现配置 - * - * @param id 钱包提现配置主键 - * @return 钱包提现配置 - */ - public WithdrawalConfig selectWithdrawalConfigById(Long id); - - /** - * 查询钱包提现配置列表 - * - * @param withdrawalConfig 钱包提现配置 - * @return 钱包提现配置集合 - */ - public List selectWithdrawalConfigList(WithdrawalConfig withdrawalConfig); - - /** - * 新增钱包提现配置 - * - * @param withdrawalConfig 钱包提现配置 - * @return 结果 - */ - public int insertWithdrawalConfig(WithdrawalConfig withdrawalConfig); - - /** - * 修改钱包提现配置 - * - * @param withdrawalConfig 钱包提现配置 - * @return 结果 - */ - public int updateWithdrawalConfig(WithdrawalConfig withdrawalConfig); - - /** - * 批量删除钱包提现配置 - * - * @param ids 需要删除的钱包提现配置主键集合 - * @return 结果 - */ - public int deleteWithdrawalConfigByIds(Long[] ids); - - /** - * 删除钱包提现配置信息 - * - * @param id 钱包提现配置主键 - * @return 结果 - */ - public int deleteWithdrawalConfigById(Long id); - - /** - * 查询钱包提现配置列表 - * - * @return 钱包提现配置集合 - */ - public List getWithdrawalConfigList(); -} diff --git a/ruoyi-catdog/src/main/java/com/ruoyi/model/service/impl/WithdrawalConfigServiceImpl.java b/ruoyi-catdog/src/main/java/com/ruoyi/model/service/impl/WithdrawalConfigServiceImpl.java deleted file mode 100644 index af8db6f..0000000 --- a/ruoyi-catdog/src/main/java/com/ruoyi/model/service/impl/WithdrawalConfigServiceImpl.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.ruoyi.model.service.impl; - -import java.util.List; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; -import com.ruoyi.model.mapper.WithdrawalConfigMapper; -import com.ruoyi.model.domain.WithdrawalConfig; -import com.ruoyi.model.service.IWithdrawalConfigService; - -/** - * 钱包提现配置Service业务层处理 - * - * @author ruoyi - * @date 2025-03-05 - */ -@Service -public class WithdrawalConfigServiceImpl implements IWithdrawalConfigService -{ - @Autowired - private WithdrawalConfigMapper withdrawalConfigMapper; - - /** - * 查询钱包提现配置 - * - * @param id 钱包提现配置主键 - * @return 钱包提现配置 - */ - @Override - public WithdrawalConfig selectWithdrawalConfigById(Long id) - { - return withdrawalConfigMapper.selectWithdrawalConfigById(id); - } - - /** - * 查询钱包提现配置列表 - * - * @param withdrawalConfig 钱包提现配置 - * @return 钱包提现配置 - */ - @Override - public List selectWithdrawalConfigList(WithdrawalConfig withdrawalConfig) - { - return withdrawalConfigMapper.selectWithdrawalConfigList(withdrawalConfig); - } - - /** - * 新增钱包提现配置 - * - * @param withdrawalConfig 钱包提现配置 - * @return 结果 - */ - @Override - public int insertWithdrawalConfig(WithdrawalConfig withdrawalConfig) - { - return withdrawalConfigMapper.insertWithdrawalConfig(withdrawalConfig); - } - - /** - * 修改钱包提现配置 - * - * @param withdrawalConfig 钱包提现配置 - * @return 结果 - */ - @Override - public int updateWithdrawalConfig(WithdrawalConfig withdrawalConfig) - { - return withdrawalConfigMapper.updateWithdrawalConfig(withdrawalConfig); - } - - /** - * 批量删除钱包提现配置 - * - * @param ids 需要删除的钱包提现配置主键 - * @return 结果 - */ - @Override - public int deleteWithdrawalConfigByIds(Long[] ids) - { - return withdrawalConfigMapper.deleteWithdrawalConfigByIds(ids); - } - - /** - * 删除钱包提现配置信息 - * - * @param id 钱包提现配置主键 - * @return 结果 - */ - @Override - public int deleteWithdrawalConfigById(Long id) - { - return withdrawalConfigMapper.deleteWithdrawalConfigById(id); - } - - /** - * 查询钱包提现配置列表 - * - * @return 钱包提现配置集合 - */ - @Override - public List getWithdrawalConfigList() { - return withdrawalConfigMapper.getWithdrawalConfigList(); - } -} diff --git a/ruoyi-catdog/src/main/resources/mapper/model/WithdrawalConfigMapper.xml b/ruoyi-catdog/src/main/resources/mapper/model/WithdrawalConfigMapper.xml deleted file mode 100644 index 54dd2f2..0000000 --- a/ruoyi-catdog/src/main/resources/mapper/model/WithdrawalConfigMapper.xml +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - - - - - - - - select id, withdrawal_title, withdrawal_text, withdrawal_message from withdrawal_config - - - - - - - - - insert into withdrawal_config - - id, - withdrawal_title, - withdrawal_text, - withdrawal_message, - - - #{id}, - #{withdrawalTitle}, - #{withdrawalText}, - #{withdrawalMessage}, - - - - - update withdrawal_config - - withdrawal_title = #{withdrawalTitle}, - withdrawal_text = #{withdrawalText}, - withdrawal_message = #{withdrawalMessage}, - - where id = #{id} - - - - delete from withdrawal_config where id = #{id} - - - - delete from withdrawal_config where id in - - #{id} - - - \ No newline at end of file