feat(projects): 微调
This commit is contained in:
16
src/typings/api/common.d.ts
vendored
16
src/typings/api/common.d.ts
vendored
@@ -31,6 +31,22 @@ declare namespace Api {
|
||||
*/
|
||||
type EnableStatus = '1' | '2';
|
||||
|
||||
/**
|
||||
* 列表项「当前登录用户在该对象的角色」(产品 / 项目列表共用)。
|
||||
*
|
||||
* 后端只读计算字段,随登录身份变化:同一份列表不同账号看到的内容不同;无角色为 []。
|
||||
* 提交 / 更新接口不需要回传它。
|
||||
*/
|
||||
interface CurrentUserRole {
|
||||
/**
|
||||
* 角色稳定标识(程序判断用,不随中文名变化)。
|
||||
* 例:product_manager / project_manager / developer / tester / watcher / creator / implicit_observer。
|
||||
*/
|
||||
roleKey: string;
|
||||
/** 角色中文名(直接展示) */
|
||||
roleName: string;
|
||||
}
|
||||
|
||||
/** common record */
|
||||
type CommonRecord<T = any> = {
|
||||
/** record id */
|
||||
|
||||
Reference in New Issue
Block a user