12345678910111213141516171819202122232425262728293031323334 |
- package models
- type LdapServer struct {
- Id int `orm:"pk;auto" json:"id"`
-
- Uid string `orm:"size(100)" json:"uid"`
- Name string `orm:"size(255)" json:"name"`
- Key string `orm:"unique" json:"key"`
- Url string `json:"dn"`
- Active bool `json:"active"`
- UserName string `json:"userName"`
- Password string `json:"password"`
- BaseDN string `orm:"size(255);column(base_dn)" json:"baseDN"`
- Filter string `orm:"size(255)" json:"filter"`
- Remark string `json:"remark"`
- }
- type LdapUser struct {
- Id int `orm:"pk;auto" json:"id"`
-
- Uid string `orm:"unique" json:"uid"`
- Account string `json:"account"`
- UserName string `json:"userName"`
- Mail string `json:"mail"`
- DN string `orm:"column(db)" json:"dn"`
- Attributes string `orm:"null;type(text)" json:"attributes"`
- SignType string `json:"signType"`
- Password string `json:"password"`
- Remark string `json:"remark"`
- ServerKey string `json:"serverId"`
- }
|