package com.red.circle.other.adapter.app.activity.room;

import com.red.circle.common.business.dto.cmd.AppExtCommand;
import com.red.circle.framework.web.controller.BaseController;
import com.red.circle.other.app.dto.clientobject.activity.ActivityUserCO;
import com.red.circle.other.app.service.activity.ActivityFreightUserBusinessService;
import java.util.List;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 货运代理活动.
 *
 * @author lisizhe on 2023/9/25
 * @eo.api-type http
 * @eo.groupName 活动服务.货运代理活动
 * @eo.path /activity/freight-user
 */
@RequestMapping("/activity/freight-user")
@RestController
@RequiredArgsConstructor
public class ActivityFreightUserController extends BaseController {

  private final ActivityFreightUserBusinessService activityFreightUserBusinessService;

  /**
   * 货运代理余额大于1k的账号.
   *
   * @eo.name 货运代理余额大于1k的账号
   * @eo.method get
   * @eo.request-type formdata
   */
  @GetMapping
  public List<ActivityUserCO> listFreightUser(AppExtCommand cmd) {
    return activityFreightUserBusinessService.listFreightUser(cmd);
  }

}
