packageDocumentation export * as check from "./check" ; export * as template from "./template" ; /**
 * 头像尺寸（允许传入的参数）
 */ export type AvatarSize = 1 | 2 | 3 | 4 | 5 | 40 | 100 | 140 | 640 ; param id param type param size returns export function getAvatarById ( id , type = "friend" , size = 640 ) { let url = null ; if ( type === "friend" ) { url = `https://q1.qlogo.cn/g?b=qq&nk=${ id }&s=${ size }` ; } else if ( type === "group" ) { url = `https://p.qlogo.cn/gh/${ id }/${ id }/${ size }` ; } return url ; }