import { request } from '@/utils/request'
import { Project } from '@/enums/api'
import { CheckStartProjectReqParams } from '@/types/project'

/**
 * 申请立项
 * @param params 项目编号 立项说明
 * @returns
 */
export const applyProject = (params: { id: string; memo?: string }) => {
  return request.post<BaseResParams>({
    url: Project.PROJECT_FLOW_APPLY,
    data: params
  })
}

/**
 * 审核立项
 * @param params RequestCheckStartProjectParams
 * @returns
 */
export const checkStartProject = (params: CheckStartProjectReqParams) => {
  return request.post<BaseResParams>({
    url: Project.PROJECT_FLOW_CHECK_START,
    data: params
  })
}
