Commit 4cffefae by 邓实川 Committed by chenzg

数据库表、字段注释补全,优化表结构

parent 0f6e089a
/**
* @date 2019年12月7日
* @author 翁东州
* @方法中文名称:
*/
package cn.timer.api.bean.clazz;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* @date 2019年12月7日
* @author 翁东州
* @方法中文名称:
*/
@Entity
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name="city_clazz")
@ApiModel("城市类")
public class CityClazz extends Model<CityClazz>{
private static final long serialVersionUID = 3208566213833439168L;
@Id
@GeneratedValue
@TableId (type = IdType.AUTO)
@ApiModelProperty(value="id",example="")
private Integer id;
@ApiModelProperty(value="data",example="")
private byte[] data;
}
/**
* @date 2019年12月7日
* @author 翁东州
* @方法中文名称:
*/
package cn.timer.api.dao.clazz;
import org.springframework.stereotype.Repository;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import cn.timer.api.bean.clazz.CityClazz;
/**
* 图标库
* @author Tang 2019-11-26
*/
@Repository
public interface CityClazzMapper extends BaseMapper<CityClazz>{
}
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