perf: bill framwork

This commit is contained in:
archer
2023-05-21 13:07:40 +08:00
parent e45c1eb1e0
commit 98444fd04b
19 changed files with 68 additions and 78 deletions

View File

@@ -7,9 +7,8 @@ export const adaptBill = (bill: BillSchema): UserBillType => {
return {
id: bill._id,
type: bill.type,
userId: bill.userId,
chatId: bill.chatId,
time: dayjs(bill.time).format('YYYY/MM/DD HH:mm:ss'),
modelName: bill.modelName,
time: bill.time,
textLen: bill.textLen,
tokenLen: bill.tokenLen,
price: formatPrice(bill.price)