@@ -0,0 +1,51 @@ | |||
package member_center | |||
import ( | |||
svc "applet/app/svc/member_center" | |||
"github.com/gin-gonic/gin" | |||
) | |||
// CertificateList | |||
// @Summary 会员中心-证书管理 | |||
// @Tags 会员中心 | |||
// @Description 会员中心-证书管理 | |||
// @Accept json | |||
// @Produce json | |||
// @param Authorization header string true "验证参数Bearer和token空格拼接" | |||
// @Param req body md.AdvertisingListReq true "(分页信息必填)" | |||
// @Success 200 {object} md.AdvertisingListResp "具体数据" | |||
// @Failure 400 {object} md.Response "具体错误" | |||
// @Router /api/memberCenter/certificate/list [post] | |||
func CertificateList(c *gin.Context) { | |||
svc.CertificateList(c) | |||
} | |||
// CertificateDel | |||
// @Summary 会员中心-证书管理-删除 | |||
// @Tags 会员中心 | |||
// @Description 会员中心-证书管理-删除 | |||
// @Accept json | |||
// @Produce json | |||
// @param Authorization header string true "验证参数Bearer和token空格拼接" | |||
// @Param req body md.AdvertisingDelReq true "(分页信息必填)" | |||
// @Success 200 {string} "具体数据" | |||
// @Failure 400 {object} md.Response "具体错误" | |||
// @Router /api/memberCenter/certificate/del [post] | |||
func CertificateDel(c *gin.Context) { | |||
svc.CertificateDel(c) | |||
} | |||
// CertificateSave | |||
// @Summary 会员中心-证书管理-保存 | |||
// @Tags 会员中心 | |||
// @Description 会员中心-证书管理-保存 | |||
// @Accept json | |||
// @Produce json | |||
// @param Authorization header string true "验证参数Bearer和token空格拼接" | |||
// @Param req body md.AdvertisingSaveReq true "(分页信息必填)" | |||
// @Success 200 {string} "具体数据" | |||
// @Failure 400 {object} md.Response "具体错误" | |||
// @Router /api/memberCenter/certificate/save [post] | |||
func CertificateSave(c *gin.Context) { | |||
svc.CertificateSave(c) | |||
} |
@@ -44,7 +44,7 @@ func WebsiteInfo(c *gin.Context) { | |||
// @Param mod_name_value query string true "页面名称类型值(15:官网 联系我们)" | |||
// @Success 200 {object} md.GetModuleSettingResp "具体数据" | |||
// @Failure 400 {object} md.Response "具体错误" | |||
// @Router /api/v1/website/getModuleSetting [GET] | |||
// @Router /api/website/getModuleSetting [GET] | |||
func GetModuleSetting(c *gin.Context) { | |||
modName := c.Query("mod_name_value") | |||
modNameMap := map[string]string{ | |||
@@ -83,3 +83,44 @@ func GetModuleSetting(c *gin.Context) { | |||
} | |||
e.OutSuc(c, resp, nil) | |||
} | |||
// Certificate | |||
// @Summary 证书查询 | |||
// @Tags 官网 | |||
// @Description 证书查询 | |||
// @Accept json | |||
// @Produce json | |||
// @param Authorization header string true "验证参数Bearer和token空格拼接" | |||
// @Param req body md.CertificateReq true "(分页信息必填)" | |||
// @Success 200 {object} md.CertificateResp "具体数据" | |||
// @Failure 400 {object} md.Response "具体错误" | |||
// @Router /api/website/certificate [POST] | |||
func Certificate(c *gin.Context) { | |||
var req md.CertificateReq | |||
err := c.ShouldBindJSON(&req) | |||
if err != nil { | |||
err = svc.HandleValidateErr(err) | |||
err1 := err.(e.E) | |||
e.OutErr(c, err1.Code, err1.Error()) | |||
return | |||
} | |||
NewUserCertificateDb := implement.NewUserCertificateDb(db.Db) | |||
data, _ := NewUserCertificateDb.GetUserCertificateByNo(req.No) | |||
if data == nil { | |||
e.OutErr(c, 400, e.NewErr(400, "查询不到该证书")) | |||
return | |||
} | |||
resp := md.CertificateResp{ | |||
No: data.No, | |||
Name: data.Name, | |||
StartTime: data.StartTime, | |||
EndTime: data.EndTime, | |||
Logo: svc.GetOssUrl(md.Certificate.Logo), | |||
BgImg: svc.GetOssUrl(md.Certificate.BgImg), | |||
NameIcon: svc.GetOssUrl(md.Certificate.NameIcon), | |||
Medal: svc.GetOssUrl(md.Certificate.Medal), | |||
Seal: svc.GetOssUrl(md.Certificate.Seal), | |||
} | |||
e.OutSuc(c, resp, nil) | |||
return | |||
} |
@@ -15,3 +15,25 @@ type GetModuleSettingResp struct { | |||
Subtitle string `json:"subtitle"` // 副标题 | |||
Data interface{} `json:"data"` // 内容 | |||
} | |||
type CertificateReq struct { | |||
No string `json:"no" example:"DD123"` | |||
} | |||
type CertificateResp struct { | |||
No string `json:"no" example:"编号"` | |||
Name string `json:"name" example:"姓名"` | |||
StartTime string `json:"start_time" example:"开始时间"` | |||
EndTime string `json:"end_time" example:"结束时间"` | |||
Logo string `json:"logo" example:"logo"` | |||
BgImg string `json:"bg_img" example:"背景图"` | |||
NameIcon string `json:"name_icon" example:"蛋蛋星球文字图"` | |||
Medal string `json:"medal" example:"勋章"` | |||
Seal string `json:"seal" example:"印章"` | |||
} | |||
var Certificate = CertificateResp{ | |||
Logo: "default_icon/certificate_logo.jpg", | |||
BgImg: "default_icon/certificate_bg_img.jpg", | |||
NameIcon: "default_icon/certificate_name_icon.jpg", | |||
Medal: "default_icon/certificate_medal.jpg", | |||
Seal: "default_icon/certificate_seal.jpg", | |||
} |
@@ -0,0 +1,35 @@ | |||
package md | |||
type CertificateListReq struct { | |||
Page string `json:"page"` | |||
Limit string `json:"limit"` | |||
Phone string `json:"phone"` | |||
Uid string `json:"uid"` | |||
} | |||
type CertificateListResp struct { | |||
Total int64 `json:"total"` | |||
List []CertificateList `json:"list"` | |||
} | |||
type CertificateDelReq struct { | |||
Id []string `json:"id"` | |||
} | |||
type CertificateList struct { | |||
Id string `json:"id" ` | |||
No string `json:"no" example:"编号"` | |||
Name string `json:"name" example:"姓名"` | |||
StartTime string `json:"start_time" example:"开始时间"` | |||
EndTime string `json:"end_time" example:"结束时间"` | |||
Logo string `json:"logo" example:"logo"` | |||
BgImg string `json:"bg_img" example:"背景图"` | |||
NameIcon string `json:"name_icon" example:"蛋蛋星球文字图"` | |||
Medal string `json:"medal" example:"勋章"` | |||
Seal string `json:"seal" example:"印章"` | |||
} | |||
type CertificateSave struct { | |||
Id string `json:"id" ` | |||
No string `json:"no" example:"编号"` | |||
Name string `json:"name" example:"姓名"` | |||
StartTime string `json:"start_time" example:"开始时间"` | |||
EndTime string `json:"end_time" example:"结束时间"` | |||
} |
@@ -79,6 +79,7 @@ func route(r *gin.RouterGroup) { | |||
{ | |||
rWebsite.GET("/info", website.WebsiteInfo) // 官网 | |||
rWebsite.GET("/getModuleSetting", website.GetModuleSetting) // 获取页面样式 | |||
rWebsite.POST("/certificate", website.Certificate) // 查询证书 | |||
} | |||
} | |||
@@ -349,6 +350,13 @@ func rMemberCenter(r *gin.RouterGroup) { // 会员中心 | |||
rLevelManagement.DELETE("/deleteLevel", member_center.DeleteLevel) | |||
rLevelManagement.DELETE("/deleteLevelTask", member_center.DeleteLevelTask) | |||
} | |||
rCertificate := r.Group("/certificate") | |||
{ | |||
rCertificate.POST("/list", member_center.CertificateList) | |||
rCertificate.POST("/save", member_center.CertificateSave) | |||
rCertificate.POST("/del", member_center.CertificateDel) | |||
} | |||
} | |||
func rIm(r *gin.RouterGroup) { | |||
@@ -0,0 +1,107 @@ | |||
package svc | |||
import ( | |||
"applet/app/db" | |||
"applet/app/e" | |||
md2 "applet/app/md" | |||
"applet/app/md/member_center" | |||
"applet/app/svc" | |||
"applet/app/utils" | |||
"code.fnuoos.com/EggPlanet/egg_models.git/src/implement" | |||
"code.fnuoos.com/EggPlanet/egg_models.git/src/model" | |||
"github.com/gin-gonic/gin" | |||
) | |||
func CertificateList(c *gin.Context) { | |||
var req *md.CertificateListReq | |||
if err := c.ShouldBindJSON(&req); err != nil { | |||
e.OutErr(c, e.ERR_INVALID_ARGS, err) | |||
return | |||
} | |||
if req.Phone != "" { | |||
NewUserDb := implement.NewUserDb(db.Db) | |||
user, _ := NewUserDb.UserGetOneByParams(map[string]interface{}{ | |||
"key": "id", | |||
"value": req.Phone, | |||
}) | |||
req.Uid = "0" | |||
if user != nil { | |||
req.Uid = utils.Int64ToStr(user.Id) | |||
} | |||
} | |||
var resp md.CertificateListResp | |||
noticeList := make([]md.CertificateList, 0) | |||
NewUserCertificateDb := implement.NewUserCertificateDb(db.Db) | |||
notice, total, _ := NewUserCertificateDb.FindUserCertificate(req.Page, req.Limit, req.Uid) | |||
resp.Total = total | |||
if notice != nil { | |||
for _, v := range *notice { | |||
tmp := md.CertificateList{ | |||
Id: utils.IntToStr(v.Id), | |||
Name: v.Name, | |||
No: v.No, | |||
StartTime: v.StartTime, | |||
EndTime: v.EndTime, | |||
Logo: svc.GetOssUrl(md2.Certificate.Logo), | |||
BgImg: svc.GetOssUrl(md2.Certificate.BgImg), | |||
NameIcon: svc.GetOssUrl(md2.Certificate.NameIcon), | |||
Medal: svc.GetOssUrl(md2.Certificate.Medal), | |||
Seal: svc.GetOssUrl(md2.Certificate.Seal), | |||
} | |||
noticeList = append(noticeList, tmp) | |||
} | |||
} | |||
resp.List = noticeList | |||
e.OutSuc(c, resp, nil) | |||
return | |||
} | |||
func CertificateDel(c *gin.Context) { | |||
var req *md.CertificateDelReq | |||
if err := c.ShouldBindJSON(&req); err != nil { | |||
e.OutErr(c, e.ERR_INVALID_ARGS, err) | |||
return | |||
} | |||
db.Db.In("id", req.Id).Delete(&model.UserCertificate{}) | |||
e.OutSuc(c, "success", nil) | |||
return | |||
} | |||
func CertificateSave(c *gin.Context) { | |||
var req *md.CertificateSave | |||
if err := c.ShouldBindJSON(&req); err != nil { | |||
e.OutErr(c, e.ERR_INVALID_ARGS, err) | |||
return | |||
} | |||
var data = new(model.UserCertificate) | |||
if utils.StrToInt(req.Id) > 0 { | |||
NewUserCertificateDb := implement.NewUserCertificateDb(db.Db) | |||
space, _ := NewUserCertificateDb.GetUserCertificateById(req.Id) | |||
if space == nil { | |||
e.OutErr(c, 400, e.NewErr(400, "记录不存在")) | |||
return | |||
} | |||
data = space | |||
} else { | |||
data.No = "DD" + utils.GenerateUniqueInvitationCode(12) | |||
data.No = check(1, data.No) | |||
db.Db.Insert(data) | |||
} | |||
data.Name = req.Name | |||
data.StartTime = req.StartTime | |||
data.EndTime = req.EndTime | |||
db.Db.Where("id=?", data.Id).Update(data) | |||
e.OutSuc(c, "success", nil) | |||
return | |||
} | |||
func check(num int, no string) string { | |||
NewUserCertificateDb := implement.NewUserCertificateDb(db.Db) | |||
space, _ := NewUserCertificateDb.GetUserCertificateByNo(no) | |||
if num >= 10 { | |||
return "" | |||
} | |||
if space != nil { | |||
no = "DD" + utils.GenerateUniqueInvitationCode(12) | |||
num++ | |||
return check(num, no) | |||
} | |||
return no | |||
} |
@@ -0,0 +1,39 @@ | |||
package utils | |||
import ( | |||
"math/rand" | |||
"sync" | |||
"time" | |||
) | |||
const ( | |||
letterBytes = "0123456789" | |||
) | |||
var mu sync.Mutex | |||
var generatedCodes = make(map[string]struct{}) | |||
func init() { | |||
rand.Seed(time.Now().UnixNano()) | |||
} | |||
func randomString(lens int) string { | |||
b := make([]byte, lens) | |||
for i := range b { | |||
b[i] = letterBytes[rand.Intn(len(letterBytes))] | |||
} | |||
return string(b) | |||
} | |||
func GenerateUniqueInvitationCode(lens int) string { | |||
var code string | |||
for { | |||
code = randomString(lens) | |||
mu.Lock() | |||
if _, ok := generatedCodes[code]; !ok { | |||
generatedCodes[code] = struct{}{} | |||
mu.Unlock() | |||
return code | |||
} | |||
mu.Unlock() | |||
} | |||
} |
@@ -1,4 +1,5 @@ | |||
// Package docs Code generated by swaggo/swag. DO NOT EDIT | |||
// Code generated by swaggo/swag. DO NOT EDIT. | |||
package docs | |||
import "github.com/swaggo/swag" | |||
@@ -1437,7 +1438,9 @@ const docTemplate = `{ | |||
"name": "req", | |||
"in": "body", | |||
"required": true, | |||
"schema": {} | |||
"schema": { | |||
"type": "object" | |||
} | |||
} | |||
], | |||
"responses": { | |||
@@ -5518,6 +5521,147 @@ const docTemplate = `{ | |||
} | |||
} | |||
}, | |||
"/api/memberCenter/certificate/del": { | |||
"post": { | |||
"description": "会员中心-证书管理-删除", | |||
"consumes": [ | |||
"application/json" | |||
], | |||
"produces": [ | |||
"application/json" | |||
], | |||
"tags": [ | |||
"会员中心" | |||
], | |||
"summary": "会员中心-证书管理-删除", | |||
"parameters": [ | |||
{ | |||
"type": "string", | |||
"description": "验证参数Bearer和token空格拼接", | |||
"name": "Authorization", | |||
"in": "header", | |||
"required": true | |||
}, | |||
{ | |||
"description": "(分页信息必填)", | |||
"name": "req", | |||
"in": "body", | |||
"required": true, | |||
"schema": { | |||
"$ref": "#/definitions/md.AdvertisingDelReq" | |||
} | |||
} | |||
], | |||
"responses": { | |||
"200": { | |||
"description": "具体数据", | |||
"schema": { | |||
"type": "string" | |||
} | |||
}, | |||
"400": { | |||
"description": "具体错误", | |||
"schema": { | |||
"$ref": "#/definitions/md.Response" | |||
} | |||
} | |||
} | |||
} | |||
}, | |||
"/api/memberCenter/certificate/list": { | |||
"post": { | |||
"description": "会员中心-证书管理", | |||
"consumes": [ | |||
"application/json" | |||
], | |||
"produces": [ | |||
"application/json" | |||
], | |||
"tags": [ | |||
"会员中心" | |||
], | |||
"summary": "会员中心-证书管理", | |||
"parameters": [ | |||
{ | |||
"type": "string", | |||
"description": "验证参数Bearer和token空格拼接", | |||
"name": "Authorization", | |||
"in": "header", | |||
"required": true | |||
}, | |||
{ | |||
"description": "(分页信息必填)", | |||
"name": "req", | |||
"in": "body", | |||
"required": true, | |||
"schema": { | |||
"$ref": "#/definitions/md.AdvertisingListReq" | |||
} | |||
} | |||
], | |||
"responses": { | |||
"200": { | |||
"description": "具体数据", | |||
"schema": { | |||
"$ref": "#/definitions/md.AdvertisingListResp" | |||
} | |||
}, | |||
"400": { | |||
"description": "具体错误", | |||
"schema": { | |||
"$ref": "#/definitions/md.Response" | |||
} | |||
} | |||
} | |||
} | |||
}, | |||
"/api/memberCenter/certificate/save": { | |||
"post": { | |||
"description": "会员中心-证书管理-保存", | |||
"consumes": [ | |||
"application/json" | |||
], | |||
"produces": [ | |||
"application/json" | |||
], | |||
"tags": [ | |||
"会员中心" | |||
], | |||
"summary": "会员中心-证书管理-保存", | |||
"parameters": [ | |||
{ | |||
"type": "string", | |||
"description": "验证参数Bearer和token空格拼接", | |||
"name": "Authorization", | |||
"in": "header", | |||
"required": true | |||
}, | |||
{ | |||
"description": "(分页信息必填)", | |||
"name": "req", | |||
"in": "body", | |||
"required": true, | |||
"schema": { | |||
"$ref": "#/definitions/md.AdvertisingSaveReq" | |||
} | |||
} | |||
], | |||
"responses": { | |||
"200": { | |||
"description": "具体数据", | |||
"schema": { | |||
"type": "string" | |||
} | |||
}, | |||
"400": { | |||
"description": "具体错误", | |||
"schema": { | |||
"$ref": "#/definitions/md.Response" | |||
} | |||
} | |||
} | |||
} | |||
}, | |||
"/api/memberCenter/levelManagement/addLevel": { | |||
"post": { | |||
"description": "等级管理(新增)", | |||
@@ -7510,7 +7654,54 @@ const docTemplate = `{ | |||
} | |||
} | |||
}, | |||
"/api/v1/website/getModuleSetting": { | |||
"/api/website/certificate": { | |||
"post": { | |||
"description": "证书查询", | |||
"consumes": [ | |||
"application/json" | |||
], | |||
"produces": [ | |||
"application/json" | |||
], | |||
"tags": [ | |||
"官网" | |||
], | |||
"summary": "证书查询", | |||
"parameters": [ | |||
{ | |||
"type": "string", | |||
"description": "验证参数Bearer和token空格拼接", | |||
"name": "Authorization", | |||
"in": "header", | |||
"required": true | |||
}, | |||
{ | |||
"description": "(分页信息必填)", | |||
"name": "req", | |||
"in": "body", | |||
"required": true, | |||
"schema": { | |||
"$ref": "#/definitions/md.CertificateReq" | |||
} | |||
} | |||
], | |||
"responses": { | |||
"200": { | |||
"description": "具体数据", | |||
"schema": { | |||
"$ref": "#/definitions/md.CertificateResp" | |||
} | |||
}, | |||
"400": { | |||
"description": "具体错误", | |||
"schema": { | |||
"$ref": "#/definitions/md.Response" | |||
} | |||
} | |||
} | |||
} | |||
}, | |||
"/api/website/getModuleSetting": { | |||
"get": { | |||
"description": "页面样式", | |||
"consumes": [ | |||
@@ -8898,6 +9089,56 @@ const docTemplate = `{ | |||
} | |||
} | |||
}, | |||
"md.CertificateReq": { | |||
"type": "object", | |||
"properties": { | |||
"no": { | |||
"type": "string", | |||
"example": "DD123" | |||
} | |||
} | |||
}, | |||
"md.CertificateResp": { | |||
"type": "object", | |||
"properties": { | |||
"bg_img": { | |||
"type": "string", | |||
"example": "背景图" | |||
}, | |||
"end_time": { | |||
"type": "string", | |||
"example": "结束时间" | |||
}, | |||
"logo": { | |||
"type": "string", | |||
"example": "logo" | |||
}, | |||
"medal": { | |||
"type": "string", | |||
"example": "勋章" | |||
}, | |||
"name": { | |||
"type": "string", | |||
"example": "姓名" | |||
}, | |||
"name_icon": { | |||
"type": "string", | |||
"example": "蛋蛋星球文字图" | |||
}, | |||
"no": { | |||
"type": "string", | |||
"example": "编号" | |||
}, | |||
"seal": { | |||
"type": "string", | |||
"example": "印章" | |||
}, | |||
"start_time": { | |||
"type": "string", | |||
"example": "开始时间" | |||
} | |||
} | |||
}, | |||
"md.CloudBundleBaseResp": { | |||
"type": "object", | |||
"properties": { | |||
@@ -14606,8 +14847,6 @@ var SwaggerInfo = &swag.Spec{ | |||
Description: "管理后台接口文档", | |||
InfoInstanceName: "swagger", | |||
SwaggerTemplate: docTemplate, | |||
LeftDelim: "{{", | |||
RightDelim: "}}", | |||
} | |||
func init() { | |||
@@ -1430,7 +1430,9 @@ | |||
"name": "req", | |||
"in": "body", | |||
"required": true, | |||
"schema": {} | |||
"schema": { | |||
"type": "object" | |||
} | |||
} | |||
], | |||
"responses": { | |||
@@ -5511,6 +5513,147 @@ | |||
} | |||
} | |||
}, | |||
"/api/memberCenter/certificate/del": { | |||
"post": { | |||
"description": "会员中心-证书管理-删除", | |||
"consumes": [ | |||
"application/json" | |||
], | |||
"produces": [ | |||
"application/json" | |||
], | |||
"tags": [ | |||
"会员中心" | |||
], | |||
"summary": "会员中心-证书管理-删除", | |||
"parameters": [ | |||
{ | |||
"type": "string", | |||
"description": "验证参数Bearer和token空格拼接", | |||
"name": "Authorization", | |||
"in": "header", | |||
"required": true | |||
}, | |||
{ | |||
"description": "(分页信息必填)", | |||
"name": "req", | |||
"in": "body", | |||
"required": true, | |||
"schema": { | |||
"$ref": "#/definitions/md.AdvertisingDelReq" | |||
} | |||
} | |||
], | |||
"responses": { | |||
"200": { | |||
"description": "具体数据", | |||
"schema": { | |||
"type": "string" | |||
} | |||
}, | |||
"400": { | |||
"description": "具体错误", | |||
"schema": { | |||
"$ref": "#/definitions/md.Response" | |||
} | |||
} | |||
} | |||
} | |||
}, | |||
"/api/memberCenter/certificate/list": { | |||
"post": { | |||
"description": "会员中心-证书管理", | |||
"consumes": [ | |||
"application/json" | |||
], | |||
"produces": [ | |||
"application/json" | |||
], | |||
"tags": [ | |||
"会员中心" | |||
], | |||
"summary": "会员中心-证书管理", | |||
"parameters": [ | |||
{ | |||
"type": "string", | |||
"description": "验证参数Bearer和token空格拼接", | |||
"name": "Authorization", | |||
"in": "header", | |||
"required": true | |||
}, | |||
{ | |||
"description": "(分页信息必填)", | |||
"name": "req", | |||
"in": "body", | |||
"required": true, | |||
"schema": { | |||
"$ref": "#/definitions/md.AdvertisingListReq" | |||
} | |||
} | |||
], | |||
"responses": { | |||
"200": { | |||
"description": "具体数据", | |||
"schema": { | |||
"$ref": "#/definitions/md.AdvertisingListResp" | |||
} | |||
}, | |||
"400": { | |||
"description": "具体错误", | |||
"schema": { | |||
"$ref": "#/definitions/md.Response" | |||
} | |||
} | |||
} | |||
} | |||
}, | |||
"/api/memberCenter/certificate/save": { | |||
"post": { | |||
"description": "会员中心-证书管理-保存", | |||
"consumes": [ | |||
"application/json" | |||
], | |||
"produces": [ | |||
"application/json" | |||
], | |||
"tags": [ | |||
"会员中心" | |||
], | |||
"summary": "会员中心-证书管理-保存", | |||
"parameters": [ | |||
{ | |||
"type": "string", | |||
"description": "验证参数Bearer和token空格拼接", | |||
"name": "Authorization", | |||
"in": "header", | |||
"required": true | |||
}, | |||
{ | |||
"description": "(分页信息必填)", | |||
"name": "req", | |||
"in": "body", | |||
"required": true, | |||
"schema": { | |||
"$ref": "#/definitions/md.AdvertisingSaveReq" | |||
} | |||
} | |||
], | |||
"responses": { | |||
"200": { | |||
"description": "具体数据", | |||
"schema": { | |||
"type": "string" | |||
} | |||
}, | |||
"400": { | |||
"description": "具体错误", | |||
"schema": { | |||
"$ref": "#/definitions/md.Response" | |||
} | |||
} | |||
} | |||
} | |||
}, | |||
"/api/memberCenter/levelManagement/addLevel": { | |||
"post": { | |||
"description": "等级管理(新增)", | |||
@@ -7503,7 +7646,54 @@ | |||
} | |||
} | |||
}, | |||
"/api/v1/website/getModuleSetting": { | |||
"/api/website/certificate": { | |||
"post": { | |||
"description": "证书查询", | |||
"consumes": [ | |||
"application/json" | |||
], | |||
"produces": [ | |||
"application/json" | |||
], | |||
"tags": [ | |||
"官网" | |||
], | |||
"summary": "证书查询", | |||
"parameters": [ | |||
{ | |||
"type": "string", | |||
"description": "验证参数Bearer和token空格拼接", | |||
"name": "Authorization", | |||
"in": "header", | |||
"required": true | |||
}, | |||
{ | |||
"description": "(分页信息必填)", | |||
"name": "req", | |||
"in": "body", | |||
"required": true, | |||
"schema": { | |||
"$ref": "#/definitions/md.CertificateReq" | |||
} | |||
} | |||
], | |||
"responses": { | |||
"200": { | |||
"description": "具体数据", | |||
"schema": { | |||
"$ref": "#/definitions/md.CertificateResp" | |||
} | |||
}, | |||
"400": { | |||
"description": "具体错误", | |||
"schema": { | |||
"$ref": "#/definitions/md.Response" | |||
} | |||
} | |||
} | |||
} | |||
}, | |||
"/api/website/getModuleSetting": { | |||
"get": { | |||
"description": "页面样式", | |||
"consumes": [ | |||
@@ -8891,6 +9081,56 @@ | |||
} | |||
} | |||
}, | |||
"md.CertificateReq": { | |||
"type": "object", | |||
"properties": { | |||
"no": { | |||
"type": "string", | |||
"example": "DD123" | |||
} | |||
} | |||
}, | |||
"md.CertificateResp": { | |||
"type": "object", | |||
"properties": { | |||
"bg_img": { | |||
"type": "string", | |||
"example": "背景图" | |||
}, | |||
"end_time": { | |||
"type": "string", | |||
"example": "结束时间" | |||
}, | |||
"logo": { | |||
"type": "string", | |||
"example": "logo" | |||
}, | |||
"medal": { | |||
"type": "string", | |||
"example": "勋章" | |||
}, | |||
"name": { | |||
"type": "string", | |||
"example": "姓名" | |||
}, | |||
"name_icon": { | |||
"type": "string", | |||
"example": "蛋蛋星球文字图" | |||
}, | |||
"no": { | |||
"type": "string", | |||
"example": "编号" | |||
}, | |||
"seal": { | |||
"type": "string", | |||
"example": "印章" | |||
}, | |||
"start_time": { | |||
"type": "string", | |||
"example": "开始时间" | |||
} | |||
} | |||
}, | |||
"md.CloudBundleBaseResp": { | |||
"type": "object", | |||
"properties": { | |||
@@ -910,6 +910,42 @@ definitions: | |||
description: 发送模式(1:所有用户 2:指定用户) | |||
type: integer | |||
type: object | |||
md.CertificateReq: | |||
properties: | |||
"no": | |||
example: DD123 | |||
type: string | |||
type: object | |||
md.CertificateResp: | |||
properties: | |||
bg_img: | |||
example: 背景图 | |||
type: string | |||
end_time: | |||
example: 结束时间 | |||
type: string | |||
logo: | |||
example: logo | |||
type: string | |||
medal: | |||
example: 勋章 | |||
type: string | |||
name: | |||
example: 姓名 | |||
type: string | |||
name_icon: | |||
example: 蛋蛋星球文字图 | |||
type: string | |||
"no": | |||
example: 编号 | |||
type: string | |||
seal: | |||
example: 印章 | |||
type: string | |||
start_time: | |||
example: 开始时间 | |||
type: string | |||
type: object | |||
md.CloudBundleBaseResp: | |||
properties: | |||
android_logo: | |||
@@ -5792,7 +5828,8 @@ paths: | |||
in: body | |||
name: req | |||
required: true | |||
schema: {} | |||
schema: | |||
type: object | |||
produces: | |||
- application/json | |||
responses: | |||
@@ -8488,6 +8525,99 @@ paths: | |||
summary: 制度中心-营销应用-新人红包设置(修改) | |||
tags: | |||
- 营销应用 | |||
/api/memberCenter/certificate/del: | |||
post: | |||
consumes: | |||
- application/json | |||
description: 会员中心-证书管理-删除 | |||
parameters: | |||
- description: 验证参数Bearer和token空格拼接 | |||
in: header | |||
name: Authorization | |||
required: true | |||
type: string | |||
- description: (分页信息必填) | |||
in: body | |||
name: req | |||
required: true | |||
schema: | |||
$ref: '#/definitions/md.AdvertisingDelReq' | |||
produces: | |||
- application/json | |||
responses: | |||
"200": | |||
description: 具体数据 | |||
schema: | |||
type: string | |||
"400": | |||
description: 具体错误 | |||
schema: | |||
$ref: '#/definitions/md.Response' | |||
summary: 会员中心-证书管理-删除 | |||
tags: | |||
- 会员中心 | |||
/api/memberCenter/certificate/list: | |||
post: | |||
consumes: | |||
- application/json | |||
description: 会员中心-证书管理 | |||
parameters: | |||
- description: 验证参数Bearer和token空格拼接 | |||
in: header | |||
name: Authorization | |||
required: true | |||
type: string | |||
- description: (分页信息必填) | |||
in: body | |||
name: req | |||
required: true | |||
schema: | |||
$ref: '#/definitions/md.AdvertisingListReq' | |||
produces: | |||
- application/json | |||
responses: | |||
"200": | |||
description: 具体数据 | |||
schema: | |||
$ref: '#/definitions/md.AdvertisingListResp' | |||
"400": | |||
description: 具体错误 | |||
schema: | |||
$ref: '#/definitions/md.Response' | |||
summary: 会员中心-证书管理 | |||
tags: | |||
- 会员中心 | |||
/api/memberCenter/certificate/save: | |||
post: | |||
consumes: | |||
- application/json | |||
description: 会员中心-证书管理-保存 | |||
parameters: | |||
- description: 验证参数Bearer和token空格拼接 | |||
in: header | |||
name: Authorization | |||
required: true | |||
type: string | |||
- description: (分页信息必填) | |||
in: body | |||
name: req | |||
required: true | |||
schema: | |||
$ref: '#/definitions/md.AdvertisingSaveReq' | |||
produces: | |||
- application/json | |||
responses: | |||
"200": | |||
description: 具体数据 | |||
schema: | |||
type: string | |||
"400": | |||
description: 具体错误 | |||
schema: | |||
$ref: '#/definitions/md.Response' | |||
summary: 会员中心-证书管理-保存 | |||
tags: | |||
- 会员中心 | |||
/api/memberCenter/levelManagement/addLevel: | |||
post: | |||
consumes: | |||
@@ -9808,7 +9938,38 @@ paths: | |||
summary: 基本设置-实名认证-修改认证状态 | |||
tags: | |||
- 基本设置 | |||
/api/v1/website/getModuleSetting: | |||
/api/website/certificate: | |||
post: | |||
consumes: | |||
- application/json | |||
description: 证书查询 | |||
parameters: | |||
- description: 验证参数Bearer和token空格拼接 | |||
in: header | |||
name: Authorization | |||
required: true | |||
type: string | |||
- description: (分页信息必填) | |||
in: body | |||
name: req | |||
required: true | |||
schema: | |||
$ref: '#/definitions/md.CertificateReq' | |||
produces: | |||
- application/json | |||
responses: | |||
"200": | |||
description: 具体数据 | |||
schema: | |||
$ref: '#/definitions/md.CertificateResp' | |||
"400": | |||
description: 具体错误 | |||
schema: | |||
$ref: '#/definitions/md.Response' | |||
summary: 证书查询 | |||
tags: | |||
- 官网 | |||
/api/website/getModuleSetting: | |||
get: | |||
consumes: | |||
- application/json | |||
@@ -33,7 +33,7 @@ require ( | |||
) | |||
require ( | |||
code.fnuoos.com/EggPlanet/egg_models.git v0.2.1-0.20241207095049-e0ad89412565 | |||
code.fnuoos.com/EggPlanet/egg_models.git v0.2.1-0.20241210110912-1a6913ffbbc5 | |||
code.fnuoos.com/EggPlanet/egg_system_rules.git v0.0.4-0.20241205075006-9c0bf995c788 | |||
code.fnuoos.com/go_rely_warehouse/zyos_go_es.git v1.0.1-0.20241118083738-0f22da9ba0be | |||
code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git v0.0.5 | |||