This commit is contained in:
vipg
2025-11-11 17:33:32 +08:00
parent 77908424e3
commit 6411e96a59
5 changed files with 29 additions and 6 deletions

View File

@@ -0,0 +1,26 @@
package logic
// 这里是创建数据逻辑:
// 1、接收 namecode 两个参数。
// 2、确认提交的 namecode 两个参数不能为空,如果有空,则返回提示。
// 3、第二步通过后在 country 表中创建一个 id。
// 4、通过 3 中的 id分别保存到 name 和 code 的表中。
// CreateRequest 注册请求参数结构
type CreateRequest struct {
}
// CreateResponse 注册响应结构
type CreateResponse struct {
Success bool `json:"success"`
Message string `json:"message"`
Data struct {
} `json:"data"`
}
// CreateHandler 逻辑
func CreateHandler(c *gin.Context) {
}