新增原子类

master
面包骑士 2024-08-27 22:04:30 +08:00
parent 14a0614cf1
commit 79b740281b
6 changed files with 118 additions and 0 deletions

View File

@ -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 {
}

View File

@ -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;
}

View File

@ -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> {
}

View File

@ -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> {
}

View File

@ -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 {
}

View File

@ -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>