From 37658ff7a240faee3d92c1c546319ee5ea22a791 Mon Sep 17 00:00:00 2001 From: xushiwei Date: Sat, 10 Feb 2024 00:42:11 +0800 Subject: [PATCH] x --- ydb/demo/foo/article_ydb.gox | 1 + ydb/demo/foo/gop_autogen.go | 32 +++++++++++++++++--------------- 2 files changed, 18 insertions(+), 15 deletions(-) diff --git a/ydb/demo/foo/article_ydb.gox b/ydb/demo/foo/article_ydb.gox index 7956e85..b587af5 100644 --- a/ydb/demo/foo/article_ydb.gox +++ b/ydb/demo/foo/article_ydb.gox @@ -94,6 +94,7 @@ class "Articles", => { ret "tag.name", &tags return }) + _ = tags setTags doc1.Id, "tag1", "tag2" ret nil diff --git a/ydb/demo/foo/gop_autogen.go b/ydb/demo/foo/gop_autogen.go index add81bd..301ff18 100644 --- a/ydb/demo/foo/gop_autogen.go +++ b/ydb/demo/foo/gop_autogen.go @@ -161,37 +161,39 @@ func (this *article) Main() { //line ydb/demo/foo/article_ydb.gox:95:1 return }) -//line ydb/demo/foo/article_ydb.gox:98:1 - setTags(doc1.Id, "tag1", "tag2") +//line ydb/demo/foo/article_ydb.gox:97:1 + _ = tags //line ydb/demo/foo/article_ydb.gox:99:1 + setTags(doc1.Id, "tag1", "tag2") +//line ydb/demo/foo/article_ydb.gox:100:1 this.Ret__0(nil) -//line ydb/demo/foo/article_ydb.gox:104:1 - listByTag := this.Api("listByTag", func(tag string) (result []ArticleEntry) { //line ydb/demo/foo/article_ydb.gox:105:1 - var ids []string + listByTag := this.Api("listByTag", func(tag string) (result []ArticleEntry) { //line ydb/demo/foo/article_ydb.gox:106:1 - this.Query__1("tag.name=?", tag) + var ids []string //line ydb/demo/foo/article_ydb.gox:107:1 + this.Query__1("tag.name=?", tag) +//line ydb/demo/foo/article_ydb.gox:108:1 this.Ret__1("tag.doc", &ids) -//line ydb/demo/foo/article_ydb.gox:109:1 - this.Query__1("id=?", ids) //line ydb/demo/foo/article_ydb.gox:110:1 - this.Ret__1(&result) + this.Query__1("id=?", ids) //line ydb/demo/foo/article_ydb.gox:111:1 + this.Ret__1(&result) +//line ydb/demo/foo/article_ydb.gox:112:1 return }) -//line ydb/demo/foo/article_ydb.gox:113:1 +//line ydb/demo/foo/article_ydb.gox:114:1 _ = listByTag -//line ydb/demo/foo/article_ydb.gox:115:1 - listByAuthor := this.Api("listByAuthor", func(author string) (result []ArticleEntry) { //line ydb/demo/foo/article_ydb.gox:116:1 - this.Query__1("author=?", author) + listByAuthor := this.Api("listByAuthor", func(author string) (result []ArticleEntry) { //line ydb/demo/foo/article_ydb.gox:117:1 - this.Ret__1(&result) + this.Query__1("author=?", author) //line ydb/demo/foo/article_ydb.gox:118:1 + this.Ret__1(&result) +//line ydb/demo/foo/article_ydb.gox:119:1 return }) -//line ydb/demo/foo/article_ydb.gox:120:1 +//line ydb/demo/foo/article_ydb.gox:121:1 _ = listByAuthor }) }