app.go 298 B

123456789101112131415161718192021222324
  1. package appApi
  2. type App struct {
  3. AppId int
  4. AppSecret string
  5. AppName string
  6. Host string
  7. isDelete int
  8. Apis []*AppApi
  9. }
  10. func NewApp() *App {
  11. return &App{
  12. isDelete: 0,
  13. }
  14. }
  15. func (m *App) SetDelete() {
  16. m.isDelete = 1
  17. }
  18. func (m *App) GetDelete() int {
  19. return m.isDelete
  20. }