fix: naming
This commit is contained in:
parent
b6839536b9
commit
f67c9bf429
8 changed files with 25 additions and 1 deletions
8
Post/go.mod
Normal file
8
Post/go.mod
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
module Post
|
||||||
|
|
||||||
|
go 1.21.5
|
||||||
|
|
||||||
|
require (
|
||||||
|
github.com/google/uuid v1.5.0
|
||||||
|
github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20231127165613-b35f351f0ba0
|
||||||
|
)
|
4
Post/go.sum
Normal file
4
Post/go.sum
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
github.com/google/uuid v1.5.0 h1:1p67kYwdtXjb0gL0BPiP1Av9wiZPo5A8z2cWkTZ+eyU=
|
||||||
|
github.com/google/uuid v1.5.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
|
||||||
|
github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20231127165613-b35f351f0ba0 h1:N+dMIBmteXjJpkH6UZ7HmNftuFxkqszfGLbhsEctnv0=
|
||||||
|
github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20231127165613-b35f351f0ba0/go.mod h1:J/Mk6+nKeKSW4wygkZQFLQ6SkLOSGX5Ga0RuuuktEag=
|
11
Post/neo-go.yml
Normal file
11
Post/neo-go.yml
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
name: Post
|
||||||
|
sourceurl: http://example.com/
|
||||||
|
safemethods: []
|
||||||
|
supportedstandards: []
|
||||||
|
events:
|
||||||
|
- name: Hello world!
|
||||||
|
parameters:
|
||||||
|
- name: args
|
||||||
|
type: Array
|
||||||
|
permissions:
|
||||||
|
- methods: '*'
|
|
@ -4,6 +4,7 @@ import (
|
||||||
guuid "github.com/google/uuid"
|
guuid "github.com/google/uuid"
|
||||||
"github.com/nspcc-dev/neo-go/pkg/interop/native/std"
|
"github.com/nspcc-dev/neo-go/pkg/interop/native/std"
|
||||||
"github.com/nspcc-dev/neo-go/pkg/interop/storage"
|
"github.com/nspcc-dev/neo-go/pkg/interop/storage"
|
||||||
|
//"github.com/nspcc-dev/neo-go/pkg/interop/runtime"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Post struct {
|
type Post struct {
|
||||||
|
@ -37,7 +38,7 @@ func NewPost(authorId string, text string, hashTags []string, threadId string) {
|
||||||
hashTags: hashTags,
|
hashTags: hashTags,
|
||||||
authorId: authorId,
|
authorId: authorId,
|
||||||
dislikes: 0,
|
dislikes: 0,
|
||||||
Likes: 0,
|
likes: 0,
|
||||||
category: "none",
|
category: "none",
|
||||||
threadId: threadId,
|
threadId: threadId,
|
||||||
id: guuid.New(),
|
id: guuid.New(),
|
Loading…
Add table
Reference in a new issue