duhuizhe
2024-04-19 64c4fd3c7067c7626dc960a70b4bc2c3662bc653
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package com.yqzx.generator.engine.config;
 
import lombok.Data;
 
/**
 * @description: Service模板生成的配置
 * @author: chaoyapeng
 * @time: 2020/8/18 16:11
 */
@Data
public class ServiceConfig {
 
    private ContextConfig contextConfig;
 
    private String templatePath;
 
    private String implTemplatePath;
 
    public void init() {
        this.templatePath = "\\src\\main\\java\\" + contextConfig.getPackageName().replaceAll("\\.", "\\\\")
                + "\\service\\{}Service.java";
        this.implTemplatePath = "\\src\\main\\java\\" + contextConfig.getPackageName().replaceAll("\\.", "\\\\")
                + "\\service\\impl\\{}ServiceImpl.java";
    }
 
}