1 Star 1 Fork 1

奋斗2014/young-core

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
index.d.ts 1.32 KB
一键复制 编辑 原始数据 按行查看 历史
奋斗2014 提交于 2022-04-26 18:35 . socket自定义事件
export declare class youngService {
[key: string]: any;
constructor(ctx: any);
ctx: any;
query: any;
body: any;
info();
page();
sqlPage(sql: string, params?: Array<any>);
list();
add();
update();
success(data?: any);
error(msg?: string);
searchOption: {
keywords: Array<string>;
fieldEq: Array<string>;
fieldStatus: any;
size: number;
page: number;
order: any;
};
entity: typeof Base | string;
sql(sql: string, param?: Array<any>);
}
export declare class youngSocket {
[key: string]: any;
connected(socket: any, io: any);
disconnect(socket: any, io: any);
data(msg: string, socket: any, io: any);
}
export declare class Base {
id: Number;
updateTime: Date;
createTime: Date;
}
export declare class youngQueue {
[key: string]: any;
}
export declare class Application {
[key: string]: any;
}
export declare function get(path: string);
export declare function post(path: string);
export declare function all(path: string);
export declare function init(app, ctx);
export declare function options(path: string);
export declare function patch(path: string);
export declare function del(path: string);
export declare function socketEvent();
export declare function router(pathPrefix: string, funcs?: Array<string>);
export declare function young();
export declare const config;
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/FenDou2014/young-core.git
git@gitee.com:FenDou2014/young-core.git
FenDou2014
young-core
young-core
master

搜索帮助