Commit 1d5577ae authored by libin's avatar libin

后台*通用配置

parent 3f5111c7
package com.xxfc.platform.app.entity; package com.xxfc.platform.app.entity;
import java.io.Serializable; import java.io.Serializable;
import java.util.Date;
import javax.persistence.*; import javax.persistence.*;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
...@@ -15,40 +14,55 @@ import lombok.Data; ...@@ -15,40 +14,55 @@ import lombok.Data;
* @date 2019-06-03 15:57:13 * @date 2019-06-03 15:57:13
*/ */
@Data @Data
@Table(name = "cofig") @Table(name = "config")
public class Cofig implements Serializable { public class Cofig implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
//主键id /**
@Id * 主键id
*/
@Id
@GeneratedValue(generator = "JDBC") @GeneratedValue(generator = "JDBC")
@ApiModelProperty("主键id") @ApiModelProperty("主键id")
private Integer id; private Integer id;
//1-租车须知;2-预定须知 /**
* 1-租车须知;2-预定须知
*/
@Column(name = "type") @Column(name = "type")
@ApiModelProperty(value = "1-租车须知;2-预定须知") @ApiModelProperty(value = "1-租车须知;2-预定须知;3-旅游")
private Integer type; private Integer type;
// /**
@Column(name = "value") *
*/
@Column(name = "value")
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
private String value; private String value;
//创建时间 /**
@Column(name = "crt_time") * 创建时间
*/
@Column(name = "crt_time")
@ApiModelProperty(value = "创建时间", hidden = true ) @ApiModelProperty(value = "创建时间", hidden = true )
private Long crtTime; private Long crtTime;
//更新时间 /**
@Column(name = "upd_time") * 更新时间
*/
@Column(name = "upd_time")
@ApiModelProperty(value = "更新时间", hidden = true ) @ApiModelProperty(value = "更新时间", hidden = true )
private Long updTime; private Long updTime;
//是否删除;0-1正常;1-删除 /**
* 是否删除;0-1正常;1-删除
*/
@Column(name = "is_del") @Column(name = "is_del")
@ApiModelProperty(value = "是否删除;0-1正常;1-删除") @ApiModelProperty(value = "是否删除;0-1正常;1-删除")
private Integer isDel; private Integer isDel;
@Column(name = "title")
@ApiModelProperty(value = "标题")
private String title;
} }
...@@ -22,5 +22,4 @@ public class CofigBiz extends BaseBiz<CofigMapper,Cofig> { ...@@ -22,5 +22,4 @@ public class CofigBiz extends BaseBiz<CofigMapper,Cofig> {
return mapper.getAllByType(list); return mapper.getAllByType(list);
} }
} }
\ No newline at end of file
package com.xxfc.platform.app.rest.admin;
import com.github.wxiaoqi.security.common.rest.BaseController;
import com.xxfc.platform.app.biz.CofigBiz;
import com.xxfc.platform.app.entity.Cofig;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* @author libin
* @version 1.0
* @description 后台*通用配置
* @data 2019/6/12 9:56
*/
@RestController
@RequestMapping("/admin/config")
@Slf4j
public class CofigAdminController extends BaseController<CofigBiz,Cofig> {
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment