Selaa lähdekoodia

更改 swag 文档

master
dengbiao 1 kuukausi sitten
vanhempi
commit
238131fe66
7 muutettua tiedostoa jossa 5480 lisäystä ja 1603 poistoa
  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 Näytä tiedosto

@@ -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 Näytä tiedosto

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


+ 2
- 0
app/router/router.go Näytä tiedosto

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

func rFinancialCenter(r *gin.RouterGroup) {


+ 2226
- 793
docs/docs.go
File diff suppressed because it is too large
Näytä tiedosto


+ 2226
- 793
docs/swagger.json
File diff suppressed because it is too large
Näytä tiedosto


+ 964
- 12
docs/swagger.yaml
File diff suppressed because it is too large
Näytä tiedosto


+ 1
- 1
go.mod Näytä tiedosto

@@ -37,6 +37,7 @@ require (
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_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/gin-contrib/sessions v1.0.1
github.com/go-sql-driver/mysql v1.8.1
@@ -48,7 +49,6 @@ require (

require (
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/KyleBanks/depth v1.2.1 // indirect
github.com/PuerkitoBio/goquery v1.9.2 // indirect


Ladataan…
Peruuta
Tallenna