Jethro Lin
de2c68aaf6
clinet fix
2024-12-09 14:17:29 +08:00
Jethro Lin
e900ebc957
bug fix for login and llm providers
2024-12-05 14:35:21 +08:00
Jethro Lin
24daddff7b
fix route
2024-12-05 13:49:11 +08:00
Jethro Lin
d91477263f
init sql
2024-12-05 11:38:28 +08:00
Jethro Lin
8122ab2b26
modify sql
2024-12-04 17:27:55 +08:00
Jethro Lin
e0e55719d0
bug fix
2024-12-04 17:03:46 +08:00
Jethro Lin
1ab5da5576
remove Traits
2024-12-04 16:41:43 +08:00
Jethro Lin
27cad57159
fix response
2024-12-04 13:53:58 +08:00
Jethro Lin
e1119a9426
client response
2024-12-04 13:51:51 +08:00
Jethro Lin
74790f6180
bug fix
2024-12-04 13:48:22 +08:00
Jethro Lin
383e73c2cd
clinet fix
2024-12-04 13:34:46 +08:00
Jethro Lin
4b1ed6ade3
token system fix
2024-12-04 13:32:14 +08:00
Jethro Lin
33dde9dc2c
token system change
2024-12-04 13:28:22 +08:00
Jethro Lin
ae5a7662ca
add command to clean token
2024-12-04 12:55:07 +08:00
Jethro Lin
ae4ef60215
fix token issue
2024-12-04 12:54:46 +08:00
Jethro Lin
fdaccc918f
fix premission error
2024-12-04 12:47:30 +08:00
Jethro Lin
0af7e10998
bug fix
2024-12-04 12:43:04 +08:00
Jethro Lin
9df4178800
bug fix
2024-12-04 12:27:33 +08:00
Jethro Lin
c5258233a8
5. [请求与响应格式](#5-请求与响应格式)
...
- [5.1 通用请求头](#51-通用请求头)
- [5.2 响应格式](#52-响应格式)
6. [错误代码](#6-错误代码)
7. [安全性考虑](#7-安全性考虑)
2024-12-04 12:14:43 +08:00
Jethro Lin
31b69e318a
- [4.3.2 客户用户管理](#432-客户用户管理)
...
- [4.3.2.1 新增客户用户](#4321-新增客户用户)
- [4.3.2.2 修改客户用户](#4322-修改客户用户)
- [4.3.2.3 删除客户用户](#4323-删除客户用户)
- [4.3.2.4 获取客户用户列表](#4324-获取客户用户列表)
- [4.3.3 生成认证令牌](#433-生成认证令牌)
2024-12-04 12:10:15 +08:00
Jethro Lin
c44c25d86f
4. [API 详细说明](#4-api-详细说明)
...
- [4.1 认证 API](#41-认证-api)
- [4.1.1 获取访问令牌](#411-获取访问令牌)
- [4.2 客户用户 API](#42-客户用户-api)
- [4.2.1 发送提示词请求](#421-发送提示词请求)
- [4.3 管理员 API](#43-管理员-api)
- [4.3.1 LLM 提供商管理](#431-llm-提供商管理)
- [4.3.1.1 新增 LLM 提供商](#4311-新增-llm-提供商)
- [4.3.1.2 修改 LLM 提供商](#4312-修改-llm-提供商)
- [4.3.1.3 删除 LLM 提供商](#4313-删除-llm-提供商)
- [4.3.1.4 获取 LLM 提供商列表](#4314-获取-llm-提供商列表)
2024-12-04 12:01:56 +08:00
Jethro Lin
9cebfec5b0
3. [API 概览](#3-api-概览)
...
- [3.1 客户用户 API](#31-客户用户-api)
- [3.2 管理员 API](#32-管理员-api)
2024-12-04 11:45:27 +08:00
Jethro Lin
1ab2e796a9
Created missing models:
...
Admin: For managing administrators with role-based access
LlmProvider: For managing LLM service providers
Created SQL schema:
All tables as per the database design
Proper foreign key constraints and indexes
Timestamps for auditing
Appropriate character sets and collations
Added operation logging:
Created LogService for centralized logging
Integrated logging into TokenService
Logs all token-related operations with user info and IP address
Enhanced token management:
Added comprehensive logging for all token operations
Improved error handling and validation
Added proper cleanup for revoked tokens
2024-12-04 11:31:10 +08:00
Jethro Lin
dca86354ba
agnet step 1 add auth
2024-12-04 11:24:47 +08:00
Jethro Lin
7b376c2ed9
chmod
2024-12-03 16:07:05 +08:00
Jethro Lin
596f31fa32
add laravel and cursor rules
2024-12-03 16:01:27 +08:00