44 lines
1.0 KiB
Java
44 lines
1.0 KiB
Java
package com.imyeyu.spring.entity;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonView;
|
|
import com.imyeyu.lang.bean.Language;
|
|
import com.imyeyu.lang.bean.MultilingualValue;
|
|
import com.imyeyu.spring.annotation.table.AutoUUID;
|
|
import com.imyeyu.spring.annotation.table.Id;
|
|
import com.imyeyu.spring.util.ResponseView;
|
|
import lombok.Data;
|
|
import lombok.EqualsAndHashCode;
|
|
|
|
/**
|
|
* 多语言实体基类
|
|
*
|
|
* @author 夜雨
|
|
* @since 2025-10-17 15:21
|
|
*/
|
|
@Data
|
|
@EqualsAndHashCode(callSuper = true)
|
|
public class Multilingual extends Language implements MultilingualValue, IDEntity<String>, Creatable, Updatable, Deletable, Destroyable {
|
|
|
|
/** 唯一标识 */
|
|
@Id
|
|
@AutoUUID
|
|
@JsonView(ResponseView.Public.class)
|
|
protected String id;
|
|
|
|
/** 业务类型 */
|
|
@JsonView(ResponseView.Public.class)
|
|
protected String bizType;
|
|
|
|
/** 创建时间 */
|
|
@JsonView(ResponseView.Admin.class)
|
|
protected Long createdAt;
|
|
|
|
/** 更新时间 */
|
|
@JsonView(ResponseView.Admin.class)
|
|
protected Long updatedAt;
|
|
|
|
/** 删除时间 */
|
|
@JsonView(ResponseView.Admin.class)
|
|
protected Long deletedAt;
|
|
}
|