Browse Source

更改 swag 文档

master
dengbiao 1 month ago
parent
commit
238131fe66
7 changed files with 5480 additions and 1603 deletions
  1. +57
    -0
      app/hdl/im/hdl_send_red_package_ord.go
  2. +4
    -4
      app/hdl/notice/hdl_aliyun_sms.go
  3. +2
    -0
      app/router/router.go
  4. +2226
    -793
      docs/docs.go
  5. +2226
    -793
      docs/swagger.json
  6. +964
    -12
      docs/swagger.yaml
  7. +1
    -1
      go.mod

+ 57
- 0
app/hdl/im/hdl_send_red_package_ord.go View File

@@ -0,0 +1,57 @@
package im

import (
"applet/app/e"
md "applet/app/md/im"
svc "applet/app/svc/im"
"github.com/gin-gonic/gin"
)

// PageSendRedPackageOrd
// @Summary Im-红包记录(列表)
// @Tags 红包记录
// @Description 红包记录(列表)
// @Accept json
// @Produce json
// @param Authorization header string true "验证参数Bearer和token空格拼接"
// @param req body md.PageSendRedPackageOrdReq true "相关参数"
// @Success 200 {string} "success"
// @Failure 400 {object} md.Response "具体错误"
// @Router /api/im/pageSendRedPackageOrd [POST]
func PageSendRedPackageOrd(c *gin.Context) {
var req *md.PageSendRedPackageOrdReq
if err1 := c.ShouldBindJSON(&req); err1 != nil {
e.OutErr(c, e.ERR_INVALID_ARGS, err1.Error())
return
}

err, resp := svc.PageSendRedPackageOrd(*req)
if err != nil {
e.OutErr(c, e.ERR, err.Error())
return
}

e.OutSuc(c, resp, nil)
}

// RedPackageRecordsDetail
// @Summary Im-红包记录(详情)
// @Tags 红包记录
// @Description 红包记录(详情)
// @Accept json
// @Produce json
// @param Authorization header string true "验证参数Bearer和token空格拼接"
// @Param red_package_id query string true "红包id"
// @Success 200 {string} "success"
// @Failure 400 {object} md.Response "具体错误"
// @Router /api/im/redPackageRecordsDetail [GET]
func RedPackageRecordsDetail(c *gin.Context) {
redPackageId := c.DefaultQuery("red_package_id", "")
err, resp := svc.RedPackageRecordsDetail(redPackageId)
if err != nil {
e.OutErr(c, e.ERR, err.Error())
return
}

e.OutSuc(c, resp, nil)
}

+ 4
- 4
app/hdl/notice/hdl_aliyun_sms.go View File

@@ -12,8 +12,8 @@ import (
// @Accept json // @Accept json
// @Produce json // @Produce json
// @param Authorization header string true "验证参数Bearer和token空格拼接" // @param Authorization header string true "验证参数Bearer和token空格拼接"
// @Param req body true "参数 file-----文件上传格式"
// @Success 200 {object} "phone 一个数组"
// @Param file formData string true "参数 file-----文件上传格式"
// @Success 200 {string} "phone 一个数组"
// @Failure 400 {object} md.Response "具体错误" // @Failure 400 {object} md.Response "具体错误"
// @Router /api/notice/aliyunSms/file/phone [post] // @Router /api/notice/aliyunSms/file/phone [post]
func AliyunSmsFilePhone(c *gin.Context) { func AliyunSmsFilePhone(c *gin.Context) {
@@ -41,7 +41,7 @@ func AliyunSmsBase(c *gin.Context) {
// @Accept json // @Accept json
// @Produce json // @Produce json
// @param Authorization header string true "验证参数Bearer和token空格拼接" // @param Authorization header string true "验证参数Bearer和token空格拼接"
// @Param req body true "数组 把列表的数组传过来"
// @Param req body string true "数组 把列表的数组传过来"
// @Success 200 {string} "具体数据" // @Success 200 {string} "具体数据"
// @Failure 400 {object} md.Response "具体错误" // @Failure 400 {object} md.Response "具体错误"
// @Router /api/notice/aliyunSms/save [post] // @Router /api/notice/aliyunSms/save [post]
@@ -70,7 +70,7 @@ func AliyunSmsSaleBase(c *gin.Context) {
// @Accept json // @Accept json
// @Produce json // @Produce json
// @param Authorization header string true "验证参数Bearer和token空格拼接" // @param Authorization header string true "验证参数Bearer和token空格拼接"
// @Param req body true "数组 把列表的数组传过来"
// @Param req body string true "数组 把列表的数组传过来"
// @Success 200 {string} "具体数据" // @Success 200 {string} "具体数据"
// @Failure 400 {object} md.Response "具体错误" // @Failure 400 {object} md.Response "具体错误"
// @Router /api/notice/aliyunSms/sale/save [post] // @Router /api/notice/aliyunSms/sale/save [post]


+ 2
- 0
app/router/router.go View File

@@ -249,6 +249,8 @@ func rIm(r *gin.RouterGroup) {
r.POST("/addCustomerService", im.AddCustomerService) r.POST("/addCustomerService", im.AddCustomerService)
r.POST("/setCustomerServiceState", im.SetCustomerServiceState) r.POST("/setCustomerServiceState", im.SetCustomerServiceState)
r.POST("/updateCustomerServiceMemo", im.UpdateCustomerServiceMemo) r.POST("/updateCustomerServiceMemo", im.UpdateCustomerServiceMemo)
r.GET("/redPackageRecordsDetail", im.RedPackageRecordsDetail)
r.POST("/pageSendRedPackageOrd", im.PageSendRedPackageOrd)
} }


func rFinancialCenter(r *gin.RouterGroup) { func rFinancialCenter(r *gin.RouterGroup) {


+ 2226
- 793
docs/docs.go
File diff suppressed because it is too large
View File


+ 2226
- 793
docs/swagger.json
File diff suppressed because it is too large
View File


+ 964
- 12
docs/swagger.yaml
File diff suppressed because it is too large
View File


+ 1
- 1
go.mod View File

@@ -37,6 +37,7 @@ require (
code.fnuoos.com/EggPlanet/egg_system_rules.git v0.0.4-0.20241125081706-0915be3f4144 code.fnuoos.com/EggPlanet/egg_system_rules.git v0.0.4-0.20241125081706-0915be3f4144
code.fnuoos.com/go_rely_warehouse/zyos_go_es.git v1.0.1-0.20241118083738-0f22da9ba0be 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 code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git v0.0.5
github.com/360EntSecGroup-Skylar/excelize v1.4.1
github.com/aliyun/aliyun-oss-go-sdk v3.0.2+incompatible github.com/aliyun/aliyun-oss-go-sdk v3.0.2+incompatible
github.com/gin-contrib/sessions v1.0.1 github.com/gin-contrib/sessions v1.0.1
github.com/go-sql-driver/mysql v1.8.1 github.com/go-sql-driver/mysql v1.8.1
@@ -48,7 +49,6 @@ require (


require ( require (
filippo.io/edwards25519 v1.1.0 // indirect filippo.io/edwards25519 v1.1.0 // indirect
github.com/360EntSecGroup-Skylar/excelize v1.4.1 // indirect
github.com/BurntSushi/toml v1.4.0 // indirect github.com/BurntSushi/toml v1.4.0 // indirect
github.com/KyleBanks/depth v1.2.1 // indirect github.com/KyleBanks/depth v1.2.1 // indirect
github.com/PuerkitoBio/goquery v1.9.2 // indirect github.com/PuerkitoBio/goquery v1.9.2 // indirect


Loading…
Cancel
Save