first commit
This commit is contained in:
1
bin/FileTpl/.pydio
Normal file
1
bin/FileTpl/.pydio
Normal file
@@ -0,0 +1 @@
|
||||
aaea7bf8-ca33-4943-982b-b06379a36042
|
||||
9
bin/FileTpl/conterller.txt
Normal file
9
bin/FileTpl/conterller.txt
Normal file
@@ -0,0 +1,9 @@
|
||||
import {Controller, Render, Get, UseBefore, Session} from "routing-controllers";
|
||||
import { utils } from "../../utils/utils";
|
||||
import { Service, Inject } from "typedi";
|
||||
|
||||
@Service()
|
||||
@Controller()
|
||||
export class ControllerName {
|
||||
|
||||
}
|
||||
7
bin/FileTpl/dao.txt
Normal file
7
bin/FileTpl/dao.txt
Normal file
@@ -0,0 +1,7 @@
|
||||
import { Service , Inject } from "typedi";
|
||||
import { getRepository } from "typeorm";
|
||||
|
||||
@Service()
|
||||
export class DaoName {
|
||||
|
||||
}
|
||||
9
bin/FileTpl/entity.txt
Normal file
9
bin/FileTpl/entity.txt
Normal file
@@ -0,0 +1,9 @@
|
||||
import {Entity, PrimaryGeneratedColumn, Column} from "typeorm";
|
||||
|
||||
@Entity("user")
|
||||
export class EntityName {
|
||||
|
||||
@PrimaryGeneratedColumn()
|
||||
user_id: number;
|
||||
|
||||
}
|
||||
14
bin/FileTpl/impl.txt
Normal file
14
bin/FileTpl/impl.txt
Normal file
@@ -0,0 +1,14 @@
|
||||
import { UserService } from "../UserService";
|
||||
import { Service, Inject } from "typedi";
|
||||
import { UserDao } from "../../dao/UserDao";
|
||||
|
||||
@Service()
|
||||
export class ImplName implements ServiceName {
|
||||
|
||||
@Inject()
|
||||
private userDao: UserDao;
|
||||
|
||||
public async getAllUserService(): Promise<any> {
|
||||
return await this.userDao.AllUser();
|
||||
}
|
||||
}
|
||||
10
bin/FileTpl/jade.txt
Normal file
10
bin/FileTpl/jade.txt
Normal file
@@ -0,0 +1,10 @@
|
||||
extends ./../layout
|
||||
|
||||
block title
|
||||
|
||||
meta(name="description" content="关于我们,企业联系,课程咨询,问题答疑")
|
||||
meta(name="keywords" content="编码猿,关于我们,怪客学堂")
|
||||
|
||||
block content
|
||||
.about(class="pages JadeName" data-module="JadeName")
|
||||
.container 测试
|
||||
12
bin/FileTpl/js.txt
Normal file
12
bin/FileTpl/js.txt
Normal file
@@ -0,0 +1,12 @@
|
||||
define(['jquery','utils'],function ($,utils) {
|
||||
function JsName() {
|
||||
|
||||
}
|
||||
|
||||
JsName.prototype = {
|
||||
init () {
|
||||
}
|
||||
};
|
||||
|
||||
return new JsName();
|
||||
});
|
||||
3
bin/FileTpl/less.txt
Normal file
3
bin/FileTpl/less.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
.ClassName {
|
||||
color: red;
|
||||
}
|
||||
8
bin/FileTpl/model.txt
Normal file
8
bin/FileTpl/model.txt
Normal file
@@ -0,0 +1,8 @@
|
||||
import { MinLength,IsInt, MaxLength,Allow,Validate } from 'class-validator';
|
||||
|
||||
export class ModelName {
|
||||
@MinLength(1,{
|
||||
message: 'id参数必须有'
|
||||
})
|
||||
id: string;
|
||||
}
|
||||
3
bin/FileTpl/service.txt
Normal file
3
bin/FileTpl/service.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
export interface ServiceName {
|
||||
getOneUserService(id: string) : Promise<any>;
|
||||
}
|
||||
Reference in New Issue
Block a user