feat: 后端接口开发

This commit is contained in:
2025-08-30 20:38:14 +08:00
parent 6e31de7ac6
commit 119f66a833
59 changed files with 2449 additions and 0 deletions
@@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.annotation.TableField;
import com.byhah.cloud.basic.core.enums.dev.DevLogType;
import com.byhah.deploy.basic.core.annotation.PgBoolean;
import com.byhah.deploy.basic.core.annotation.PgInteger;
import com.byhah.deploy.basic.core.annotation.PgText;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
@@ -46,6 +47,7 @@ public class DevLog {
* 具体消息
*/
@Schema(description = "具体消息")
@PgText
private String exeMessage;
/**
@@ -76,12 +78,14 @@ public class DevLog {
* 类名称
*/
@Schema(description = "类名称")
@PgText
private String className;
/**
* 方法名称
*/
@Schema(description = "方法名称")
@PgText
private String methodName;
/**
@@ -100,12 +104,14 @@ public class DevLog {
* 请求参数
*/
@Schema(description = "请求参数")
@PgText
private String paramJson;
/**
* 返回结果
*/
@Schema(description = "返回结果")
@PgText
private String resultJson;
/**
@@ -0,0 +1,57 @@
package com.byhah.cloud.basic.core.entity.website;
import com.byhah.cloud.basic.core.entity.BaseEntity;
import com.byhah.deploy.basic.core.annotation.PgBoolean;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import java.io.Serial;
/**
* 客户评价
*
* @author ZYJ
**/
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class WebsiteComment extends BaseEntity {
@Serial
private static final long serialVersionUID = 446170818680511632L;
@Schema(description = "主键")
private Long id;
@Schema(description = "评价人名称")
private String name;
@Schema(description = "评价人头像")
private String avatar;
@Schema(description = "评价人描述")
private String remark;
@Schema(description = "评价内容")
private String content;
@Schema(description = "评价星级")
private String star;
@Schema(description = "排序")
private Integer sort;
@Schema(description = "是否启用")
@PgBoolean
private Boolean enabled;
public WebsiteComment(Long id, Boolean enabled) {
this.id = id;
this.enabled = enabled;
}
}
@@ -0,0 +1,48 @@
package com.byhah.cloud.basic.core.entity.website;
import com.byhah.cloud.basic.core.entity.BaseEntity;
import com.byhah.deploy.basic.core.annotation.PgBoolean;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serial;
/**
* 网站咨询
*
* @author ZYJ
**/
@Data
@EqualsAndHashCode(callSuper = true)
public class WebsiteConsult extends BaseEntity {
@Serial
private static final long serialVersionUID = -29545433753542092L;
@Schema(description = "主键")
private Long id;
@Schema(description = "姓名")
private String name;
@Schema(description = "电话")
private String phone;
@Schema(description = "邮箱")
private String email;
@Schema(description = "咨询类型id")
private Long typeId;
@Schema(description = "内容")
private String content;
@Schema(description = "是否处理")
@PgBoolean
private Boolean contactStatus;
@Schema(description = "后续备注")
private String remark;
}
@@ -0,0 +1,31 @@
package com.byhah.cloud.basic.core.entity.website;
import com.byhah.cloud.basic.core.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serial;
/**
* 咨询类型
*
* @author ZYJ
**/
@Data
@EqualsAndHashCode(callSuper = true)
public class WebsiteConsultType extends BaseEntity {
@Serial
private static final long serialVersionUID = 201031270548013963L;
@Schema(description = "主键")
private Long id;
@Schema(description = "类型名称")
private String name;
@Schema(description = "排序")
private Integer sort;
}
@@ -0,0 +1,60 @@
package com.byhah.cloud.basic.core.entity.website;
import com.byhah.cloud.basic.core.entity.BaseEntity;
import com.byhah.deploy.basic.core.annotation.PgJsonb;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serial;
import java.util.List;
/**
* 硬件产品
*
* @author ZYJ
**/
@Data
@EqualsAndHashCode(callSuper = true)
public class WebsiteProduct extends BaseEntity {
@Serial
private static final long serialVersionUID = -6480686731965980903L;
@Schema(description = "主键")
private Long id;
@Schema(description = "产品名称")
private String name;
@Schema(description = "产品图片")
private String pic;
@Schema(description = "产品标签(左上角标识)")
private String tag;
@Schema(description = "产品描述")
private String remark;
@Schema(description = "排序")
private Integer sort;
@Schema(description = "额外信息")
@PgJsonb
private ProductExtra extra;
@Data
public static class ProductExtra {
@Schema(description = "优势集合")
private List<ProductAdvantage> advantages;
}
@Data
public static class ProductAdvantage {
@Schema(description = "优势")
private String name;
}
}
@@ -0,0 +1,37 @@
package com.byhah.cloud.basic.core.entity.website;
import com.byhah.cloud.basic.core.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serial;
/**
* 软件服务解决方案
*
* @author ZYJ
**/
@Data
@EqualsAndHashCode(callSuper = true)
public class WebsiteSoftwarePlan extends BaseEntity {
@Serial
private static final long serialVersionUID = -2431812188052297308L;
@Schema(description = "主键")
private Long id;
@Schema(description = "方案名称")
private String name;
@Schema(description = "方案图片")
private String pic;
@Schema(description = "方案描述")
private String remark;
@Schema(description = "排序")
private Integer sort;
}
@@ -0,0 +1,40 @@
package com.byhah.cloud.basic.core.entity.website;
import com.byhah.cloud.basic.core.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serial;
/**
* 成功案例
*
* @author ZYJ
**/
@Data
@EqualsAndHashCode(callSuper = true)
public class WebsiteSuccessCase extends BaseEntity {
@Serial
private static final long serialVersionUID = -1919449173669538210L;
@Schema(description = "主键")
private Long id;
@Schema(description = "案例名称")
private String name;
@Schema(description = "案例图片")
private String pic;
@Schema(description = "案例描述")
private String remark;
@Schema(description = "案例类型id")
private Long typeId;
@Schema(description = "排序")
private Integer sort;
}
@@ -0,0 +1,31 @@
package com.byhah.cloud.basic.core.entity.website;
import com.byhah.cloud.basic.core.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serial;
/**
* 成功案例类型
*
* @author ZYJ
**/
@Data
@EqualsAndHashCode(callSuper = true)
public class WebsiteSuccessCaseType extends BaseEntity {
@Serial
private static final long serialVersionUID = 5581124897768170091L;
@Schema(description = "主键")
private Long id;
@Schema(description = "类型名称")
private String name;
@Schema(description = "排序")
private Integer sort;
}
@@ -0,0 +1,37 @@
package com.byhah.cloud.basic.core.entity.website;
import com.byhah.cloud.basic.core.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serial;
/**
* 关于我们的目标信息
*
* @author ZYJ
**/
@Data
@EqualsAndHashCode(callSuper = true)
public class WebsiteTarget extends BaseEntity {
@Serial
private static final long serialVersionUID = 7272726117496281239L;
@Schema(description = "主键")
private Long id;
@Schema(description = "名称")
private String name;
@Schema(description = "图片")
private String pic;
@Schema(description = "描述")
private String remark;
@Schema(description = "排序")
private Integer sort;
}