Commit 40e66524 authored by wangyangyang's avatar wangyangyang

加容器-项目代码

parent b79d53bf
package com.yonde.dex.basic.core.controller.expand;
import com.yonde.dex.basic.core.controller.expand.shadow.ExtDxContextControllerShadow;
import com.yonde.dex.basic.core.controller.expand.shadow.ExtDxContextProjectControllerShadow;
import com.yonde.dex.basic.core.service.expand.ExtDxContextProjectService;
import com.yonde.dex.basic.core.service.expand.ExtDxContextService;
import com.yonde.dex.context.common.vo.DxContextProjectVO;
import com.yonde.dex.context.common.vo.DxContextVO;
import com.yonde.dex.context.core.controller.ContextController;
import com.yonde.dex.context.core.controller.ContextProjectController;
import io.swagger.annotations.Api;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
/**
* @description: DxContext-Controller
* @author: dexadmin
* @version: V
* @date: 2024-9-20 10:26:39
**/
@Api(tags = "DxContextProject管理服务")
@RequestMapping("/DxContextProject")
@ResponseBody()
@Controller(ContextProjectController.BEAN_NAME)
public class ExtDxContextProjectController<V extends DxContextProjectVO, S extends ExtDxContextProjectService<V>> extends ExtDxContextProjectControllerShadow<V, S> {
}
package com.yonde.dex.basic.core.controller.expand.shadow;
import com.yonde.dex.basic.core.service.expand.ExtDxContextProjectService;
import com.yonde.dex.basic.core.service.impl.expand.ExtDxContextProjectImplService;
import com.yonde.dex.context.common.vo.DxContextProjectVO;
import com.yonde.dex.context.core.controller.ContextProjectController;
import com.yonde.dex.dfs.objfilelink.plugin.core.controller.DxObjFileLinkController;
import javax.annotation.Resource;
/**
* @description: DxContext-Controller
* @author: dexadmin
* @version: V
* @date: 2024-9-20 10:26:39
**/
public class ExtDxContextProjectControllerShadow<V extends DxContextProjectVO, S extends ExtDxContextProjectService<V>> extends ContextProjectController<V, S> implements DxObjFileLinkController<V, S>{
public static final String BEAN_NAME = "contextProjectController";
/**
* 注入
*/
@Resource(name = ExtDxContextProjectImplService.BEAN_NAME)
private ExtDxContextProjectService<V> extDxContextProjectService;
/**
* getService
*/
@Override
public S getService() {
return (S)this.extDxContextProjectService;
}
}
package com.yonde.dex.basic.core.service.expand;
import com.yonde.dex.basic.core.service.expand.shadow.ExtDxContextProjectShadowService;
import com.yonde.dex.context.common.vo.DxContextProjectVO;
/**
* @description: DxContext-service
* @author: dexadmin
* @version: V
* @date: 2024-9-20 10:26:39
**/
public interface ExtDxContextProjectService<V extends DxContextProjectVO> extends ExtDxContextProjectShadowService<V> {
}
package com.yonde.dex.basic.core.service.expand.shadow;
import com.yonde.dex.basic.feign.expand.ExtDxContextProjectServiceFeign;
import com.yonde.dex.context.common.vo.DxContextProjectVO;
import com.yonde.dex.context.core.service.ContextProjectService;
import com.yonde.dex.context.core.service.ContextService;
import com.yonde.dex.dfs.objfilelink.plugin.core.service.ObjFileLinkPluginService;
import com.yonde.dex.secretcode.plugin.core.service.SecretCodePluginService;
/**
* @description: DxContext-service
* @author: dexadmin
* @version: V
* @date: 2024-9-20 10:26:39
**/
public interface ExtDxContextProjectShadowService<V extends DxContextProjectVO> extends ExtDxContextProjectServiceFeign<V>, ContextProjectService<V> ,ObjFileLinkPluginService<V> ,SecretCodePluginService<V> {
}
package com.yonde.dex.basic.core.service.impl.expand;
import com.yonde.dex.basic.core.service.expand.ExtDxContextProjectService;
import com.yonde.dex.basic.core.service.expand.ExtDxContextService;
import com.yonde.dex.context.common.vo.DxContextProjectVO;
import com.yonde.dex.context.common.vo.DxContextVO;
import com.yonde.dex.context.core.po.DxContext;
import com.yonde.dex.context.core.po.DxContextProject;
import com.yonde.dex.context.core.repository.ContextRepository;
import com.yonde.dex.context.core.service.impl.ContextProjectServiceImpl;
import com.yonde.dex.context.core.service.impl.ContextServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* @description: DxContext-ServiceImpl
* @author: dexadmin
* @version: V
* @date: 2024-9-20 10:26:39
**/
@Slf4j
@Service(ContextProjectServiceImpl.BEAN_NAME)
public class ExtDxContextProjectImplService<V extends DxContextProjectVO> extends ContextProjectServiceImpl<V> implements ExtDxContextProjectService<V>{
public static final String BEAN_NAME = "contextProjectServiceImpl";
@Autowired
ContextRepository<DxContextProject> contextProjectRepository;
}
package com.yonde.dex.basic.feign.expand;
import com.yonde.dex.basic.feign.expand.shadow.ExtDxContextProjectServiceFeignShadow;
import com.yonde.dex.context.common.vo.DxContextProjectVO;
import com.yonde.dex.context.feign.ContextServiceFeign;
import com.yonde.dex.dao.service.adapter.DexExpandBeanReplace;
import io.swagger.annotations.Api;
import org.springframework.cloud.openfeign.FeignClient;
/**
* @description: DxContext-Feign
* @author: dexadmin
* @version: V
* @date: 2024-9-20 10:26:39
**/
@Api(tags = "DxContextProject-FEIGN")
@FeignClient(value = "${dex.feign.DEX-BASIC-SERVICE}", path = "/DxContextProject")
@DexExpandBeanReplace(replaceClass = ContextServiceFeign.class)
public interface ExtDxContextProjectServiceFeign<V extends DxContextProjectVO> extends ExtDxContextProjectServiceFeignShadow<V> {
}
package com.yonde.dex.basic.feign.expand.shadow;
import com.yonde.dex.context.common.vo.DxContextProjectVO;
import com.yonde.dex.context.common.vo.DxContextVO;
import com.yonde.dex.context.feign.ContextProjectServiceFeign;
import com.yonde.dex.context.feign.ContextServiceFeign;
import com.yonde.dex.secretcode.plugin.feign.SecretCodeFeign;
/**
* @description: DxContext-Feign
* @author: dexadmin
* @version: V
* @date: 2024-9-20 10:26:39
**/
public interface ExtDxContextProjectServiceFeignShadow<V extends DxContextProjectVO> extends ContextProjectServiceFeign<V> ,SecretCodeFeign<V> {
String BEAN_NAME = "contextProjectServiceFeign";
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment