package appApi type App struct { AppId int AppSecret string AppName string Host string isDelete int Apis []*AppApi } func NewApp() *App { return &App{ isDelete: 0, } } func (m *App) SetDelete() { m.isDelete = 1 } func (m *App) GetDelete() int { return m.isDelete }