|
@@ -1,70 +0,0 @@
|
|
|
-package cn.iselab.mooctest.site.models.instancePermission;
|
|
|
|
|
-
|
|
|
|
|
-import org.apache.shiro.authz.permission.WildcardPermission;
|
|
|
|
|
-
|
|
|
|
|
-import javax.persistence.*;
|
|
|
|
|
-import java.sql.Timestamp;
|
|
|
|
|
-
|
|
|
|
|
-/**
|
|
|
|
|
- * @author sean
|
|
|
|
|
- * @date 2017-07-12.
|
|
|
|
|
- */
|
|
|
|
|
-@Entity
|
|
|
|
|
-@Table(name = "user_permission")
|
|
|
|
|
-public class UserPermission extends WildcardPermission {
|
|
|
|
|
- @Id
|
|
|
|
|
- @GeneratedValue
|
|
|
|
|
- private Long id;
|
|
|
|
|
-
|
|
|
|
|
- @Column(name = "user_id")
|
|
|
|
|
- private Long userId;
|
|
|
|
|
-
|
|
|
|
|
- @Column(name = "operation")
|
|
|
|
|
- private String operation;
|
|
|
|
|
-
|
|
|
|
|
- @Column(name = "instance_id")
|
|
|
|
|
- private Long instanceId;
|
|
|
|
|
-
|
|
|
|
|
- @Column(name = "create_time")
|
|
|
|
|
- private Timestamp createTime;
|
|
|
|
|
-
|
|
|
|
|
- public Long getId() {
|
|
|
|
|
- return id;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- public void setId(Long id) {
|
|
|
|
|
- this.id = id;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- public Long getUserId() {
|
|
|
|
|
- return userId;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- public void setUserId(Long userId) {
|
|
|
|
|
- this.userId = userId;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- public String getOperation() {
|
|
|
|
|
- return operation;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- public void setOperation(String operation) {
|
|
|
|
|
- this.operation = operation;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- public Long getInstanceId() {
|
|
|
|
|
- return instanceId;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- public void setInstanceId(Long instanceId) {
|
|
|
|
|
- this.instanceId = instanceId;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- public Timestamp getCreateTime() {
|
|
|
|
|
- return createTime;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- public void setCreateTime(Timestamp createTime) {
|
|
|
|
|
- this.createTime = createTime;
|
|
|
|
|
- }
|
|
|
|
|
-}
|
|
|