Skip to content
This repository has been archived by the owner on Aug 1, 2022. It is now read-only.

Commit

Permalink
feat: add dcc client (#75)
Browse files Browse the repository at this point in the history
Co-authored-by: yanpengju <yanpengju@masastack.com>
  • Loading branch information
codding-y and yanpengju authored Jun 24, 2022
1 parent 1f95342 commit 8c091c1
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright (c) MASA Stack All rights reserved.
// Licensed under the MIT License. See LICENSE.txt in the project root for license information.

namespace Masa.BuildingBlocks.BasicAbility.Dcc;

public interface IDccClient
{
public ILabelService LabelService { get; }
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// Copyright (c) MASA Stack All rights reserved.
// Licensed under the MIT License. See LICENSE.txt in the project root for license information.

namespace Masa.BuildingBlocks.BasicAbility.Dcc.Model
{
public class LabelModel
{
public int Id { get; set; }

public string Code { get; set; } = "";

public string Name { get; set; } = "";

public string TypeCode { get; set; } = "";

public string TypeName { get; set; } = "";

public string Description { get; set; } = "";
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright (c) MASA Stack All rights reserved.
// Licensed under the MIT License. See LICENSE.txt in the project root for license information.

namespace Masa.BuildingBlocks.BasicAbility.Dcc.Service;

public interface ILabelService
{
Task<List<LabelModel>> GetListByTypeCodeAsync(string typeCode);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Copyright (c) MASA Stack All rights reserved.
// Licensed under the MIT License. See LICENSE.txt in the project root for license information.

global using Masa.BuildingBlocks.BasicAbility.Dcc.Model;
global using Masa.BuildingBlocks.BasicAbility.Dcc.Service;

0 comments on commit 8c091c1

Please sign in to comment.