同步框架更新

This commit is contained in:
yaoyn
2025-02-15 17:05:09 +08:00
parent 29b5c68564
commit 9b7d27a2b4
141 changed files with 585 additions and 133 deletions

View File

@ -0,0 +1,47 @@
package com.xjrsoft.form.client;
import com.xjrsoft.common.core.constant.GlobalConstant;
import com.xjrsoft.desktop.dto.AddDeskComplexDto;
import com.xjrsoft.form.entity.FormRelease;
import com.xjrsoft.form.fallback.FormExecuteClientFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import javax.validation.Valid;
import java.util.List;
/**
* @Author: zn
* @Date: 2025/02/13 16:19
*/
@FeignClient(value = GlobalConstant.CLIENT_FORM_NAME,fallback = FormExecuteClientFallBack.class)
public interface IFormReleaseClient {
/**
* 查询单个接口
* @param id
* @return
*/
@GetMapping(GlobalConstant.CLIENT_API_PRE + GlobalConstant.MODULE_FORM_NAME + "/selectByIdFeign")
FormRelease selectByIdFeign(@RequestParam("id")Long id);
/**
* 查询单条数据
* @param formRelease
* @return
*/
@GetMapping(GlobalConstant.CLIENT_API_PRE + GlobalConstant.MODULE_FORM_NAME + "/selectByFormReleaseFeign")
FormRelease selectByFormReleaseFeign(FormRelease formRelease);
/**
* 查询List
* @param formRelease
* @return
*/
@GetMapping(GlobalConstant.CLIENT_API_PRE + GlobalConstant.MODULE_FORM_NAME + "/selectListFeign")
List<FormRelease> selectListFeign(FormRelease formRelease);
}

View File

@ -0,0 +1,30 @@
package com.xjrsoft.form.fallback;
import com.xjrsoft.form.client.IFormReleaseClient;
import com.xjrsoft.form.entity.FormRelease;
import org.springframework.stereotype.Component;
import java.util.List;
/**
* @Author: zn
* @Date: 2025/02/13 9:35
*/
@Component
public class IFormReleaseClientFallBack implements IFormReleaseClient {
@Override
public FormRelease selectByIdFeign(Long id) {
return null;
}
@Override
public FormRelease selectByFormReleaseFeign(FormRelease formRelease) {
return null;
}
@Override
public List<FormRelease> selectListFeign(FormRelease formRelease) {
return null;
}
}

View File

@ -1,18 +0,0 @@
package com.xjrsoft.form.mapper;
import com.github.yulichang.base.MPJBaseMapper;
import com.xjrsoft.form.entity.FormHistory;
import org.apache.ibatis.annotations.Mapper;
/**
* <p>
* 自定义表单历史表 每次修改自定义表单会新增一条数据 Mapper 接口
* </p>
*
* @author tzx
* @since 2022-05-09
*/
@Mapper
public interface FormHistoryMapper extends MPJBaseMapper<FormHistory> {
}

View File

@ -1,18 +0,0 @@
package com.xjrsoft.form.mapper;
import com.github.yulichang.base.MPJBaseMapper;
import com.xjrsoft.form.entity.FormRelease;
import org.apache.ibatis.annotations.Mapper;
/**
* <p>
* 自定义表单 发布表 Mapper 接口
* </p>
*
* @author tzx
* @since 2022-05-09
*/
@Mapper
public interface FormReleaseMapper extends MPJBaseMapper<FormRelease> {
}

View File

@ -1,18 +0,0 @@
package com.xjrsoft.form.mapper;
import com.github.yulichang.base.MPJBaseMapper;
import com.xjrsoft.form.entity.FormTemplate;
import org.apache.ibatis.annotations.Mapper;
/**
* <p>
* 表单设计模板 Mapper 接口
* </p>
*
* @author tzx
* @since 2022-05-09
*/
@Mapper
public interface FormTemplateMapper extends MPJBaseMapper<FormTemplate> {
}