Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

丁松杰 / Pole

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • Pole
  • samples
  • apis
  • Order.Api
  • Repository
  • IBankRepository.cs
Find file
BlameHistoryPermalink
  • 丁松杰's avatar
    添加可靠消息demo · 610f963f
    丁松杰 committed 5 years ago
    610f963f
IBankRepository.cs 498 Bytes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
using Order.Api.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace ServiceA.Repository
{
    public interface IBankRepository
    {
        bool AddMoney(decimal money);
    }
    public class BankRepository : IBankRepository
    {
        private static Bank Bank = new Bank { Id = 1, Money = 0 };

        public bool AddMoney(decimal money)
        {
            Bank.Money += money;
            return true;
        }
    }
}