Selaa lähdekoodia

add copy right

huangrf 5 vuotta sitten
vanhempi
commit
0a04fd76fd
2 muutettua tiedostoa jossa 26 lisäystä ja 22 poistoa
  1. 1 0
      light-apiengine.xml
  2. 25 22
      models/SysDomain_gen.go

+ 1 - 0
light-apiengine.xml

@@ -1290,6 +1290,7 @@
             <column name="status" caption="状态 0:禁用   1:正常" type="int32"/>
             <column isNull="false" name="sync_flag" caption="是否同步了数据库标志" type="int32"/>
             <column isNull="false" name="domain" caption="域" type="string" size="50" dbtype="varchar(36)"/>
+            <column isNull="false" name="copy_right" caption="版权" type="string" size="500" dbtype="varchar(500)"/>
             <column isNull="false" name="create_by" caption="创建人" type="string" size="36" dbtype="varchar(36)"/>
             <column isNull="false" name="create_time" caption="创建时间" type="local_time" />
             <column isNull="false" name="last_update_by" caption="最后更新人" type="string" size="36" dbtype="varchar(36)"/>

+ 25 - 22
models/SysDomain_gen.go

@@ -1,48 +1,51 @@
-package models
 
+package models
 import (
-//__import_packages__
+	//__import_packages__
 )
 
 type SysDomain struct {
 	//主键
-	Id string `xorm:"'id' varchar(36) pk notnull "json:"id"`
+	Id   string     `xorm:"'id' varchar(36) pk   notnull "json:"id"` 
 	//名称
-	Name string `xorm:"'name' varchar(36) notnull "json:"name"`
+	Name   string     `xorm:"'name' varchar(36)   notnull "json:"name"` 
 	//全名
-	FullName string `xorm:"'full_name' varchar(36) notnull "json:"full_name"`
+	FullName   string     `xorm:"'full_name' varchar(36)   notnull "json:"full_name"` 
 	//负责人
-	ContactName string `xorm:"'contact_name' varchar(36) notnull "json:"contact_name"`
+	ContactName   string     `xorm:"'contact_name' varchar(36)   notnull "json:"contact_name"` 
 	//负责人邮箱
-	ContactEmail string `xorm:"'contact_email' varchar(50) notnull "json:"contact_email"`
+	ContactEmail   string     `xorm:"'contact_email' varchar(50)   notnull "json:"contact_email"` 
 	//负责人电话
-	ContactMobile string `xorm:"'contact_mobile' varchar(50) notnull "json:"contact_mobile"`
+	ContactMobile   string     `xorm:"'contact_mobile' varchar(50)   notnull "json:"contact_mobile"` 
 	//数据库链接串
-	DataSource string `xorm:"'data_source' varchar(200) notnull "json:"data_source"`
+	DataSource   string     `xorm:"'data_source' varchar(200)   notnull "json:"data_source"` 
 	//网址
-	DomainUrl string `xorm:"'domain_url' varchar(200) notnull "json:"domain_url"`
+	DomainUrl   string     `xorm:"'domain_url' varchar(200)   notnull "json:"domain_url"` 
 	//登录页
-	LoginUrl string `xorm:"'login_url' varchar(200) notnull "json:"login_url"`
+	LoginUrl   string     `xorm:"'login_url' varchar(200)   notnull "json:"login_url"` 
 	//样式
-	Theme string `xorm:"'theme' varchar(50) null "json:"theme"`
+	Theme   string     `xorm:"'theme' varchar(50)   null "json:"theme"` 
 	//域类型
-	Type int32 `xorm:"'type' notnull "json:"type"`
+	Type   int32     `xorm:"'type'   notnull "json:"type"` 
 	//状态 0:禁用   1:正常
-	Status int32 `xorm:"'status' notnull "json:"status"`
+	Status   int32     `xorm:"'status'   notnull "json:"status"` 
 	//是否同步了数据库标志
-	SyncFlag int32 `xorm:"'sync_flag' notnull "json:"sync_flag"`
+	SyncFlag   int32     `xorm:"'sync_flag'   notnull "json:"sync_flag"` 
 	//域
-	Domain string `xorm:"'domain' varchar(36) notnull "json:"domain"`
+	Domain   string     `xorm:"'domain' varchar(36)   notnull "json:"domain"` 
+	//版权
+	CopyRight   string     `xorm:"'copy_right' varchar(500)   notnull "json:"copy_right"` 
 	//创建人
-	CreateBy string `xorm:"'create_by' varchar(36) notnull "json:"create_by"`
+	CreateBy   string     `xorm:"'create_by' varchar(36)   notnull "json:"create_by"` 
 	//创建时间
-	CreateTime LocalTime `xorm:"'create_time' notnull "json:"create_time"`
+	CreateTime   LocalTime     `xorm:"'create_time'   notnull "json:"create_time"` 
 	//最后更新人
-	LastUpdateBy string `xorm:"'last_update_by' varchar(36) notnull "json:"last_update_by"`
+	LastUpdateBy   string     `xorm:"'last_update_by' varchar(36)   notnull "json:"last_update_by"` 
 	//最后更新时间
-	LastUpdateTime int64 `xorm:"'last_update_time' notnull "json:"last_update_time"`
+	LastUpdateTime   int64     `xorm:"'last_update_time'   notnull "json:"last_update_time"` 
 	//是否删除 1:删除   0:正常
-	DelFlag int32 `xorm:"'del_flag' notnull "json:"del_flag"`
+	DelFlag   int32     `xorm:"'del_flag'   notnull "json:"del_flag"` 
+
 }
 
 func (t *SysDomain) TableName() string {
@@ -50,6 +53,6 @@ func (t *SysDomain) TableName() string {
 }
 
 func init() {
-	AddTableName("sys_domain")
+    AddTableName("sys_domain")
 	RegisterModel(new(SysDomain))
 }