import { User, selectUserField } from '@/entity/User'; import { User as UserType } from '@/m_res/user' import { Service, Inject } from 'typedi' import { Entity } from '@/utils/orm' import { addUser } from '@/model/request/User'; import moment from 'moment'; import md5 from 'md5'; import { JsonResult, msgList, res } from '@/utils/jsonResult'; import jsonwebtoken from 'jsonwebtoken' import config from '@/config' import { Link } from '@/entity/Link'; @Service() export class LinkDao { @Inject() orm!: Entity @Inject() json!: JsonResult; async GetAllLink(): Promise> { let res = await this.orm.repository(Link).getMany(); return this.json.success(res); } }