TASK:企业、教育版library元素共享、作品广场作品发布到公共gallery
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
package com.ai.da.mapper.primary;
|
||||
|
||||
import com.ai.da.common.config.mybatis.plus.CommonMapper;
|
||||
import com.ai.da.mapper.primary.entity.EducationLibrary;
|
||||
|
||||
public interface EductionLibraryMapper extends CommonMapper<EducationLibrary> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package com.ai.da.mapper.primary;
|
||||
|
||||
import com.ai.da.common.config.mybatis.plus.CommonMapper;
|
||||
import com.ai.da.mapper.primary.entity.EnterpriseLibrary;
|
||||
|
||||
public interface EnterpriseLibraryMapper extends CommonMapper<EnterpriseLibrary> {
|
||||
}
|
||||
@@ -3,6 +3,8 @@ package com.ai.da.mapper.primary;
|
||||
import com.ai.da.common.config.mybatis.plus.CommonMapper;
|
||||
import com.ai.da.mapper.primary.entity.Library;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Mapper 接口
|
||||
*
|
||||
@@ -11,4 +13,11 @@ import com.ai.da.mapper.primary.entity.Library;
|
||||
*/
|
||||
public interface LibraryMapper extends CommonMapper<Library> {
|
||||
|
||||
List<Library> selectCommonLib(Long organizationId, String sort, long limit, long offset);
|
||||
|
||||
Long selectCommonLibCount(Long organizationId);
|
||||
|
||||
List<Library> selectAllSubAccLib(Long organizationId, String sort, long limit, long offset);
|
||||
|
||||
Long selectAllSubAccLibCount(Long organizationId);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
package com.ai.da.mapper.primary;
|
||||
|
||||
import com.ai.da.common.config.mybatis.plus.CommonMapper;
|
||||
import com.ai.da.mapper.primary.entity.Organization;
|
||||
|
||||
public interface OrganizationMapper extends CommonMapper<Organization> {
|
||||
}
|
||||
@@ -117,6 +117,8 @@ public class Account implements Serializable {
|
||||
|
||||
private String organizationName;
|
||||
|
||||
private Long organizationId;
|
||||
|
||||
private Long parentId;
|
||||
|
||||
private Integer isAdmin;
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.ai.da.mapper.primary.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@TableName("t_education_library")
|
||||
public class EducationLibrary extends BaseEntity{
|
||||
|
||||
private Long educationId;
|
||||
|
||||
private Long classId;
|
||||
|
||||
// 元素开放的范围 部门 | 公司
|
||||
private String scope;
|
||||
|
||||
private Long libraryId;
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.ai.da.mapper.primary.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@TableName("t_enterprise_library")
|
||||
public class EnterpriseLibrary extends BaseEntity{
|
||||
|
||||
private Long enterpriseId;
|
||||
|
||||
private Long departmentId;
|
||||
|
||||
// 元素开放的范围 部门 | 公司
|
||||
private String scope;
|
||||
|
||||
private Long libraryId;
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.ai.da.mapper.primary.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@TableName("t_organization")
|
||||
public class Organization extends BaseEntity{
|
||||
// 企业、教育、部门、班级名
|
||||
private String name;
|
||||
// 企业 || 教育 Enterprise || Education
|
||||
private String type;
|
||||
// 分类类型:root/department/grade等
|
||||
private String categoryType;
|
||||
// 分类层级
|
||||
private String level;
|
||||
// 父分类ID(自引用)
|
||||
private Long parentId;
|
||||
// 状态
|
||||
private Integer status;
|
||||
}
|
||||
@@ -60,6 +60,12 @@ public class Portfolio implements Serializable {
|
||||
@ApiModelProperty(value = "作品集作者ID")
|
||||
private Long accountId;
|
||||
|
||||
// 学校/企业id
|
||||
private Long organizationId;
|
||||
|
||||
// 该条作品是否在该组织公开 默认不公开 0(1为公开)
|
||||
private Integer isPublic;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private LocalDateTime createDate;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user