upgrade: 优化部分代码, 部分内容待配置化
This commit is contained in:
20
enums/ref.go
Normal file
20
enums/ref.go
Normal file
@ -0,0 +1,20 @@
|
||||
// Package enums ...
|
||||
//
|
||||
// Description : enums ...
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 2025-08-23 00:40
|
||||
package enums
|
||||
|
||||
// RefPrefix 各种ref引用的前缀定义
|
||||
type RefPrefix string
|
||||
|
||||
func (rp RefPrefix) String() string {
|
||||
return string(rp)
|
||||
}
|
||||
|
||||
const (
|
||||
RefPrefixSchemaDefinition RefPrefix = "#/definitions/" // schema下的 $ref 下 definitions 的前缀
|
||||
RefPrefixSchemaResponse RefPrefix = "#/responses/" // schema下的 $ref 下 response 的前缀
|
||||
)
|
Reference in New Issue
Block a user