collection.service.ts 410 B

1234567891011121314
  1. import * as collectionClient from "@/client/collection.client"
  2. export async function add(paperId: number, title: string): Promise<number> {
  3. return collectionClient.add(paperId, title)
  4. }
  5. export async function remove(id: number): Promise<boolean> {
  6. return collectionClient.remove(id)
  7. }
  8. export async function isCollected(paperId: number): Promise<number> {
  9. return collectionClient.isCollected(paperId)
  10. }