hongjli
2025-05-27 e7868348433a03f7aa61c84462697d93226b5df3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package com.weiwojc.service;
 
import com.weiwojc.model.entity.SecretKey;
 
public interface SecretKeyService {
    
    /**
     * 获取当前密钥(表中唯一的一条记录)
     */
    SecretKey getCurrentSecretKey();
    
    /**
     * 更新密钥
     */
    SecretKey updateSecretKey(String newKey);
    
    /**
     * 初始化密钥(如果不存在则创建默认密钥)
     */
    SecretKey initializeSecretKey();