fix: align admin behavior and Kratos integrations
This commit is contained in:
@@ -241,20 +241,11 @@
|
||||
来获取对应的参数。
|
||||
</p>
|
||||
<p class="text-sm text-gray-600">
|
||||
后端需要提前
|
||||
后端通过
|
||||
<code class="bg-blue-100 px-1 py-0.5 rounded"
|
||||
>import
|
||||
"github.com/kra/kra/server/service/system"</code
|
||||
>SettingsUsecase.ParameterByKey(ctx, key)</code
|
||||
>
|
||||
</p>
|
||||
<p class="mb-2 text-sm text-gray-600">
|
||||
然后调用
|
||||
<code class="bg-blue-100 px-1 py-0.5 rounded"
|
||||
>new(system.SysParamsService).GetSysParam("{{
|
||||
formData.key
|
||||
}}")</code
|
||||
>
|
||||
来获取对应的 value 值。
|
||||
获取对应参数值,业务代码应通过 biz 层接口调用。
|
||||
</p>
|
||||
</div>
|
||||
</el-drawer>
|
||||
|
||||
Reference in New Issue
Block a user