This commit is contained in:
@@ -41,9 +41,7 @@ export class ShopSeriesGrantService extends BaseService {
|
||||
* GET /api/admin/shop-series-grants/{id}
|
||||
* @param id 授权ID
|
||||
*/
|
||||
static getShopSeriesGrantDetail(
|
||||
id: number
|
||||
): Promise<BaseResponse<ShopSeriesGrantResponse>> {
|
||||
static getShopSeriesGrantDetail(id: number): Promise<BaseResponse<ShopSeriesGrantResponse>> {
|
||||
return this.getOne<ShopSeriesGrantResponse>(`/api/admin/shop-series-grants/${id}`)
|
||||
}
|
||||
|
||||
@@ -57,10 +55,7 @@ export class ShopSeriesGrantService extends BaseService {
|
||||
id: number,
|
||||
data: UpdateShopSeriesGrantRequest
|
||||
): Promise<BaseResponse<ShopSeriesGrantResponse>> {
|
||||
return this.update<ShopSeriesGrantResponse>(
|
||||
`/api/admin/shop-series-grants/${id}`,
|
||||
data
|
||||
)
|
||||
return this.update<ShopSeriesGrantResponse>(`/api/admin/shop-series-grants/${id}`, data)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user