EasyAbp / AbpHelper.CLI

Providing code generation and more features to help you develop applications and modules with the ABP framework.
MIT License
284 stars 94 forks source link

Adjust controller's RemoteService and Route attributes #84

Closed gdlcf88 closed 4 years ago

gdlcf88 commented 4 years ago

Current generated controller code:

namespace EasyAbp.EShop.Orders.Orders
{
    [RemoteService(Name = "OrderService")]
    [Route("/api/orders/order")]
    public class OrderController : OrdersController, IOrderAppService
    {
    }
}

Should be:

namespace EasyAbp.EShop.Orders.Orders
{
    [RemoteService(Name = "EShopOrders")]    // All services within the module use the same name
    [Route("/api/eShop/orders/order")]
    public class OrderController : OrdersController, IOrderAppService
    {
    }
}
wakuflair commented 4 years ago

How to get the name?

gdlcf88 commented 4 years ago

based on the namespace and remove the "Company Name" and the "Service Name": EasyAbp.EShop.Orders.Orders -> EShopOrders