feat(education): resolve student tenant context

This commit is contained in:
2026-07-27 17:32:36 +08:00
parent 11e9cc6854
commit 0f846fdaf5
16 changed files with 856 additions and 7 deletions

View File

@@ -1,5 +1,7 @@
package cn.iocoder.yudao.framework.common.biz.system.tenant;
import cn.iocoder.yudao.framework.common.biz.system.tenant.dto.TenantRespDTO;
import java.util.List;
/**
@@ -23,4 +25,34 @@ public interface TenantCommonApi {
*/
void validateTenant(Long id);
/**
* 根据租户编号获得租户信息
*
* @param id 租户编号
* @return 租户信息,不存在时返回 null
*/
default TenantRespDTO getTenant(Long id) {
throw new UnsupportedOperationException("getTenant is not implemented");
}
/**
* 根据租户名获得租户信息
*
* @param name 租户名
* @return 租户信息,不存在时返回 null
*/
default TenantRespDTO getTenantByName(String name) {
throw new UnsupportedOperationException("getTenantByName is not implemented");
}
/**
* 根据域名获得租户信息
*
* @param website 域名
* @return 租户信息,不存在时返回 null
*/
default TenantRespDTO getTenantByWebsite(String website) {
throw new UnsupportedOperationException("getTenantByWebsite is not implemented");
}
}

View File

@@ -0,0 +1,44 @@
package cn.iocoder.yudao.framework.common.biz.system.tenant.dto;
import lombok.Data;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;
/**
* 租户信息 Response DTO
*
* @author 恭学教育
*/
@Data
public class TenantRespDTO implements Serializable {
/**
* 租户编号
*/
private Long id;
/**
* 租户名
*/
private String name;
/**
* 租户状态
*
* 0 - 开启1 - 禁用
*/
private Integer status;
/**
* 绑定域名列表
*/
private List<String> websites;
/**
* 过期时间
*/
private LocalDateTime expireTime;
}