hejianhao
2026-08-20 3eba788dfa223564c3a9e210cf3cc5caeb95e16d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import { request } from '@umijs/max';
 
/**
 * 项目介绍密码配置
 */
export interface ProjectIntroductionPasswordConfig {
  id?: number;
  passwordEnabled: number; // 是否启用密码:1启用 0不启用
  password?: string;
}
 
/**
 * 获取项目介绍密码配置
 */
export async function getProjectIntroductionPassword() {
  return request<API.Response<ProjectIntroductionPasswordConfig>>(
    '/project-introduction-password',
    {
      method: 'GET',
    },
  );
}
 
/**
 * 保存项目介绍密码配置
 */
export async function saveProjectIntroductionPassword(data: ProjectIntroductionPasswordConfig) {
  return request<API.Response<void>>('/project-introduction-password', {
    method: 'POST',
    data,
  });
}