提交修改
This commit is contained in:
parent
93ec88d7ea
commit
315ab018e4
@ -11,6 +11,9 @@ import com.heyu.api.data.entity.vv.VvFrontPageEntity;
|
|||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
@Mapper
|
@Mapper
|
||||||
public interface VvFrontPageDao extends BaseMapper<VvFrontPageEntity> {
|
public interface VvFrontPageDao extends BaseMapper<VvFrontPageEntity> {
|
||||||
|
|
||||||
@ -33,4 +36,5 @@ public interface VvFrontPageDao extends BaseMapper<VvFrontPageEntity> {
|
|||||||
int deleteVvFrontPageById(@Param("id")Long id);
|
int deleteVvFrontPageById(@Param("id")Long id);
|
||||||
|
|
||||||
|
|
||||||
|
List<VvFrontPageEntity> selectVvFrontPageAll();
|
||||||
}
|
}
|
||||||
@ -10,7 +10,7 @@ import java.util.Date;import java.util.Date;
|
|||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author quyixiao
|
* @author quyixiao
|
||||||
* @since 2025-12-18
|
* @since 2025-12-19
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
@ -29,6 +29,7 @@ private static final long serialVersionUID = 1L;
|
|||||||
public final static String type_ = CLASS_NAME + "type"; // 类型
|
public final static String type_ = CLASS_NAME + "type"; // 类型
|
||||||
public final static String style_ = CLASS_NAME + "style"; // 样式
|
public final static String style_ = CLASS_NAME + "style"; // 样式
|
||||||
public final static String data_ = CLASS_NAME + "data"; // 数据
|
public final static String data_ = CLASS_NAME + "data"; // 数据
|
||||||
|
public final static String params_ = CLASS_NAME + "params"; // 参数
|
||||||
//
|
//
|
||||||
@TableId(value = "id", type = IdType.AUTO)
|
@TableId(value = "id", type = IdType.AUTO)
|
||||||
private Long id;
|
private Long id;
|
||||||
@ -46,6 +47,8 @@ private static final long serialVersionUID = 1L;
|
|||||||
private String style;
|
private String style;
|
||||||
//数据
|
//数据
|
||||||
private String data;
|
private String data;
|
||||||
|
//参数
|
||||||
|
private String params;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
@ -166,6 +169,21 @@ private static final long serialVersionUID = 1L;
|
|||||||
this.data = data;
|
this.data = data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 参数
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public String getParams() {
|
||||||
|
return params;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 参数
|
||||||
|
* @param params
|
||||||
|
*/
|
||||||
|
public void setParams(String params) {
|
||||||
|
this.params = params;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "VvFrontPageEntity{" +
|
return "VvFrontPageEntity{" +
|
||||||
@ -177,6 +195,7 @@ private static final long serialVersionUID = 1L;
|
|||||||
",type=" + type +
|
",type=" + type +
|
||||||
",style=" + style +
|
",style=" + style +
|
||||||
",data=" + data +
|
",data=" + data +
|
||||||
|
",params=" + params +
|
||||||
"}";
|
"}";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -77,8 +77,6 @@ public class RedisUtils {
|
|||||||
public static boolean BIZ_CACHE_SWITCH = true;//业务缓存开关,true:打开(即使用缓存) false:关闭(即不使用缓存)
|
public static boolean BIZ_CACHE_SWITCH = true;//业务缓存开关,true:打开(即使用缓存) false:关闭(即不使用缓存)
|
||||||
|
|
||||||
public void set(String key, Object value, long expire) {
|
public void set(String key, Object value, long expire) {
|
||||||
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
valueOperations.set(key, toJson(value));
|
valueOperations.set(key, toJson(value));
|
||||||
if (expire != NOT_EXPIRE) {
|
if (expire != NOT_EXPIRE) {
|
||||||
|
|||||||
@ -48,7 +48,7 @@ public class MysqlMain_update {
|
|||||||
}
|
}
|
||||||
List<TablesBean> list = new ArrayList<TablesBean>();
|
List<TablesBean> list = new ArrayList<TablesBean>();
|
||||||
|
|
||||||
list.add(new TablesBean("vv_comment"));
|
list.add(new TablesBean("vv_front_page"));
|
||||||
|
|
||||||
Map<String, String> map = MysqlUtil2ShowCreateTable.getComments();
|
Map<String, String> map = MysqlUtil2ShowCreateTable.getComments();
|
||||||
for (int i = 0; i < list.size(); i++) {
|
for (int i = 0; i < list.size(); i++) {
|
||||||
|
|||||||
@ -0,0 +1,44 @@
|
|||||||
|
package com.heyu.api.controller.vv;
|
||||||
|
|
||||||
|
|
||||||
|
import com.heyu.api.common.annotation.AppLogin;
|
||||||
|
import com.heyu.api.common.annotation.Describe;
|
||||||
|
import com.heyu.api.data.dao.vv.VvFrontPageDao;
|
||||||
|
import com.heyu.api.data.entity.vv.VvFrontPageEntity;
|
||||||
|
import com.heyu.api.data.service.impl.AppBaseRequest;
|
||||||
|
import com.heyu.api.data.utils.R;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
|
@Slf4j
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/app/font")
|
||||||
|
@AppLogin
|
||||||
|
public class AppFontPageController {
|
||||||
|
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private VvFrontPageDao vvFrontPageDao;
|
||||||
|
|
||||||
|
/***
|
||||||
|
* 列表
|
||||||
|
* /app/font/page
|
||||||
|
*/
|
||||||
|
@Describe("首页信息")
|
||||||
|
@RequestMapping("/page")
|
||||||
|
public R list(@RequestBody AppBaseRequest request) {
|
||||||
|
|
||||||
|
|
||||||
|
List<VvFrontPageEntity> vvFrontPageEntityList = vvFrontPageDao.selectVvFrontPageAll();
|
||||||
|
|
||||||
|
return R.ok().setData(vvFrontPageEntityList);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user