package com.bonus.core.account.v3.metadata.controller;

import com.bonus.core.account.v3.metadata.model.AccMetadataModel;
import com.bonus.core.account.v3.metadata.service.AccMetadataService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Lazy;
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;

@RestController
@RequestMapping({"/api/v2/acc/metadata"})
@Api(
   tags = {"账户配置控制器"}
)
public class AccMetadataController {
   @Resource
   @Lazy
   private AccMetadataService accMetadataService;

   @ApiOperation("查询配置")
   @PostMapping({"/query"})
   public AccMetadataModel queryMetadata() {
      return this.accMetadataService.queryMetadata();
   }
}
