(no commit message provided)
Co-authored-by: aider (openai/DeepSeek-V3.2-Thinking) <aider@aider.chat>
This commit is contained in:
@ -47,6 +47,15 @@ export interface ServiceUpdateRequest {
|
||||
description?: string
|
||||
}
|
||||
|
||||
export interface MaterialBaseItem {
|
||||
id: number
|
||||
name: string
|
||||
spec: string
|
||||
category: string
|
||||
unit: string
|
||||
type: string
|
||||
}
|
||||
|
||||
// 获取服务权益列表
|
||||
export function getServiceList(params: ServiceQueryParams) {
|
||||
return request<ServiceListResponse>({
|
||||
@ -82,6 +91,19 @@ export function updateService(id: number, data: ServiceUpdateRequest) {
|
||||
})
|
||||
}
|
||||
|
||||
// 搜索基础物料
|
||||
export function searchMaterialBase(keyword: string) {
|
||||
return request<{
|
||||
code: number
|
||||
msg: string
|
||||
data: MaterialBaseItem[]
|
||||
}>({
|
||||
url: '/v1/inbound/service/search-base',
|
||||
method: 'get',
|
||||
params: { keyword }
|
||||
})
|
||||
}
|
||||
|
||||
// 删除服务权益
|
||||
export function deleteService(id: number) {
|
||||
return request({
|
||||
|
||||
Reference in New Issue
Block a user