Commit 196e03a6 authored by zhangc's avatar zhangc

commit

parent 88042ad1
package com.jz.dm.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jz.dm.models.domian.ApiFunction;
/**
* <p>
* api模板方法表 Mapper 接口
* </p>
*
* @author ZC
* @since 2021-02-23
*/
public interface ApiFunctionMapper extends BaseMapper<ApiFunction> {
}
package com.jz.dm.models.domian;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jz.dm.common.base.BaseObject;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
/**
* <p>
* api模板方法表
* </p>
*
* @author ZC
* @since 2021-02-23
*/
@Data
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
@Accessors(chain = true)
@TableName("t_api_function")
public class ApiFunction extends BaseObject implements Serializable {
/**
* 模板名称
*/
private String name;
/**
* 别名
*/
private String alias;
/**
* 请求路径
*/
private String templateUrl;
/**
* 模板类型
*/
private String type;
/**
* 是否启用:0 否, 1 是
*/
private Integer status;
}
package com.jz.dm.models.dto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
/**
* @author ZC
* @PACKAGE_NAME: com.jz.dm.models.dto
* @PROJECT_NAME: jz-dm-parent
* @NAME: ApiFunctionDto
* @DATE: 2021-2-23/11:17
* @DAY_NAME_SHORT: 周二
* @Description:
**/
@Data
@ApiModel
public class ApiFunctionDto implements Serializable {
@ApiModelProperty(value = "名称")
private String name;
@ApiModelProperty(value = "自增id")
private Long id;
}
////////////////////////////////////////////////////////////////////
// _ooOoo_ //
// o8888888o //
// 88" . "88 //
// (| ^_^ |) //
// O\ = /O //
// ____/`---'\____ //
// .' \\| |// `. //
// / \\||| : |||// \ //
// / _||||| -:- |||||- \ //
// | | \\\ - /// | | //
// | \_| ''\---/'' | | //
// \ .-\__ `-` ___/-. / //
// ___`. .' /--.--\ `. . ___ //
// ."" '< `.___\_<|>_/___.' >'"". //
// | | : `- \`.;`\ _ /`;.`/ - ` : | | //
// \ \ `-. \_ __\ /__ _/ .-` / / //
// ========`-.____`-.___\_____/___.-`____.-'======== //
// `=---=' //
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ //
// 佛祖保佑 永不宕机 永无BUG //
////////////////////////////////////////////////////////////////////
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.jz.dm.mapper.ApiFunctionMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.jz.dm.models.domian.ApiFunction">
<id column="id" property="id" />
<result column="name" property="name" />
<result column="alias" property="alias" />
<result column="template_url" property="templateUrl" />
<result column="type" property="type" />
<result column="status" property="status" />
<result column="remark" property="remark" />
<result column="create_date" property="createDate" />
<result column="create_user" property="createUser" />
<result column="update_date" property="updateDate" />
<result column="update_user" property="updateUser" />
<result column="is_deleted" property="isDeleted" />
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
id, `name`, alias, template_url, `type`, status, remark, create_date, create_user, update_date, update_user, is_deleted
</sql>
</mapper>
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