喜喜代码框架

This commit is contained in:
2026-04-05 22:49:24 +08:00
parent 6043dc2665
commit 22af251ae9
10 changed files with 943 additions and 0 deletions

View File

@@ -0,0 +1,257 @@
package com.rj.controller;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.rj.entity.LoveWhoI;
import com.rj.service.ILoveWhoIService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.UUID;
/**
* 个人恋爱/择偶自我介绍画像表 前端控制器love_whoI
*
* @author system
* @since 2026-04-05
*/
@RestController
@RequestMapping("/api/loveWhoI")
@Tag(name = "个人择偶自我介绍", description = "love_whoI 表 CRUD")
public class LoveWhoIController {
@Autowired
private ILoveWhoIService loveWhoIService;
@PostMapping("/add")
@Operation(summary = "新增", description = "新增一条个人画像记录")
public ResponseEntity<Map<String, Object>> add(
@Parameter(description = "实体 JSON", required = true)
@RequestBody LoveWhoI body) {
Map<String, Object> result = new HashMap<>();
try {
if (body.getId() == null || body.getId().trim().isEmpty()) {
body.setId(UUID.randomUUID().toString());
}
LocalDateTime now = LocalDateTime.now();
body.setCreateTime(now);
body.setUpdateTime(now);
boolean success = loveWhoIService.save(body);
if (success) {
result.put("success", true);
result.put("message", "添加成功");
result.put("data", body);
return ResponseEntity.ok(result);
}
result.put("success", false);
result.put("message", "添加失败");
return ResponseEntity.badRequest().body(result);
} catch (Exception e) {
result.put("success", false);
result.put("message", "添加异常:" + e.getMessage());
return ResponseEntity.internalServerError().body(result);
}
}
@GetMapping("/get/{id}")
@Operation(summary = "按主键查询", description = "根据 idUUID查询")
public ResponseEntity<Map<String, Object>> getById(
@Parameter(description = "主键 UUID", required = true) @PathVariable String id) {
Map<String, Object> result = new HashMap<>();
try {
LoveWhoI row = loveWhoIService.getById(id);
if (row != null) {
result.put("success", true);
result.put("message", "查询成功");
result.put("data", row);
return ResponseEntity.ok(result);
}
result.put("success", false);
result.put("message", "记录不存在");
return ResponseEntity.notFound().build();
} catch (Exception e) {
result.put("success", false);
result.put("message", "查询异常:" + e.getMessage());
return ResponseEntity.internalServerError().body(result);
}
}
@GetMapping("/list")
@Operation(summary = "分页列表", description = "支持 tenantId、myPhone、名字、性别、行业、居住区域等条件")
public ResponseEntity<Map<String, Object>> list(
@Parameter(description = "页码") @RequestParam(defaultValue = "1") Integer current,
@Parameter(description = "每页条数") @RequestParam(defaultValue = "10") Integer size,
@Parameter(description = "租户ID精确") @RequestParam(required = false) String tenantId,
@Parameter(description = "手机号码(模糊)") @RequestParam(required = false) String myPhone,
@Parameter(description = "名字(模糊)") @RequestParam(required = false) String name,
@Parameter(description = "性别(模糊)") @RequestParam(required = false) String gender,
@Parameter(description = "行业(模糊)") @RequestParam(required = false) String industry,
@Parameter(description = "居住区域(模糊)") @RequestParam(required = false) String residentialArea,
@Parameter(description = "创建开始时间 yyyy-MM-dd HH:mm:ss") @RequestParam(required = false) String createStartTime,
@Parameter(description = "创建结束时间 yyyy-MM-dd HH:mm:ss") @RequestParam(required = false) String createEndTime,
@Parameter(description = "修改开始时间 yyyy-MM-dd HH:mm:ss") @RequestParam(required = false) String updateStartTime,
@Parameter(description = "修改结束时间 yyyy-MM-dd HH:mm:ss") @RequestParam(required = false) String updateEndTime) {
Map<String, Object> result = new HashMap<>();
try {
Page<LoveWhoI> page = new Page<>(current, size);
LambdaQueryWrapper<LoveWhoI> qw = new LambdaQueryWrapper<>();
if (tenantId != null && !tenantId.trim().isEmpty()) {
qw.eq(LoveWhoI::getTenantId, tenantId);
}
if (myPhone != null && !myPhone.trim().isEmpty()) {
qw.like(LoveWhoI::getMyPhone, myPhone);
}
if (name != null && !name.trim().isEmpty()) {
qw.like(LoveWhoI::getName, name);
}
if (gender != null && !gender.trim().isEmpty()) {
qw.like(LoveWhoI::getGender, gender);
}
if (industry != null && !industry.trim().isEmpty()) {
qw.like(LoveWhoI::getIndustry, industry);
}
if (residentialArea != null && !residentialArea.trim().isEmpty()) {
qw.like(LoveWhoI::getResidentialArea, residentialArea);
}
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
if (createStartTime != null && !createStartTime.trim().isEmpty()) {
try {
qw.ge(LoveWhoI::getCreateTime, LocalDateTime.parse(createStartTime, formatter));
} catch (Exception e) {
result.put("success", false);
result.put("message", "创建开始时间格式错误请使用yyyy-MM-dd HH:mm:ss");
return ResponseEntity.badRequest().body(result);
}
}
if (createEndTime != null && !createEndTime.trim().isEmpty()) {
try {
qw.le(LoveWhoI::getCreateTime, LocalDateTime.parse(createEndTime, formatter));
} catch (Exception e) {
result.put("success", false);
result.put("message", "创建结束时间格式错误请使用yyyy-MM-dd HH:mm:ss");
return ResponseEntity.badRequest().body(result);
}
}
if (updateStartTime != null && !updateStartTime.trim().isEmpty()) {
try {
qw.ge(LoveWhoI::getUpdateTime, LocalDateTime.parse(updateStartTime, formatter));
} catch (Exception e) {
result.put("success", false);
result.put("message", "修改开始时间格式错误请使用yyyy-MM-dd HH:mm:ss");
return ResponseEntity.badRequest().body(result);
}
}
if (updateEndTime != null && !updateEndTime.trim().isEmpty()) {
try {
qw.le(LoveWhoI::getUpdateTime, LocalDateTime.parse(updateEndTime, formatter));
} catch (Exception e) {
result.put("success", false);
result.put("message", "修改结束时间格式错误请使用yyyy-MM-dd HH:mm:ss");
return ResponseEntity.badRequest().body(result);
}
}
qw.orderByDesc(LoveWhoI::getUpdateTime);
Page<LoveWhoI> p = loveWhoIService.page(page, qw);
result.put("success", true);
result.put("message", "查询成功");
result.put("data", p.getRecords());
result.put("total", p.getTotal());
result.put("current", p.getCurrent());
result.put("size", p.getSize());
result.put("pages", p.getPages());
return ResponseEntity.ok(result);
} catch (Exception e) {
result.put("success", false);
result.put("message", "查询异常:" + e.getMessage());
return ResponseEntity.internalServerError().body(result);
}
}
@PutMapping("/update")
@Operation(summary = "更新", description = "按主键 id 更新;修改时间由服务端刷新")
public ResponseEntity<Map<String, Object>> update(
@Parameter(description = "实体 JSON须含 id", required = true)
@RequestBody LoveWhoI body) {
Map<String, Object> result = new HashMap<>();
try {
if (body.getId() == null || body.getId().trim().isEmpty()) {
result.put("success", false);
result.put("message", "id 不能为空");
return ResponseEntity.badRequest().body(result);
}
body.setUpdateTime(LocalDateTime.now());
boolean success = loveWhoIService.updateById(body);
if (success) {
result.put("success", true);
result.put("message", "更新成功");
result.put("data", body);
return ResponseEntity.ok(result);
}
result.put("success", false);
result.put("message", "更新失败");
return ResponseEntity.badRequest().body(result);
} catch (Exception e) {
result.put("success", false);
result.put("message", "更新异常:" + e.getMessage());
return ResponseEntity.internalServerError().body(result);
}
}
@DeleteMapping("/delete/{id}")
@Operation(summary = "删除", description = "按主键删除")
public ResponseEntity<Map<String, Object>> delete(
@Parameter(description = "主键 UUID", required = true) @PathVariable String id) {
Map<String, Object> result = new HashMap<>();
try {
boolean success = loveWhoIService.removeById(id);
if (success) {
result.put("success", true);
result.put("message", "删除成功");
return ResponseEntity.ok(result);
}
result.put("success", false);
result.put("message", "删除失败");
return ResponseEntity.badRequest().body(result);
} catch (Exception e) {
result.put("success", false);
result.put("message", "删除异常:" + e.getMessage());
return ResponseEntity.internalServerError().body(result);
}
}
@DeleteMapping("/batchDelete")
@Operation(summary = "批量删除", description = "请求体为 id 字符串列表")
public ResponseEntity<Map<String, Object>> batchDelete(
@Parameter(description = "主键 UUID 列表", required = true) @RequestBody List<String> ids) {
Map<String, Object> result = new HashMap<>();
try {
if (ids == null || ids.isEmpty()) {
result.put("success", false);
result.put("message", "id 列表不能为空");
return ResponseEntity.badRequest().body(result);
}
boolean success = loveWhoIService.removeByIds(ids);
if (success) {
result.put("success", true);
result.put("message", "批量删除成功,共 " + ids.size() + "");
return ResponseEntity.ok(result);
}
result.put("success", false);
result.put("message", "批量删除失败");
return ResponseEntity.badRequest().body(result);
} catch (Exception e) {
result.put("success", false);
result.put("message", "批量删除异常:" + e.getMessage());
return ResponseEntity.internalServerError().body(result);
}
}
}

