Forráskód Böngészése

增加用户添加方法

wangh 2 éve%!(EXTRA string=óta)
szülő
commit
b2a1287845

+ 8 - 0
OASystem/OASystem.Api/Controllers/SystemController.cs

@@ -400,6 +400,14 @@ namespace OASystem.API.Controllers
             }
            
         }
+
+        [HttpPost]
+        [ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
+        public async Task<IActionResult> AddUser(AddUserDto dto)
+        {
+            int id = 0;
+            return Ok(JsonView(true, "添加成功!", new { Id = id }));
+        }
         #endregion
 
     }

+ 7 - 0
OASystem/OASystem.Domain/Dtos/System/UserDto.cs

@@ -20,4 +20,11 @@ namespace OASystem.Domain.Dtos.System
         /// </summary>
         public int DepId { get;set; }
     }
+    /// <summary>
+    /// 员工添加dto
+    /// </summary>
+    public class AddUserDto
+    {
+
+    }
 }