Forráskód Böngészése

1、初始化微校推送服务

Bingo 3 éve
szülő
commit
d6d4206d03

+ 0 - 63
src/main/java/com/chuanghai/entity/Organization.java

@@ -1,63 +0,0 @@
-package com.chuanghai.entity;
-
-import java.util.Date;
-import java.io.Serializable;
-import lombok.Data;
-import lombok.EqualsAndHashCode;
-import lombok.experimental.Accessors;
-
-
-@Data
-@EqualsAndHashCode(callSuper = false)
-@Accessors(chain = true)
-public class Organization implements Serializable {
-
-    private static final long serialVersionUID=1L;
-
-    /**
-     * 主键
-     */
-    private Long id;
-
-    /**
-     * 组织名称
-     */
-    private String name;
-
-    /**
-     * 父组织编号
-     */
-    private Integer parentId;
-
-    /**
-     * 组织类别
-     */
-    private String orgType;
-
-    /**
-     * 类别
-     */
-    private Integer type;
-
-    /**
-     * 更新时间
-     */
-    private Date updatedAt;
-
-    /**
-     * 省份
-     */
-    private String province;
-
-    /**
-     * 城市
-     */
-    private String city;
-
-    /**
-     * 地区
-     */
-    private String area;
-
-
-}

+ 0 - 185
src/main/java/com/chuanghai/entity/User.java

@@ -1,185 +0,0 @@
-package com.chuanghai.entity;
-
-
-import lombok.Data;
-
-import java.io.Serializable;
-
-/**
- * 用户信息
- *
- * @Author: binguo
- * @Date: 2022/12/28 星期三 10:48
- * @Description: 用户实体信息
- * @Version: 1.0
- */
-@Data
-public class User implements Serializable {
-
-    private static final long serialVersionUID=1L;
-
-    /**
-     * 主键
-     */
-    private Integer id;
-
-    private String weixiaoStuId;
-
-    /**
-     * 电子卡号
-     */
-    private String cardNumber;
-
-    /**
-     * 姓名
-     */
-    private String name;
-
-    /**
-     * 性别
-     */
-    private Integer gender;
-
-    /**
-     * 头像
-     */
-    private String headImage;
-
-    /**
-     * 身份类型,1为其他,2为学生,3为教职工,4为校友
-     */
-    private Integer identityType;
-
-    /**
-     * 年级
-     */
-    private String grade;
-
-    /**
-     * 校区
-     */
-    private String campus;
-
-    /**
-     * 宿舍号
-     */
-    private String dormNumber;
-
-    /**
-     * 物理芯片号
-     */
-    private String physicalChipNumber;
-
-    /**
-     * 物理卡号
-     */
-    private String physicalCardNumber;
-
-    /**
-     * 民族
-     */
-    private String nation;
-
-    /**
-     * 生日
-     */
-    private String birthday;
-
-    /**
-     * 生源地
-     */
-    private String originPlace;
-
-    /**
-     * 毕业学校
-     */
-    private String graduatedSchool;
-
-    /**
-     * 家庭住址
-     */
-    private String address;
-
-    /**
-     * QQ
-     */
-    private String qq;
-
-    /**
-     * 邮箱
-     */
-    private String email;
-
-    private Integer cardType;
-
-    /**
-     * 身份职称
-     */
-    private String identityTitle;
-
-    /**
-     * 学院
-     */
-    private String college;
-
-    /**
-     * 专业
-     */
-    private String profession;
-
-    /**
-     * 班级
-     */
-    private String clazz;
-
-    /**
-     * 身份证号
-     */
-    private String idCard;
-
-    private Integer country;
-
-    /**
-     * 电话号码
-     */
-    private String telephone;
-
-    private Integer dataSource;
-
-    /**
-     * 有效期开始时间
-     */
-    private String startAt;
-
-    /**
-     * 有效期结束时间
-     */
-    private String expireAt;
-
-    /**
-     * 职务
-     */
-    private String jobTitle;
-
-    /**
-     * 编号
-     */
-    private String serialNumber;
-
-    /**
-     * 学段
-     */
-    private String schoolPeriod;
-
-    /**
-     * 入学年份
-     */
-    private String registerYear;
-
-    /**
-     * 组织结构
-     */
-    private String organization;
-
-
-}