View File

@@ -0,0 +1,279 @@
package com.rj.controller;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.rj.entity.LoveWhoIPairsHope;
import com.rj.service.ILoveWhoIPairsHopeService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.UUID;
/**
* 择偶/恋爱期望画像表 前端控制器
*
* @author system
* @since 2026-04-05
*/
@RestController
@RequestMapping("/api/loveWhoIPairsHope")
@Tag(name = "择偶期望画像", description = "love_whoI_pairs_hope 表 CRUD")
public class LoveWhoIPairsHopeController {
@Autowired
private ILoveWhoIPairsHopeService loveWhoIPairsHopeService;
@PostMapping("/add")
@Operation(summary = "新增", description = "新增一条择偶/恋爱期望画像")
public ResponseEntity<Map<String, Object>> add(
@Parameter(description = "实体 JSON", required = true)
@RequestBody LoveWhoIPairsHope body) {
Map<String, Object> result = new HashMap<>();
try {
if (body.getId() == null || body.getId().trim().isEmpty()) {
body.setId(UUID.randomUUID().toString());
}
LocalDateTime now = LocalDateTime.now();
body.setCreateTime(now);
body.setUpdateTime(now);
boolean success = loveWhoIPairsHopeService.save(body);
if (success) {
result.put("success", true);
result.put("message", "添加成功");
result.put("data", body);
return ResponseEntity.ok(result);
}
result.put("success", false);
result.put("message", "添加失败");
return ResponseEntity.badRequest().body(result);
} catch (Exception e) {
result.put("success", false);
result.put("message", "添加异常:" + e.getMessage());
return ResponseEntity.internalServerError().body(result);
}
}
@GetMapping("/get/{id}")
@Operation(summary = "按主键查询", description = "根据 idUUID查询")
public ResponseEntity<Map<String, Object>> getById(
@Parameter(description = "主键 UUID", required = true) @PathVariable String id) {
Map<String, Object> result = new HashMap<>();
try {
LoveWhoIPairsHope row = loveWhoIPairsHopeService.getById(id);
if (row != null) {
result.put("success", true);
result.put("message", "查询成功");
result.put("data", row);
return ResponseEntity.ok(result);
}
result.put("success", false);
result.put("message", "记录不存在");
return ResponseEntity.notFound().build();
} catch (Exception e) {
result.put("success", false);
result.put("message", "查询异常:" + e.getMessage());
return ResponseEntity.internalServerError().body(result);
}
}
@GetMapping("/getByRelatedId")
@Operation(summary = "按关联ID查询列表", description = "根据 relatedId 精确匹配,按修改时间倒序")
public ResponseEntity<Map<String, Object>> getByRelatedId(
@Parameter(description = "关联 UUID", required = true) @RequestParam String relatedId) {
Map<String, Object> result = new HashMap<>();
try {
LambdaQueryWrapper<LoveWhoIPairsHope> qw = new LambdaQueryWrapper<>();
qw.eq(LoveWhoIPairsHope::getRelatedId, relatedId);
qw.orderByDesc(LoveWhoIPairsHope::getUpdateTime);
List<LoveWhoIPairsHope> list = loveWhoIPairsHopeService.list(qw);
result.put("success", true);
result.put("message", "查询成功");
result.put("data", list);
result.put("count", list.size());
return ResponseEntity.ok(result);
} catch (Exception e) {
result.put("success", false);
result.put("message", "查询异常:" + e.getMessage());
return ResponseEntity.internalServerError().body(result);
}
}
@GetMapping("/list")
@Operation(summary = "分页列表", description = "支持 tenantId、myPhone、relatedId、名字、性别、行业等条件")
public ResponseEntity<Map<String, Object>> list(
@Parameter(description = "页码") @RequestParam(defaultValue = "1") Integer current,
@Parameter(description = "每页条数") @RequestParam(defaultValue = "10") Integer size,
@Parameter(description = "租户ID精确") @RequestParam(required = false) String tenantId,
@Parameter(description = "手机号码(模糊)") @RequestParam(required = false) String myPhone,
@Parameter(description = "关联ID精确") @RequestParam(required = false) String relatedId,
@Parameter(description = "名字(模糊)") @RequestParam(required = false) String name,
@Parameter(description = "性别(模糊)") @RequestParam(required = false) String gender,
@Parameter(description = "行业(模糊)") @RequestParam(required = false) String industry,
@Parameter(description = "创建开始时间 yyyy-MM-dd HH:mm:ss") @RequestParam(required = false) String createStartTime,
@Parameter(description = "创建结束时间 yyyy-MM-dd HH:mm:ss") @RequestParam(required = false) String createEndTime,
@Parameter(description = "修改开始时间 yyyy-MM-dd HH:mm:ss") @RequestParam(required = false) String updateStartTime,
@Parameter(description = "修改结束时间 yyyy-MM-dd HH:mm:ss") @RequestParam(required = false) String updateEndTime) {
Map<String, Object> result = new HashMap<>();
try {
Page<LoveWhoIPairsHope> page = new Page<>(current, size);
LambdaQueryWrapper<LoveWhoIPairsHope> qw = new LambdaQueryWrapper<>();
if (tenantId != null && !tenantId.trim().isEmpty()) {
qw.eq(LoveWhoIPairsHope::getTenantId, tenantId);
}
if (myPhone != null && !myPhone.trim().isEmpty()) {
qw.like(LoveWhoIPairsHope::getMyPhone, myPhone);
}
if (relatedId != null && !relatedId.trim().isEmpty()) {
qw.eq(LoveWhoIPairsHope::getRelatedId, relatedId);
}
if (name != null && !name.trim().isEmpty()) {
qw.like(LoveWhoIPairsHope::getName, name);
}
if (gender != null && !gender.trim().isEmpty()) {
qw.like(LoveWhoIPairsHope::getGender, gender);
}
if (industry != null && !industry.trim().isEmpty()) {
qw.like(LoveWhoIPairsHope::getIndustry, industry);
}
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
if (createStartTime != null && !createStartTime.trim().isEmpty()) {
try {
qw.ge(LoveWhoIPairsHope::getCreateTime, LocalDateTime.parse(createStartTime, formatter));
} catch (Exception e) {
result.put("success", false);
result.put("message", "创建开始时间格式错误请使用yyyy-MM-dd HH:mm:ss");
return ResponseEntity.badRequest().body(result);
}
}
if (createEndTime != null && !createEndTime.trim().isEmpty()) {
try {
qw.le(LoveWhoIPairsHope::getCreateTime, LocalDateTime.parse(createEndTime, formatter));
} catch (Exception e) {
result.put("success", false);
result.put("message", "创建结束时间格式错误请使用yyyy-MM-dd HH:mm:ss");
return ResponseEntity.badRequest().body(result);
}
}
if (updateStartTime != null && !updateStartTime.trim().isEmpty()) {
try {
qw.ge(LoveWhoIPairsHope::getUpdateTime, LocalDateTime.parse(updateStartTime, formatter));
} catch (Exception e) {
result.put("success", false);
result.put("message", "修改开始时间格式错误请使用yyyy-MM-dd HH:mm:ss");
return ResponseEntity.badRequest().body(result);
}
}
if (updateEndTime != null && !updateEndTime.trim().isEmpty()) {
try {
qw.le(LoveWhoIPairsHope::getUpdateTime, LocalDateTime.parse(updateEndTime, formatter));
} catch (Exception e) {
result.put("success", false);
result.put("message", "修改结束时间格式错误请使用yyyy-MM-dd HH:mm:ss");
return ResponseEntity.badRequest().body(result);
}
}
qw.orderByDesc(LoveWhoIPairsHope::getUpdateTime);
Page<LoveWhoIPairsHope> p = loveWhoIPairsHopeService.page(page, qw);
result.put("success", true);
result.put("message", "查询成功");
result.put("data", p.getRecords());
result.put("total", p.getTotal());
result.put("current", p.getCurrent());
result.put("size", p.getSize());
result.put("pages", p.getPages());
return ResponseEntity.ok(result);
} catch (Exception e) {
result.put("success", false);
result.put("message", "查询异常:" + e.getMessage());
return ResponseEntity.internalServerError().body(result);
}
}
@PutMapping("/update")
@Operation(summary = "更新", description = "按主键 id 更新;修改时间由服务端刷新")
public ResponseEntity<Map<String, Object>> update(
@Parameter(description = "实体 JSON须含 id", required = true)
@RequestBody LoveWhoIPairsHope body) {
Map<String, Object> result = new HashMap<>();
try {
if (body.getId() == null || body.getId().trim().isEmpty()) {
result.put("success", false);
result.put("message", "id 不能为空");
return ResponseEntity.badRequest().body(result);
}
body.setUpdateTime(LocalDateTime.now());
boolean success = loveWhoIPairsHopeService.updateById(body);
if (success) {
result.put("success", true);
result.put("message", "更新成功");
result.put("data", body);
return ResponseEntity.ok(result);
}
result.put("success", false);
result.put("message", "更新失败");
return ResponseEntity.badRequest().body(result);
} catch (Exception e) {
result.put("success", false);
result.put("message", "更新异常:" + e.getMessage());
return ResponseEntity.internalServerError().body(result);
}
}
@DeleteMapping("/delete/{id}")
@Operation(summary = "删除", description = "按主键删除")
public ResponseEntity<Map<String, Object>> delete(
@Parameter(description = "主键 UUID", required = true) @PathVariable String id) {
Map<String, Object> result = new HashMap<>();
try {
boolean success = loveWhoIPairsHopeService.removeById(id);
if (success) {
result.put("success", true);
result.put("message", "删除成功");
return ResponseEntity.ok(result);
}
result.put("success", false);
result.put("message", "删除失败");
return ResponseEntity.badRequest().body(result);
} catch (Exception e) {
result.put("success", false);
result.put("message", "删除异常:" + e.getMessage());
return ResponseEntity.internalServerError().body(result);
}
}
@DeleteMapping("/batchDelete")
@Operation(summary = "批量删除", description = "请求体为 id 字符串列表")
public ResponseEntity<Map<String, Object>> batchDelete(
@Parameter(description = "主键 UUID 列表", required = true) @RequestBody List<String> ids) {
Map<String, Object> result = new HashMap<>();
try {
if (ids == null || ids.isEmpty()) {
result.put("success", false);
result.put("message", "id 列表不能为空");
return ResponseEntity.badRequest().body(result);
}
boolean success = loveWhoIPairsHopeService.removeByIds(ids);
if (success) {
result.put("success", true);
result.put("message", "批量删除成功,共 " + ids.size() + "");
return ResponseEntity.ok(result);
}
result.put("success", false);
result.put("message", "批量删除失败");
return ResponseEntity.badRequest().body(result);
} catch (Exception e) {
result.put("success", false);
result.put("message", "批量删除异常:" + e.getMessage());
return ResponseEntity.internalServerError().body(result);
}
}
}

