Ver código fonte

update

master
dengbiao 1 dia atrás
pai
commit
778eb588ba
7 arquivos alterados com 19 adições e 19 exclusões
  1. +1
    -1
      app/hdl/comm/hdl_comm.go
  2. +1
    -1
      app/hdl/hdl_demo.go
  3. +4
    -4
      docs/docs.go
  4. +4
    -4
      docs/swagger.json
  5. +4
    -4
      docs/swagger.yaml
  6. +4
    -4
      k8s/ingress.yaml
  7. +1
    -1
      main.go

+ 1
- 1
app/hdl/comm/hdl_comm.go Ver arquivo

@@ -19,7 +19,7 @@ import (
// @param Authorization header string true "验证参数Bearer和token空格拼接"
// @Success 200 {string} "许可链接"
// @Failure 400 {object} md.Response "具体错误"
// @Router /api/comm/getOssUrl [get]
// @Router /api/v1/comm/getOssUrl [get]
func GetOssUrl(c *gin.Context) {
redisConn := cache.GetPool().Get()
sysCfgDb := implement.NewSysCfgDb(db.Db, redisConn)


+ 1
- 1
app/hdl/hdl_demo.go Ver arquivo

@@ -23,7 +23,7 @@ import (
// @Param req body interface{} true "用户名密码"
// @Success 200 {object} map[string]interface{} "token"
// @Failure 400 {object} md.Response "具体错误"
// @Router /api/demo [post]
// @Router /api/v1/demo [post]
func Demo(c *gin.Context) {
var args interface{}
if c.Request.Method == "GET" {


+ 4
- 4
docs/docs.go Ver arquivo

@@ -24,7 +24,7 @@ const docTemplate = `{
"host": "{{.Host}}",
"basePath": "{{.BasePath}}",
"paths": {
"/api/comm/getOssUrl": {
"/api/v1/comm/getOssUrl": {
"get": {
"description": "上传许可链接(获取)",
"consumes": [
@@ -62,7 +62,7 @@ const docTemplate = `{
}
}
},
"/api/demo": {
"/api/v1/demo": {
"post": {
"description": "Demo样例测试",
"consumes": [
@@ -277,8 +277,8 @@ const docTemplate = `{
// SwaggerInfo holds exported Swagger Info so clients can modify it
var SwaggerInfo = &swag.Spec{
Version: "1.0",
Host: "mp.xbkai.com",
BasePath: "/api",
Host: "ddxq.izhim.com",
BasePath: "/api/v1",
Schemes: []string{},
Title: "蛋蛋星球-APP客户端",
Description: "APP客户端-Api接口",


+ 4
- 4
docs/swagger.json Ver arquivo

@@ -15,10 +15,10 @@
},
"version": "1.0"
},
"host": "mp.xbkai.com",
"basePath": "/api",
"host": "ddxq.izhim.com",
"basePath": "/api/v1",
"paths": {
"/api/comm/getOssUrl": {
"/api/v1/comm/getOssUrl": {
"get": {
"description": "上传许可链接(获取)",
"consumes": [
@@ -56,7 +56,7 @@
}
}
},
"/api/demo": {
"/api/v1/demo": {
"post": {
"description": "Demo样例测试",
"consumes": [


+ 4
- 4
docs/swagger.yaml Ver arquivo

@@ -1,4 +1,4 @@
basePath: /api
basePath: /api/v1
definitions:
md.LoginReq:
properties:
@@ -62,7 +62,7 @@ definitions:
example: 具体错误原因
type: string
type: object
host: mp.xbkai.com
host: ddxq.izhim.com
info:
contact:
email: 1239118001@qq.com
@@ -76,7 +76,7 @@ info:
title: 蛋蛋星球-APP客户端
version: "1.0"
paths:
/api/comm/getOssUrl:
/api/v1/comm/getOssUrl:
get:
consumes:
- application/json
@@ -101,7 +101,7 @@ paths:
summary: 通用请求-对象存储-上传许可链接(获取)
tags:
- 对象存储
/api/demo:
/api/v1/demo:
post:
consumes:
- application/json


+ 4
- 4
k8s/ingress.yaml Ver arquivo

@@ -1,17 +1,17 @@
kind: Ingress
apiVersion: extensions/v1beta1
metadata:
name: egg-admin # ingress名称
name: egg-app # ingress名称
namespace: egg
annotations:
kubesphere.io/creator: dengbiao
spec:
rules:
- host: ddstar.izhim.cn # 使用的域名
- host: ddxq.izhim.com # 使用的域名
http:
paths:
- path: /
pathType: ImplementationSpecific
backend:
serviceName: egg-admin # 流量转发到的服务
servicePort: 80
serviceName: egg-app # 流量转发到的服务
servicePort: 4011

+ 1
- 1
main.go Ver arquivo

@@ -42,7 +42,7 @@ func init() {
// @license.name Apache 2.0
// @license.url http://www.apache.org/licenses/LICENSE-2.0.html
// @host ddxq.izhim.com
// @BasePath /api
// @BasePath /api/v1
func main() {
r := router.Init() // 创建路由



Carregando…
Cancelar
Salvar