You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.0 KiB
52 lines
1.0 KiB
export default function () {
|
|
return {
|
|
title: "登录",
|
|
type: "object",
|
|
properties: {
|
|
username: {
|
|
title: "用户名",
|
|
type: "string",
|
|
rules: [
|
|
{
|
|
required: true,
|
|
message: "用户名不能为空",
|
|
},
|
|
{
|
|
max: 64,
|
|
message: "用户名的最大长度为 64",
|
|
},
|
|
],
|
|
},
|
|
password: {
|
|
title: "密码",
|
|
type: "string",
|
|
input: "password",
|
|
rules: [
|
|
{
|
|
required: true,
|
|
message: "密码不能为空",
|
|
},
|
|
{
|
|
max: 64,
|
|
message: "密码的最大长度为 64",
|
|
},
|
|
{
|
|
message: "DataTypeAttribute",
|
|
},
|
|
],
|
|
},
|
|
client_id: {
|
|
default: "basic-web",
|
|
hidden: true,
|
|
},
|
|
grant_type: {
|
|
default: "password",
|
|
hidden: true,
|
|
},
|
|
scope: {
|
|
default: "WebAppGateway BaseService",
|
|
hidden: true,
|
|
},
|
|
},
|
|
};
|
|
}
|
|
|