View File

@@ -0,0 +1,143 @@
package com.rj.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
/**
* 个人恋爱/择偶自我介绍画像表love_whoI
*
* @author system
* @since 2026-04-05
*/
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("love_whoI")
@Schema(description = "个人恋爱/择偶自我介绍画像表")
public class LoveWhoI implements Serializable {
private static final long serialVersionUID = 1L;
@Schema(description = "主键UUID")
@TableId("id")
private String id;
@Schema(description = "租户ID")
@TableField("tenant_id")
private String tenantId;
@Schema(description = "手机号码")
@TableField("my_phone")
private String myPhone;
@Schema(description = "名字")
@TableField("name")
private String name;
@Schema(description = "称呼")
@TableField("salutation")
private String salutation;
@Schema(description = "性别")
@TableField("gender")
private String gender;
@Schema(description = "年龄")
@TableField("age")
private Integer age;
@Schema(description = "行业")
@TableField("industry")
private String industry;
@Schema(description = "收入水平")
@TableField("income_level")
private String incomeLevel;
@Schema(description = "居住区域")
@TableField("residential_area")
private String residentialArea;
@Schema(description = "性格")
@TableField("personality")
private String personality;
@Schema(description = "兴趣爱好")
@TableField("hobbies")
private String hobbies;
@Schema(description = "喜欢的美食")
@TableField("favorite_food")
private String favoriteFood;
@Schema(description = "喜欢的电影类型")
@TableField("favorite_movie_genres")
private String favoriteMovieGenres;
@Schema(description = "最近关系的小事")
@TableField("recent_relationship_note")
private String recentRelationshipNote;
@Schema(description = "学历")
@TableField("education")
private String education;
@Schema(description = "专业")
@TableField("major")
private String major;
@Schema(description = "身高(厘米)")
@TableField("height_cm")
private Integer heightCm;
@Schema(description = "体重(千克)")
@TableField("weight_kg")
private BigDecimal weightKg;
@Schema(description = "健康状况")
@TableField("health_status")
private String healthStatus;
@Schema(description = "对自己的评价")
@TableField("self_evaluation")
private String selfEvaluation;
@Schema(description = "父亲职业")
@TableField("father_occupation")
private String fatherOccupation;
@Schema(description = "母亲职业")
@TableField("mother_occupation")
private String motherOccupation;
@Schema(description = "兄妹几个")
@TableField("siblings_desc")
private String siblingsDesc;
@Schema(description = "房子(有无、贷款等)")
@TableField("house_situation")
private String houseSituation;
@Schema(description = "车子(有无等)")
@TableField("car_situation")
private String carSituation;
@Schema(description = "备注")
@TableField("remark")
private String remark;
@Schema(description = "创建时间")
@TableField("create_time")
private LocalDateTime createTime;
@Schema(description = "修改时间")
@TableField("update_time")
private LocalDateTime updateTime;
}

