add ResponseView
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
package com.imyeyu.spring.entity;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonView;
|
||||
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;
|
||||
|
||||
@@ -18,5 +20,6 @@ public class UUIDEntity extends BaseEntity implements IDEntity<String> {
|
||||
/** ID */
|
||||
@Id
|
||||
@AutoUUID
|
||||
@JsonView(ResponseView.Public.class)
|
||||
protected String id;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user