master
commit
8c3778ca78
13 changed files with 321 additions and 95 deletions
@ -0,0 +1,90 @@ |
||||
server: |
||||
port: 8080 |
||||
spring: |
||||
application: |
||||
name: teaching-backend |
||||
servlet: |
||||
multipart: |
||||
enabled: true |
||||
max-file-size: 10MB |
||||
max-request-size: 10MB |
||||
neo4j: |
||||
uri: bolt://10.100.200.177:7687 |
||||
authentication: |
||||
username: neo4j # 连接Neo4j数据P库的用户名 |
||||
password: neo4j123456 # 连接Neo4j数据库的密码 |
||||
mvc: |
||||
pathmatch: |
||||
matching-strategy: ant_path_matcher |
||||
datasource: |
||||
driver-class-name: com.mysql.cj.jdbc.Driver |
||||
url: jdbc:mysql://10.100.200.177:3306/teaching_db |
||||
username: root |
||||
password: root |
||||
# url: jdbc:mysql://rm-bp189rd5595301145do.mysql.rds.aliyuncs.com:3306/teaching_db |
||||
# username: root123 |
||||
# password: Zjh@111111 |
||||
mybatis: |
||||
configuration: |
||||
map-underscore-to-camel-case: true |
||||
mapper-locations: |
||||
- classpath:mapper/*.xml |
||||
- classpath*:com/**/mapper/*.xml |
||||
|
||||
jwt: |
||||
tokenHeader: Authorization |
||||
secret: mySecret |
||||
expiration: 604800 |
||||
tokenHead: Bearer |
||||
|
||||
knife4j: |
||||
enable: true |
||||
openapi: |
||||
title: 111 |
||||
description: "123" |
||||
concat: zjh |
||||
version: v1.0.0 |
||||
group: |
||||
default: |
||||
group-name: default |
||||
api-rule: package |
||||
api-rule-resources: |
||||
- com.teaching.backend.controller |
||||
secure: |
||||
ignored: |
||||
urls: |
||||
# - /swagger-ui/ |
||||
# - /swagger-resources/** |
||||
# - /**/v2/api-docs |
||||
# - /**/*.html |
||||
# - /**/*.js |
||||
# - /**/*.css |
||||
# - /**/*.png |
||||
# - /**/*.map |
||||
# - /favicon.ico |
||||
# - /actuator/** |
||||
# - /druid/** |
||||
# - /user/** |
||||
# - /user/login |
||||
# - /user/register |
||||
# - /user/info |
||||
# - /user/logout |
||||
# - /minio/upload |
||||
- /** |
||||
|
||||
|
||||
aliyun: |
||||
oss: |
||||
endpoint: oss-cn-wuhan-lr.aliyuncs.com |
||||
accessKeyId: LTAI5tFkdu3y5WddxbjgaG2F |
||||
accessKeySecret: 1xUchxUTlmUBoTV5JQIrKsVjSkmsLF |
||||
bucketName: ceshi132132 |
||||
|
||||
minio: |
||||
endpoint: http://39.106.16.162:9090 #MinIO服务所在地址 |
||||
bucketName: teaching # 存储桶名称 |
||||
accessKey: minioadmin # 访问的key |
||||
secretKey: minioadmin # 访问的秘钥 |
||||
|
||||
filename: |
||||
maxlength: 10 |
@ -1,5 +1,6 @@ |
||||
# 变量必须以 VITE_ 为前缀才能暴露给外部读取 |
||||
NODE_ENV = 'development' |
||||
VITE_APP_TITLE = '无糖运营平台' |
||||
VITE_APP_BASE_API = 'http://127.0.0.1:8080' |
||||
# VITE_APP_BASE_API = 'http://39.106.16.162:8080' |
||||
VITE_APP_BASE_API = 'http://127.0.0.1:8080' |
||||
# VITE_APP_BASE_API = 'http://39.106.16.162:8080' |
||||
|
||||
|
@ -0,0 +1,26 @@ |
||||
import request from '@/utils/requset' |
||||
//获取栏目
|
||||
/** |
||||
* queryCategory |
||||
* @returns |
||||
*/ |
||||
export function queryCategory() { |
||||
return request.get(`/api/cms-category/query`); |
||||
} |
||||
//获取文章
|
||||
/** |
||||
* queryEssay |
||||
* @param {string} category_id category_id |
||||
* @returns |
||||
*/ |
||||
export function queryEssay(category_id) { |
||||
return request.get(`/api/cms-essay/query?category_id=${category_id}`); |
||||
} |
||||
//修改新闻
|
||||
export function editEssay(params) { |
||||
return request.put(`/api/cms-essay/edit`, params); |
||||
} |
||||
//根据id查询关于我们文章
|
||||
export function queryEssayById(essay_id) { |
||||
return request.get(`/api/cms-essay/queryessaybyid?essay_id=${essay_id}`); |
||||
} |
Loading…
Reference in new issue