View File

@@ -0,0 +1,171 @@
package com.rj.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
/**
* 择偶/恋爱期望画像表
*
* @author system
* @since 2026-04-05
*/
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("love_whoI_pairs_hope")
@Schema(description = "择偶/恋爱期望画像表")
public class LoveWhoIPairsHope implements Serializable {
private static final long serialVersionUID = 1L;
@Schema(description = "主键UUID")
@TableId("id")
private String id;
@Schema(description = "关联IDUUID")
@TableField("related_id")
private String relatedId;
@Schema(description = "租户ID")
@TableField("tenant_id")
private String tenantId;
@Schema(description = "手机号码")
@TableField("my_phone")
private String myPhone;
@Schema(description = "名字")
@TableField("name")
private String name;
@Schema(description = "性别")
@TableField("gender")
private String gender;
@Schema(description = "年龄")
@TableField("age")
private Integer age;
@Schema(description = "行业")
@TableField("industry")
private String industry;
@Schema(description = "收入水平")
@TableField("income_level")
private String incomeLevel;
@Schema(description = "身高(厘米)")
@TableField("height_cm")
private Integer heightCm;
@Schema(description = "体重(千克)")
@TableField("weight_kg")
private BigDecimal weightKg;
@Schema(description = "学历")
@TableField("education")
private String education;
@Schema(description = "专业")
@TableField("major")
private String major;
@Schema(description = "房子(有无、贷款等)")
@TableField("house_situation")
private String houseSituation;
@Schema(description = "车子(有无等)")
@TableField("car_situation")
private String carSituation;
@Schema(description = "父亲职业")
@TableField("father_occupation")
private String fatherOccupation;
@Schema(description = "父亲年龄")
@TableField("father_age")
private Integer fatherAge;
@Schema(description = "母亲职业")
@TableField("mother_occupation")
private String motherOccupation;
@Schema(description = "母亲年龄")
@TableField("mother_age")
private Integer motherAge;
@Schema(description = "对忠诚的看法")
@TableField("loyalty_view")
private String loyaltyView;
@Schema(description = "对边界的看法")
@TableField("boundary_view")
private String boundaryView;
@Schema(description = "对异性朋友的看法")
@TableField("opposite_sex_friend_view")
private String oppositeSexFriendView;
@Schema(description = "吵架怎么处理")
@TableField("argument_handling")
private String argumentHandling;
@Schema(description = "金钱观AA制、不理财等")
@TableField("money_view")
private String moneyView;
@Schema(description = "周末怎么过")
@TableField("weekend_habit")
private String weekendHabit;
@Schema(description = "家庭氛围")
@TableField("family_atmosphere")
private String familyAtmosphere;
@Schema(description = "运动")
@TableField("exercise")
private String exercise;
@Schema(description = "在意什么")
@TableField("cares_about")
private String caresAbout;
@Schema(description = "害怕什么")
@TableField("fears")
private String fears;
@Schema(description = "近1年目标")
@TableField("goal_one_year")
private String goalOneYear;
@Schema(description = "对恋爱节奏的看法")
@TableField("dating_pace_view")
private String datingPaceView;
@Schema(description = "抽烟")
@TableField("smoking")
private String smoking;
@Schema(description = "喝酒")
@TableField("drinking")
private String drinking;
@Schema(description = "备注")
@TableField("remark")
private String remark;
@Schema(description = "创建时间")
@TableField("create_time")
private LocalDateTime createTime;
@Schema(description = "修改时间")
@TableField("update_time")
private LocalDateTime updateTime;
}

