Commit c564c715 authored by liming's avatar liming

俱乐部对象上传

parent 9a542294
package com.antai.sport.http.server.repository.club.entity;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
*
* </p>
*
* @author liming
* @since 2022-07-13
*/
@Data
@EqualsAndHashCode(callSuper = false)
public class Club implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键
*/
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 俱乐部名称
*/
private String name;
/**
* logo
*/
private String logo;
/**
* 省
*/
private Long province;
/**
* 市
*/
private Long city;
/**
* 会长id
*/
private Long chairmanId;
/**
* 总爬坡高度
*/
private BigDecimal totalClimbDistance;
/**
* 总骑行距离
*/
private BigDecimal totalDistance;
/**
* 总持续时长
*/
private Integer totalDuration;
/**
* 卡路里
*/
private Integer totalCalorie;
/**
* 俱乐部创建时间
*/
private LocalDateTime clubCreateTime;
/**
* 创建人id
*/
private Long createUser;
/**
* 数据创建时间
*/
private LocalDateTime createTime;
/**
* 修改时间
*/
private LocalDateTime updateTime;
}
package com.antai.sport.http.server.repository.club.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
*
* </p>
*
* @author liming
* @since 2022-07-13
*/
@Data
@EqualsAndHashCode(callSuper = false)
public class ClubMember implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键
*/
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 俱乐部id
*/
private Long clubId;
/**
* 玩家id
*/
private Long sportUserId;
/**
* 类型 1.会长 2.助理 3.会员
*/
private Integer type;
/**
* 删除标记
*/
private Integer deleted;
/**
* 数据创建时间
*/
private LocalDateTime createTime;
/**
* 修改时间
*/
private LocalDateTime updateTime;
}
package com.antai.sport.http.server.repository.club.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
*
* </p>
*
* @author liming
* @since 2022-07-13
*/
@Data
@EqualsAndHashCode(callSuper = false)
public class ClubNotice implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键
*/
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 俱乐部id
*/
private Long clubId;
/**
* 是否置顶
*/
private Boolean top;
/**
* 标题
*/
private String title;
/**
* 正文
*/
private String content;
/**
* 创建人id
*/
private Long createUser;
/**
* 数据创建时间
*/
private LocalDateTime createTime;
/**
* 修改时间
*/
private LocalDateTime updateTime;
/**
* 删除标记
*/
private Integer deleted;
}
package com.antai.sport.http.server.repository.club.mapper;
import com.antai.sport.http.server.repository.club.entity.Club;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* Mapper 接口
* </p>
*
* @author liming
* @since 2022-07-13
*/
public interface ClubMapper extends BaseMapper<Club> {
}
package com.antai.sport.http.server.repository.club.mapper;
import com.antai.sport.http.server.repository.club.entity.ClubMember;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* Mapper 接口
* </p>
*
* @author liming
* @since 2022-07-13
*/
public interface ClubMemberMapper extends BaseMapper<ClubMember> {
}
package com.antai.sport.http.server.repository.club.mapper;
import com.antai.sport.http.server.repository.club.entity.ClubNotice;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* Mapper 接口
* </p>
*
* @author liming
* @since 2022-07-13
*/
public interface ClubNoticeMapper extends BaseMapper<ClubNotice> {
}
......@@ -60,6 +60,11 @@ public class SportUserTrainingLog implements Serializable {
*/
private Long recordId;
/**
* 俱乐部id
*/
private Long clubId;
/**
* 地图key
*/
......
<?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.antai.sport.http.server.repository.club.mapper.ClubMapper">
</mapper>
<?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.antai.sport.http.server.repository.club.mapper.ClubMemberMapper">
</mapper>
<?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.antai.sport.http.server.repository.club.mapper.ClubNoticeMapper">
</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