Enviar arquivos para "/"
This commit is contained in:
commit
745a3e2df8
|
@ -0,0 +1,48 @@
|
||||||
|
class Personagem{
|
||||||
|
nome: string;
|
||||||
|
raro: boolean;
|
||||||
|
num_constelaçao: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function main(){
|
||||||
|
const menuPrincipal = `
|
||||||
|
1. Criar
|
||||||
|
2. Listar
|
||||||
|
3. Atualizar
|
||||||
|
4. Excluir
|
||||||
|
5. Sair
|
||||||
|
|
||||||
|
Selecione uma opção: `
|
||||||
|
while(true){
|
||||||
|
let option: number = parseInt(prompt(menuPrincipal));
|
||||||
|
if(option === 5) break;
|
||||||
|
|
||||||
|
if(option === 1){
|
||||||
|
create();
|
||||||
|
}else if(option === 2){
|
||||||
|
read();
|
||||||
|
}else if(option === 3){
|
||||||
|
update();
|
||||||
|
}else if(option === 4){
|
||||||
|
del();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function create(){
|
||||||
|
console.log("Criando. . .");
|
||||||
|
}
|
||||||
|
|
||||||
|
function read(){
|
||||||
|
console.log("Listando. . .");
|
||||||
|
}
|
||||||
|
|
||||||
|
function update(){
|
||||||
|
console.log("Atualizando. . .");
|
||||||
|
}
|
||||||
|
|
||||||
|
function del(){
|
||||||
|
console.log("Deletando. . .");
|
||||||
|
}
|
||||||
|
|
||||||
|
main()
|
Loading…
Reference in New Issue