hsun 3 years ago
parent
commit
7b05d79779
5 changed files with 2544 additions and 356 deletions
  1. 1 1
      controller/chart/chart_info.go
  2. 950 150
      docs/docs.go
  3. 948 147
      docs/swagger.json
  4. 645 57
      docs/swagger.yaml
  5. 0 1
      go.mod

+ 1 - 1
controller/chart/chart_info.go

@@ -30,7 +30,7 @@ import (
 // @Param Authorization	header string true "Bearer 31a165baebe6dec616b1f8f3207b4273"
 // @Accept  json
 // @Product json
-// @Param DateType query string false "时间段:1-00年至今; 2-10年至今; 3-15年至今; 4-21年至今; 5-指定区间; 6-指定年月至今; 7-18年至今; 8-19年至今; 9-20年至今
+// @Param DateType query string false "时间段:1-00年至今; 2-10年至今; 3-15年至今; 4-21年至今; 5-指定区间; 6-指定年月至今; 7-18年至今; 8-19年至今; 9-20年至今"
 // @Param ClassifyId query string false "图表分类ID"
 // @Success 200 {object} chart_info.ChartInfoDetailResp
 // @failure 400 {string} string "图表详情获取失败"

File diff suppressed because it is too large
+ 950 - 150
docs/docs.go


File diff suppressed because it is too large
+ 948 - 147
docs/swagger.json


+ 645 - 57
docs/swagger.yaml

@@ -1,5 +1,63 @@
 basePath: /
 definitions:
+  activity.ActivityList:
+    properties:
+      activityId:
+        type: integer
+      activityName:
+        description: 活动名称
+        type: string
+      activityState:
+        description: 活动状态 1-本周预告 2-进行中 3-已结束
+        type: integer
+      activityTypeId:
+        description: 活动类型ID
+        type: integer
+      activityTypeName:
+        description: 活动类型名称
+        type: string
+      city:
+        description: 城市
+        type: string
+      endTime:
+        description: 活动结束时间
+        type: string
+      firstActivityTypeId:
+        description: 第一级的活动类型ID
+        type: integer
+      firstActivityTypeName:
+        description: 第一级的活动类型名称
+        type: string
+      hasPlayBack:
+        description: 是否有回放
+        type: integer
+      hasRemind:
+        description: 是否已提醒
+        type: integer
+      registerState:
+        description: 报名状态 0-取消报名 1-已报名
+        type: integer
+      speaker:
+        description: 主讲人
+        type: string
+      speakerBackgroundPic:
+        description: 主讲人背景图
+        type: string
+      speakerHeadPic:
+        description: 主讲人头像
+        type: string
+      startTime:
+        description: 活动开始时间
+        type: string
+      voiceList:
+        description: 音频列表
+        items:
+          $ref: '#/definitions/yb_activity_voice.YbActivityVoice'
+        type: array
+      weekString:
+        description: 周几
+        type: string
+    type: object
   activity.RegisterCheckInfo:
     properties:
       msg:
@@ -18,13 +76,356 @@ definitions:
       type:
         type: string
     type: object
+  admin.Admin:
+    properties:
+      adminName:
+        type: string
+      authority:
+        description: 管理权限,0:无,1:部门负责人,2:小组负责人,3:超级管理员
+        type: integer
+      createdTime:
+        description: 创建时间
+        type: string
+      departmentId:
+        description: 部门id
+        type: integer
+      departmentName:
+        description: 部门名称
+        type: string
+      email:
+        type: string
+      enabled:
+        description: 1:有效,0:禁用
+        type: integer
+      groupId:
+        description: 分组id
+        type: integer
+      groupName:
+        description: 分组名称
+        type: string
+      lastLoginTime:
+        description: 最近登陆时间
+        type: string
+      lastUpdatedPasswordTime:
+        type: string
+      lastUpdatedTime:
+        type: string
+      mobile:
+        description: 手机号
+        type: string
+      password:
+        type: string
+      position:
+        description: 职位
+        type: string
+      realName:
+        type: string
+      role:
+        description: 用户角色
+        type: string
+      roleId:
+        description: 角色id
+        type: integer
+      roleName:
+        description: 角色名称
+        type: string
+      roleType:
+        description: 角色类型:1需要录入指标,0:不需要
+        type: integer
+      roleTypeCode:
+        description: 角色编码
+        type: string
+    type: object
+  chart_classify.ChartClassifyView:
+    properties:
+      chartClassifyId:
+        type: integer
+      chartClassifyName:
+        type: string
+      parentId:
+        type: integer
+    type: object
+  chart_edb_mapping.ChartEdbInfoMapping:
+    properties:
+      chartColor:
+        type: string
+      chartEdbMappingId:
+        type: integer
+      chartInfoId:
+        type: integer
+      chartStyle:
+        type: string
+      chartWidth:
+        type: number
+      dataList: {}
+      edbCode:
+        type: string
+      edbInfoId:
+        type: integer
+      edbInfoType:
+        type: integer
+      edbName:
+        type: string
+      edbType:
+        type: integer
+      endDate:
+        type: string
+      frequency:
+        type: string
+      isAxis:
+        type: integer
+      isOrder:
+        type: boolean
+      latestDate:
+        type: string
+      latestValue:
+        type: number
+      leadUnit:
+        type: string
+      leadValue:
+        type: integer
+      maxData:
+        type: number
+      minData:
+        type: number
+      modifyTime:
+        type: string
+      source:
+        type: integer
+      sourceName:
+        type: string
+      startDate:
+        type: string
+      uniqueCode:
+        type: string
+      unit:
+        type: string
+    type: object
+  chart_info.ChartInfoDetailResp:
+    properties:
+      chartInfo:
+        $ref: '#/definitions/chart_info.ChartInfoView'
+      edbInfoList:
+        items:
+          $ref: '#/definitions/chart_edb_mapping.ChartEdbInfoMapping'
+        type: array
+    type: object
+  chart_info.ChartInfoView:
+    properties:
+      calendar:
+        type: string
+      chartClassify:
+        items:
+          $ref: '#/definitions/chart_classify.ChartClassifyView'
+        type: array
+      chartClassifyId:
+        type: integer
+      chartClassifyName:
+        type: string
+      chartImage:
+        type: string
+      chartInfoId:
+        type: integer
+      chartName:
+        type: string
+      chartType:
+        type: integer
+      createTime:
+        type: string
+      dateType:
+        type: integer
+      edbEndDate:
+        type: string
+      edbInfoIds:
+        type: string
+      endDate:
+        type: string
+      isAdd:
+        type: boolean
+      isSetName:
+        type: integer
+      leftMax:
+        type: string
+      leftMin:
+        type: string
+      modifyTime:
+        type: string
+      myChartClassifyId:
+        type: string
+      myChartId:
+        type: integer
+      rightMax:
+        type: string
+      rightMin:
+        type: string
+      seasonEndDate:
+        type: string
+      seasonStartDate:
+        type: string
+      sort:
+        type: integer
+      startDate:
+        type: string
+      sysUserId:
+        type: integer
+      sysUserRealName:
+        type: string
+      uniqueCode:
+        type: string
+    type: object
+  chart_info.ChartSaveItem:
+    properties:
+      chartColor:
+        type: string
+      chartStyle:
+        type: string
+      chartWidth:
+        type: number
+      edbInfoId:
+        type: integer
+      edbInfoType:
+        type: integer
+      isAxis:
+        type: integer
+      isOrder:
+        type: boolean
+      leadUnit:
+        type: string
+      leadValue:
+        type: integer
+      maxData:
+        type: number
+      minData:
+        type: number
+    type: object
+  chart_info.SaveChartInfoReq:
+    properties:
+      calendar:
+        type: string
+      chartEdbInfoList:
+        items:
+          $ref: '#/definitions/chart_info.ChartSaveItem'
+        type: array
+      chartInfoId:
+        type: integer
+      dateType:
+        type: integer
+      endDate:
+        type: string
+      leftMax:
+        type: string
+      leftMin:
+        type: string
+      rightMax:
+        type: string
+      rightMin:
+        type: string
+      seasonEndDate:
+        type: string
+      seasonStartDate:
+        type: string
+      startDate:
+        type: string
+    type: object
   logic.ApplyVariety:
     properties:
       name:
         type: string
+      permission_name:
+        type: string
       pic_url:
         type: string
     type: object
+  my_chart.MyChartClassifyListResp:
+    properties:
+      private_classify:
+        items:
+          $ref: '#/definitions/my_chart_classify.MyChartClassify'
+        type: array
+      public_classify:
+        items:
+          $ref: '#/definitions/my_chart_classify.MyChartClassify'
+        type: array
+    type: object
+  my_chart.MyChartList:
+    properties:
+      calendar:
+        type: string
+      chartClassifyId:
+        type: integer
+      chartImage:
+        type: string
+      chartInfoId:
+        type: integer
+      chartName:
+        type: string
+      chartType:
+        type: integer
+      createTime:
+        type: string
+      dateType:
+        type: integer
+      edbEndDate:
+        type: string
+      edbInfoIds:
+        type: string
+      endDate:
+        type: string
+      isAdd:
+        type: boolean
+      isSetName:
+        type: integer
+      modifyTime:
+        type: string
+      myChartClassifyId:
+        type: string
+      myChartClassifyName:
+        type: string
+      myChartId:
+        type: integer
+      seasonEndDate:
+        type: string
+      seasonStartDate:
+        type: string
+      sort:
+        type: integer
+      startDate:
+        type: string
+      sysUserId:
+        type: integer
+      sysUserRealName:
+        type: string
+      uniqueCode:
+        type: string
+    type: object
+  my_chart_classify.MyChartClassify:
+    properties:
+      adminId:
+        description: 用户id
+        type: integer
+      companyPublicTime:
+        description: 用户可见公开时间
+        type: string
+      createTime:
+        type: string
+      isCompanyPublic:
+        description: 是否用户可见:0-否 1-是
+        type: integer
+      isPublic:
+        description: 是否所有人可见,0:仅自己可见,1:所有人可见
+        type: integer
+      modifyTime:
+        type: string
+      myChartClassifyName:
+        description: 分类名称
+        type: string
+      publicTime:
+        description: 公开时间
+        type: string
+      sort:
+        description: 排序字段,值越小,越靠前
+        type: integer
+    type: object
   response.LoginResp:
     properties:
       authorization:
@@ -44,6 +445,8 @@ definitions:
         type: string
       real_name:
         type: string
+      source:
+        type: integer
     type: object
   user.CompanyPermission:
     properties:
@@ -56,10 +459,16 @@ definitions:
     type: object
   user.Detail:
     properties:
+      admin_info:
+        $ref: '#/definitions/admin.Admin'
       company_name:
         type: string
       email:
         type: string
+      is_inner:
+        type: integer
+      is_suspend:
+        type: integer
       mobile:
         type: string
       permission_list:
@@ -68,6 +477,10 @@ definitions:
         type: array
       real_name:
         type: string
+      seal_mobile:
+        type: string
+      seal_name:
+        type: string
       status:
         type: string
     type: object
@@ -184,6 +597,9 @@ definitions:
       reportLink:
         description: 报告链接
         type: string
+      reportName:
+        description: 报告名称
+        type: string
       singaporeTel:
         description: 新加坡拨入
         type: string
@@ -206,59 +622,6 @@ definitions:
         description: 周几
         type: string
     type: object
-  yb_activity.ActivityItem:
-    properties:
-      activityId:
-        type: integer
-      activityName:
-        description: 活动名称
-        type: string
-      activityState:
-        description: 活动状态 1-本周预告 2-进行中 3-已结束
-        type: integer
-      activityTypeId:
-        description: 活动类型ID
-        type: integer
-      activityTypeName:
-        description: 活动类型名称
-        type: string
-      city:
-        description: 城市
-        type: string
-      endTime:
-        description: 活动结束时间
-        type: string
-      firstActivityTypeId:
-        description: 第一级的活动类型ID
-        type: integer
-      firstActivityTypeName:
-        description: 第一级的活动类型名称
-        type: string
-      hasPlayBack:
-        description: 是否有回放
-        type: integer
-      hasRemind:
-        description: 是否已提醒
-        type: integer
-      registerState:
-        description: 报名状态 0-取消报名 1-已报名
-        type: integer
-      speaker:
-        description: 主讲人
-        type: string
-      speakerBackgroundPic:
-        description: 主讲人背景图
-        type: string
-      speakerHeadPic:
-        description: 主讲人头像
-        type: string
-      startTime:
-        description: 活动开始时间
-        type: string
-      weekString:
-        description: 周几
-        type: string
-    type: object
   yb_activity_voice.YbActivityVoice:
     properties:
       activityId:
@@ -388,7 +751,7 @@ paths:
     get:
       consumes:
       - application/json
-      description: 获取报告详情
+      description: 获取活动详情
       parameters:
       - description: Bearer 31a165baebe6dec616b1f8f3207b4273
         in: header
@@ -411,9 +774,39 @@ paths:
             type: string
       security:
       - ApiKeyAuth: []
-      summary: 获取报告详情
+      summary: 获取活动详情
       tags:
-      - 报告接口
+      - 活动模块
+  /activity/getActivityShareImg:
+    get:
+      consumes:
+      - application/json
+      description: 生成活动分享图片
+      parameters:
+      - description: Bearer 31a165baebe6dec616b1f8f3207b4273
+        in: header
+        name: Authorization
+        required: true
+        type: string
+      - description: 活动ID
+        in: query
+        name: activity_id
+        required: true
+        type: integer
+      responses:
+        "200":
+          description: 获取成功
+          schema:
+            type: string
+        "400":
+          description: 获取失败
+          schema:
+            type: string
+      security:
+      - ApiKeyAuth: []
+      summary: 生成活动分享图片
+      tags:
+      - 活动模块
   /activity/getActivityVoices:
     get:
       consumes:
@@ -469,6 +862,10 @@ paths:
         in: query
         name: activity_type
         type: integer
+      - description: 是否查看仅有权限的 0-否 1-是
+        in: query
+        name: has_permission
+        type: integer
       - description: 当前页码
         in: query
         name: page
@@ -482,7 +879,7 @@ paths:
           description: OK
           schema:
             items:
-              $ref: '#/definitions/yb_activity.ActivityItem'
+              $ref: '#/definitions/activity.ActivityList'
             type: array
         "400":
           description: 活动获取失败
@@ -527,6 +924,143 @@ paths:
       summary: 报名活动
       tags:
       - 活动模块
+  /chart/editChartInfo:
+    post:
+      consumes:
+      - application/json
+      description: 编辑图表信息
+      parameters:
+      - description: Bearer 31a165baebe6dec616b1f8f3207b4273
+        in: header
+        name: Authorization
+        required: true
+        type: string
+      - description: 请求参数
+        in: body
+        name: data
+        required: true
+        schema:
+          $ref: '#/definitions/chart_info.SaveChartInfoReq'
+      responses:
+        "200":
+          description: 操作成功
+          schema:
+            type: string
+        "400":
+          description: 操作失败
+          schema:
+            type: string
+      security:
+      - ApiKeyAuth: []
+      summary: 编辑图表信息
+      tags:
+      - 图库模块
+  /chart/getChartChassify:
+    get:
+      consumes:
+      - application/json
+      description: 获取图表分类列表
+      parameters:
+      - description: Bearer 31a165baebe6dec616b1f8f3207b4273
+        in: header
+        name: Authorization
+        required: true
+        type: string
+      - description: 分类名称关键词
+        in: query
+        name: Keywords
+        type: string
+      responses:
+        "200":
+          description: OK
+          schema:
+            $ref: '#/definitions/my_chart.MyChartClassifyListResp'
+        "400":
+          description: 分类列表获取失败
+          schema:
+            type: string
+      security:
+      - ApiKeyAuth: []
+      summary: 获取图表分类
+      tags:
+      - 图库模块
+  /chart/getChartInfoDetail:
+    get:
+      consumes:
+      - application/json
+      description: 获取图表详情
+      parameters:
+      - description: Bearer 31a165baebe6dec616b1f8f3207b4273
+        in: header
+        name: Authorization
+        required: true
+        type: string
+      - description: 时间段:1-00年至今; 2-10年至今; 3-15年至今; 4-21年至今; 5-指定区间; 6-指定年月至今; 7-18年至今;
+          8-19年至今; 9-20年至今
+        in: query
+        name: DateType
+        type: string
+      - description: 图表分类ID
+        in: query
+        name: ClassifyId
+        type: string
+      responses:
+        "200":
+          description: OK
+          schema:
+            $ref: '#/definitions/chart_info.ChartInfoDetailResp'
+        "400":
+          description: 图表详情获取失败
+          schema:
+            type: string
+      security:
+      - ApiKeyAuth: []
+      summary: 获取图表详情
+      tags:
+      - 图库模块
+  /chart/getChartList:
+    get:
+      consumes:
+      - application/json
+      description: 获取图表分类列表
+      parameters:
+      - description: Bearer 31a165baebe6dec616b1f8f3207b4273
+        in: header
+        name: Authorization
+        required: true
+        type: string
+      - description: 图表名称关键词
+        in: query
+        name: Keywords
+        type: string
+      - description: 图表分类ID
+        in: query
+        name: ClassifyId
+        type: string
+      - description: 当前页页码,从1开始
+        in: query
+        name: Page
+        type: integer
+      - description: 每页数据量
+        in: query
+        name: Limit
+        type: integer
+      responses:
+        "200":
+          description: OK
+          schema:
+            items:
+              $ref: '#/definitions/my_chart.MyChartList'
+            type: array
+        "400":
+          description: 图库列表获取失败
+          schema:
+            type: string
+      security:
+      - ApiKeyAuth: []
+      summary: 获取图表分类
+      tags:
+      - 图库模块
   /public/get_apply_variety_list:
     get:
       consumes:
@@ -583,6 +1117,36 @@ paths:
       summary: 文件上传
       tags:
       - 公共模块
+  /report/research_report:
+    get:
+      consumes:
+      - application/json
+      description: 获取报告详情
+      parameters:
+      - description: Bearer 31a165baebe6dec616b1f8f3207b4273
+        in: header
+        name: Authorization
+        required: true
+        type: string
+      - description: 活动ID
+        in: query
+        name: research_report_id
+        required: true
+        type: integer
+      responses:
+        "200":
+          description: OK
+          schema:
+            $ref: '#/definitions/yb_activity.ActivityDetail'
+        "400":
+          description: 获取失败
+          schema:
+            type: string
+      security:
+      - ApiKeyAuth: []
+      summary: 获取报告详情
+      tags:
+      - 报告接口
   /user/apply:
     post:
       consumes:
@@ -779,6 +1343,30 @@ paths:
       summary: 用户登录
       tags:
       - 用户模块
+  /wechat/getEncryptInfo:
+    post:
+      consumes:
+      - application/json
+      description: 消息解密
+      parameters:
+      - description: 加密数据
+        in: query
+        name: encryptedData
+        required: true
+        type: string
+      - description: 加密算法初始向量
+        in: query
+        name: iv
+        required: true
+        type: string
+      responses:
+        "200":
+          description: 获取成功
+          schema:
+            type: string
+      summary: 消息解密
+      tags:
+      - 微信相关接口
   /wechat/login:
     get:
       consumes:

+ 0 - 1
go.mod

@@ -3,7 +3,6 @@ module hongze/hongze_yb
 go 1.15
 
 require (
-	github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751
 	github.com/aliyun/aliyun-oss-go-sdk v1.9.8
 	github.com/baiyubin/aliyun-sts-go-sdk v0.0.0-20180326062324-cfa1a18b161f // indirect
 	github.com/fsnotify/fsnotify v1.5.1

Some files were not shown because too many files changed in this diff