From ee42fcac8ecf0ca23e90e28b54558524159c1881 Mon Sep 17 00:00:00 2001 From: Gucheng Wang Date: Thu, 16 Jun 2022 20:52:54 +0800 Subject: [PATCH] Remove signup_item.go --- object/application.go | 8 ++++++++ object/signup_item.go | 23 ----------------------- 2 files changed, 8 insertions(+), 23 deletions(-) delete mode 100644 object/signup_item.go diff --git a/object/application.go b/object/application.go index ecf4143c..3fd88ebf 100644 --- a/object/application.go +++ b/object/application.go @@ -22,6 +22,14 @@ import ( "xorm.io/core" ) +type SignupItem struct { + Name string `json:"name"` + Visible bool `json:"visible"` + Required bool `json:"required"` + Prompted bool `json:"prompted"` + Rule string `json:"rule"` +} + type Application struct { Owner string `xorm:"varchar(100) notnull pk" json:"owner"` Name string `xorm:"varchar(100) notnull pk" json:"name"` diff --git a/object/signup_item.go b/object/signup_item.go deleted file mode 100644 index 43aec300..00000000 --- a/object/signup_item.go +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright 2021 The Casdoor Authors. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package object - -type SignupItem struct { - Name string `json:"name"` - Visible bool `json:"visible"` - Required bool `json:"required"` - Prompted bool `json:"prompted"` - Rule string `json:"rule"` -}