
上QQ阅读APP看书,第一时间看更新
User
It represents a user in our domain model. We have two different profiles, the author who acts as a news writer, and another one is a reviewer who must review the news registered at the portal. Take a look at the following example:
package springfive.cms.domain.models;
import lombok.Data;
@Data
public class User {
String id;
String identity;
String name;
Role role;
}