Commit graph

6 commits

Author SHA1 Message Date
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