***************************************其它********************************************
发版模块后端：1 cultural-tourism-service  2 cultural-tourism-open-api
前端模块: 1 mgnt
gateway模块 更新nacos 后，需要重启
***************************************Nacos********************************************

sc-gateway.yml

spring:
  cloud:
    gateway:
      discovery:
        locator:
          lowerCaseServiceId: true
          enabled: true
      routes:
        - id: cultural-tourism-open-api
          uri: lb://cultural-tourism-open-api
          predicates:
            - Path=/cultural-tourism-open-api/**
          filters:
            - StripPrefix=1
        - id: cultural-tourism-service
          uri: lb://cultural-tourism-service
          predicates:
            - Path=/cultural-tourism-service/**
          filters:
            - StripPrefix=1

iking:
  swagger-agg:
    generate-routes: station-web,user,file,station-admin,station-maintenance,station-message,auth,station-openApi,station-ops,station-videoApi,station-thirdOpenApi,cultural-tourism-open-api,cultural-tourism-service
    ## 开启Swagger的Basic认证功能,默认是false

  security:
    ignore:
      # 忽略认证的地址
      httpUrls: >
        /cultural-tourism-open-api/tourism/open/api/sys/login


cultural-tourism-service.yml

spring:
  datasource:
    dynamic:
      primary: master
      strict: false
      datasource:
        master:
          url: jdbc:mysql://${iking.datasource.ip}:${iking.datasource.port}/hushi_cultural_tourism?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&useSSL=false
          username: ${iking.datasource.username}
          password: ${iking.datasource.password}
          driver-class-name: com.mysql.cj.jdbc.Driver
        mgnt:
          url: jdbc:mysql://${iking.datasource.ip}:${iking.datasource.port}/ikingtec_power_release_dev?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&useSSL=false
          username: ${iking.datasource.username}
          password: ${iking.datasource.password}
          driver-class-name: com.mysql.cj.jdbc.Driver
  servlet:
    multipart:
      max-file-size: 50MB
      max-request-size: 50MB

mybatis-plus:
  mapper-locations: classpath:/mapper/*Mapper.xml
  #实体扫描，多个package用逗号或者分号分隔
  typeAliasesPackage: com.ikingtec.tourism.model
  global-config:
    db-config:
      id-type: auto
    refresh: true
  configuration:
    map-underscore-to-camel-case: true
    cache-enabled: false
    call-setters-on-nulls: true
    log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl
    #log-impl: org.apache.ibatis.logging.stdout.StdOutImpl

iking:
  swagger:
    enabled: true
    title: 文旅服务
    description: 文旅服务接口文档1
    version: 1.0
    base-package: com.ikingtec.tourism.controller



cultural-tourism-open-api.yml

spring:
  datasource:
    dynamic:
      primary: master
      strict: false
      datasource:
        master:
          url: jdbc:mysql://${iking.datasource.ip}:${iking.datasource.port}/hushi_cultural_tourism?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&useSSL=false
          username: ${iking.datasource.username}
          password: ${iking.datasource.password}
          driver-class-name: com.mysql.cj.jdbc.Driver
        mgnt:
          url: jdbc:mysql://${iking.datasource.ip}:${iking.datasource.port}/ikingtec_power_release_dev?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&useSSL=false
          username: ${iking.datasource.username}
          password: ${iking.datasource.password}
          driver-class-name: com.mysql.cj.jdbc.Driver

mybatis-plus:
  mapper-locations: classpath:/mapper/*Mapper.xml
  #实体扫描，多个package用逗号或者分号分隔
  typeAliasesPackage: com.ikingtec.tourism.model
  global-config:
    db-config:
      id-type: auto
    refresh: true
  configuration:
    map-underscore-to-camel-case: true
    cache-enabled: false
    call-setters-on-nulls: true
    log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl
    #log-impl: org.apache.ibatis.logging.stdout.StdOutImpl

iking:
  swagger:
    enabled: true
    title: 文旅服务
    description: 文旅服务移动端接口文档1
    version: 1.0
    base-package: com.ikingtec.tourism.api.controller


***************************************数据库********************************************
-- 新建主播表
create table ik_tourism_streamer
(
   id                   bigint unsigned not null auto_increment comment '主键ID',
   user_id              bigint comment '用户ID',
   user_name            varchar(50) comment '用户名',
   real_name            varchar(50) comment '真实姓名',
   mobile               varchar(20) comment '手机号',
   streamer_type        int default 1 comment '主播类型（1：主播，2：副播）',
   created_at           timestamp default CURRENT_TIMESTAMP comment '创建时间',
   create_user_id       bigint comment '创建人员ID',
   updated_at           timestamp default CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP comment '更新时间',
   update_user_id       bigint comment '更新人员ID',
   deleted              int default 0 comment '删除标识（1：已删除，0：未删除）',
   primary key (id)
) comment '文旅/主播';

-- 新建标签表
create table ik_tourism_tag
(
   id                   bigint unsigned not null auto_increment comment '主键ID',
   tag_code             varchar(32) comment '标签编码',
   tag_name             varchar(200) comment '标签名称',
   order_number         int default 1 comment '排序号',
   created_at           timestamp default CURRENT_TIMESTAMP comment '创建时间',
   create_user_id       bigint comment '创建人员ID',
   updated_at           timestamp default CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP comment '更新时间',
   update_user_id       bigint comment '更新人员ID',
   deleted              int default 0 comment '删除标识（1：已删除，0：未删除）',
   primary key (id)
)comment '文旅/标签';

-- 新建景点标签表
create table ik_tourism_scenic_spot_tag
(
   id                   bigint unsigned not null auto_increment comment '主键ID',
   tag_code             varchar(32) comment '标签编码',
   scenic_spot_id       bigint comment '景点ID',
   created_at           timestamp default CURRENT_TIMESTAMP comment '创建时间',
   primary key (id)
)comment '文旅/景点标签';

-- 新建热门景点表
create table ik_tourism_popular_scenic_spot
(
   id                   bigint unsigned not null auto_increment comment '主键ID',
   scenic_spot_id       bigint comment '景点ID',
   order_number         int default 1 comment '排序号',
   created_at           timestamp default CURRENT_TIMESTAMP comment '创建时间',
   create_user_id       bigint comment '创建人员ID',
   updated_at           timestamp default CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP comment '更新时间',
   update_user_id       bigint comment '更新人员ID',
   deleted              int default 0 comment '删除标识（1：已删除，0：未删除）',
   primary key (id)
)comment '文旅/热门景点';

-- 新建热门标签表
create table ik_tourism_popular_tag
(
   id                   bigint unsigned not null auto_increment comment '主键ID',
   tag_code             varchar(32) comment '标签编码',
   order_number         int default 1 comment '排序号',
   created_at           timestamp default CURRENT_TIMESTAMP comment '创建时间',
   create_user_id       bigint comment '创建人员ID',
   updated_at           timestamp default CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP comment '更新时间',
   update_user_id       bigint comment '更新人员ID',
   deleted              int default 0 comment '删除标识（1：已删除，0：未删除）',
   primary key (id)
) comment '文旅/热门标签';

-- 新建双轴视频特色景观标签表
create table ik_tourism_biax_video_feature_tag
(
   id                   bigint unsigned not null auto_increment comment '主键ID',
   tag_id               bigint comment '标签ID',
   tag_code             varchar(32),
   biax_video_id        bigint comment '双轴视频ID',
   created_at           timestamp default CURRENT_TIMESTAMP comment '创建时间',
   primary key (id)
) comment '文旅/双轴视频特色景观标签';

-- 新建全景照片特色景观标签表
create table ik_tourism_panorama_photo_feature_tag
(
   id                   bigint unsigned not null auto_increment comment '主键ID',
   tag_id               bigint comment '标签ID',
   tag_code             varchar(32),
   panorama_photo_id    bigint comment '全景照片ID',
   created_at           timestamp default CURRENT_TIMESTAMP comment '创建时间',
   primary key (id)
) comment '文旅/全景照片特色景观标签';

-- 新建景点表
create table ik_tourism_scenic_spot
(
   id                   bigint unsigned not null auto_increment comment '主键ID',
   scenic_spot_name     varchar(128) comment '名称',
   scenic_spot_grade    varchar(50) comment '等级',
   scenic_spot_about    varchar(2000) comment '简介',
   scenic_spot_address  varchar(300) comment '地址',
   province             varchar(128) comment '地址-省',
   city                 varchar(128) comment '地址-市',
   scenic_area          varchar(128) comment '地址-景区',
   longitude            decimal(10,7) comment '经度',
   latitude             decimal(10,7) comment '纬度',
   altitude             decimal(10,7) comment '高度',
   hot_score            decimal(4,1) comment '热度',
   created_at           timestamp default CURRENT_TIMESTAMP comment '创建时间',
   create_user_id       bigint comment '创建人员ID',
   updated_at           timestamp default CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP comment '更新时间',
   update_user_id       bigint comment '更新人员ID',
   deleted              int default 0 comment '删除标识（1：已删除，0：未删除）',
   province_code        varchar(32) comment '地址-省编码',
   city_code            varchar(32) comment '地址-市编码',
   scenic_area_code     varchar(32) comment '地址-景区编码',
   introduce_audio_file varchar(1000) comment '语音介绍文件',
   virtual_fly_photo_file varchar(1000) comment '虚拟浏览入口视频文件',
   photo_file           varchar(1000) comment '卡片图文件',
   org_code             varchar(32) comment '机构编码',
   org_name             varchar(128) comment '机构名称',
   primary key (id)
) comment '文旅/景点';

-- 新建景点精选图片表
create table ik_tourism_featured_photo
(
   id                   bigint unsigned not null auto_increment comment '主键ID',
   scenic_spot_id       bigint comment '景点ID',
   photo_file           varchar(1000) comment '照片文件',
   order_number         int default 1 comment '排序号',
   created_at           timestamp default CURRENT_TIMESTAMP comment '创建时间',
   primary key (id)
) comment '文旅/景点精选图片';

-- 新建双轴视频表
create table ik_tourism_biax_video
(
   id                   bigint unsigned not null auto_increment comment '主键ID',
   biax_video_name      varchar(128) comment '双轴视频名称',
   scenic_spot_id       bigint comment '景点ID',
   route_id             bigint comment '航线ID',
   remark               varchar(512) comment '备注',
   video_mins           varchar(50) comment '视频时长',
   up_tag_position      varchar(50) comment '上轴标记点位置',
   longitude            decimal(10,7) comment '经度',
   latitude             decimal(10,7) comment '纬度',
   order_number         int default 1 comment '排序号',
   created_at           timestamp default CURRENT_TIMESTAMP comment '创建时间',
   create_user_id       bigint comment '创建人员ID',
   updated_at           timestamp default CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP comment '更新时间',
   update_user_id       bigint comment '更新人员ID',
   deleted              int default 0 comment '删除标识（1：已删除，0：未删除）',
   video_file           varchar(1000) comment '视频文件',
   device_sn            varchar(50) comment '设备SN',
   primary key (id)
) comment '文旅/双轴视频';

-- 新建全景照片表
create table ik_tourism_panorama_photo
(
   id                   bigint unsigned not null auto_increment comment '主键ID',
   scenic_spot_id       bigint comment '景点ID',
   photo_name           varchar(128) comment '照片名称',
   remark               varchar(512) comment '备注',
   longitude            decimal(10,7) comment '经度',
   latitude             decimal(10,7) comment '纬度',
   order_number         int default 1 comment '排序号',
   created_at           timestamp default CURRENT_TIMESTAMP comment '创建时间',
   create_user_id       bigint comment '创建人员ID',
   updated_at           timestamp default CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP comment '更新时间',
   update_user_id       bigint comment '更新人员ID',
   deleted              int default 0 comment '删除标识（1：已删除，0：未删除）',
   primary key (id)
) comment '文旅/全景照片';

-- 新建全景照片标记表
create table ik_tourism_panorama_photo_tag
(
   id                   bigint unsigned not null auto_increment comment '主键ID',
   panorama_photo_id    bigint comment '全景照片ID',
   tag_name             varchar(128) comment '标记名称',
   photo_name           varchar(128) comment '照片名称',
   photo_file           varchar(1000) comment '照片文件',
   created_at           timestamp default CURRENT_TIMESTAMP comment '创建时间',
   primary key (id)
) comment '文旅/全景照片标记';

-- 新建景点与设备关系表
create table ik_tourism_scenic_spot_device
(
   id                   bigint unsigned not null auto_increment comment '主键ID',
   scenic_spot_id       bigint comment '景点ID',
   device_sn            varchar(50) comment '设备SN',
   created_at           timestamp default CURRENT_TIMESTAMP comment '创建时间',
   primary key (id)
) comment '文旅/景点与设备关系';

-- 新建我的收藏表
create table ik_tourism_my_favorite
(
   id                   bigint unsigned not null auto_increment comment '主键ID',
   scenic_spot_id       bigint comment '景点ID',
   user_id              bigint comment '用户ID',
   remark               varchar(512) comment '备注',
   created_at           timestamp default CURRENT_TIMESTAMP comment '创建时间',
   updated_at           timestamp default CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP comment '更新时间',
   deleted              int default 0 comment '删除标识（1：已删除，0：未删除）',
   primary key (id)
) comment '文旅/我的收藏';

-- 新建双轴视频上轴标记表
create table ik_tourism_biax_video_up_tag
(
   id                   bigint unsigned not null auto_increment comment '主键ID',
   biax_video_id        bigint comment '双轴视频ID',
   tag_name             varchar(128) comment '标记名称',
   order_number         int default 1 comment '排序号',
   created_at           timestamp default CURRENT_TIMESTAMP comment '创建时间',
   primary key (id)
) comment '文旅/双轴视频上轴标记';

-- 新建双轴视频下轴标记表
create table ik_tourism_biax_video_down_tag
(
   id                   bigint unsigned not null auto_increment comment '主键ID',
   biax_video_id        bigint comment '双轴视频ID',
   tag_position         varchar(50) comment '标记位置',
   tag_name             varchar(128) comment '标记名称',
   order_number         int default 1 comment '排序号',
   created_at           timestamp default CURRENT_TIMESTAMP comment '创建时间',
   primary key (id)
) comment '文旅/双轴视频下轴标记';

-- 新建景点精选航线表
create table ik_tourism_featured_route
(
   id                   bigint unsigned not null auto_increment comment '主键ID',
   scenic_spot_id       bigint comment '景点ID',
   route_id             bigint comment '航线ID',
   route_file           varchar(1000) comment '航线视频文件',
   order_number         int default 1 comment '排序号',
   created_at           timestamp default CURRENT_TIMESTAMP comment '创建时间',
   primary key (id)
) comment '文旅/景点精选航线';



################################# mgnt操作 #################################

1 创建：智慧文旅 目录

2 创建：主播权限配置 菜单
菜单名称：主播权限配置   上级菜单：智慧文旅   菜单路由：/tourism/powerConfiguration/index      菜单图标： 选择系统菜单

3 创建：热门配置 菜单
菜单名称：热门配置   上级菜单：智慧文旅   菜单路由：/tourism/PopularConfig/index      菜单图标： 选择系统菜单

4 创建：标签管理 菜单
菜单名称：标签管理  上级菜单：智慧文旅   菜单路由：/tourism/LabelManagement/index     菜单图标： 选择系统菜单

5 创建：全景照片管理 菜单
菜单名称：全景照片管理  上级菜单：智慧文旅   菜单路由：/tourism/PhotoManagement/index     菜单图标： 选择系统菜单

6 创建：双轴视频管理 菜单
菜单名称：双轴视频管理  上级菜单：智慧文旅   菜单路由：/tourism/VideoManagement/index     菜单图标： 选择系统菜单

6 创建：景点管理 菜单
菜单名称：景点管理  上级菜单：智慧文旅   菜单路由：/tourism/scenicSpot/index     菜单图标： 选择系统菜单

