mirror of
https://github.com/fluencelabs/fluid
synced 2025-06-18 07:41:20 +00:00
refactoring
This commit is contained in:
16
backend-assemblyscript/step1-json-api/assembly/model.ts
Normal file
16
backend-assemblyscript/step1-json-api/assembly/model.ts
Normal file
@ -0,0 +1,16 @@
|
||||
import {log} from "../node_modules/assemblyscript-sdk/assembly/logger";
|
||||
|
||||
export function createScheme(): void {
|
||||
log("create scheme");
|
||||
}
|
||||
export function addMessage(msg: string, username: string): void {
|
||||
log("add message");
|
||||
}
|
||||
export function getMessages(username: string | null): string {
|
||||
log("get messages");
|
||||
return "[]";
|
||||
}
|
||||
export function getPostsCount(): u32 {
|
||||
log("get posts count");
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user