View File

@@ -0,0 +1,14 @@
package com.rj.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rj.entity.LoveWhoI;
/**
* 个人恋爱/择偶自我介绍画像表 Mapper
*
* @author system
* @since 2026-04-05
*/
public interface LoveWhoIMapper extends BaseMapper<LoveWhoI> {
}

View File

@@ -0,0 +1,14 @@
package com.rj.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rj.entity.LoveWhoIPairsHope;
/**
* 择偶/恋爱期望画像表 Mapper
*
* @author system
* @since 2026-04-05
*/
public interface LoveWhoIPairsHopeMapper extends BaseMapper<LoveWhoIPairsHope> {
}

View File

@@ -0,0 +1,14 @@
package com.rj.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.rj.entity.LoveWhoIPairsHope;
/**
* 择偶/恋爱期望画像表 服务类
*
* @author system
* @since 2026-04-05
*/
public interface ILoveWhoIPairsHopeService extends IService<LoveWhoIPairsHope> {
}

View File

@@ -0,0 +1,14 @@
package com.rj.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.rj.entity.LoveWhoI;
/**
* 个人恋爱/择偶自我介绍画像表 服务类
*
* @author system
* @since 2026-04-05
*/
public interface ILoveWhoIService extends IService<LoveWhoI> {
}

View File

@@ -0,0 +1,19 @@
package com.rj.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.rj.entity.LoveWhoIPairsHope;
import com.rj.mapper.LoveWhoIPairsHopeMapper;
import com.rj.service.ILoveWhoIPairsHopeService;
import org.springframework.stereotype.Service;
/**
* 择偶/恋爱期望画像表 服务实现
*
* @author system
* @since 2026-04-05
*/
@Service
public class LoveWhoIPairsHopeServiceImpl extends ServiceImpl<LoveWhoIPairsHopeMapper, LoveWhoIPairsHope>
implements ILoveWhoIPairsHopeService {
}

View File

@@ -0,0 +1,18 @@
package com.rj.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.rj.entity.LoveWhoI;
import com.rj.mapper.LoveWhoIMapper;
import com.rj.service.ILoveWhoIService;
import org.springframework.stereotype.Service;
/**
* 个人恋爱/择偶自我介绍画像表 服务实现
*
* @author system
* @since 2026-04-05
*/
@Service
public class LoveWhoIServiceImpl extends ServiceImpl<LoveWhoIMapper, LoveWhoI> implements ILoveWhoIService {
}