Commit ce53caa2 by 龙于生 Committed by 284718418@qq.com

新增公司服务端地址接口和 检查账号是否存在接口

parent da3b03e6
package cn.timer.api.bean.serverurl;
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;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
/**
* 公司服务端地址表
*/
@Entity
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "company_server_url")
@Data
@ApiModel("公司服务端地址表")
public class CompanyServerUrl extends Model<CompanyServerUrl> {
private static final long serialVersionUID = 1L;
/**
* id
*/
@Id
@GeneratedValue
@TableId(type = IdType.AUTO)
@ApiModelProperty(value = "ID")
private Long id;
/**
* 公司名称
*/
@ApiModelProperty(value = "公司名称")
private String companyName;
/**
* 服务端IP地址或域名地址
*/
@ApiModelProperty(value = "服务端IP地址或域名地址")
private String serverUrl;
/**
* 状态 0停用 1启用
*/
@ApiModelProperty(value = "状态 0停用 1启用")
private Integer status;
/**
* 排序 数字越大排最前面
*/
@ApiModelProperty(value = "排序 数字越大排最前面")
private Integer sort;
/**
* 备注
*/
@ApiModelProperty(value = "备注")
private String note;
}
package cn.timer.api.dao.serverurl;
import cn.timer.api.bean.serverurl.CompanyServerUrl;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;
@Repository
public interface CompanyServerUrlMapper extends BaseMapper<CompanyServerUrl> {
}
<?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="cn.timer.api.dao.serverurl.CompanyServerUrlMapper">
<!-- 可根据自己的需求,是否要使用 -->
<resultMap type="cn.timer.api.bean.serverurl.CompanyServerUrl" id="company">
<result property="id" column="id"/>
<result property="companyName" column="company_name"/>
<result property="serverUrl" column="server_url"/>
<result property="status" column="status"/>
<result property="sort" column="sort"/>
<result property="note" column="note"/>
</resultMap>
</mapper>
\ 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