sunpengfei
2025-08-01 e4e92496667f3415c3495f7dc5b8b81176ddd598
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using FlexJobApi.Core;
using Furion.DynamicApiController;
using MediatR;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace FlexJobApi.User.Application
{
    /// <summary>
    /// 菜单
    /// </summary>
    [Route("api/user/[controller]")]
    public class MenuAppServiceV1 : IDynamicApiController
    {
        private readonly IMediator mediator;
 
        public MenuAppServiceV1(IMediator mediator)
        {
            this.mediator = mediator;
        }
 
        /// <summary>
        /// 保存菜单
        /// </summary>
        /// <param name="command"></param>
        /// <returns></returns>
        public async Task<Guid> Save(MenuSaveCommand command)
        {
            return await mediator.Send(command);
        }
 
    }
}