This commit is contained in:
asd
2020-10-19 17:48:56 +08:00
parent 42c6e14e6e
commit f460fe9f23
4 changed files with 134 additions and 26 deletions

View File

@@ -482,6 +482,21 @@ export async function getcommentlist(data?:any) {
const res=await get<CommentlData>('comments',data)
return res
}
/**
* 发布评论
*/
interface SendData{
type?:number,
cid?:number,
teacherid?:number,
score?:number,
content?:string
}
export async function addcomment(data?:any):Promise<void> {
const res=await post<SendData>('comments',data)
}
/**
* 发送验证码
* @param phone 手机号