新增原子类
parent
14a0614cf1
commit
79b740281b
|
@ -0,0 +1,20 @@
|
||||||
|
package com.muyu.system.controller;
|
||||||
|
|
||||||
|
import com.muyu.common.core.web.controller.BaseController;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author: 胡杨
|
||||||
|
* @Name: Atom
|
||||||
|
* @Description: 原子表控制层
|
||||||
|
* @CreatedDate: 2024/8/27 下午9:57
|
||||||
|
* @FilePath: com.muyu.system.controller
|
||||||
|
*/
|
||||||
|
@Slf4j
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/Atom")
|
||||||
|
public class AtomController extends BaseController {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,31 @@
|
||||||
|
package com.muyu.system.domain;
|
||||||
|
|
||||||
|
import lombok.*;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author: 胡杨
|
||||||
|
* @Name: Atom
|
||||||
|
* @Description: 原子表
|
||||||
|
* @CreatedDate: 2024/8/27 下午9:55
|
||||||
|
* @FilePath: com.muyu.quest.domain
|
||||||
|
*/
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Builder
|
||||||
|
@ToString
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class Atom {
|
||||||
|
|
||||||
|
/** 字段编码 */
|
||||||
|
private String key;
|
||||||
|
|
||||||
|
/** 字段值 */
|
||||||
|
private String value;
|
||||||
|
|
||||||
|
/** 字段名称 */
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
/** 字段类型 */
|
||||||
|
private String type;
|
||||||
|
}
|
|
@ -0,0 +1,21 @@
|
||||||
|
package com.muyu.system.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.muyu.system.domain.Atom;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author: 胡杨
|
||||||
|
* @Name: Atom
|
||||||
|
* @Description: 原子类持久层
|
||||||
|
* @CreatedDate: 2024/8/27 下午9:59
|
||||||
|
* @FilePath: com.muyu.system.mapper
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
@Repository
|
||||||
|
@Mapper
|
||||||
|
public interface AtomMapper extends BaseMapper<Atom> {
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
package com.muyu.system.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.muyu.system.domain.Atom;
|
||||||
|
import com.muyu.system.domain.SysConfig;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author: 胡杨
|
||||||
|
* @Name: Atom
|
||||||
|
* @Description: 原子类持久层
|
||||||
|
* @CreatedDate: 2024/8/27 下午10:00
|
||||||
|
* @FilePath: com.muyu.system.service
|
||||||
|
*/
|
||||||
|
|
||||||
|
public interface AtomService extends IService<Atom> {
|
||||||
|
}
|
|
@ -0,0 +1,23 @@
|
||||||
|
package com.muyu.system.service.impl;
|
||||||
|
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.muyu.system.domain.Atom;
|
||||||
|
import com.muyu.system.mapper.AtomMapper;
|
||||||
|
import com.muyu.system.service.AtomService;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author: 胡杨
|
||||||
|
* @Name: Atom
|
||||||
|
* @Description: 原子类实现层
|
||||||
|
* @CreatedDate: 2024/8/27 下午10:00
|
||||||
|
* @FilePath: com.muyu.system.service.impl
|
||||||
|
*/
|
||||||
|
|
||||||
|
@Slf4j
|
||||||
|
@Service
|
||||||
|
public class AtomServiceImpl extends ServiceImpl<AtomMapper, Atom>
|
||||||
|
implements AtomService {
|
||||||
|
}
|
|
@ -0,0 +1,7 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.muyu.system.mapper.AtomMapper">
|
||||||
|
|
||||||
|
</mapper>
|
Loading…
Reference in New Issue