[GoFrame (ZH)-v2.0] Mail Feed
Confluence Syndication Feed
https://goframe.org
Re: 接口规范-gen ctrl
糖水不加糖
tag:goframe.org,2009:comment-151289870-1
2024-03-28T13:46:54Z
2024-03-28T13:46:54Z
<div class="feed"> <p>
Comment <strong>added</strong> by <a href=" https://goframe.org/display/~%E7%B3%96%E6%B0%B4%E4%B8%8D%E5%8A%A0%E7%B3%96
">糖水不加糖</a>
</p>
<div style="border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; padding: 10px 20px 10px 20px;">
<p>type TestDataList struct {<br/> Name string<br/>}<br/>type TestRes []TestDataList</p>
</div>
<div style="border-bottom: 1px solid #ddd; padding: 17px 20px 7px 20px;">
<strong>In reply to a comment by <a href=" /display/~xun1009
"
class="url fn"
>xun1009</a>:</strong><br/>
<p>有个问题,如果res本身就是要返回一个array,这种情况怎么处理呢</p>
</div>
<div style="padding: 10px 0;">
<a href="https://goframe.org/pages/viewpage.action?pageId=93880327&focusedCommentId=151289870#comment-151289870">View Online</a>
</div>
</div>
糖水不加糖
2024-03-28T13:46:54Z
框架介绍(最新版本)
海亮
tag:goframe.org,2009:page-1114119-149
2024-03-28T08:37:27Z
2020-12-21T06:18:53Z
<div class="feed"> <p>
Page
<b>edited</b> by
<a href=" https://goframe.org/display/~hailaz
">海亮</a>
</p>
<div style="border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; padding: 10px;">
<div align="center"><span class="confluence-embedded-file-wrapper confluence-embedded-manual-size"><img class="confluence-embedded-image" draggable="false" height="250" src="https://goframe.org/download/attachments/1114119/logo2.png?version=1&modificationDate=1684158720965&api=v2" data-image-src="https://goframe.org/download/attachments/1114119/logo2.png?version=1&modificationDate=1684158720965&api=v2" data-unresolved-comment-count="0" data-linked-resource-id="88876369" data-linked-resource-version="1" data-linked-resource-type="attachment" data-linked-resource-default-alias="logo2.png" data-base-url="https://goframe.org" data-linked-resource-content-type="image/png" data-linked-resource-container-id="1114119" data-linked-resource-container-version="149" alt=""></span> <br/><p><a class="external-link" href="https://pkg.go.dev/github.com/gogf/gf/v2" rel="nofollow"> <img alt="Go Doc" src="https://godoc.org/github.com/gogf/gf?status.svg"/> </a> <a class="external-link" href="https://travis-ci.com/github/gogf/gf" rel="nofollow"> <img alt="Build Status" src="https://api.travis-ci.com/gogf/gf.svg?branch=master"/> </a> <a class="external-link" href="https://goreportcard.com/report/github.com/gogf/gf" rel="nofollow"> <img alt="Go Report" src="https://goreportcard.com/badge/github.com/gogf/gf"/> </a> <a class="external-link" href="https://codecov.io/gh/gogf/gf/branch/master" rel="nofollow"> <img alt="Code Coverage" src="https://codecov.io/gh/gogf/gf/branch/master/graph/badge.svg"/> </a> <a class="external-link" href="https://github.com/gogf/gf" rel="nofollow"> <img alt="Production Ready" src="https://img.shields.io/badge/production-ready-blue.svg"/> </a> <a class="external-link" href="https://github.com/gogf/gf" rel="nofollow"> <img alt="License" src="https://img.shields.io/github/license/gogf/gf.svg?style=flat"/> </a></p><p><a class="external-link" href="https://github.com/gogf/gf/releases" rel="nofollow"> <img alt="Release" src="https://img.shields.io/github/v/release/gogf/gf"/> </a> <a class="external-link" href="https://github.com/gogf/gf/pulls" rel="nofollow"> <img alt="GitHub pull requests" src="https://img.shields.io/github/issues-pr/gogf/gf"/> </a> <a class="external-link" href="https://github.com/gogf/gf/pulls?q=is%3Apr+is%3Aclosed" rel="nofollow"> <img alt="GitHub closed pull requests" src="https://img.shields.io/github/issues-pr-closed/gogf/gf"/> </a> <a class="external-link" href="https://github.com/gogf/gf/issues" rel="nofollow"> <img alt="GitHub issues" src="https://img.shields.io/github/issues/gogf/gf"/> </a> <a class="external-link" href="https://github.com/gogf/gf/issues?q=is%3Aissue+is%3Aclosed" rel="nofollow"> <img alt="GitHub closed issues" src="https://img.shields.io/github/issues-closed/gogf/gf"/> </a> <img alt="Stars" src="https://img.shields.io/github/stars/gogf/gf?style=flat"/> <img alt="Forks" src="https://img.shields.io/github/forks/gogf/gf?style=flat"/></p></div><p><code>GoFrame</code>是一款模块化、高性能、企业级的<code>Go</code>基础开发框架。<code>GoFrame</code>是一款通用性的基础开发框架,是<code>Golang</code>标准库的一个增强扩展级,包含通用核心的基础开发组件,优点是实战化、模块化、文档全面、模块丰富、易用性高、通用性强、面向团队。<code>GoFrame</code>既可用于开发完整的工程化项目,由于框架基础采用模块化解耦设计,因此也可以作为工具库使用。</p><p>如果您想使用<code>Golang</code>开发一个业务型项目,无论是小型还是中大型项目,<code>GoFrame</code>是您的不二之选。如果您想开发一个<code>Golang</code>组件库,<code>GoFrame</code>提供开箱即用、丰富强大的基础组件库也能助您的工作事半功倍。如果您是团队<code>Leader</code>,<code>GoFrame</code>丰富的资料文档、详尽的代码注释、活跃的社区成员将会极大降低您的指导成本,支持团队快速接入、语言转型与能力提升。</p><h1 id="id-框架介绍(最新版本)-特点">特点</h1><ul><li>业内领先、工程完备</li><li>模块化、松耦合设计</li><li>组件丰富、开箱即用</li><li>简洁易用、文档详尽</li><li>接口化、高扩展性设计</li><li>全链路跟踪特性</li><li>全错误堆栈特性</li><li>接口化的错误码支持</li><li>稳健的工程设计规范</li><li>更便捷强大的ORM组件</li><li>便捷的开发工具、自动化代码生成</li><li>支持<code>OpenTelemetry</code>可观测性标准</li><li>自动化的接口文档生成,支持<code>OpenAPIV3</code>标准</li><li>完善的本地中文化支持</li><li>设计为团队及企业使用</li></ul><h1 id="id-框架介绍(最新版本)-地址">地址</h1><ul><li><strong>主库</strong>:<a class="external-link" href="https://github.com/gogf/gf" rel="nofollow">https://github.com/gogf/gf</a></li><li><strong>码云</strong>:<a class="external-link" href="https://gitee.com/johng/gf" rel="nofollow">https://gitee.com/johng/gf</a></li></ul><h1 id="id-框架介绍(最新版本)-安装">安装</h1><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
<pre class="syntaxhighlighter-pre" data-syntaxhighlighter-params="brush: xml; gutter: false; theme: Confluence" data-theme="Confluence">go get -u -v github.com/gogf/gf/v2</pre>
</div></div><p>推荐使用 <code>go.mod</code>:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
<pre class="syntaxhighlighter-pre" data-syntaxhighlighter-params="brush: xml; gutter: false; theme: Confluence" data-theme="Confluence">require github.com/gogf/gf/v2 latest</pre>
</div></div><h1 id="id-框架介绍(最新版本)-限制">限制</h1><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
<pre class="syntaxhighlighter-pre" data-syntaxhighlighter-params="brush: xml; gutter: false; theme: Confluence" data-theme="Confluence">golang版本 >= 1.18</pre>
</div></div><div align="center"><br/></div><h1 id="id-框架介绍(最新版本)-文档">文档</h1><ul><li>官网(中文):<a href="https://goframe.org" rel="nofollow">https://goframe.org</a></li><li>镜像(中文):<span class="nolink"><a class="external-link" href="https://pages.goframe.org" rel="nofollow">https://pages.goframe.org</a></span></li><li>离线文档:<a class="external-link" href="https://github.com/gogf/goframe.org-pdf" rel="nofollow">https://github.com/gogf/goframe.org-pdf</a></li></ul><h1 id="id-框架介绍(最新版本)-帮助">帮助</h1><ul><li><p class="auto-cursor-target"><strong>扣扣交流群</strong>:扫描或群号搜索添加</p><div class="table-wrap"><table class="wrapped relative-table confluenceTable" style="width: 29.7847%;"><colgroup> <col style="width: 45.2716%;"/> <col style="width: 54.7284%;"/> </colgroup><tbody><tr><th style="text-align: center;" class="confluenceTh"><div class="content-wrapper"><p>GoFrame实战1群</p></div></th><th style="text-align: center;" class="confluenceTh">GoFrame实战2群</th></tr><tr><td class="confluenceTd"><div class="content-wrapper"><p><br/></p><p style="text-align: center;"><br/></p><p style="text-align: center;">已满</p></div></td><td class="confluenceTd"><div class="content-wrapper"><p><span class="confluence-embedded-file-wrapper image-center-wrapper confluence-embedded-manual-size"><img class="confluence-embedded-image confluence-thumbnail image-center" draggable="false" height="150" src="https://goframe.org/download/thumbnails/1114119/1618482221516.png?version=1&modificationDate=1618482239045&api=v2" data-image-src="https://goframe.org/download/attachments/1114119/1618482221516.png?version=1&modificationDate=1618482239045&api=v2" data-unresolved-comment-count="0" data-linked-resource-id="7296918" data-linked-resource-version="1" data-linked-resource-type="attachment" data-linked-resource-default-alias="1618482221516.png" data-base-url="https://goframe.org" data-linked-resource-content-type="image/png" data-linked-resource-container-id="1114119" data-linked-resource-container-version="149" alt=""></span></p><p style="text-align: center;">74341849</p></div></td></tr></tbody></table></div></li><li><p class="auto-cursor-target"><strong>微信交流群</strong>:扫描或微信添加<code>389961817</code>备注<code>GF</code>加群</p><div class="table-wrap"><table class="wrapped relative-table confluenceTable" style="width: 29.9641%;"><colgroup> <col style="width: 100.0%;"/> </colgroup><tbody><tr><th style="text-align: center;" class="confluenceTh"><div class="content-wrapper"><p>添加后拉群</p></div></th></tr><tr><td class="confluenceTd"><div class="content-wrapper"><p><span class="confluence-embedded-file-wrapper image-center-wrapper confluence-embedded-manual-size"><img class="confluence-embedded-image confluence-thumbnail image-center" draggable="false" width="150" src="https://goframe.org/download/thumbnails/1114119/image2021-4-15_19-23-42.png?version=1&modificationDate=1618485986477&api=v2" data-image-src="https://goframe.org/download/attachments/1114119/image2021-4-15_19-23-42.png?version=1&modificationDate=1618485986477&api=v2" data-unresolved-comment-count="0" data-linked-resource-id="7296922" data-linked-resource-version="1" data-linked-resource-type="attachment" data-linked-resource-default-alias="image2021-4-15_19-23-42.png" data-base-url="https://goframe.org" data-linked-resource-content-type="image/png" data-linked-resource-container-id="1114119" data-linked-resource-container-version="149" alt=""></span></p></div></td></tr></tbody></table></div></li><li><strong>微信公众号</strong>:关注<code>GoFrame</code>的发展动态</li></ul><p style="margin-left: 40.0px;"><span class="confluence-embedded-file-wrapper confluence-embedded-manual-size"><img class="confluence-embedded-image confluence-thumbnail" draggable="false" height="250" src="https://goframe.org/download/thumbnails/1114119/qrcode_for_gh_f67013196297_258%20%281%29.jpg?version=2&modificationDate=1640963240154&api=v2" data-image-src="https://goframe.org/download/attachments/1114119/qrcode_for_gh_f67013196297_258%20%281%29.jpg?version=2&modificationDate=1640963240154&api=v2" data-unresolved-comment-count="0" data-linked-resource-id="30739334" data-linked-resource-version="2" data-linked-resource-type="attachment" data-linked-resource-default-alias="qrcode_for_gh_f67013196297_258 (1).jpg" data-base-url="https://goframe.org" data-linked-resource-content-type="image/jpeg" data-linked-resource-container-id="1114119" data-linked-resource-container-version="149" alt=""></span></p><ul><li>主库ISSUE:<a class="external-link" href="https://github.com/gogf/gf/issues" rel="nofollow">https://github.com/gogf/gf/issues</a></li></ul><blockquote><p>建议通过阅读<code>GoFrame</code>的源码以及API文档深度学习<code>GoFrame</code>,了解更多的精妙设计。</p></blockquote><h1 id="id-框架介绍(最新版本)-协议">协议</h1><p><code>GoFrame</code> 使用非常友好的 <code>MIT</code> 开源协议进行发布,永久<code>100%</code>开源免费。</p><h1 id="id-框架介绍(最新版本)-用户">用户</h1><ul><li><a class="external-link" href="https://www.tencent.com/" rel="nofollow">腾讯科技</a></li><li><a class="external-link" href="https://www.zte.com.cn/china/" rel="nofollow">中兴科技</a></li><li><a class="external-link" href="https://www.antfin.com/" rel="nofollow">蚂蚁金服</a></li><li><span style="color: rgb(51,51,51);"> <a class="external-link" href="https://www.vivo.com/" rel="nofollow">VIVO</a> </span></li><li><a class="external-link" href="https://www.medlinker.com/" rel="nofollow">医联科技</a></li><li><a class="external-link" href="https://www.kucoin.io/" rel="nofollow">库币科技</a></li><li><a class="external-link" href="https://www.leyoujia.com/" rel="nofollow">乐有家</a></li><li><a class="external-link" href="https://igg.com" rel="nofollow">IGG</a></li><li><a class="external-link" href="https://www.37.com/" rel="nofollow">三七互娱</a></li><li><a class="external-link" href="https://www.ximalaya.com" rel="nofollow">喜马拉雅</a></li><li><a class="external-link" href="https://www.zybang.com/" rel="nofollow">作业帮</a></li></ul><blockquote><p>在这里只列举了部分知名的用户,如果您的企业或者产品正在使用<code>GoFrame</code>,欢迎到 <a href="https://goframe.org/pages/viewpage.action?pageId=1114415" rel="nofollow">这里</a> 留言。</p></blockquote><h1 id="id-框架介绍(最新版本)-贡献">贡献</h1><p>感谢所有参与<code>GoFrame</code>开发的贡献者。 [<a class="external-link" href="https://github.com/gogf/gf/graphs/contributors" rel="nofollow">贡献者列表</a>].</p><p><a class="external-link" href="https://github.com/gogf/gf/graphs/contributors" rel="nofollow"> <img src="https://contributors-img.web.app/image?repo=gogf/gf"/> </a></p><h1 id="id-框架介绍(最新版本)-捐赠">捐赠</h1><p>如果您喜欢<code>GoFrame</code>,要不给开发者 <a href="https://goframe.org/pages/viewpage.action?pageId=1115633">来杯咖啡</a> 吧! 请在捐赠时备注您的<code>github</code>/<code>gitee</code>账号名称。</p><h1 id="id-框架介绍(最新版本)-赞助">赞助</h1><p>赞助支持<code>GoFrame</code>框架的快速研发,如果您感兴趣,请联系 微信 <code>389961817</code> / 邮件 <a class="external-link" href="mailto:john@goframe.org" rel="nofollow">john@goframe.org</a> 。</p><h1 id="id-框架介绍(最新版本)-感谢">感谢</h1><p><a class="external-link" href="https://www.jetbrains.com/?from=GoFrame" rel="nofollow"> <span class="confluence-embedded-file-wrapper confluence-embedded-manual-size"><img class="confluence-embedded-image confluence-thumbnail" draggable="false" height="150" src="https://goframe.org/download/thumbnails/1114119/jetbrains.png?version=1&modificationDate=1608649325806&api=v2" data-image-src="https://goframe.org/download/attachments/1114119/jetbrains.png?version=1&modificationDate=1608649325806&api=v2" data-unresolved-comment-count="0" data-linked-resource-id="1115399" data-linked-resource-version="1" data-linked-resource-type="attachment" data-linked-resource-default-alias="jetbrains.png" data-base-url="https://goframe.org" data-linked-resource-content-type="image/png" data-linked-resource-container-id="1114119" data-linked-resource-container-version="149" alt=""></span> </a> <a class="external-link" href="https://www.atlassian.com/?from=GoFrame" rel="nofollow"> <span class="confluence-embedded-file-wrapper confluence-embedded-manual-size"><img class="confluence-embedded-image confluence-thumbnail" draggable="false" height="150" src="https://goframe.org/download/thumbnails/1114119/atlassian.jpg?version=1&modificationDate=1612661946532&api=v2" data-image-src="https://goframe.org/download/attachments/1114119/atlassian.jpg?version=1&modificationDate=1612661946532&api=v2" data-unresolved-comment-count="0" data-linked-resource-id="1115400" data-linked-resource-version="1" data-linked-resource-type="attachment" data-linked-resource-default-alias="atlassian.jpg" data-base-url="https://goframe.org" data-linked-resource-content-type="image/jpeg" data-linked-resource-container-id="1114119" data-linked-resource-container-version="149" alt=""></span> </a></p><p><br/></p><p><br/></p>
</div>
<div style="padding: 10px 0;">
<a href="https://goframe.org/pages/viewpage.action?pageId=1114119">View Online</a>
·
<a href="https://goframe.org/pages/diffpagesbyversion.action?pageId=1114119&revisedVersion=149&originalVersion=148">View Changes Online</a>
</div>
</div>
海亮
2020-12-21T06:18:53Z
Re: 接口规范-gen ctrl
xun1009
tag:goframe.org,2009:comment-151289868-1
2024-03-28T08:19:33Z
2024-03-28T08:19:33Z
<div class="feed"> <p>
Comment <strong>added</strong> by <a href=" https://goframe.org/display/~xun1009
">xun1009</a>
</p>
<div style="border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; padding: 10px 20px 10px 20px;">
<p>有个问题,如果res本身就是要返回一个array,这种情况怎么处理呢</p>
</div>
<div style="padding: 10px 0;">
<a href="https://goframe.org/pages/viewpage.action?pageId=93880327&focusedCommentId=151289868#comment-151289868">View Online</a>
</div>
</div>
xun1009
2024-03-28T08:19:33Z
Re: 链路跟踪-TraceID注入和获取
shizhu
tag:goframe.org,2009:comment-151289863-1
2024-03-28T03:15:59Z
2024-03-28T03:15:59Z
<div class="feed"> <p>
Comment <strong>added</strong> by <a href=" https://goframe.org/display/~spillarlive
">shizhu</a>
</p>
<div style="border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; padding: 10px 20px 10px 20px;">
<p><a class="confluence-userlink user-mention" data-username="john" href="https://goframe.org/display/~john" data-linked-resource-id="327681" data-linked-resource-version="4" data-linked-resource-type="userinfo" data-base-url="https://goframe.org">郭强</a> jaeger显示的不是具体的方法或路由,看了下CTX那里会默认添加一个SPAN,请问有什么办法可以不用初始化的这个SPAN吗?</p><p><span class="confluence-embedded-file-wrapper confluence-embedded-manual-size"><img class="confluence-embedded-image confluence-thumbnail" draggable="false" height="150" src="https://goframe.org/download/thumbnails/49745257/image-2024-3-28_11-13-3.png?version=1&modificationDate=1711595586059&api=v2" data-image-src="https://goframe.org/download/attachments/49745257/image-2024-3-28_11-13-3.png?version=1&modificationDate=1711595586059&api=v2" data-unresolved-comment-count="0" data-linked-resource-id="151289860" data-linked-resource-version="1" data-linked-resource-type="attachment" data-linked-resource-default-alias="image-2024-3-28_11-13-3.png" data-base-url="https://goframe.org" data-linked-resource-content-type="image/png" data-linked-resource-container-id="49745257" data-linked-resource-container-version="10" alt=""></span><br/><span class="confluence-embedded-file-wrapper confluence-embedded-manual-size"><img class="confluence-embedded-image" draggable="false" height="150" src="https://goframe.org/download/attachments/49745257/image-2024-3-28_11-14-26.png?version=1&modificationDate=1711595668563&api=v2" data-image-src="https://goframe.org/download/attachments/49745257/image-2024-3-28_11-14-26.png?version=1&modificationDate=1711595668563&api=v2" data-unresolved-comment-count="0" data-linked-resource-id="151289861" data-linked-resource-version="1" data-linked-resource-type="attachment" data-linked-resource-default-alias="image-2024-3-28_11-14-26.png" data-base-url="https://goframe.org" data-linked-resource-content-type="image/png" data-linked-resource-container-id="49745257" data-linked-resource-container-version="10" alt=""></span></p><p>还有下面这个路由的替换问题!<br/><span class="confluence-embedded-file-wrapper confluence-embedded-manual-size"><img class="confluence-embedded-image confluence-thumbnail" draggable="false" height="150" src="https://goframe.org/download/thumbnails/49745257/image-2024-3-28_11-15-33.png?version=1&modificationDate=1711595736221&api=v2" data-image-src="https://goframe.org/download/attachments/49745257/image-2024-3-28_11-15-33.png?version=1&modificationDate=1711595736221&api=v2" data-unresolved-comment-count="0" data-linked-resource-id="151289862" data-linked-resource-version="1" data-linked-resource-type="attachment" data-linked-resource-default-alias="image-2024-3-28_11-15-33.png" data-base-url="https://goframe.org" data-linked-resource-content-type="image/png" data-linked-resource-container-id="49745257" data-linked-resource-container-version="10" alt=""></span></p>
</div>
<div style="padding: 10px 0;">
<a href="https://goframe.org/pages/viewpage.action?pageId=49745257&focusedCommentId=151289863#comment-151289863">View Online</a>
</div>
</div>
shizhu
2024-03-28T03:15:59Z
链路跟踪-TraceID注入和获取 > image-2024-3-28_11-15-33.png
shizhu
tag:goframe.org,2009:attachment-151289862-1
2024-03-28T03:15:36Z
2024-03-28T03:15:36Z
<div class="feed"> <p>File
<b>attached</b> by
<a href=" https://goframe.org/display/~spillarlive
">shizhu</a>
</p>
<div style="border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; padding: 10px;">
<p>
<span class="aui-icon content-type-attachment-image" title="PNG File">PNG File</span> <a href="https://goframe.org/download/attachments/49745257/image-2024-3-28_11-15-33.png?version=1&modificationDate=1711595736221&api=v2">image-2024-3-28_11-15-33.png</a> <span class="smalltext">(27 kB)</span>
<br/>
</p>
</div>
<div style="padding: 10px 0;">
<a href="https://goframe.org/pages/viewpageattachments.action?pageId=49745257">View Attachments</a>
</div>
</div>
shizhu
2024-03-28T03:15:36Z
链路跟踪-TraceID注入和获取 > image-2024-3-28_11-14-26.png
shizhu
tag:goframe.org,2009:attachment-151289861-1
2024-03-28T03:14:28Z
2024-03-28T03:14:28Z
<div class="feed"> <p>File
<b>attached</b> by
<a href=" https://goframe.org/display/~spillarlive
">shizhu</a>
</p>
<div style="border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; padding: 10px;">
<p>
<span class="aui-icon content-type-attachment-image" title="PNG File">PNG File</span> <a href="https://goframe.org/download/attachments/49745257/image-2024-3-28_11-14-26.png?version=1&modificationDate=1711595668563&api=v2">image-2024-3-28_11-14-26.png</a> <span class="smalltext">(126 kB)</span>
<br/>
</p>
</div>
<div style="padding: 10px 0;">
<a href="https://goframe.org/pages/viewpageattachments.action?pageId=49745257">View Attachments</a>
</div>
</div>
shizhu
2024-03-28T03:14:28Z
链路跟踪-TraceID注入和获取 > image-2024-3-28_11-13-3.png
shizhu
tag:goframe.org,2009:attachment-151289860-1
2024-03-28T03:13:06Z
2024-03-28T03:13:06Z
<div class="feed"> <p>File
<b>attached</b> by
<a href=" https://goframe.org/display/~spillarlive
">shizhu</a>
</p>
<div style="border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; padding: 10px;">
<p>
<span class="aui-icon content-type-attachment-image" title="PNG File">PNG File</span> <a href="https://goframe.org/download/attachments/49745257/image-2024-3-28_11-13-3.png?version=1&modificationDate=1711595586059&api=v2">image-2024-3-28_11-13-3.png</a> <span class="smalltext">(57 kB)</span>
<br/>
</p>
</div>
<div style="padding: 10px 0;">
<a href="https://goframe.org/pages/viewpageattachments.action?pageId=49745257">View Attachments</a>
</div>
</div>
shizhu
2024-03-28T03:13:06Z
Re: 快速开始-配置管理
Before80
tag:goframe.org,2009:comment-151289857-1
2024-03-28T00:22:00Z
2024-03-28T00:22:00Z
<div class="feed"> <p>
Comment <strong>added</strong> by <a href=" https://goframe.org/display/~before80
">Before80</a>
</p>
<div style="border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; padding: 10px 20px 10px 20px;">
<p><span style="color: rgb(23,43,77);">“以项目模板为例,默认提供了两个配置项,</span><code style="">server</code><span style="color: rgb(23,43,77);">和</span><code style="">logger</code><span style="color: rgb(23,43,77);">。前者是</span><code style="">HTTP Server</code><span style="color: rgb(23,43,77);">的配置项,后置是日志组件的配置项。”</span></p><p><span style="color: rgb(23,43,77);">中的“后置是日志组件的配置项”</span></p><p><span style="color: rgb(23,43,77);">应该修改为:</span></p><p><span style="color: rgb(23,43,77);">“后者是日志组件的配置项”。</span></p>
</div>
<div style="padding: 10px 0;">
<a href="https://goframe.org/pages/viewpage.action?pageId=57183754&focusedCommentId=151289857#comment-151289857">View Online</a>
</div>
</div>
Before80
2024-03-28T00:22:00Z
Re: 配置管理-AdapterFile
易君强
tag:goframe.org,2009:comment-150798342-1
2024-03-27T12:19:04Z
2024-03-27T12:19:04Z
<div class="feed"> <p>
Comment <strong>added</strong> by <a href=" https://goframe.org/display/~sidney
">易君强</a>
</p>
<div style="border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; padding: 10px 20px 10px 20px;">
<p>我在写apollo的配置适配器,发现个问题。</p><p><span class="confluence-embedded-file-wrapper confluence-embedded-manual-size"><img class="confluence-embedded-image" draggable="false" height="150" src="https://goframe.org/download/attachments/120274392/image-2024-3-27_20-17-2.png?version=1&modificationDate=1711541823639&api=v2" data-image-src="https://goframe.org/download/attachments/120274392/image-2024-3-27_20-17-2.png?version=1&modificationDate=1711541823639&api=v2" data-unresolved-comment-count="0" data-linked-resource-id="150798340" data-linked-resource-version="1" data-linked-resource-type="attachment" data-linked-resource-default-alias="image-2024-3-27_20-17-2.png" data-base-url="https://goframe.org" data-linked-resource-content-type="image/png" data-linked-resource-container-id="120274392" data-linked-resource-container-version="2" alt=""></span></p><p>projectName这个key找不到。<br/>打印了一下解析出来的json信息发现key变成projectname了,应该是转小写了。<br/>看了下代码,发现还真是</p><p><span class="confluence-embedded-file-wrapper confluence-embedded-manual-size"><img class="confluence-embedded-image" draggable="false" height="400" src="https://goframe.org/download/attachments/120274392/image-2024-3-27_20-17-27.png?version=1&modificationDate=1711541847793&api=v2" data-image-src="https://goframe.org/download/attachments/120274392/image-2024-3-27_20-17-27.png?version=1&modificationDate=1711541847793&api=v2" data-unresolved-comment-count="0" data-linked-resource-id="150798341" data-linked-resource-version="1" data-linked-resource-type="attachment" data-linked-resource-default-alias="image-2024-3-27_20-17-27.png" data-base-url="https://goframe.org" data-linked-resource-content-type="image/png" data-linked-resource-container-id="120274392" data-linked-resource-container-version="2" alt=""></span></p><p>不太理解解析properties格式配置的时候,为啥最后一层的key要转成小写。</p><p>都转成小写的话也还好,Get的时候也把key转成小写去查就行了,这一部分转成小写就不处理了。不知道是啥原因。求解答。</p>
</div>
<div style="padding: 10px 0;">
<a href="https://goframe.org/pages/viewpage.action?pageId=120274392&focusedCommentId=150798342#comment-150798342">View Online</a>
</div>
</div>
易君强
2024-03-27T12:19:04Z
配置管理-AdapterFile > image-2024-3-27_20-17-27.png
易君强
tag:goframe.org,2009:attachment-150798341-1
2024-03-27T12:17:27Z
2024-03-27T12:17:27Z
<div class="feed"> <p>File
<b>attached</b> by
<a href=" https://goframe.org/display/~sidney
">易君强</a>
</p>
<div style="border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; padding: 10px;">
<p>
<span class="aui-icon content-type-attachment-image" title="PNG File">PNG File</span> <a href="https://goframe.org/download/attachments/120274392/image-2024-3-27_20-17-27.png?version=1&modificationDate=1711541847793&api=v2">image-2024-3-27_20-17-27.png</a> <span class="smalltext">(140 kB)</span>
<br/>
</p>
</div>
<div style="padding: 10px 0;">
<a href="https://goframe.org/pages/viewpageattachments.action?pageId=120274392">View Attachments</a>
</div>
</div>
易君强
2024-03-27T12:17:27Z
配置管理-AdapterFile > image-2024-3-27_20-17-2.png
易君强
tag:goframe.org,2009:attachment-150798340-1
2024-03-27T12:17:03Z
2024-03-27T12:17:03Z
<div class="feed"> <p>File
<b>attached</b> by
<a href=" https://goframe.org/display/~sidney
">易君强</a>
</p>
<div style="border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; padding: 10px;">
<p>
<span class="aui-icon content-type-attachment-image" title="PNG File">PNG File</span> <a href="https://goframe.org/download/attachments/120274392/image-2024-3-27_20-17-2.png?version=1&modificationDate=1711541823639&api=v2">image-2024-3-27_20-17-2.png</a> <span class="smalltext">(93 kB)</span>
<br/>
</p>
</div>
<div style="padding: 10px 0;">
<a href="https://goframe.org/pages/viewpageattachments.action?pageId=120274392">View Attachments</a>
</div>
</div>
易君强
2024-03-27T12:17:03Z
Re: 数据规范-gen dao
a
tag:goframe.org,2009:comment-150241292-1
2024-03-26T20:12:59Z
2024-03-26T20:12:59Z
<div class="feed"> <p>
Comment <strong>added</strong> by <a href=" https://goframe.org/display/~rnicrosoft
">a</a>
</p>
<div style="border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; padding: 10px 20px 10px 20px;">
<p>希望增加一个选项,能在tag里自动加上omitempty</p>
</div>
<div style="padding: 10px 0;">
<a href="https://goframe.org/pages/viewpage.action?pageId=3673173&focusedCommentId=150241292#comment-150241292">View Online</a>
</div>
</div>
a
2024-03-26T20:12:59Z
Re: 数据规范-gen dao
king
tag:goframe.org,2009:comment-150241288-3
2024-03-26T07:50:45Z
2024-03-26T07:49:01Z
<div class="feed"> <p>
Comment <strong>edited</strong> by <a href=" https://goframe.org/display/~king
">king</a>
</p>
<div style="border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; padding: 10px 20px 10px 20px;">
<p><code>tables</code> 这类定义,表多的时候只能逗号分开,又不支持前缀匹配,很不方便</p><p>而一些配置文件本身是数据带类型的,比如 </p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
<pre class="syntaxhighlighter-pre" data-syntaxhighlighter-params="brush: yml; gutter: false; theme: Confluence" data-theme="Confluence"> tables:
- users
- goods</pre>
</div></div><p>这样其实是可以直接解析为数组的 而且表多的时候一目了然</p><p>但是因为gcfg为了兼容不带类型的配置文件,这里的定义目前只能写成逗号分开的,能不能考虑更新一下支持带数据类型的配置呢,这样 逗号分开或者多行数组都可以兼容解析为数组,因为配置文件本身就是文本,解析成 <code>[]string</code> 应该够用了</p>
</div>
<div style="padding: 10px 0;">
<a href="https://goframe.org/pages/viewpage.action?pageId=3673173&focusedCommentId=150241288#comment-150241288">View Online</a>
</div>
</div>
king
2024-03-26T07:49:01Z
Re: Cookie
Before80
tag:goframe.org,2009:comment-150241286-1
2024-03-26T05:39:49Z
2024-03-26T05:39:49Z
<div class="feed"> <p>
Comment <strong>added</strong> by <a href=" https://goframe.org/display/~before80
">Before80</a>
</p>
<div style="border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; padding: 10px 20px 10px 20px;">
<p>“<span style="color: rgb(23,43,77);">对于控制器对象而言,从基类控制器中继承了很多会话相关的对象指针,可以看做alias,可以直接使用,他们都是指向的同一个对象:</span>”</p><p>中的“<span style="color: rgb(23,43,77);">他们都是指向的同一个对象</span>”</p><p>应该去掉“的”,修改后为:</p><p>“<span style="color: rgb(23,43,77);">对于控制器对象而言,从基类控制器中继承了很多会话相关的对象指针,可以看做alias,可以直接使用,他们都是指向同一个对象:</span>”</p>
</div>
<div style="padding: 10px 0;">
<a href="https://goframe.org/display/gf/Cookie?focusedCommentId=150241286#comment-150241286">View Online</a>
</div>
</div>
Before80
2024-03-26T05:39:49Z
Re: 数据返回-模板解析
Before80
tag:goframe.org,2009:comment-150241285-1
2024-03-26T03:17:20Z
2024-03-26T03:17:20Z
<div class="feed"> <p>
Comment <strong>added</strong> by <a href=" https://goframe.org/display/~before80
">Before80</a>
</p>
<div style="border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; padding: 10px 20px 10px 20px;">
<p>“<span style="color: rgb(51,51,51);">解析模板时组件底层会自动通过</span><code style="">Request</code><span style="color: rgb(51,51,51);">对象获取当前链路的</span><code style="">Context</code><span style="color: rgb(51,51,51);">上下文变量并传递给模板引擎,因此开发者不用显示给模板引擎传递</span><code style="">Context</code><span style="color: rgb(51,51,51);">上下文变量。</span>”</p><p>中的“显示”</p><p>应该修改成:</p><p>“显式”。</p>
</div>
<div style="padding: 10px 0;">
<a href="https://goframe.org/pages/viewpage.action?pageId=1114173&focusedCommentId=150241285#comment-150241285">View Online</a>
</div>
</div>
Before80
2024-03-26T03:17:20Z