Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
T
TokenVaultManagement
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jasonwai
TokenVaultManagement
Commits
bb835eee
Commit
bb835eee
authored
Jun 19, 2023
by
Jason
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.新增key
2.token vault權限 List, add user, edit user permission
parent
48556b95
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
694 additions
and
214 deletions
+694
-214
TokenVaultController .cs
...Management/backstage/Controllers/TokenVaultController .cs
+306
-39
Response.cs
Merchant Token Vault Management/backstage/Models/Response.cs
+2
-1
TokenVault.cs
...ault Management/backstage/Models/TokenVault/TokenVault.cs
+16
-0
Permission.zh.resx
...t/backstage/Resources/Views/TokenVault/Permission.zh.resx
+186
-0
List.cshtml
...n Vault Management/backstage/Views/TokenVault/List.cshtml
+1
-1
ListFields.cshtml
...t Management/backstage/Views/TokenVault/ListFields.cshtml
+1
-0
Permission.cshtml
...t Management/backstage/Views/TokenVault/Permission.cshtml
+182
-173
No files found.
Merchant Token Vault Management/backstage/Controllers/TokenVaultController .cs
View file @
bb835eee
This diff is collapsed.
Click to expand it.
Merchant Token Vault Management/backstage/Models/Response.cs
View file @
bb835eee
...
...
@@ -10,9 +10,10 @@ namespace TokenVault_management.Models
//user/list response
public
int
r
{
get
;
set
;
}
public
Object
m
{
get
;
set
;
}
public
Object
data
{
get
;
set
;
}
public
string
flags
{
get
;
set
;
}
public
List
<
string
>
failInfo
{
get
;
set
;
}
}
}
Merchant Token Vault Management/backstage/Models/TokenVault/TokenVault.cs
View file @
bb835eee
...
...
@@ -96,6 +96,22 @@ namespace backstage.Models.TokenVault
}
public
class
Permission
{
public
int
id
{
get
;
set
;
}
public
int
merchant_id
{
get
;
set
;
}
public
int
user_id
{
get
;
set
;
}
public
string
username
{
get
;
set
;
}
public
int
vault_idvault_id
{
get
;
set
;
}
public
int
access_code
{
get
;
set
;
}
public
int
enable
{
get
;
set
;
}
public
string
created
{
get
;
set
;
}
public
string
modified
{
get
;
set
;
}
}
...
...
Merchant Token Vault Management/backstage/Resources/Views/TokenVault/Permission.zh.resx
0 → 100644
View file @
bb835eee
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
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">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</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.Runtime.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:import
namespace=
"http://www.w3.org/XML/1998/namespace"
/>
<xsd:element
name=
"root"
msdata:IsDataSet=
"true"
>
<xsd:complexType>
<xsd:choice
maxOccurs=
"unbounded"
>
<xsd:element
name=
"metadata"
>
<xsd:complexType>
<xsd:sequence>
<xsd:element
name=
"value"
type=
"xsd:string"
minOccurs=
"0"
/>
</xsd:sequence>
<xsd:attribute
name=
"name"
use=
"required"
type=
"xsd:string"
/>
<xsd:attribute
name=
"type"
type=
"xsd:string"
/>
<xsd:attribute
name=
"mimetype"
type=
"xsd:string"
/>
<xsd:attribute
ref=
"xml:space"
/>
</xsd:complexType>
</xsd:element>
<xsd:element
name=
"assembly"
>
<xsd:complexType>
<xsd:attribute
name=
"alias"
type=
"xsd:string"
/>
<xsd:attribute
name=
"name"
type=
"xsd:string"
/>
</xsd:complexType>
</xsd:element>
<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"
use=
"required"
msdata:Ordinal=
"1"
/>
<xsd:attribute
name=
"type"
type=
"xsd:string"
msdata:Ordinal=
"3"
/>
<xsd:attribute
name=
"mimetype"
type=
"xsd:string"
msdata:Ordinal=
"4"
/>
<xsd:attribute
ref=
"xml:space"
/>
</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>
2.0
</value>
</resheader>
<resheader
name=
"reader"
>
<value>
System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
</value>
</resheader>
<resheader
name=
"writer"
>
<value>
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
</value>
</resheader>
<data
name=
"AddToken Vault"
xml:space=
"preserve"
>
<value>
新增代碼庫
</value>
</data>
<data
name=
"Choose department"
xml:space=
"preserve"
>
<value>
選擇部門
</value>
</data>
<data
name=
"Create date"
xml:space=
"preserve"
>
<value>
建立日
</value>
</data>
<data
name=
"Creation Date"
xml:space=
"preserve"
>
<value>
建立日期
</value>
</data>
<data
name=
"Data Token Vault"
xml:space=
"preserve"
>
<value>
資料代碼保險庫
</value>
</data>
<data
name=
"Description"
xml:space=
"preserve"
>
<value>
描述
</value>
</data>
<data
name=
"Edit date"
xml:space=
"preserve"
>
<value>
修改日
</value>
</data>
<data
name=
"Enable"
xml:space=
"preserve"
>
<value>
啟動
</value>
</data>
<data
name=
"Manage"
xml:space=
"preserve"
>
<value>
管理
</value>
</data>
<data
name=
"Name"
xml:space=
"preserve"
>
<value>
名稱
</value>
</data>
<data
name=
"Number of codes"
xml:space=
"preserve"
>
<value>
代碼數量
</value>
</data>
<data
name=
"Number of users"
xml:space=
"preserve"
>
<value>
使用者數量
</value>
</data>
<data
name=
"Operate"
xml:space=
"preserve"
>
<value>
操作
</value>
</data>
<data
name=
"Permission"
xml:space=
"preserve"
>
<value>
權限
</value>
</data>
<data
name=
"Please select permission"
xml:space=
"preserve"
>
<value>
請選擇權限(複選)
</value>
</data>
<data
name=
"Save"
xml:space=
"preserve"
>
<value>
儲存
</value>
</data>
<data
name=
"Serial number"
xml:space=
"preserve"
>
<value>
編號
</value>
</data>
<data
name=
"Status"
xml:space=
"preserve"
>
<value>
狀態
</value>
</data>
<data
name=
"Token Vault"
xml:space=
"preserve"
>
<value>
代碼庫
</value>
</data>
<data
name=
"Token Vault List"
xml:space=
"preserve"
>
<value>
代碼化保險庫列管理
</value>
</data>
<data
name=
"Tpye"
xml:space=
"preserve"
>
<value>
種類
</value>
</data>
<data
name=
"User"
xml:space=
"preserve"
>
<value>
使用者
</value>
</data>
</root>
\ No newline at end of file
Merchant Token Vault Management/backstage/Views/TokenVault/List.cshtml
View file @
bb835eee
...
...
@@ -196,7 +196,7 @@
var vaultid = $(this).data('vault_id');
var merchantid = $(this).data('merchant_id');
console.log('vaultid=' + vaultid);
window.location.href = '/tokenvault/Permission/' + "?vault_id=" + vaultid + "&
M
erchant_id=" + merchantid;
window.location.href = '/tokenvault/Permission/' + "?vault_id=" + vaultid + "&
m
erchant_id=" + merchantid;
});
...
...
Merchant Token Vault Management/backstage/Views/TokenVault/ListFields.cshtml
View file @
bb835eee
...
...
@@ -93,6 +93,7 @@
<a type="button" class="btn btn-info float-right mb-2 @disabledClass" data-toggle="modal" data-target="#myModal">@Localizer["Create"]</a>
</div>
</div>
<div>
<div class="rank-table">
<div class="table-responsive">
...
...
Merchant Token Vault Management/backstage/Views/TokenVault/Permission.cshtml
View file @
bb835eee
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment