大屏项目初始化
This commit is contained in:
@@ -0,0 +1,18 @@
|
|||||||
|
package com.mini.mybigscreen.biz.controller;
|
||||||
|
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 前端控制器
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author gaoxq
|
||||||
|
* @since 2026-03-10
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/biz/chartInfo")
|
||||||
|
public class ChartInfoController {
|
||||||
|
|
||||||
|
}
|
||||||
64
src/main/java/com/mini/mybigscreen/biz/domain/ChartInfo.java
Normal file
64
src/main/java/com/mini/mybigscreen/biz/domain/ChartInfo.java
Normal file
@@ -0,0 +1,64 @@
|
|||||||
|
package com.mini.mybigscreen.biz.domain;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.IdType;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
|
import com.mini.mybigscreen.Model.BaseEntity;
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.Setter;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
*
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author gaoxq
|
||||||
|
* @since 2026-03-10
|
||||||
|
*/
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
@TableName("biz_chart_info")
|
||||||
|
public class ChartInfo extends BaseEntity implements Serializable {
|
||||||
|
|
||||||
|
@Serial
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@TableField("create_time")
|
||||||
|
private LocalDateTime createTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 唯一标识
|
||||||
|
*/
|
||||||
|
@TableId(value = "chart_id", type = IdType.AUTO)
|
||||||
|
private String chartId;
|
||||||
|
|
||||||
|
@TableField("chart_name")
|
||||||
|
private String chartName;
|
||||||
|
|
||||||
|
@TableField("chart_code")
|
||||||
|
private String chartCode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 序号
|
||||||
|
*/
|
||||||
|
@TableField("sort")
|
||||||
|
private Long sort;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 组件名称
|
||||||
|
*/
|
||||||
|
@TableField("vue_name")
|
||||||
|
private String vueName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 状态
|
||||||
|
*/
|
||||||
|
@TableField("ustatus")
|
||||||
|
private String ustatus;
|
||||||
|
}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
package com.mini.mybigscreen.biz.mapper;
|
||||||
|
|
||||||
|
import com.github.yulichang.base.MPJBaseMapper;
|
||||||
|
import com.mini.mybigscreen.biz.domain.ChartInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* Mapper 接口
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author gaoxq
|
||||||
|
* @since 2026-03-10
|
||||||
|
*/
|
||||||
|
public interface ChartInfoMapper extends MPJBaseMapper<ChartInfo> {
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
package com.mini.mybigscreen.biz.service;
|
||||||
|
|
||||||
|
import com.mini.mybigscreen.biz.domain.ChartInfo;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 服务类
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author gaoxq
|
||||||
|
* @since 2026-03-10
|
||||||
|
*/
|
||||||
|
public interface ChartInfoService extends IService<ChartInfo> {
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
package com.mini.mybigscreen.biz.service.impl;
|
||||||
|
|
||||||
|
import com.mini.mybigscreen.biz.domain.ChartInfo;
|
||||||
|
import com.mini.mybigscreen.biz.mapper.ChartInfoMapper;
|
||||||
|
import com.mini.mybigscreen.biz.service.ChartInfoService;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 服务实现类
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author gaoxq
|
||||||
|
* @since 2026-03-10
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class ChartInfoServiceImpl extends ServiceImpl<ChartInfoMapper, ChartInfo> implements ChartInfoService {
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user