package com.bonus.canteen.core.customer.metadata.service;

import com.bonus.canteen.core.allocation.api.AllocMetadataApi;
import com.bonus.canteen.core.common.enums.MetadataModelTypeEnum;
import com.bonus.canteen.core.customer.metadata.model.FaceMetadataModel;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class FaceMetadataService {
   @Resource
   @Lazy
   private AllocMetadataApi allocMetadataApi;

   public FaceMetadataModel queryMetadata() {
      return (FaceMetadataModel)this.allocMetadataApi.queryMetadataModel(MetadataModelTypeEnum.CUSTOMER, new FaceMetadataModel());
   }
}