+ 0 - 1
src/main/java/com/chuanghai/mapper/PushProjectMapper.java

@@ -3,7 +3,6 @@ package com.chuanghai.mapper;
 
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
 import com.chuanghai.entity.PushProject;
-import com.chuanghai.entity.User;
 import org.apache.ibatis.annotations.Mapper;
 
 @Mapper

+ 0 - 2
src/main/java/com/chuanghai/service/PushProjectService.java

@@ -1,11 +1,9 @@
 package com.chuanghai.service;
 
 
-import com.alibaba.fastjson.JSONObject;
 import com.baomidou.mybatisplus.extension.service.IService;
 import com.chuanghai.dto.WeixiaoPushDTO;
 import com.chuanghai.entity.PushProject;
-import com.chuanghai.entity.User;
 
 public interface PushProjectService extends IService<PushProject> {
 

+ 0 - 18
src/main/resources/mapper.wx/OrganizationMapper.xml

@@ -1,18 +0,0 @@
-<?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.chuanghai.mapper.UserMapper">
-
-    <!-- 可根据自己的需求,是否要使用 -->
-    <resultMap type="com.chuanghai.entity.Organization" id="organizationMap">
-        <result property="id" column="id"/>
-        <result property="name" column="name"/>
-        <result property="parentId" column="parent_id"/>
-        <result property="orgType" column="org_type"/>
-        <result property="type" column="type"/>
-        <result property="updatedAt" column="updated_at"/>
-        <result property="province" column="province"/>
-        <result property="city" column="city"/>
-        <result property="area" column="area"/>
-    </resultMap>
-
-</mapper>

+ 0 - 44
src/main/resources/mapper.wx/UserMapper.xml

@@ -1,44 +0,0 @@
-<?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.chuanghai.mapper.UserMapper">
-
-    <!-- 可根据自己的需求,是否要使用 -->
-    <resultMap type="com.chuanghai.entity.Organization" id="organizationMap">
-        <result property="id" column="id"/>
-        <result property="weixiaoStuId" column="weixiao_stu_id"/>
-        <result property="cardNumber" column="card_number"/>
-        <result property="name" column="name"/>
-        <result property="gender" column="gender"/>
-        <result property="headImage" column="head_image"/>
-        <result property="identityType" column="identity_type"/>
-        <result property="grade" column="grade"/>
-        <result property="campus" column="campus"/>
-        <result property="dormNumber" column="dorm_number"/>
-        <result property="physicalChipNumber" column="physical_chip_number"/>
-        <result property="physicalCardNumber" column="physical_card_number"/>
-        <result property="nation" column="nation"/>
-        <result property="birthday" column="birthday"/>
-        <result property="originPlace" column="origin_place"/>
-        <result property="graduatedSchool" column="graduated_school"/>
-        <result property="address" column="address"/>
-        <result property="qq" column="qq"/>
-        <result property="email" column="email"/>
-        <result property="cardType" column="cardType"/>
-        <result property="identityTitle" column="identity_title"/>
-        <result property="college" column="college"/>
-        <result property="profession" column="profession"/>
-        <result property="clazz" column="clazz"/>
-        <result property="idCard" column="id_card"/>
-        <result property="country" column="country"/>
-        <result property="telephone" column="telephone"/>
-        <result property="dataSource" column="data_source"/>
-        <result property="startAt" column="start_at"/>
-        <result property="expireAt" column="expire_at"/>
-        <result property="jobTitle" column="job_title"/>
-        <result property="serialNumber" column="serial_number"/>
-        <result property="schoolPeriod" column="schoolperiod"/>
-        <result property="registerYear" column="register_year"/>
-        <result property="organization" column="organization"/>
-    </resultMap>
-
-</mapper>