|
@@ -30,14 +30,14 @@ export interface Params extends Page, PublicParams {
|
|
vipFree?: string,//vip 是否免费阅读;false-否,true-是
|
|
vipFree?: string,//vip 是否免费阅读;false-否,true-是
|
|
}
|
|
}
|
|
interface ConfigParmas {
|
|
interface ConfigParmas {
|
|
- id?:number,//配置ID
|
|
|
|
- vipFree:boolean,//vip免费阅读
|
|
|
|
- paymentType:any[],//小说付费方式(0:免费、1:按千字收费、2:整本收费、3:按段落收费
|
|
|
|
- paymentCoin:number,//收费书币
|
|
|
|
- remark:string,//配置
|
|
|
|
|
|
+ id?: number,//配置ID
|
|
|
|
+ vipFree: boolean,//vip免费阅读
|
|
|
|
+ paymentType: any[],//小说付费方式(0:免费、1:按千字收费、2:整本收费、3:按段落收费
|
|
|
|
+ paymentCoin: number,//收费书币
|
|
|
|
+ remark: string,//配置
|
|
}
|
|
}
|
|
-interface LongConfigParmas extends PublicParams,BookId,ConfigParmas{
|
|
|
|
- beginPayChapterNo:number,//付费章节
|
|
|
|
|
|
+interface LongConfigParmas extends PublicParams, BookId, ConfigParmas {
|
|
|
|
+ beginPayChapterNo: number,//付费章节
|
|
}
|
|
}
|
|
// ======================================长篇================================
|
|
// ======================================长篇================================
|
|
/**小说分页列表 */
|
|
/**小说分页列表 */
|
|
@@ -69,9 +69,11 @@ export async function longBookInfoChapterAllList(params: any) {
|
|
});
|
|
});
|
|
}
|
|
}
|
|
/**小说付费章节内容 */
|
|
/**小说付费章节内容 */
|
|
-export async function longBookInfoChapterContent(chapterId: number) {
|
|
|
|
- return request(api + `/admin/longBookInfo/chapterContent/${chapterId}`, {
|
|
|
|
|
|
+export async function longBookInfoChapterContent(data: { bookId: any, chapterNo: any }) {
|
|
|
|
+ let { bookId, ...params } = data
|
|
|
|
+ return request(api + `/admin/longBookInfo/chapterContent/${bookId}`, {
|
|
method: 'GET',
|
|
method: 'GET',
|
|
|
|
+ params
|
|
});
|
|
});
|
|
}
|
|
}
|
|
/**小说付费配置 */
|
|
/**小说付费配置 */
|
|
@@ -82,12 +84,12 @@ export async function longBookInfoBookConfig(data: LongConfigParmas) {
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
|
|
-interface ShortConfigParmas extends PublicParams,BookId,ConfigParmas{
|
|
|
|
- beginPayParagraphNo:number,//付费段落
|
|
|
|
- paymentAmount:number,//收费金额
|
|
|
|
|
|
+interface ShortConfigParmas extends PublicParams, BookId, ConfigParmas {
|
|
|
|
+ beginPayParagraphNo: number,//付费段落
|
|
|
|
+ paymentAmount: number,//收费金额
|
|
}
|
|
}
|
|
-interface ShortBookParams extends Page, BookId {
|
|
|
|
- backContent?:boolean,//是否返回段落的内容
|
|
|
|
|
|
+interface ShortBookParams extends Page, BookId {
|
|
|
|
+ backContent?: boolean,//是否返回段落的内容
|
|
|
|
|
|
};
|
|
};
|
|
// ======================================短篇================================
|
|
// ======================================短篇================================
|
|
@@ -113,10 +115,10 @@ export async function shortBookInfoParagraphList(params: ShortBookParams) {
|
|
});
|
|
});
|
|
}
|
|
}
|
|
/**小说段落全部列表 */
|
|
/**小说段落全部列表 */
|
|
-export async function shortBookInfoParagraphAllList(data:any) {
|
|
|
|
|
|
+export async function shortBookInfoParagraphAllList(data: any) {
|
|
return request(api + `/admin/shortBookInfo/paragraphAllList`, {
|
|
return request(api + `/admin/shortBookInfo/paragraphAllList`, {
|
|
method: 'GET',
|
|
method: 'GET',
|
|
- params:data
|
|
|
|
|
|
+ params: data
|
|
});
|
|
});
|
|
}
|
|
}
|
|
/**小说付费配置 */
|
|
/**小说付费配置 */
|