73 行
2.4 KiB
Java
73 行
2.4 KiB
Java
|
|
package com.xuqm.tenant.entity;
|
||
|
|
|
||
|
|
import jakarta.persistence.Column;
|
||
|
|
import jakarta.persistence.Entity;
|
||
|
|
import jakarta.persistence.EnumType;
|
||
|
|
import jakarta.persistence.Enumerated;
|
||
|
|
import jakarta.persistence.Id;
|
||
|
|
import jakarta.persistence.Table;
|
||
|
|
import java.time.LocalDateTime;
|
||
|
|
|
||
|
|
@Entity
|
||
|
|
@Table(name = "t_service_activation_request")
|
||
|
|
public class ServiceActivationRequestEntity {
|
||
|
|
|
||
|
|
public enum Status { PENDING, APPROVED, REJECTED }
|
||
|
|
|
||
|
|
@Id
|
||
|
|
private String id;
|
||
|
|
|
||
|
|
@Column(nullable = false, length = 64)
|
||
|
|
private String appId;
|
||
|
|
|
||
|
|
@Enumerated(EnumType.STRING)
|
||
|
|
@Column(nullable = false, length = 16)
|
||
|
|
private FeatureServiceEntity.Platform platform;
|
||
|
|
|
||
|
|
@Enumerated(EnumType.STRING)
|
||
|
|
@Column(nullable = false, length = 16)
|
||
|
|
private FeatureServiceEntity.ServiceType serviceType;
|
||
|
|
|
||
|
|
@Enumerated(EnumType.STRING)
|
||
|
|
@Column(nullable = false, length = 16)
|
||
|
|
private Status status;
|
||
|
|
|
||
|
|
@Column(length = 512)
|
||
|
|
private String applyReason;
|
||
|
|
|
||
|
|
@Column(length = 512)
|
||
|
|
private String reviewNote;
|
||
|
|
|
||
|
|
@Column(nullable = false)
|
||
|
|
private LocalDateTime createdAt;
|
||
|
|
|
||
|
|
private LocalDateTime reviewedAt;
|
||
|
|
|
||
|
|
public String getId() { return id; }
|
||
|
|
public void setId(String id) { this.id = id; }
|
||
|
|
|
||
|
|
public String getAppId() { return appId; }
|
||
|
|
public void setAppId(String appId) { this.appId = appId; }
|
||
|
|
|
||
|
|
public FeatureServiceEntity.Platform getPlatform() { return platform; }
|
||
|
|
public void setPlatform(FeatureServiceEntity.Platform platform) { this.platform = platform; }
|
||
|
|
|
||
|
|
public FeatureServiceEntity.ServiceType getServiceType() { return serviceType; }
|
||
|
|
public void setServiceType(FeatureServiceEntity.ServiceType serviceType) { this.serviceType = serviceType; }
|
||
|
|
|
||
|
|
public Status getStatus() { return status; }
|
||
|
|
public void setStatus(Status status) { this.status = status; }
|
||
|
|
|
||
|
|
public String getApplyReason() { return applyReason; }
|
||
|
|
public void setApplyReason(String applyReason) { this.applyReason = applyReason; }
|
||
|
|
|
||
|
|
public String getReviewNote() { return reviewNote; }
|
||
|
|
public void setReviewNote(String reviewNote) { this.reviewNote = reviewNote; }
|
||
|
|
|
||
|
|
public LocalDateTime getCreatedAt() { return createdAt; }
|
||
|
|
public void setCreatedAt(LocalDateTime createdAt) { this.createdAt = createdAt; }
|
||
|
|
|
||
|
|
public LocalDateTime getReviewedAt() { return reviewedAt; }
|
||
|
|
public void setReviewedAt(LocalDateTime reviewedAt) { this.reviewedAt = reviewedAt; }
|
||
|
|
}
|