1402 changed files with 85919 additions and 106273 deletions
@ -0,0 +1 @@ |
|||||
|
**/node_modules/ |
@ -0,0 +1,50 @@ |
|||||
|
# 开发和部署方式 |
||||
|
|
||||
|
## windows x64 下本地开发 |
||||
|
|
||||
|
当前项目基于 .net 6 sdk,安装 visual studio 2022 时通常会自带 |
||||
|
|
||||
|
### supervisor 方式开发 |
||||
|
|
||||
|
1. 根据项目需求,安装 SQL Server 或 MySQL |
||||
|
2. 使用 build/src/win-x64/publish/ 目录下的 dev.start.cmd 和 dev.stop.cmd 管理非数据库依赖 |
||||
|
|
||||
|
配置文件: |
||||
|
|
||||
|
1. supervisor: `build\src\win-x64\publish\supervisord\supervisor.dev.conf` |
||||
|
1. nginx: `build\src\win-x64\publish\nginx\conf\nginx.conf` |
||||
|
1. gateway: `build\src\win-x64\publish\gateway\appsettings.json` |
||||
|
1. config: `build\src\win-x64\publish\gateway\wwwroot\settings\appsettings.json` |
||||
|
1. config: `build\src\win-x64\publish\gateway\wwwroot\settings\appsettings.Development.json` |
||||
|
|
||||
|
```mermaid |
||||
|
flowchart LR |
||||
|
nginx --localhost:21093--> gateway--localhost:59092--> api:59092 |
||||
|
api:59092 --localhost:6379--> redis:6379 |
||||
|
api:59092 --localhost:13319--> database:13319 |
||||
|
gateway --localhost:8086--> influxdb:8086 |
||||
|
``` |
||||
|
|
||||
|
### Docker Desktop 方式开发 |
||||
|
|
||||
|
1. 无需按照数据库 |
||||
|
2. 使用 build/src/docker/publish/ 目录下的 dev.start.cmd 和 dev.stop.cmd 管理依赖 |
||||
|
|
||||
|
## 部署 |
||||
|
|
||||
|
### windows x64 supervisor 方式部署 |
||||
|
|
||||
|
1. 执行: `build\src\win-x64\build.cmd` |
||||
|
2. 上传: `build\dist\win-x64\publish` 目录到服务器 |
||||
|
3. 修改配置,执行 publish 目录下的 start.cmd |
||||
|
|
||||
|
### docker compose 方式部署 |
||||
|
|
||||
|
1. 还行: `build\src\docker\build.cmd` |
||||
|
2. 上传: `build\dist\win-x64\publish` 目录到服务器 |
||||
|
3. 修改配置,执行 publish 目录下的 start.sh 或 start.cmd |
||||
|
|
||||
|
构建时的处理: |
||||
|
|
||||
|
1. 复制并重命名 build\src\win-x64\publish\nginx\conf 到 build\dist\docker\publish\conf\nginx,保持nginx的配置文件统一在 build\src\win-x64\publish\nginx\conf 目录维护 |
||||
|
1. 复制 build\src\win-x64\publish\gateway 到 build\dist\docker\publish\gateway,保持网关的配置和应用的配置统一在 build\src\win-x64\publish\gateway 目录维护 |
@ -0,0 +1,17 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<!-- |
||||
|
https://go.microsoft.com/fwlink/?LinkID=208121. |
||||
|
--> |
||||
|
<Project> |
||||
|
<PropertyGroup> |
||||
|
<DeleteExistingFiles>false</DeleteExistingFiles> |
||||
|
<ExcludeApp_Data>false</ExcludeApp_Data> |
||||
|
<LaunchSiteAfterPublish>true</LaunchSiteAfterPublish> |
||||
|
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration> |
||||
|
<LastUsedPlatform>Any CPU</LastUsedPlatform> |
||||
|
<PublishProvider>FileSystem</PublishProvider> |
||||
|
<PublishUrl>bin\Release\net6.0\publish\</PublishUrl> |
||||
|
<WebPublishMethod>FileSystem</WebPublishMethod> |
||||
|
<_TargetId>Folder</_TargetId> |
||||
|
</PropertyGroup> |
||||
|
</Project> |
@ -0,0 +1,63 @@ |
|||||
|
//------------------------------------------------------------------------------
|
||||
|
// <auto-generated>
|
||||
|
// 此代码由工具生成。
|
||||
|
// 运行时版本:4.0.30319.42000
|
||||
|
//
|
||||
|
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
|
// 重新生成代码,这些更改将会丢失。
|
||||
|
// </auto-generated>
|
||||
|
//------------------------------------------------------------------------------
|
||||
|
|
||||
|
namespace Win_in.Sfs.Basedata.Properties { |
||||
|
using System; |
||||
|
|
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 一个强类型的资源类,用于查找本地化的字符串等。
|
||||
|
/// </summary>
|
||||
|
// 此类是由 StronglyTypedResourceBuilder
|
||||
|
// 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
|
||||
|
// 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
|
||||
|
// (以 /str 作为命令选项),或重新生成 VS 项目。
|
||||
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] |
||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
||||
|
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] |
||||
|
public class Resources { |
||||
|
|
||||
|
private static global::System.Resources.ResourceManager resourceMan; |
||||
|
|
||||
|
private static global::System.Globalization.CultureInfo resourceCulture; |
||||
|
|
||||
|
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] |
||||
|
internal Resources() { |
||||
|
} |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 返回此类使用的缓存的 ResourceManager 实例。
|
||||
|
/// </summary>
|
||||
|
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] |
||||
|
public static global::System.Resources.ResourceManager ResourceManager { |
||||
|
get { |
||||
|
if (object.ReferenceEquals(resourceMan, null)) { |
||||
|
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Win_in.Sfs.Basedata.Properties.Resources", typeof(Resources).Assembly); |
||||
|
resourceMan = temp; |
||||
|
} |
||||
|
return resourceMan; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 重写当前线程的 CurrentUICulture 属性,对
|
||||
|
/// 使用此强类型资源类的所有资源查找执行重写。
|
||||
|
/// </summary>
|
||||
|
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] |
||||
|
public static global::System.Globalization.CultureInfo Culture { |
||||
|
get { |
||||
|
return resourceCulture; |
||||
|
} |
||||
|
set { |
||||
|
resourceCulture = value; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
@ -0,0 +1,101 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<root> |
||||
|
<!-- |
||||
|
Microsoft ResX Schema |
||||
|
|
||||
|
Version 1.3 |
||||
|
|
||||
|
The primary goals of this format is to allow a simple XML format |
||||
|
that is mostly human readable. The generation and parsing of the |
||||
|
various data types are done through the TypeConverter classes |
||||
|
associated with the data types. |
||||
|
|
||||
|
Example: |
||||
|
|
||||
|
... ado.net/XML headers & schema ... |
||||
|
<resheader name="resmimetype">text/microsoft-resx</resheader> |
||||
|
<resheader name="version">1.3</resheader> |
||||
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
||||
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
||||
|
<data name="Name1">this is my long string</data> |
||||
|
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
||||
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
||||
|
[base64 mime encoded serialized .NET Framework object] |
||||
|
</data> |
||||
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
||||
|
[base64 mime encoded string representing a byte array form of the .NET Framework object] |
||||
|
</data> |
||||
|
|
||||
|
There are any number of "resheader" rows that contain simple |
||||
|
name/value pairs. |
||||
|
|
||||
|
Each data row contains a name, and value. The row also contains a |
||||
|
type or mimetype. Type corresponds to a .NET class that support |
||||
|
text/value conversion through the TypeConverter architecture. |
||||
|
Classes that don't support this are serialized and stored with the |
||||
|
mimetype set. |
||||
|
|
||||
|
The mimetype is used for serialized objects, and tells the |
||||
|
ResXResourceReader how to depersist the object. This is currently not |
||||
|
extensible. For a given mimetype the value must be set accordingly: |
||||
|
|
||||
|
Note - application/x-microsoft.net.object.binary.base64 is the format |
||||
|
that the ResXResourceWriter will generate, however the reader can |
||||
|
read any of the formats listed below. |
||||
|
|
||||
|
mimetype: application/x-microsoft.net.object.binary.base64 |
||||
|
value : The object must be serialized with |
||||
|
: System.Serialization.Formatters.Binary.BinaryFormatter |
||||
|
: and then encoded with base64 encoding. |
||||
|
|
||||
|
mimetype: application/x-microsoft.net.object.soap.base64 |
||||
|
value : The object must be serialized with |
||||
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
||||
|
: and then encoded with base64 encoding. |
||||
|
|
||||
|
mimetype: application/x-microsoft.net.object.bytearray.base64 |
||||
|
value : The object must be serialized into a byte array |
||||
|
: using a System.ComponentModel.TypeConverter |
||||
|
: and then encoded with base64 encoding. |
||||
|
--> |
||||
|
|
||||
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
||||
|
<xsd:element name="root" msdata:IsDataSet="true"> |
||||
|
<xsd:complexType> |
||||
|
<xsd:choice maxOccurs="unbounded"> |
||||
|
<xsd:element name="data"> |
||||
|
<xsd:complexType> |
||||
|
<xsd:sequence> |
||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
||||
|
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
||||
|
</xsd:sequence> |
||||
|
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" /> |
||||
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
||||
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
||||
|
</xsd:complexType> |
||||
|
</xsd:element> |
||||
|
<xsd:element name="resheader"> |
||||
|
<xsd:complexType> |
||||
|
<xsd:sequence> |
||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
||||
|
</xsd:sequence> |
||||
|
<xsd:attribute name="name" type="xsd:string" use="required" /> |
||||
|
</xsd:complexType> |
||||
|
</xsd:element> |
||||
|
</xsd:choice> |
||||
|
</xsd:complexType> |
||||
|
</xsd:element> |
||||
|
</xsd:schema> |
||||
|
<resheader name="resmimetype"> |
||||
|
<value>text/microsoft-resx</value> |
||||
|
</resheader> |
||||
|
<resheader name="version"> |
||||
|
<value>1.3</value> |
||||
|
</resheader> |
||||
|
<resheader name="reader"> |
||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
||||
|
</resheader> |
||||
|
<resheader name="writer"> |
||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
||||
|
</resheader> |
||||
|
</root> |
@ -0,0 +1,58 @@ |
|||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Threading.Tasks; |
||||
|
using Microsoft.AspNetCore.Authorization; |
||||
|
using Microsoft.AspNetCore.Mvc; |
||||
|
using Volo.Abp.Account; |
||||
|
using Volo.Abp.Application.Services; |
||||
|
using Volo.Abp.AspNetCore.Mvc; |
||||
|
using Win_in.Sfs.Auth.Application.Contracts; |
||||
|
using Win_in.Sfs.Wms.Pda.Authenticaitons; |
||||
|
using Win_in.Sfs.Wms.Pda.Models; |
||||
|
using PdaMenuDto = Win_in.Sfs.Wms.Pda.Models.PdaMenuDto; |
||||
|
using PdaMenuGroupDto = Win_in.Sfs.Wms.Pda.Models.PdaMenuGroupDto; |
||||
|
|
||||
|
namespace Win_in.Sfs.Wms.Pda.Controllers.Accounts; |
||||
|
|
||||
|
/// <summary>
|
||||
|
///
|
||||
|
/// </summary>
|
||||
|
[AllowAnonymous] |
||||
|
[ApiController] |
||||
|
[Route($"{PdaHostConst.ROOT_ROUTE}asfasf")] |
||||
|
|
||||
|
public class TestController: AbpController |
||||
|
{ |
||||
|
//private readonly IProfileAppService _profileAppService;
|
||||
|
//private readonly ITokenService _tokenService;
|
||||
|
private readonly IUserMenuAppService _userMenuAppService; |
||||
|
//private readonly IUserWorkGroupAppService _userWorkGroupAppService;
|
||||
|
|
||||
|
/// <summary>
|
||||
|
///
|
||||
|
/// </summary>
|
||||
|
/// <param name="profileAppService"></param>
|
||||
|
/// <param name="tokenService"></param>
|
||||
|
/// <param name="userMenuAppService"></param>
|
||||
|
/// <param name="userWorkGroupAppService"></param>
|
||||
|
public TestController( |
||||
|
IUserMenuAppService userMenuAppService |
||||
|
, IUserWorkGroupAppService userWorkGroupAppService |
||||
|
) |
||||
|
{ |
||||
|
//_profileAppService = profileAppService;
|
||||
|
//_tokenService = tokenService;
|
||||
|
_userMenuAppService = userMenuAppService; |
||||
|
//_userWorkGroupAppService = userWorkGroupAppService;
|
||||
|
} |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// Test
|
||||
|
/// </summary>
|
||||
|
/// <returns></returns>
|
||||
|
[HttpGet("Test")] |
||||
|
public virtual async Task<List<string>> Test() |
||||
|
{ |
||||
|
return new List<string>() { "sdfsdf'" }; |
||||
|
} |
||||
|
} |
@ -1,13 +0,0 @@ |
|||||
//{内网地址} -----内 网 地 址 |
|
||||
{ |
|
||||
"IdentityClients": { |
|
||||
"Default": { |
|
||||
"GrantType": "client_credentials", |
|
||||
"ClientId": "Auth_App", |
|
||||
"ClientSecret": "1q2w3e*", |
|
||||
"RequireHttps": "false", |
|
||||
"Authority": "http://{发布域名}:59093", |
|
||||
"Scope": "Auth" |
|
||||
} |
|
||||
} |
|
||||
} |
|
@ -1,4 +1,45 @@ |
|||||
{ |
{ |
||||
"ConfigServer": "http://localhost:21093", |
//"AgileConfig": { |
||||
"ConfigServer.Docker": "http://gateway:21093" |
// "appId": "sfs", |
||||
|
// "secret": "sfs", |
||||
|
// "nodes": "http://localhost:21092", |
||||
|
// "env": "dev" |
||||
|
//}, |
||||
|
"Urls": "http://localhost:59096", |
||||
|
//"IdentityClients": { |
||||
|
// "Default": { |
||||
|
// "GrantType": "client_credentials", |
||||
|
// "ClientId": "Auth_App", |
||||
|
// "ClientSecret": "1q2w3e*", |
||||
|
// "RequireHttps": "false", |
||||
|
// "Authority": "http://dev.ccwin-in.com:59093", |
||||
|
// "Scope": "Auth" |
||||
|
// } |
||||
|
//}, |
||||
|
//"RemoteServices": { |
||||
|
// "Default": { "BaseUrl": "http://localhost:59093" }, |
||||
|
// "Auth": { "BaseUrl": "http://localhost:59093/" } |
||||
|
//} |
||||
|
//"RemoteServices": { |
||||
|
// //"Default": { "BaseUrl": "http://dev.ccwin-in.com:59093" }, |
||||
|
// //"BaseData": { "BaseUrl": "http://localhost:59094/" }, |
||||
|
// "Store": { "BaseUrl": "http://localhost:59096/" }, |
||||
|
// "Job": { "BaseUrl": "http://localhost:59096/" }, |
||||
|
// "Inventory": { "BaseUrl": "http://localhost:59096/" } |
||||
|
// //"FileStorage": { "BaseUrl": "http://dev.ccwin-in.com:59092/" }, |
||||
|
// //"Message": { "BaseUrl": "http://dev.ccwin-in.com:59092/" }, |
||||
|
// // "Label": { "BaseUrl": "http://dev.ccwin-in.com:59092/" }, |
||||
|
// //"Auth": { "BaseUrl": "http://dev.ccwin-in.com:59093/" } |
||||
|
//} |
||||
|
"RemoteServices": { |
||||
|
"Default": { "BaseUrl": "http://dev.ccwin-in.com:21293/" }, |
||||
|
"BaseData": { "BaseUrl": "http://dev.ccwin-in.com:21294/" }, |
||||
|
"Store": { "BaseUrl": "http://dev.ccwin-in.com:21295/" }, |
||||
|
"Job": { "BaseUrl": "http://dev.ccwin-in.com:21295/" }, |
||||
|
"Inventory": { "BaseUrl": "http://dev.ccwin-in.com:21295/" }, |
||||
|
"FileStorage": { "BaseUrl": "http://dev.ccwin-in.com:21292/" }, |
||||
|
"Message": { "BaseUrl": "http://dev.ccwin-in.com:21292/" }, |
||||
|
"Label": { "BaseUrl": "http://dev.ccwin-in.com:21292/" }, |
||||
|
"Auth": { "BaseUrl": "http://dev.ccwin-in.com:21293/" } |
||||
|
} |
||||
} |
} |
||||
|
@ -1,17 +1,17 @@ |
|||||
{ |
{ |
||||
"RabbitMQ": { |
//"RabbitMQ": { |
||||
"Connections": { |
// "Connections": { |
||||
"Default": { |
// "Default": { |
||||
"HostName": "127.0.0.1", |
// "HostName": "127.0.0.1", |
||||
"Port": 5672, |
// "Port": 5672, |
||||
"UserName": "admin", |
// "UserName": "admin", |
||||
"Password": "admin", |
// "Password": "admin", |
||||
"VirtualHost": "my_vhost" |
// "VirtualHost": "my_vhost" |
||||
} |
// } |
||||
}, |
// }, |
||||
"EventBus": { |
// "EventBus": { |
||||
"ClientName": "Inventory", |
// "ClientName": "Inventory", |
||||
"ExchangeName": "InventoryMessages" |
// "ExchangeName": "InventoryMessages" |
||||
} |
// } |
||||
} |
//} |
||||
} |
} |
||||
|
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue