Commit 0400e28d authored by 吴春's avatar 吴春

提交

parent 6f672868
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework> <TargetFramework>netcoreapp3.0</TargetFramework>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
......
...@@ -393,7 +393,7 @@ ...@@ -393,7 +393,7 @@
"C:\\Program Files (x86)\\NuGet\\Config\\Xamarin.Offline.config" "C:\\Program Files (x86)\\NuGet\\Config\\Xamarin.Offline.config"
], ],
"originalTargetFrameworks": [ "originalTargetFrameworks": [
"netcoreapp3.1" "netcoreapp3.0"
], ],
"sources": { "sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
...@@ -401,7 +401,7 @@ ...@@ -401,7 +401,7 @@
"https://api.nuget.org/v3/index.json": {} "https://api.nuget.org/v3/index.json": {}
}, },
"frameworks": { "frameworks": {
"netcoreapp3.1": { "netcoreapp3.0": {
"projectReferences": { "projectReferences": {
"D:\\project\\GitProject\\ShoppingMall\\Mall\\Mall.Model\\Mall.Model.csproj": { "D:\\project\\GitProject\\ShoppingMall\\Mall\\Mall.Model\\Mall.Model.csproj": {
"projectPath": "D:\\project\\GitProject\\ShoppingMall\\Mall\\Mall.Model\\Mall.Model.csproj" "projectPath": "D:\\project\\GitProject\\ShoppingMall\\Mall\\Mall.Model\\Mall.Model.csproj"
...@@ -419,7 +419,7 @@ ...@@ -419,7 +419,7 @@
} }
}, },
"frameworks": { "frameworks": {
"netcoreapp3.1": { "netcoreapp3.0": {
"imports": [ "imports": [
"net461", "net461",
"net462", "net462",
...@@ -430,6 +430,20 @@ ...@@ -430,6 +430,20 @@
], ],
"assetTargetFallback": true, "assetTargetFallback": true,
"warn": true, "warn": true,
"downloadDependencies": [
{
"name": "Microsoft.AspNetCore.App.Ref",
"version": "[3.0.1, 3.0.1]"
},
{
"name": "Microsoft.NETCore.App.Ref",
"version": "[3.0.0, 3.0.0]"
},
{
"name": "Microsoft.WindowsDesktop.App.Ref",
"version": "[3.0.0, 3.0.0]"
}
],
"frameworkReferences": { "frameworkReferences": {
"Microsoft.NETCore.App": { "Microsoft.NETCore.App": {
"privateAssets": "all" "privateAssets": "all"
......
{ {
"version": 3, "version": 3,
"targets": { "targets": {
".NETCoreApp,Version=v3.1": { ".NETCoreApp,Version=v3.0": {
"Autofac/4.9.4": { "Autofac/4.9.4": {
"type": "package", "type": "package",
"compile": { "compile": {
...@@ -8599,7 +8599,7 @@ ...@@ -8599,7 +8599,7 @@
} }
}, },
"projectFileDependencyGroups": { "projectFileDependencyGroups": {
".NETCoreApp,Version=v3.1": [ ".NETCoreApp,Version=v3.0": [
"Mall.Model >= 1.0.0", "Mall.Model >= 1.0.0",
"Mall.Repository >= 1.0.0" "Mall.Repository >= 1.0.0"
] ]
...@@ -8628,7 +8628,7 @@ ...@@ -8628,7 +8628,7 @@
"C:\\Program Files (x86)\\NuGet\\Config\\Xamarin.Offline.config" "C:\\Program Files (x86)\\NuGet\\Config\\Xamarin.Offline.config"
], ],
"originalTargetFrameworks": [ "originalTargetFrameworks": [
"netcoreapp3.1" "netcoreapp3.0"
], ],
"sources": { "sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
...@@ -8636,7 +8636,7 @@ ...@@ -8636,7 +8636,7 @@
"https://api.nuget.org/v3/index.json": {} "https://api.nuget.org/v3/index.json": {}
}, },
"frameworks": { "frameworks": {
"netcoreapp3.1": { "netcoreapp3.0": {
"projectReferences": { "projectReferences": {
"D:\\project\\GitProject\\ShoppingMall\\Mall\\Mall.Model\\Mall.Model.csproj": { "D:\\project\\GitProject\\ShoppingMall\\Mall\\Mall.Model\\Mall.Model.csproj": {
"projectPath": "D:\\project\\GitProject\\ShoppingMall\\Mall\\Mall.Model\\Mall.Model.csproj" "projectPath": "D:\\project\\GitProject\\ShoppingMall\\Mall\\Mall.Model\\Mall.Model.csproj"
...@@ -8654,7 +8654,7 @@ ...@@ -8654,7 +8654,7 @@
} }
}, },
"frameworks": { "frameworks": {
"netcoreapp3.1": { "netcoreapp3.0": {
"imports": [ "imports": [
"net461", "net461",
"net462", "net462",
...@@ -8665,6 +8665,20 @@ ...@@ -8665,6 +8665,20 @@
], ],
"assetTargetFallback": true, "assetTargetFallback": true,
"warn": true, "warn": true,
"downloadDependencies": [
{
"name": "Microsoft.AspNetCore.App.Ref",
"version": "[3.0.1, 3.0.1]"
},
{
"name": "Microsoft.NETCore.App.Ref",
"version": "[3.0.0, 3.0.0]"
},
{
"name": "Microsoft.WindowsDesktop.App.Ref",
"version": "[3.0.0, 3.0.0]"
}
],
"frameworkReferences": { "frameworkReferences": {
"Microsoft.NETCore.App": { "Microsoft.NETCore.App": {
"privateAssets": "all" "privateAssets": "all"
......
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Mall.Common.API;
using Mall.Model.Entity.BaseSetUp;
using Mall.Module.BaseSetUp;
using Mall.WebApi.Filter;
using Microsoft.AspNetCore.Cors;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
namespace Mall.WebApi.Controllers.MallBase
{
[Route("api/[controller]/[action]")]
[ApiExceptionFilter]
[ApiController]
[EnableCors("AllowCors")]
public class MallBaseController : BaseController
{
private MallBaseModule mallBaseModule = new MallBaseModule();
public ApiResult AddOrUpdate()
{
var query = JsonConvert.DeserializeObject<RB_MallBase>(RequestParm.msg.ToString());
if (query == null)
{
return ApiResult.Failed("请传入需要操作的小程序");
}
else
{
if (query.ID == 0)//新增
{
}
bool result = mallBaseModule.AddOrUpdate(query);
if (result)
{
return ApiResult.Success("基础信息保存成功");
}
else
{
return ApiResult.Failed("基础信息保存失败");
}
}
}
}
}
\ No newline at end of file
<Project Sdk="Microsoft.NET.Sdk.Web"> <Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup> <PropertyGroup>
<TargetFramework>netcoreapp3.0</TargetFramework> <TargetFramework>netcoreapp3.0</TargetFramework>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment