Browse Source

修改bug

yjp 2 months ago
parent
commit
e42193751e
1 changed files with 4 additions and 4 deletions
  1. 4 4
      framework/core/api/request/common.go

+ 4 - 4
framework/core/api/request/common.go

@@ -53,8 +53,8 @@ type TenantIDQueryParam struct {
 	TenantID string `form:"tenantId" binding:"required" assign:"toField:TenantID"`
 }
 
-func (id *IDQueryParam) GetTenantID() string {
-	return id.ID
+func (id *TenantIDQueryParam) GetTenantID() string {
+	return id.TenantID
 }
 
 // TenantIDPathParam 路径参数中包含租户ID字段的定义结构
@@ -62,8 +62,8 @@ type TenantIDPathParam struct {
 	TenantID string `uri:"tenantId" binding:"required" assign:"toField:TenantID"`
 }
 
-func (id *IDPathParam) GetTenantID() string {
-	return id.ID
+func (id *TenantIDPathParam) GetTenantID() string {
+	return id.TenantID
 }
 
 // QueryRequestParams 包含查询请求需要字段的查询参数接口