metadataapi

package
v1.4.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 10, 2026 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Code generated by godddx, DO AVOID EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMetadataCore

func NewMetadataCore(db *gorm.DB) metadata.Core

func RegisterMetadata

func RegisterMetadata(g gin.IRouter, api MetadataAPI, handler ...gin.HandlerFunc)

RegisterMetadata 注册通用数据持久化路由 GET 读取不鉴权:登录页需要在未认证状态下加载页面配置(login_page 等), 鉴权会导致 401→重定向→登录页→再请求→401 死循环。

Types

type MetadataAPI

type MetadataAPI struct {
	// contains filtered or unexported fields
}

MetadataAPI 为 http 提供通用数据持久化的业务方法

func NewMetadataAPI

func NewMetadataAPI(core metadata.Core) MetadataAPI

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL