Teamlinker/code/server/common/cache/keys/organization.ts
sx1989827 ff4db586b3 init
2023-05-27 20:53:32 +08:00

26 lines
1.1 KiB
TypeScript

import {ECommon_Services} from "../../../../common/types";
import {RedisStringKey} from "./base";
import StringUtil from "../../util/string";
import {cacheRedisType} from "../../types/cache";
export namespace REDIS_ORGANIZATION {
let USER_STATUS_KEY=`${ECommon_Services.Cooperation}:user:{0}:status`
let USER_PRE_STATUS_KEY=`${ECommon_Services.Cooperation}:user:{0}:pre_status`
let USER_MEETING_KEY=`${ECommon_Services.Cooperation}:user:{0}:meeting`
export function status(organizationUserId:string)
{
let obj=new RedisStringKey(StringUtil.format(USER_STATUS_KEY,organizationUserId),cacheRedisType<number>().Number,-1)
return obj
}
export function preStatus(organizationUserId:string)
{
let obj=new RedisStringKey(StringUtil.format(USER_PRE_STATUS_KEY,organizationUserId),cacheRedisType<number>().Number,-1)
return obj
}
export function meetingId(organizationUserId:string)
{
let obj=new RedisStringKey(StringUtil.format(USER_MEETING_KEY,organizationUserId),cacheRedisType<string>().String,-1)
return obj
}
}