feat: 接口

This commit is contained in:
2025-08-30 00:20:42 +08:00
parent 6f8726000d
commit 6e31de7ac6
5 changed files with 260 additions and 0 deletions
@@ -0,0 +1,121 @@
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 WebsiteBaseInfo extends BaseEntity {
@Serial
private static final long serialVersionUID = -7870586325679198375L;
@Schema(description = "主键")
private Long id;
@Schema(description = "主页信息")
@PgJsonb
private IndexInfo indexInfo;
@Schema(description = "硬件产品")
@PgJsonb
private ProductInfo productInfo;
@Schema(description = "软件服务")
@PgJsonb
private SoftwareInfo softwareInfo;
@Schema(description = "成功案例")
@PgJsonb
private SuccessInfo successInfo;
@Schema(description = "关于我们")
@PgJsonb
private AboutUsInfo aboutUsInfo;
@Schema(description = "联系信息")
@PgJsonb
private ContactInfo contactInfo;
@Data
public static class IndexInfo {
@Schema(description = "描述")
private String remark;
@Schema(description = "标语图片地址")
private String sloganUrl;
@Schema(description = "提供的服务集合")
private List<String> services;
}
@Data
public static class ProductInfo {
@Schema(description = "描述")
private String remark;
}
@Data
public static class SoftwareInfo {
@Schema(description = "描述")
private String remark;
}
@Data
public static class SuccessInfo {
@Schema(description = "描述")
private String remark;
}
@Data
public static class AboutUsInfo {
@Schema(description = "描述")
private String remark;
@Schema(description = "数量信息")
private List<AboutUsInfoItem> items;
}
@Data
public static class AboutUsInfoItem {
@Schema(description = "标题")
private String title;
@Schema(description = "数量")
private String num;
}
@Data
public static class ContactInfo {
@Schema(description = "地址")
private String address;
@Schema(description = "联系电话信息")
private String phone;
@Schema(description = "邮箱信息")
private String email;
@Schema(description = "工作时间信息描述")
private String workInfo;
}
}