support ContextInfo extension
This commit is contained in:
parent
9d8edff9db
commit
ff88125508
@ -12,5 +12,5 @@ import cn.axzo.framework.auth.domain.ContextInfo;
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Documented
|
||||
public @interface PreBuildContext {
|
||||
Class<ContextInfo> value() default ContextInfo.class;
|
||||
Class<? extends ContextInfo> value() default ContextInfo.class;
|
||||
}
|
||||
|
||||
@ -6,7 +6,9 @@ import cn.hutool.core.bean.BeanUtil;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
/**
|
||||
@ -19,7 +21,8 @@ import lombok.extern.slf4j.Slf4j;
|
||||
* @author gaowei
|
||||
*
|
||||
*/
|
||||
@Data
|
||||
@Getter
|
||||
@Setter
|
||||
@Slf4j
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@ -45,6 +48,8 @@ public class ContextInfo {
|
||||
|
||||
/**
|
||||
* 单位id
|
||||
* 当以工人身份进入的时候,如果workspaceType是PROJ类型的,ouId是Contractor的ID,即挂靠的总包或者分包公司的ID
|
||||
* 如果没有具体的workspaceId,则ouId是平台班组的单位ID
|
||||
*/
|
||||
private Long ouId;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user