@@ -56,7 +56,7 @@ public class GeneratorCodeKingbaseConfig { | |||||
} | } | ||||
public static void main(String[] args) { | public static void main(String[] args) { | ||||
generate("Liuxinxin", "tag", PATH_LXX, "meta_tag"); | |||||
generate("Liuxinxin", "tag", PATH_LXX, "expert_tag"); | |||||
} | } | ||||
} | } |
@@ -0,0 +1,20 @@ | |||||
package com.ningdatech.pmapi.dictionary.controller; | |||||
import org.springframework.web.bind.annotation.RequestMapping; | |||||
import org.springframework.stereotype.Controller; | |||||
/** | |||||
* <p> | |||||
* 前端控制器 | |||||
* </p> | |||||
* | |||||
* @author Liuxinxin | |||||
* @since 2023-02-22 | |||||
*/ | |||||
@Controller | |||||
@RequestMapping("/pmapi.dictionary/expert-dictionary") | |||||
public class ExpertDictionaryController { | |||||
} |
@@ -0,0 +1,20 @@ | |||||
package com.ningdatech.pmapi.dictionary.controller; | |||||
import org.springframework.web.bind.annotation.RequestMapping; | |||||
import org.springframework.stereotype.Controller; | |||||
/** | |||||
* <p> | |||||
* 前端控制器 | |||||
* </p> | |||||
* | |||||
* @author Liuxinxin | |||||
* @since 2023-02-22 | |||||
*/ | |||||
@Controller | |||||
@RequestMapping("/pmapi.dictionary/meta-dictionary") | |||||
public class MetaDictionaryController { | |||||
} |
@@ -0,0 +1,36 @@ | |||||
package com.ningdatech.pmapi.dictionary.entity; | |||||
import com.baomidou.mybatisplus.annotation.TableName; | |||||
import java.io.Serializable; | |||||
import java.time.LocalDateTime; | |||||
import io.swagger.annotations.ApiModel; | |||||
import io.swagger.annotations.ApiModelProperty; | |||||
import lombok.Data; | |||||
/** | |||||
* <p> | |||||
* | |||||
* </p> | |||||
* | |||||
* @author Liuxinxin | |||||
* @since 2023-02-22 | |||||
*/ | |||||
@Data | |||||
@TableName("expert_dictionary") | |||||
@ApiModel(value = "ExpertDictionary对象", description = "") | |||||
public class ExpertDictionary implements Serializable { | |||||
private static final long serialVersionUID = 1L; | |||||
private Long id; | |||||
private LocalDateTime createOn; | |||||
private LocalDateTime updateOn; | |||||
private String dictionaryCode; | |||||
private String expertInfoField; | |||||
private Long userId; | |||||
} |
@@ -0,0 +1,47 @@ | |||||
package com.ningdatech.pmapi.dictionary.entity; | |||||
import com.baomidou.mybatisplus.annotation.TableName; | |||||
import io.swagger.annotations.ApiModel; | |||||
import lombok.Data; | |||||
import java.io.Serializable; | |||||
import java.time.LocalDateTime; | |||||
/** | |||||
* <p> | |||||
* | |||||
* </p> | |||||
* | |||||
* @author Liuxinxin | |||||
* @since 2023-02-22 | |||||
*/ | |||||
@Data | |||||
@TableName("meta_dictionary") | |||||
@ApiModel(value = "MetaDictionary对象", description = "") | |||||
public class MetaDictionary implements Serializable { | |||||
private static final long serialVersionUID = 1L; | |||||
private Long id; | |||||
private LocalDateTime createOn; | |||||
private LocalDateTime updateOn; | |||||
private String dictionaryType; | |||||
private String dictionaryCode; | |||||
private String dictionaryName; | |||||
private String dictionaryDescribe; | |||||
private Integer sortValue; | |||||
private Long createBy; | |||||
private String readonly; | |||||
private Long updateBy; | |||||
} |
@@ -0,0 +1,16 @@ | |||||
package com.ningdatech.pmapi.dictionary.mapper; | |||||
import com.ningdatech.pmapi.dictionary.entity.ExpertDictionary; | |||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |||||
/** | |||||
* <p> | |||||
* Mapper 接口 | |||||
* </p> | |||||
* | |||||
* @author Liuxinxin | |||||
* @since 2023-02-22 | |||||
*/ | |||||
public interface ExpertDictionaryMapper extends BaseMapper<ExpertDictionary> { | |||||
} |
@@ -0,0 +1,5 @@ | |||||
<?xml version="1.0" encoding="UTF-8"?> | |||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | |||||
<mapper namespace="com.ningdatech.pmapi.dictionary.mapper.ExpertDictionaryMapper"> | |||||
</mapper> |
@@ -0,0 +1,16 @@ | |||||
package com.ningdatech.pmapi.dictionary.mapper; | |||||
import com.ningdatech.pmapi.dictionary.entity.MetaDictionary; | |||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |||||
/** | |||||
* <p> | |||||
* Mapper 接口 | |||||
* </p> | |||||
* | |||||
* @author Liuxinxin | |||||
* @since 2023-02-22 | |||||
*/ | |||||
public interface MetaDictionaryMapper extends BaseMapper<MetaDictionary> { | |||||
} |
@@ -0,0 +1,5 @@ | |||||
<?xml version="1.0" encoding="UTF-8"?> | |||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | |||||
<mapper namespace="com.ningdatech.pmapi.dictionary.mapper.MetaDictionaryMapper"> | |||||
</mapper> |
@@ -0,0 +1,16 @@ | |||||
package com.ningdatech.pmapi.dictionary.service; | |||||
import com.ningdatech.pmapi.dictionary.entity.ExpertDictionary; | |||||
import com.baomidou.mybatisplus.extension.service.IService; | |||||
/** | |||||
* <p> | |||||
* 服务类 | |||||
* </p> | |||||
* | |||||
* @author Liuxinxin | |||||
* @since 2023-02-22 | |||||
*/ | |||||
public interface IExpertDictionaryService extends IService<ExpertDictionary> { | |||||
} |
@@ -0,0 +1,16 @@ | |||||
package com.ningdatech.pmapi.dictionary.service; | |||||
import com.ningdatech.pmapi.dictionary.entity.MetaDictionary; | |||||
import com.baomidou.mybatisplus.extension.service.IService; | |||||
/** | |||||
* <p> | |||||
* 服务类 | |||||
* </p> | |||||
* | |||||
* @author Liuxinxin | |||||
* @since 2023-02-22 | |||||
*/ | |||||
public interface IMetaDictionaryService extends IService<MetaDictionary> { | |||||
} |
@@ -0,0 +1,20 @@ | |||||
package com.ningdatech.pmapi.dictionary.service.impl; | |||||
import com.ningdatech.pmapi.dictionary.entity.ExpertDictionary; | |||||
import com.ningdatech.pmapi.dictionary.mapper.ExpertDictionaryMapper; | |||||
import com.ningdatech.pmapi.dictionary.service.IExpertDictionaryService; | |||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | |||||
import org.springframework.stereotype.Service; | |||||
/** | |||||
* <p> | |||||
* 服务实现类 | |||||
* </p> | |||||
* | |||||
* @author Liuxinxin | |||||
* @since 2023-02-22 | |||||
*/ | |||||
@Service | |||||
public class ExpertDictionaryServiceImpl extends ServiceImpl<ExpertDictionaryMapper, ExpertDictionary> implements IExpertDictionaryService { | |||||
} |
@@ -0,0 +1,20 @@ | |||||
package com.ningdatech.pmapi.dictionary.service.impl; | |||||
import com.ningdatech.pmapi.dictionary.entity.MetaDictionary; | |||||
import com.ningdatech.pmapi.dictionary.mapper.MetaDictionaryMapper; | |||||
import com.ningdatech.pmapi.dictionary.service.IMetaDictionaryService; | |||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | |||||
import org.springframework.stereotype.Service; | |||||
/** | |||||
* <p> | |||||
* 服务实现类 | |||||
* </p> | |||||
* | |||||
* @author Liuxinxin | |||||
* @since 2023-02-22 | |||||
*/ | |||||
@Service | |||||
public class MetaDictionaryServiceImpl extends ServiceImpl<MetaDictionaryMapper, MetaDictionary> implements IMetaDictionaryService { | |||||
} |
@@ -0,0 +1,20 @@ | |||||
package com.ningdatech.pmapi.tag.controller; | |||||
import org.springframework.web.bind.annotation.RequestMapping; | |||||
import org.springframework.stereotype.Controller; | |||||
/** | |||||
* <p> | |||||
* 前端控制器 | |||||
* </p> | |||||
* | |||||
* @author Liuxinxin | |||||
* @since 2023-02-22 | |||||
*/ | |||||
@Controller | |||||
@RequestMapping("/pmapi.tag/expert-tag") | |||||
public class ExpertTagController { | |||||
} |
@@ -0,0 +1,36 @@ | |||||
package com.ningdatech.pmapi.tag.entity; | |||||
import com.baomidou.mybatisplus.annotation.TableName; | |||||
import java.io.Serializable; | |||||
import java.time.LocalDateTime; | |||||
import io.swagger.annotations.ApiModel; | |||||
import io.swagger.annotations.ApiModelProperty; | |||||
import lombok.Data; | |||||
/** | |||||
* <p> | |||||
* | |||||
* </p> | |||||
* | |||||
* @author Liuxinxin | |||||
* @since 2023-02-22 | |||||
*/ | |||||
@TableName("expert_tag") | |||||
@Data | |||||
@ApiModel(value = "ExpertTag对象", description = "") | |||||
public class ExpertTag implements Serializable { | |||||
private static final long serialVersionUID = 1L; | |||||
private Long id; | |||||
private LocalDateTime createOn; | |||||
private LocalDateTime updateOn; | |||||
private Long userId; | |||||
private String tagCode; | |||||
private String expertInfoField; | |||||
} |
@@ -0,0 +1,16 @@ | |||||
package com.ningdatech.pmapi.tag.mapper; | |||||
import com.ningdatech.pmapi.tag.entity.ExpertTag; | |||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |||||
/** | |||||
* <p> | |||||
* Mapper 接口 | |||||
* </p> | |||||
* | |||||
* @author Liuxinxin | |||||
* @since 2023-02-22 | |||||
*/ | |||||
public interface ExpertTagMapper extends BaseMapper<ExpertTag> { | |||||
} |
@@ -0,0 +1,5 @@ | |||||
<?xml version="1.0" encoding="UTF-8"?> | |||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | |||||
<mapper namespace="com.ningdatech.pmapi.tag.mapper.ExpertTagMapper"> | |||||
</mapper> |
@@ -0,0 +1,16 @@ | |||||
package com.ningdatech.pmapi.tag.service; | |||||
import com.ningdatech.pmapi.tag.entity.ExpertTag; | |||||
import com.baomidou.mybatisplus.extension.service.IService; | |||||
/** | |||||
* <p> | |||||
* 服务类 | |||||
* </p> | |||||
* | |||||
* @author Liuxinxin | |||||
* @since 2023-02-22 | |||||
*/ | |||||
public interface IExpertTagService extends IService<ExpertTag> { | |||||
} |
@@ -0,0 +1,20 @@ | |||||
package com.ningdatech.pmapi.tag.service.impl; | |||||
import com.ningdatech.pmapi.tag.entity.ExpertTag; | |||||
import com.ningdatech.pmapi.tag.mapper.ExpertTagMapper; | |||||
import com.ningdatech.pmapi.tag.service.IExpertTagService; | |||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | |||||
import org.springframework.stereotype.Service; | |||||
/** | |||||
* <p> | |||||
* 服务实现类 | |||||
* </p> | |||||
* | |||||
* @author Liuxinxin | |||||
* @since 2023-02-22 | |||||
*/ | |||||
@Service | |||||
public class ExpertTagServiceImpl extends ServiceImpl<ExpertTagMapper, ExpertTag> implements IExpertTagService { | |||||
} |