package com.hzs.system.base.provider;/**
 * @Description:
 * @Author: yuhui
 * @Time: 2024/5/8 16:09
 * @Classname: CubasdocProvider
 * @PackageName: com.hzs.system.base.provider
 */

import cn.hutool.core.bean.BeanUtil;
import com.hzs.common.core.domain.R;
import com.hzs.common.domain.system.base.BdCubasdoc;
import com.hzs.system.base.ICountryServiceApi;
import com.hzs.system.base.service.IBdCubasdocService;
import com.hzs.system.sys.ICubasdocApi;
import com.hzs.system.sys.dto.CubasdocDTO;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 *@BelongsProject: hzs_cloud
 *@BelongsPackage: com.hzs.system.base.provider
 *@Author: yh
 *@CreateTime: 2024-05-08  16:09
 *@Description: TODO
 *@Version: 1.0
 */
@DubboService
public class CubasdocProvider implements ICubasdocApi {

    @Autowired
    private IBdCubasdocService cubasdocService;

    @Override
    public R<CubasdocDTO> getCubasdoc(Integer pkCubasdoc) {
        BdCubasdoc cubasdoc = cubasdocService.getById(pkCubasdoc);
        CubasdocDTO cubasdocDTO = BeanUtil.copyProperties(cubasdoc, CubasdocDTO.class);
        return R.ok(cubasdocDTO);
    }
}
