2025-02-20 15:33:11 +08:00
|
|
|
package com.ff.api.controller;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.ff.annotation.CheckHeader;
|
|
|
|
|
import com.ff.api.response.TenantInfoResponse;
|
|
|
|
|
import com.ff.base.core.controller.BaseController;
|
|
|
|
|
import com.ff.base.core.domain.AjaxResult;
|
2025-02-21 14:39:21 +08:00
|
|
|
import com.ff.base.enums.QuotaType;
|
2025-02-20 15:33:11 +08:00
|
|
|
import com.ff.base.utils.bean.BeanUtils;
|
|
|
|
|
import com.ff.common.domain.TenantGameQuota;
|
|
|
|
|
import com.ff.common.domain.TenantSecretKey;
|
|
|
|
|
import com.ff.common.service.ITenantGameQuotaService;
|
2025-02-21 16:12:11 +08:00
|
|
|
import com.ff.common.service.ITenantSecretKeyService;
|
2025-02-20 15:33:11 +08:00
|
|
|
import com.ff.config.KeyConfig;
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* api控制器
|
|
|
|
|
*
|
|
|
|
|
* @author shi
|
|
|
|
|
* @date 2025/02/10
|
|
|
|
|
*/
|
|
|
|
|
@RestController
|
|
|
|
|
@CheckHeader
|
|
|
|
|
@RequestMapping("/api/agent")
|
|
|
|
|
@Slf4j
|
|
|
|
|
public class ApiAgentController extends BaseController {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Resource
|
2025-02-21 16:12:11 +08:00
|
|
|
private ITenantSecretKeyService tenantSecretKeyService;
|
2025-02-20 15:33:11 +08:00
|
|
|
@Resource
|
|
|
|
|
private KeyConfig keyConfig;
|
|
|
|
|
|
2025-02-21 16:12:11 +08:00
|
|
|
// /**
|
|
|
|
|
// * 信息
|
|
|
|
|
// *
|
|
|
|
|
// * @return {@link AjaxResult }
|
|
|
|
|
// */
|
|
|
|
|
// @PostMapping("/create/tenant")
|
|
|
|
|
// public AjaxResult info(TenantSecretKey tenantSecretKey) {
|
|
|
|
|
// tenantSecretKey.setAgentId(getUserId());
|
|
|
|
|
// tenantSecretKeyService.insertTenantSecretKey(tenantSecretKey);
|
|
|
|
|
// return AjaxResult.success(tenantInfoResponse);
|
|
|
|
|
// }
|
2025-02-20 15:33:11 +08:00
|
|
|
|
|
|
|
|
}
|